/* Epoch site: base layout, nav, buttons, hero type, phone frames and the overview.
   Colours come from themes.css (the app's Ink and brass tokens). Sections and sub-pages: sections.css.
   Motion, glass and the hero map: motion.css. Structure after the AuroraX/PrismX sites, identity from the app. */
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --r: 14px;                /* app --radius */
  --r-lg: 22px;
  --nav-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; background: var(--bg); }
html, body { overflow-x: hidden; }
body {
  font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--sub); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: "cv11";
}
img { display: block; max-width: 100%; height: auto; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a { color: var(--accent-text); text-decoration: none; transition: color .2s; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(var(--accent-rgb), .38); color: #fff; }
h1, h2, h3 { color: var(--text); font-weight: 650; letter-spacing: -.025em; line-height: 1.1; text-wrap: balance; }
p, li { text-wrap: pretty; }
strong { color: var(--text); font-weight: 600; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 300; padding: 10px 16px; border-radius: 10px;
  background: var(--text); color: var(--bg); font-weight: 600;
}
.skip:focus { top: 12px; color: var(--bg); }

/* ── Nav: the app header's lockup (sundial + wordmark) ─────────────── */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: rgba(14, 11, 8, .72); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(150%) blur(16px); backdrop-filter: saturate(150%) blur(16px);
}
.nav-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.wordmark {
  display: inline-flex; align-items: center; gap: 11px; color: var(--text);
  font-size: .98rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase;
}
.wordmark:hover { color: var(--text); }
.wordmark svg { width: 26px; height: 26px; flex: none; color: var(--accent-light); filter: drop-shadow(0 0 5px rgba(var(--accent-rgb), .45)); }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: .9rem; }
.nav-links a { position: relative; padding: 6px 0; color: var(--sub); }
.nav-links a:hover, .nav-links a[aria-current="true"] { color: var(--text); }
.nav-links a[aria-current="true"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px;
  background: var(--accent); box-shadow: 0 0 10px rgba(var(--accent-rgb), .8);
}

/* ── Buttons: the app's brass pill ─────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 24px;
  border-radius: 999px; font: inherit; font-size: .98rem; font-weight: 600; letter-spacing: -.01em; white-space: nowrap;
  cursor: pointer; border: 0;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s;
}
.btn-primary {
  color: var(--cta-ink); background: linear-gradient(180deg, var(--cta-from), var(--cta-to));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 12px 32px -12px rgba(var(--accent-rgb), .85), 0 0 44px -14px rgba(var(--accent-2-rgb), .7);
}
.btn-primary:hover {
  color: var(--cta-ink); transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 16px 40px -12px rgba(var(--accent-rgb), 1), 0 0 60px -12px rgba(var(--accent-2-rgb), .85);
}
.btn-ghost { color: var(--text); background: rgba(239, 230, 212, .03); box-shadow: inset 0 0 0 1px var(--line-3); }
.btn-ghost:hover { color: var(--text); background: rgba(239, 230, 212, .07); box-shadow: inset 0 0 0 1px rgba(239, 230, 212, .34); }
.btn-sm { height: 38px; padding: 0 16px; font-size: .86rem; }
.btn .sep { opacity: .55; }
.btn svg { width: 16px; height: 16px; }

/* ── Hero type (the stage and its map are in motion.css) ───────────── */
.hero-copy { text-align: center; max-width: 940px; margin: 0 auto; }
.kicker, .pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(20, 17, 13, .55);
  font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sub);
}
.kicker .dot, .pill .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent-light); flex: none;
  box-shadow: 0 0 0 4px rgba(var(--accent-2-rgb), .14), 0 0 12px rgba(var(--accent-2-rgb), .9);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(var(--accent-2-rgb), .05), 0 0 18px rgba(var(--accent-2-rgb), .6); } }
/* the wordmark: spaced capitals like the app header, the O in brass like the sundial */
.hero h1 {
  margin-top: 22px; padding-left: .2em; font-size: clamp(3.6rem, 11.5vw, 8.4rem); font-weight: 300;
  letter-spacing: .2em; line-height: .95; text-transform: uppercase; text-shadow: 0 0 44px rgba(14, 11, 8, .9);
}
.hero h1 .o {
  background: linear-gradient(170deg, #f2d48c, var(--accent) 60%, #8a6417); -webkit-background-clip: text; background-clip: text;
  color: transparent; text-shadow: none; filter: drop-shadow(0 0 24px rgba(var(--accent-rgb), .45));
}
.hero-sub { margin-top: 22px; font-size: clamp(1.3rem, 2.6vw, 1.95rem); font-weight: 500; letter-spacing: -.025em; line-height: 1.22; color: var(--text); text-wrap: balance; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.hero-meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-top: 26px; list-style: none;
  font-family: var(--mono); font-size: .76rem; letter-spacing: .04em; color: var(--sub);
}
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-light); opacity: .85; }

/* ── Phone frames around the real screenshots ──────────────────────── */
.phone {
  position: relative; width: 100%; max-width: 330px; padding: 9px; border-radius: 46px;
  background: linear-gradient(160deg, #3a3024, #15110c 46%, #2a2219);
  box-shadow: inset 0 0 0 1px rgba(239, 230, 212, .12), 0 50px 100px -40px rgba(0, 0, 0, .95), 0 30px 80px -46px rgba(var(--accent-rgb), .75);
}
.phone img { width: 100%; border-radius: 37px; background: var(--bg-well); }
.phone::after { /* glass highlight */
  content: ""; position: absolute; inset: 9px; border-radius: 37px; pointer-events: none;
  background: linear-gradient(155deg, rgba(255, 255, 255, .07), transparent 32%);
}
.frame {
  position: relative; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: var(--bg-well);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 40px 90px -40px rgba(0, 0, 0, .95), 0 24px 70px -44px rgba(var(--accent-rgb), .7);
}
.frame img { width: 100%; }

/* ── Overview: three real screens and the key numbers ──────────────── */
.overview { position: relative; z-index: 1; padding-top: clamp(28px, 5vw, 64px); }
.trio { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: clamp(12px, 3vw, 40px); }
.trio .phone { flex: 1 1 0; }
.trio .side { max-width: 280px; opacity: .92; }
.trio .side.l { transform: perspective(1400px) rotateY(14deg) translateY(28px); }
.trio .side.r { transform: perspective(1400px) rotateY(-14deg) translateY(28px); }
.trio .main { max-width: 340px; z-index: 1; }
.trio figcaption { position: absolute; left: 0; right: 0; bottom: -40px; text-align: center; font-family: var(--mono); font-size: .74rem; letter-spacing: .05em; color: var(--muted); }
.glow {
  position: absolute; inset: 6% 12% -4%; z-index: -1; filter: blur(70px); opacity: .8; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 45%, rgba(var(--accent-rgb), .45), transparent 70%),
              radial-gradient(35% 45% at 80% 70%, rgba(140, 92, 28, .4), transparent 70%);
}
.overview-lead { max-width: 760px; margin: clamp(72px, 9vw, 104px) auto 0; text-align: center; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.5; color: #d8ccb6; letter-spacing: -.01em; }
.stats {
  display: grid; grid-template-columns: repeat(5, 1fr); margin-top: clamp(36px, 5vw, 56px); list-style: none;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(239, 230, 212, .03), rgba(239, 230, 212, .008));
}
.stats li { padding: 22px 24px; border-left: 1px solid var(--line); }
.stats li:first-child { border-left: 0; }
.stats .v { font-family: var(--mono); font-size: clamp(1.45rem, 2.4vw, 1.95rem); font-weight: 500; letter-spacing: -.03em; color: var(--text); line-height: 1.15; }
.stats .k { margin-top: 6px; font-size: .86rem; line-height: 1.4; }
