/* ─────────────────────────────────────────────────────────────────────────
   Horyon landing page — brand-matched to the app (web/app/globals.css).
   Wordmark Raleway 800 · headings Cormorant · body Geist · data DM Mono.
   ───────────────────────────────────────────────────────────────────────── */

/* ── Dark (default) ── */
:root {
  --bg:        #060606;
  --surface:   #0C0E12;
  --surface-2: #111418;
  --surface-3: #181C24;

  --border:    rgba(255,255,255,0.07);
  --border-2:  rgba(255,255,255,0.11);
  --border-3:  rgba(255,255,255,0.17);

  --text:      #F0EDE6;
  --text-2:    #9AA2B0;
  --text-3:    #5E6B80;

  --accent:        #D4AF37;
  --accent-bright: #E8C84A;
  --accent-dim:    rgba(212,175,55,0.10);
  --accent-ring:   rgba(212,175,55,0.30);
  --accent-glow:   rgba(212,175,55,0.16);

  --header-bg: rgba(6,6,6,0.72);

  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 18px;

  --maxw: 1120px;
  --t: 0.18s cubic-bezier(0.4, 0, 0.2, 1);

  --mono:  "DM Mono", ui-monospace, monospace;
  --sans:  "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Cormorant", Georgia, serif;

  --shadow: 0 24px 60px -24px rgba(0,0,0,0.7);
}

/* ── Light ── */
[data-theme="light"] {
  --bg:        #F7F8FA;
  --surface:   #FFFFFF;
  --surface-2: #F3F5F9;
  --surface-3: #EEF0F5;

  --border:    rgba(0,0,0,0.08);
  --border-2:  rgba(0,0,0,0.12);
  --border-3:  rgba(0,0,0,0.18);

  --text:      #0D1117;
  --text-2:    #4A5260;
  --text-3:    #7A8494;

  --accent:        #8B6914;
  --accent-bright: #A07E20;
  --accent-dim:    rgba(139,105,20,0.08);
  --accent-ring:   rgba(139,105,20,0.26);
  --accent-glow:   rgba(139,105,20,0.12);

  --header-bg: rgba(247,248,250,0.78);
  --shadow: 0 24px 60px -28px rgba(20,30,60,0.22);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.004em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

::selection { background: var(--accent-ring); color: var(--text); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ── Ambient gold aurora behind the hero ── */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(920px 540px at 50% -10%, var(--accent-glow), transparent 62%),
    radial-gradient(720px 440px at 86% 2%, rgba(232,200,74,0.06), transparent 60%);
}

/* ── Faint blueprint grid, masked to fade out down + at the edges ── */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(115% 70% at 50% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(115% 70% at 50% 0%, #000 0%, transparent 72%);
  opacity: 0.6;
}

/* ── Shared atoms ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}
.section__head .eyebrow,
.hero__inner .eyebrow { justify-content: center; }
.section__head .eyebrow::after,
.hero__inner .eyebrow::after {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.grad {
  background: linear-gradient(100deg, var(--accent-bright), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--t), background var(--t), border-color var(--t), box-shadow var(--t), color var(--t);
  white-space: nowrap;
}
.btn--lg { font-size: 15px; padding: 15px 26px; }

.btn--primary {
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  color: #1A1404;
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 10px 30px -12px var(--accent-ring);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, 0 16px 38px -12px var(--accent-ring); }

.btn--ghost {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-2);
}
.btn--ghost:hover { border-color: var(--border-3); transform: translateY(-2px); }

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 13px 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; justify-self: start; }
.brand__mark { border-radius: 8px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: "Raleway", var(--sans);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.brand__sub {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 2px;
}

.nav__links {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-2);
}
.nav__links a {
  position: relative;
  padding-block: 4px;
  transition: color var(--t);
}
.nav__links a:hover { color: var(--text); }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1.5px;
  background: var(--accent);
  transition: right var(--t);
}
.nav__links a:hover::after { right: 0; }

.nav__actions { justify-self: end; display: flex; align-items: center; gap: 10px; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-3);
  cursor: pointer;
  transition: color var(--t), border-color var(--t), background var(--t);
}
.icon-btn:hover { color: var(--text); border-color: var(--border-2); background: var(--surface-2); }

/* Nav CTA: same height as the toggle, flatter + softer than the hero button so the
   bar reads refined rather than glossy. */
.nav__cta.btn--primary {
  height: 40px;
  padding: 0 20px;
  font-weight: 600;
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  box-shadow: 0 6px 18px -12px var(--accent-ring);
}
.nav__cta.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -12px var(--accent-ring);
}
/* Only one icon is ever in flow (the other is display:none), so place-items centers it.
   Show the icon for the mode you'll switch TO: sun in dark, moon in light. */
[data-theme="dark"] .icon--moon { display: none; }
[data-theme="light"] .icon--sun { display: none; }

/* ── Hero ── */
.hero { padding-top: clamp(56px, 9vw, 104px); }
.hero__inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero__inner .eyebrow { margin-bottom: 22px; }

.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.7rem, 7vw, 5.1rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.hero__lede {
  max-width: 660px;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--text-2);
  margin-bottom: 34px;
}
.hero__lede strong { color: var(--text); font-weight: 600; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ── Coverage strip (replaces the old number band — no metrics, just scope) ── */
.coverage {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(16px, 4vw, 40px);
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  width: 100%;
  max-width: 720px;
}
.coverage li {
  position: relative;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
}
.coverage li + li::before {
  content: "";
  position: absolute;
  left: clamp(-8px, -2vw, -20px);
  top: 50%;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
  opacity: 0.7;
}

/* ── Product showcase ── */
.showcase { margin-top: clamp(54px, 8vw, 96px); }
.showcase__frame {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-2);
  background: var(--surface);
  padding: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.showcase__frame::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, var(--accent-ring), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.showcase__frame img { border-radius: calc(var(--radius-lg) - 8px); width: 100%; }

/* ── Sections ── */
.section { padding-block: clamp(64px, 10vw, 120px); }
.section--alt { background: var(--surface); border-block: 1px solid var(--border); }

.section__head { max-width: 640px; margin: 0 auto clamp(40px, 5vw, 60px); text-align: center; }
.section__head .eyebrow { margin-bottom: 16px; }
.section__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.section__sub { margin-top: 14px; color: var(--text-2); font-size: 1.05rem; }

/* ── Feature grid ── */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  transition: transform var(--t), border-color var(--t), background var(--t), box-shadow var(--t);
}
.section--alt .card { background: var(--surface-2); }
.card::after {
  content: "";
  position: absolute;
  inset-inline: 22px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-ring), transparent);
  opacity: 0;
  transition: opacity var(--t);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-ring);
  box-shadow: 0 18px 40px -28px var(--accent-ring);
}
.card:hover::after { opacity: 1; }
.card:hover .card__icon { background: var(--accent); color: #1A1404; }
.card__icon {
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--accent-dim);
  color: var(--accent);
  margin-bottom: 18px;
  transition: background var(--t), color var(--t);
}
.card__title { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.01em; }
.card__body { color: var(--text-2); font-size: 0.97rem; }

/* ── How it works ── */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
}
.section--alt .step { background: var(--bg); }
.step__n {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.step__title { font-size: 1.12rem; font-weight: 600; margin: 12px 0 8px; }
.step__body { color: var(--text-2); font-size: 0.95rem; }

/* ── Closing CTA ── */
.cta {
  text-align: center;
  background:
    radial-gradient(600px 300px at 50% 0%, var(--accent-dim), transparent 70%),
    var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: clamp(48px, 7vw, 84px) 24px;
}
.cta__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
}
.cta__sub { color: var(--text-2); margin: 14px auto 30px; max-width: 520px; font-size: 1.05rem; }

/* ── Footer ── */
.footer { border-top: 1px solid var(--border); padding-block: 48px; background: var(--surface); }
.footer__inner { display: grid; gap: 18px; }
.footer__brand { display: flex; align-items: center; gap: 10px; }
.footer__brand img { border-radius: 6px; }
.footer__disclaimer { color: var(--text-3); font-size: 0.85rem; max-width: 720px; }
.footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  font-size: 0.9rem;
  color: var(--text-3);
  font-family: var(--mono);
}
.footer__meta a { transition: color var(--t); }
.footer__meta a:hover { color: var(--text); }
.footer__social { color: var(--accent); }

/* ── Scroll reveal (only when JS is on; content is visible by default) ── */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.js .reveal.is-visible { opacity: 1; transform: none; }
/* Stagger cards / steps within their row for a more crafted entrance. */
.js .grid .reveal:nth-child(2),
.js .steps .reveal:nth-child(2) { transition-delay: 0.06s; }
.js .grid .reveal:nth-child(3),
.js .steps .reveal:nth-child(3) { transition-delay: 0.12s; }
.js .grid .reveal:nth-child(4),
.js .steps .reveal:nth-child(4) { transition-delay: 0.18s; }
.js .grid .reveal:nth-child(5) { transition-delay: 0.24s; }
.js .grid .reveal:nth-child(6) { transition-delay: 0.30s; }

/* ── Responsive ── */
@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav__links { display: none; }
  .brand__sub { display: none; }
  /* No centered links to place anymore — drop the 3-col grid for a clean
     brand-left / actions-right split with even edge padding. */
  .nav__inner {
    display: flex;
    justify-content: space-between;
    padding: 12px 18px;
  }
}
@media (max-width: 560px) {
  .grid, .steps { grid-template-columns: 1fr; }
  .coverage { gap: 14px 26px; }
  /* Keep the primary CTA; trim its label padding so it fits beside the logo + toggle. */
  .nav__cta { padding-inline: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
