/* Selene site: fonts, base, nav, buttons, hero type, phone frames and the overview.
   Sections are in sections.css, motion and glass in motion.css, tokens in themes.css. */
@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;
  --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%; 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; overflow-x: hidden;
}
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); }
p a, li a, td a, .a a { text-decoration: underline; text-decoration-color: rgba(var(--accent-rgb), .45); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--lav); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(var(--accent-rgb), .4); color: #fff; }
h1, h2, h3 { color: var(--text); font-weight: 600; letter-spacing: -.025em; line-height: 1.1; text-wrap: balance; }
strong { color: var(--text); font-weight: 600; }
.mono { font-family: var(--mono); }
.gold { color: var(--gold); }

.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 ─────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: var(--bar); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
}
.nav-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.wordmark {
  display: inline-flex; align-items: center; gap: 10px; font-size: 1.02rem; font-weight: 400;
  letter-spacing: .22em; color: var(--text);
}
.wordmark:hover { color: var(--text); }
.wordmark svg { width: 15px; height: 30px; flex: none; filter: drop-shadow(0 0 8px rgba(167, 139, 250, .6)); }
.wordmark .wm { background: var(--wordmark); -webkit-background-clip: text; background-clip: text; color: transparent; }
.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 ─────────────────────────────────────────── */
.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(100deg, var(--cta-from), var(--cta-to));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), 0 12px 32px -12px rgba(var(--accent-rgb), .9), 0 0 44px -14px rgba(var(--accent-rgb), .8);
}
.btn-primary:hover {
  color: var(--cta-ink); transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .32), 0 16px 40px -12px rgba(var(--accent-rgb), 1), 0 0 60px -12px rgba(var(--accent-rgb), .9);
}
.btn-ghost { color: var(--text); background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line-3); }
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .34); }
.btn-sm { height: 38px; padding: 0 16px; font-size: .86rem; }
.btn .sep { opacity: .55; }
.btn svg { width: 16px; height: 16px; }
.btn:disabled { opacity: .6; cursor: default; transform: none; }

/* ── Hero type (the sky and its stage are in motion.css) ───── */
.hero-copy { text-align: center; max-width: 920px; margin: 0 auto; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--field);
  font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sub);
}
.dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none;
  box-shadow: 0 0 0 4px rgba(var(--accent-2-rgb), .12), 0 0 12px rgba(var(--accent-2-rgb), .8);
}
.hero h1 {
  margin-top: 22px; font-size: clamp(3.4rem, 11vw, 7.4rem); font-weight: 300; letter-spacing: .14em; line-height: 1;
  margin-right: -.14em; /* the tracking after the last letter would push the word off centre */
}
.hero h1 .wm { background: var(--wordmark); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin-top: 22px; font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.25; color: var(--text); }
.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(--violet); }

/* ── Phone frame around a real screenshot ─────────────── */
.phone {
  position: relative; padding: 9px; border-radius: 42px; background: linear-gradient(160deg, #3a2b72, #160e38 40%, #261a55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 50px 110px -40px rgba(5, 0, 20, .95), 0 30px 90px -40px rgba(var(--accent-rgb), .55);
}
.phone img { width: 100%; border-radius: 33px; background: var(--bg); }
.phone::after { /* glass highlight */
  content: ""; position: absolute; inset: 9px; border-radius: 33px; pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), transparent 28%);
}
/* framed crop of a screenshot */
.frame {
  position: relative; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 40px 90px -40px rgba(5, 0, 20, .95), 0 24px 70px -44px rgba(var(--accent-rgb), .7);
}
.frame img { width: 100%; }

/* ── Overview: the Main tab, a lead and the key numbers ─── */
.overview { position: relative; z-index: 1; padding-top: clamp(28px, 5vw, 64px); }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.overview .phone { width: min(100%, 360px); margin: 0 auto; }
.overview-lead { font-size: clamp(1.15rem, 2vw, 1.38rem); line-height: 1.55; color: var(--text); letter-spacing: -.01em; }
.overview-lead.mt { margin-top: 18px; }
.overview-lead + p { margin-top: 18px; }
.overview .caption { margin-top: 18px; text-align: center; }
.stats {
  display: grid; grid-template-columns: repeat(5, 1fr); margin-top: clamp(40px, 6vw, 72px); list-style: none;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .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; }
