/* trace — Relic design system */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Accent */
  --accent: #d946ef;
  --accent-light: #e879f9;
  --accent-soft: rgba(217, 70, 239, 0.12);
  --accent-glow: rgba(217, 70, 239, 0.28);

  /* Semantic */
  --positive: #22c55e;
  --positive-soft: rgba(34, 197, 94, 0.12);
  --negative: #ef4444;
  --negative-soft: rgba(239, 68, 68, 0.12);

  /* Dark theme surfaces */
  --bg: #080d1a;
  --surface: #111827;
  --surface-2: #171f31;
  --surface-3: #1c1938;
  --border: #1f2b40;
  --border-2: #141e30;

  /* Text */
  --t1: #f1f5f9;
  --t2: #94a3b8;
  --t3: #475569;

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-full: 999px;

  /* Shadows */
  --sh-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
  --sh-md: 0 4px 14px rgba(0, 0, 0, 0.45);
  --sh-lg: 0 8px 32px rgba(0, 0, 0, 0.55);

  --dur: 0.2s;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background: linear-gradient(135deg, #060910 0%, #130f26 50%, #0d1520 100%);
  color: var(--t1);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* Subtle card-motif pattern behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("/relic-bg-pattern-dark.svg");
  background-size: 560px 560px;
  background-repeat: repeat;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

nav,
main,
header,
section,
footer {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ──────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(8, 13, 26, 0.75);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.logo {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.6px;
  color: var(--t1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.logo .dot {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  color: var(--t2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color var(--dur);
}

.nav-links a:hover {
  color: var(--t1);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  padding: 96px 0 72px;
  text-align: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(
    ellipse at center,
    rgba(217, 70, 239, 0.18) 0%,
    transparent 60%
  );
  pointer-events: none;
  z-index: -1;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: var(--r-full);
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 24px;
  color: var(--t1);
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero p.lead {
  font-size: 18px;
  color: var(--t2);
  max-width: 540px;
  margin: 0 auto 40px;
  font-weight: 400;
}

.cta-row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 50px;
  padding: 0 28px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--r-full);
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--accent-glow);
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.15s;
  white-space: nowrap;
}

.btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px var(--accent-glow);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 50px;
  padding: 0 24px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  color: var(--t1);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  transition: background var(--dur), border-color var(--dur);
  white-space: nowrap;
}

.btn-secondary:hover {
  background: var(--surface-2);
  border-color: rgba(217, 70, 239, 0.3);
}

/* ── Waitlist form ────────────────────────────────────────── */
.waitlist-form {
  display: flex;
  gap: 8px;
  max-width: 460px;
  margin: 0 auto 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  padding: 5px 5px 5px 8px;
  transition: border-color var(--dur);
}

.waitlist-form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.waitlist-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--t1);
  font-size: 15px;
  font-family: inherit;
  padding: 0 14px;
  height: 44px;
}

.waitlist-input::placeholder {
  color: var(--t3);
}

.waitlist-form .btn-primary {
  height: 44px;
  padding: 0 20px;
  font-size: 14px;
  flex-shrink: 0;
}

.waitlist-form .btn-primary:hover {
  transform: none;
}

.waitlist-form .btn-primary:disabled {
  opacity: 0.7;
  cursor: default;
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.waitlist-feedback {
  min-height: 22px;
  font-size: 14px;
  margin: 0 auto 8px;
  max-width: 460px;
}

.waitlist-feedback.is-success {
  color: var(--positive);
}

.waitlist-feedback.is-error {
  color: var(--negative);
}

.waitlist-note {
  font-size: 12px;
  color: var(--t3);
  margin: 0 auto 28px;
  max-width: 460px;
}

/* ── Hero icon (gem/orb) ──────────────────────────────────── */
.hero-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.hero-icon {
  width: 140px;
  height: 140px;
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #0a0d1f 0%, #1c1040 50%, #2a1260 100%);
  box-shadow: 0 0 0 1px rgba(217, 70, 239, 0.25),
    0 20px 60px rgba(217, 70, 239, 0.35), 0 8px 20px rgba(0, 0, 0, 0.55);
}

.hero-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.03) 40%,
    transparent 70%
  );
  z-index: 1;
}

.hero-icon::after {
  content: "";
  position: absolute;
  top: 32%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 96px;
  height: 96px;
  background: radial-gradient(
    circle,
    rgba(217, 70, 239, 0.45) 0%,
    transparent 70%
  );
  z-index: 0;
}

.hero-icon svg {
  position: relative;
  z-index: 2;
}

/* ── Section ──────────────────────────────────────────────── */
.section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section h2 {
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: var(--t1);
}

.section p.section-desc {
  color: var(--t2);
  font-size: 17px;
  max-width: 560px;
  margin-bottom: 48px;
}

/* ── Features ─────────────────────────────────────────────── */
.features-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 28px 24px;
  border-radius: var(--r-lg);
  transition: border-color var(--dur), transform var(--dur),
    box-shadow var(--dur);
  box-shadow: var(--sh-sm);
}

.feature:hover {
  border-color: rgba(217, 70, 239, 0.3);
  transform: translateY(-3px);
  box-shadow: var(--sh-md), 0 0 0 1px rgba(217, 70, 239, 0.15);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  color: var(--t1);
}

.feature p {
  color: var(--t2);
  font-size: 14px;
  line-height: 1.6;
}

/* ── Footer ───────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  color: var(--t3);
  font-size: 13px;
}

footer .footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

footer .footer-logo {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.4px;
  color: var(--t1);
  text-decoration: none;
}

footer .footer-logo .dot {
  color: var(--accent);
}

footer .footer-links a {
  color: var(--t2);
  text-decoration: none;
  margin-left: 24px;
  font-weight: 500;
  transition: color var(--dur);
}

footer .footer-links a:first-child {
  margin-left: 0;
}

footer .footer-links a:hover {
  color: var(--t1);
}

/* ── Policy page ──────────────────────────────────────────── */
.policy-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}

.policy-wrap h1 {
  font-size: clamp(34px, 5vw, 46px);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  color: var(--t1);
}

.policy-wrap .updated {
  color: var(--t3);
  font-size: 13px;
  margin-bottom: 40px;
}

.policy-wrap h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--t1);
}

.policy-wrap p,
.policy-wrap ul {
  color: #cbd3de;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.policy-wrap ul {
  padding-left: 24px;
}

.policy-wrap li {
  margin-bottom: 6px;
}

.policy-wrap strong {
  color: var(--t1);
  font-weight: 600;
}

.policy-wrap a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.policy-wrap a:hover {
  text-decoration: underline;
}

.todo {
  background: var(--accent-soft);
  color: var(--accent-light);
  border-radius: 4px;
  padding: 1px 8px;
  font-size: 0.95em;
  font-weight: 500;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero {
    padding: 64px 0 48px;
  }
  .nav-links {
    gap: 18px;
  }
  .cta-row {
    flex-direction: column;
    width: 100%;
  }
  .cta-row .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  /* Stack the waitlist form on small screens */
  .waitlist-form {
    flex-direction: column;
    background: transparent;
    border: none;
    padding: 0;
    gap: 10px;
  }
  .waitlist-form:focus-within {
    border: none;
    box-shadow: none;
  }
  .waitlist-input {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--r-full);
    height: 50px;
    padding: 0 18px;
  }
  .waitlist-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
  }
  .waitlist-form .btn-primary {
    height: 50px;
    width: 100%;
    justify-content: center;
    font-size: 15px;
  }

  footer .footer-inner {
    justify-content: center;
    text-align: center;
  }
  footer .footer-links a {
    margin: 0 12px;
  }
}
