/* ============================================================
   ZerOne — Website
   Built on the ZerOne design system (colors_and_type.css).
   Dark-luxury, cinematic, blue-led. Aqua reserved for the spark.
   ============================================================ */

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

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html[data-theme="dark"] { color-scheme: dark; }

body {
  margin: 0;
  background: var(--zo-ink);
  color: var(--fg1);
  font-family: var(--font-text);
  overflow-x: hidden;
}

::selection { background: rgba(0,101,255,.35); color: #fff; }

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

/* custom scrollbar — premium dark */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #020a18; }
::-webkit-scrollbar-thumb { background: #122a52; border-radius: 99px; border: 3px solid #020a18; }
::-webkit-scrollbar-thumb:hover { background: #1c3d72; }

/* ---------- layout ---------- */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 980px; margin: 0 auto; padding: 0 32px; }
section { position: relative; }

/* alternating dark fields */
.field-ink   { background: var(--zo-ink); }
.field-deep  { background: #061027; }
.field-grad  {
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(0,101,255,.16), transparent 55%),
    linear-gradient(180deg, #04102a 0%, var(--zo-ink) 100%);
}

/* hairline divider used between dark sections */
.edge-top { border-top: 1px solid rgba(255,255,255,.06); }

/* ---------- type helpers ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--zo-blue-400);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--zo-blue-400));
}
.eyebrow.no-rule::before { display: none; }
.eyebrow.centered { justify-content: center; }
.eyebrow.centered::before { display: none; }

.display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: #fff;
  margin: 0;
}
.h1 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h1); line-height: 1.05; letter-spacing: -.015em; color: #fff; margin: 0; }
.h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -.012em; color: #fff; margin: 0; }
.h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h3); line-height: 1.2; color: #fff; margin: 0; }
.lead { font-size: var(--fs-lg); line-height: 1.62; color: var(--fg2); margin: 0; }
.body { font-size: var(--fs-body); line-height: 1.65; color: var(--fg2); margin: 0; }
.muted { color: var(--fg3); }
.spark-text {
  background: var(--zo-grad-spark);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.blue-text { color: var(--zo-blue-400); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--zo-blue-500);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .01em;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  border: none; cursor: pointer; line-height: 1;
  color: #fff;
  background: var(--bg);
  transition: transform .25s cubic-bezier(.22,.61,.36,1), box-shadow .3s ease, background .25s ease, filter .25s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn .arrow { transition: transform .3s cubic-bezier(.22,.61,.36,1); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,101,255,.4); filter: brightness(1.05); }
.btn-primary:active { transform: translateY(0) scale(.985); }

.btn-gradient { background: var(--zo-grad-spark); position: relative; overflow: hidden; }
.btn-gradient:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(0,101,255,.42); }
.btn-gradient:active { transform: translateY(0) scale(.985); }

.btn-outline {
  background: transparent; color: #fff;
  box-shadow: inset 0 0 0 1.4px rgba(255,255,255,.28);
}
.btn-outline:hover { box-shadow: inset 0 0 0 1.4px rgba(39,242,242,.55); transform: translateY(-2px); color: #fff; }
.btn-outline:active { transform: translateY(0) scale(.985); }

.btn-ghost { background: transparent; color: #cfe0ff; padding-left: 0; padding-right: 0; }
.btn-ghost:hover { color: var(--zo-aqua); }

.btn-sm { padding: 10px 20px; font-size: 13.5px; }
.btn-lg { padding: 17px 34px; font-size: 16px; }

/* play button — cinematic */
.play-btn {
  display: inline-flex; align-items: center; gap: 14px;
  background: none; border: none; cursor: pointer; color: #fff;
  font-family: var(--font-display); font-weight: 500; font-size: 14px; letter-spacing: .02em;
}
.play-circle {
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(6px);
  position: relative;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.play-circle::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid rgba(39,242,242,.5); opacity: 0; transform: scale(1);
}
.play-btn:hover .play-circle { transform: scale(1.06); border-color: rgba(39,242,242,.5); background: rgba(39,242,242,.1); }
.play-circle svg { width: 20px; height: 20px; margin-left: 3px; fill: #fff; }

/* ---------- chips / tags ---------- */
.chip {
  font-family: var(--font-display); font-weight: 600; font-size: 11.5px;
  letter-spacing: .14em; text-transform: uppercase; color: #cfe0ff;
  border: 1px solid rgba(255,255,255,.16);
  padding: 8px 15px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.02);
  transition: border-color .25s ease, color .25s ease, background .25s ease;
}
.chip.solid { background: rgba(0,101,255,.12); border-color: rgba(0,101,255,.4); color: #9fc2ff; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s ease, backdrop-filter .4s ease, border-color .4s ease, height .4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(3,15,38,.72);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: rgba(255,255,255,.07);
}
.nav-inner {
  max-width: 1320px; margin: 0 auto; padding: 0 32px;
  height: 84px; display: flex; align-items: center; justify-content: space-between;
  transition: height .4s ease;
}
.nav.scrolled .nav-inner { height: 70px; }
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 34px; width: auto; }
.wordmark-wrap {
  display: flex; flex-direction: column; gap: 2px;
}
.nav-logo .wordmark, .wordmark {
  font-family: var(--font-logo); font-weight: 400; font-size: 21px;
  letter-spacing: .14em; color: #fff; line-height: 1;
}
.wordmark-sub {
  font-family: var(--font-text); font-weight: 400; font-size: 9px;
  letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.45);
  line-height: 1;
}
.nav-links { display: flex; align-items: center; gap: 38px; }
.nav-link {
  font-family: var(--font-display); font-weight: 500; font-size: 14px; letter-spacing: .03em;
  color: #c4d6f5; position: relative; padding: 6px 0;
  transition: color .25s ease;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--zo-aqua); transition: width .3s cubic-bezier(.22,.61,.36,1);
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { width: 100%; }
.nav-burger { display: none; background: none; border: none; color: #fff; cursor: pointer; padding: 6px; }
.mobile-menu {
  display: none; flex-direction: column; gap: 2px;
  padding: 8px 32px 28px; background: rgba(3,15,38,.97); backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.mobile-menu a {
  font-family: var(--font-display); font-size: 17px; color: #eaf1fb;
  padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.06);
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .mobile-menu.open { display: flex; }
}

/* ---------- reveal / motion ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s cubic-bezier(.22,.61,.36,1), transform .9s cubic-bezier(.22,.61,.36,1); transition-delay: var(--d, 0ms); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 1s cubic-bezier(.22,.61,.36,1), transform 1s cubic-bezier(.22,.61,.36,1); transition-delay: var(--d, 0ms); }
.reveal-left.in { opacity: 1; transform: none; }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 1s cubic-bezier(.22,.61,.36,1), transform 1s cubic-bezier(.22,.61,.36,1); transition-delay: var(--d, 0ms); }
.reveal-right.in { opacity: 1; transform: none; }
.reveal-scale { opacity: 0; transform: scale(1.06); transition: opacity 1.1s ease, transform 1.4s cubic-bezier(.22,.61,.36,1); transition-delay: var(--d, 0ms); }
.reveal-scale.in { opacity: 1; transform: none; }

/* line-by-line headline mask reveal */
.line-mask { display: block; overflow: hidden; }
.line-mask > span { display: block; transform: translateY(110%); transition: transform 1s cubic-bezier(.22,.61,.36,1); transition-delay: var(--d, 0ms); }
.line-mask.in > span { transform: none; }

html.no-motion .reveal,
html.no-motion .reveal-left,
html.no-motion .reveal-right,
html.no-motion .reveal-scale { opacity: 1 !important; transform: none !important; transition: none !important; }
html.no-motion .line-mask > span { transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale { opacity: 1 !important; transform: none !important; }
  .line-mask > span { transform: none !important; }
}

/* ---------- section heading block ---------- */
.section-head { max-width: 720px; }
.section-head.centered { margin: 0 auto; text-align: center; }
.section-head .h2 { margin-top: 16px; }
.section-head .lead { margin-top: 18px; }

/* ---------- generic glass card ---------- */
.glass {
  background: linear-gradient(180deg, rgba(12,33,71,.5), rgba(8,26,58,.32));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-lg);
  backdrop-filter: blur(8px);
}

/* ---------- footer ---------- */
.footer { background: #02091a; border-top: 1px solid rgba(255,255,255,.07); padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-link { font-size: 14.5px; color: #9fb4d4; padding: 7px 0; display: inline-block; transition: color .25s ease, transform .25s ease; }
.footer-link:hover { color: var(--zo-aqua); transform: translateX(3px); }
.footer-col h5 { font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #5d7da3; margin: 0 0 18px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* utility */
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.gap-sm { gap: 12px; } .gap-md { gap: 20px; } .gap-lg { gap: 32px; }
.wrap-flex { flex-wrap: wrap; }
.center { text-align: center; }
