/* ============================================================
   Null Space — site styles
   Design language mirrors the app's Theme.swift:
   deep-space dark, one luminous cyan-violet accent, glassy surfaces.
   ============================================================ */

:root {
  /* palette — straight from Theme.swift */
  --void:         #07080C;
  --void-deep:    #04050A;
  --panel:        #0E1018;
  --panel-raised: #141722;
  --panel-hi:     #1B1F2D;

  --stroke:        rgba(255,255,255,0.07);
  --stroke-strong: rgba(255,255,255,0.14);

  --text:        #E9ECF5;
  --text-2:      #9AA3B8;
  --text-faint:  #5A6276;

  --accent:        #6E8BFF;
  --accent-bright: #8FB4FF;
  --accent-glow:   #5A7CFF;
  --accent-soft:   rgba(110,139,255,0.16);

  --success: #5BE0A8;
  --warning: #FFC56E;
  --danger:  #FF6B7A;
  --guide:   #FF4D8D;

  --r-card: 14px;
  --r-lg:   22px;

  --maxw: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --font-ui: "SF Pro Rounded", ui-rounded, -apple-system, BlinkMacSystemFont,
             "Segoe UI", Inter, system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, monospace;
}

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

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

body {
  font-family: var(--font-ui);
  background: var(--void-deep);
  color: var(--text);
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

kbd {
  font-family: var(--font-mono);
  font-size: 0.82em;
  padding: 1px 6px;
  border-radius: 6px;
  border: 1px solid var(--stroke-strong);
  background: var(--panel-hi);
  color: var(--text);
}

/* ───────────────────────── ambient background ───────────────────────── */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden;
      background: radial-gradient(120% 90% at 50% -10%, #0B0E16 0%, var(--void-deep) 60%); }

.bg-grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 0%, transparent 75%);
          mask-image: radial-gradient(120% 80% at 50% 0%, #000 0%, transparent 75%);
  opacity: .7;
}

.bg-glow { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .5; }
.bg-glow--1 { width: 640px; height: 640px; top: -240px; left: 50%; transform: translateX(-50%);
              background: radial-gradient(circle, rgba(110,139,255,0.45), transparent 70%); }
.bg-glow--2 { width: 520px; height: 520px; top: 40%; right: -180px;
              background: radial-gradient(circle, rgba(143,180,255,0.18), transparent 70%); }

.bg-stars { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ───────────────────────── nav ───────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  max-width: var(--maxw); margin: 0 auto;
  padding: 18px 28px;
  transition: padding .3s var(--ease);
}
.nav.scrolled {
  padding: 11px 28px;
  background: rgba(7,8,12,0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--stroke);
}
/* center the nav bar visually even when sticky bg spans full width */
.nav.scrolled { max-width: 100%; padding-left: max(28px, calc(50vw - var(--maxw)/2)); padding-right: max(28px, calc(50vw - var(--maxw)/2)); }

.brand { display: flex; align-items: center; gap: 11px; font-weight: 650; font-size: 1.04rem; }
.brand-name { letter-spacing: -0.02em; }
.brand-mark { display: inline-flex; border-radius: 7px; }

.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--text-2); font-size: 0.94rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }

.nav-tag {
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 6px 12px; border-radius: 999px;
  color: var(--accent-bright);
  background: var(--accent-soft);
  border: 1px solid rgba(110,139,255,0.28);
  white-space: nowrap;
}


/* ───────────────────────── layout helpers ───────────────────────── */
main { display: block; }
.section { max-width: var(--maxw); margin: 0 auto; padding: 110px 28px; }
.section-head { max-width: 660px; margin-bottom: 56px; }
.kicker {
  display: inline-block; font-family: var(--font-mono);
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-bright); margin-bottom: 16px;
}
.section-head h2, .craft-copy h2, .beta h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 680;
  letter-spacing: -0.03em; line-height: 1.08;
}
.section-head p { color: var(--text-2); font-size: 1.08rem; margin-top: 16px; }

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

/* ───────────────────────── hero ───────────────────────── */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(48px, 9vw, 96px) 28px 70px;
  display: grid; grid-template-columns: 1fr; gap: 56px;
  text-align: center; justify-items: center;
}
.hero-copy { max-width: 760px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.84rem; font-weight: 500; color: var(--text-2);
  padding: 7px 15px; border-radius: 999px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--stroke);
  margin-bottom: 28px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success);
  box-shadow: 0 0 0 0 rgba(91,224,168,0.6); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(91,224,168,0.5);} 70%,100% { box-shadow: 0 0 0 7px rgba(91,224,168,0);} }

.hero-title {
  font-size: clamp(2.6rem, 7vw, 4.6rem); font-weight: 720;
  letter-spacing: -0.04em; line-height: 1.02;
}
.hero-sub {
  margin: 26px auto 0; max-width: 620px;
  font-size: clamp(1.05rem, 2.2vw, 1.22rem); color: var(--text-2);
}

.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.hero-note {
  margin-top: 24px; font-size: 0.9rem; color: var(--text-faint);
  max-width: 520px; margin-left: auto; margin-right: auto;
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.98rem; font-weight: 560; line-height: 1;
  padding: 14px 22px; border-radius: 12px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .25s, background .2s, border-color .2s;
}
.btn svg { transition: transform .2s var(--ease); }
.btn--primary {
  color: #0A0C14;
  background: linear-gradient(120deg, var(--accent-bright), var(--accent-glow));
  box-shadow: 0 8px 30px -8px rgba(110,139,255,0.6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px rgba(110,139,255,0.7); }
.btn--primary:hover svg { transform: translateX(3px); }
.btn--ghost {
  color: var(--text-2);
  background: rgba(255,255,255,0.03); border-color: var(--stroke-strong);
}
.btn.is-soon { cursor: default; }
.btn--ghost.is-soon:hover { transform: none; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--warning);
  box-shadow: 0 0 10px var(--warning); animation: dim 2s ease-in-out infinite; }
@keyframes dim { 50% { opacity: .35; } }

/* hero screenshot */
.hero-shot { position: relative; width: 100%; max-width: 1080px; }
.shot-frame {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--stroke-strong);
  background: var(--panel);
  box-shadow: 0 50px 120px -40px rgba(0,0,0,0.9),
              0 0 0 1px rgba(255,255,255,0.02) inset,
              0 0 80px -30px rgba(110,139,255,0.35);
}
.shot-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; background: rgba(20,23,34,0.9);
  border-bottom: 1px solid var(--stroke);
}
.tl { width: 11px; height: 11px; border-radius: 50%; }
.tl.red { background: #FF6058; } .tl.yellow { background: #FFBD2E; } .tl.green { background: #28C840; }
.shot-label { margin-left: 12px; font-size: 0.8rem; color: var(--text-faint); font-family: var(--font-mono); }
.shot-frame img { display: block; width: 100%; height: auto; }
.shot-shadow {
  position: absolute; inset: auto 8% -28px 8%; height: 60px; border-radius: 50%;
  background: radial-gradient(circle, rgba(110,139,255,0.35), transparent 70%);
  filter: blur(30px); z-index: -1;
}

/* ───────────────────────── trust strip ───────────────────────── */
.strip {
  max-width: var(--maxw); margin: 0 auto; padding: 0 28px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.strip > div {
  text-align: center; padding: 26px 16px;
  border: 1px solid var(--stroke); border-radius: var(--r-card);
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0));
}
.strip b { display: block; font-size: 1.7rem; font-weight: 700; color: var(--accent-bright);
  font-family: var(--font-mono); letter-spacing: -0.02em; }
.strip span { display: block; margin-top: 6px; font-size: 0.86rem; color: var(--text-2); }

/* ───────────────────────── outcomes ───────────────────────── */
.section--why { padding-bottom: 70px; }
.outcomes {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.outcome {
  min-height: 260px;
  padding: 30px;
  border-radius: var(--r-card);
  border: 1px solid var(--stroke);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.032), rgba(255,255,255,0.008));
  position: relative;
  overflow: hidden;
}
.outcome::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(91,224,168,0.08), transparent 42%),
              radial-gradient(120% 90% at 100% 0%, rgba(110,139,255,0.12), transparent 55%);
  opacity: .8;
  pointer-events: none;
}
.outcome > * { position: relative; z-index: 1; }
.outcome-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--success);
  letter-spacing: 0.12em;
  margin-bottom: 34px;
}
.outcome h3 {
  font-size: 1.24rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.18;
}
.outcome p {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 0.96rem;
}

/* ───────────────────────── features ───────────────────────── */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  padding: 30px; border-radius: var(--r-card);
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.006));
  transition: border-color .3s, transform .3s var(--ease), background .3s;
  position: relative; overflow: hidden;
}
.feature::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(120% 120% at 0% 0%, rgba(110,139,255,0.10), transparent 45%);
  opacity: 0; transition: opacity .3s;
}
.feature:hover { border-color: var(--stroke-strong); transform: translateY(-3px); }
.feature:hover::after { opacity: 1; }
.feature--wide { grid-column: span 1; }
@media (min-width: 860px) {
  .features { grid-template-columns: 1.4fr 1fr 1fr; grid-auto-flow: row dense; }
  .feature--wide { grid-column: span 1; }
}
.feature-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.3rem; color: var(--accent-bright);
  background: var(--accent-soft); border: 1px solid rgba(110,139,255,0.25);
  margin-bottom: 18px;
}
.feature h3 { font-size: 1.18rem; font-weight: 620; letter-spacing: -0.02em; }
.feature p { margin-top: 9px; color: var(--text-2); font-size: 0.96rem; }

/* ───────────────────────── window kinds ───────────────────────── */
.grid-windows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.wk {
  padding: 24px; border-radius: var(--r-card);
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.018);
  transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.wk:hover { border-color: var(--stroke-strong); background: rgba(255,255,255,0.035); transform: translateY(-3px); }
.wk-i {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 10px; font-family: var(--font-mono); font-size: 1rem; font-weight: 600;
  color: var(--accent-bright); background: rgba(110,139,255,0.10);
  border: 1px solid rgba(110,139,255,0.2); margin-bottom: 16px;
}
.wk h4 { font-size: 1.04rem; font-weight: 600; }
.wk p { margin-top: 7px; font-size: 0.9rem; color: var(--text-2); }

/* ───────────────────────── craft ───────────────────────── */
.section--craft { padding-top: 60px; padding-bottom: 60px; }
.craft {
  display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center;
  padding: 52px; border-radius: var(--r-lg);
  border: 1px solid var(--stroke);
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(110,139,255,0.10), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0));
}
.craft-mark { display: grid; place-items: center; }
.craft-mark img { display: block; border-radius: 26px; filter: drop-shadow(0 12px 44px rgba(110,139,255,0.28)); }
.craft-copy p { color: var(--text-2); margin-top: 14px; max-width: 56ch; }
.craft-copy b { color: var(--text); }

/* ───────────────────────── beta ───────────────────────── */
.beta {
  text-align: center; max-width: 760px; margin: 0 auto;
  padding: 56px 40px; border-radius: var(--r-lg);
  border: 1px solid var(--stroke-strong);
  background:
    radial-gradient(90% 130% at 50% 0%, rgba(110,139,255,0.12), transparent 60%),
    var(--panel);
}
.beta .kicker { margin-bottom: 14px; }
.beta-lead { color: var(--text-2); font-size: 1.06rem; margin: 16px auto 0; max-width: 60ch; }
.beta-list { list-style: none; text-align: left; max-width: 540px; margin: 34px auto 0;
  display: grid; gap: 12px; }
.beta-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.96rem; color: var(--text); }
.beta-list .ok { color: var(--success); font-weight: 700; }
.beta-list .next { color: var(--accent-bright); font-weight: 700; }
.beta-cta { margin-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.beta-fine { font-size: 0.84rem; color: var(--text-faint); }

/* ───────────────────────── footer ───────────────────────── */
.footer {
  max-width: var(--maxw); margin: 0 auto; padding: 50px 28px 70px;
  border-top: 1px solid var(--stroke);
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.footer-meta { color: var(--text-faint); font-size: 0.85rem; }

/* ───────────────────────── reveal animation ───────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

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

/* ───────────────────────── responsive ───────────────────────── */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .features, .grid-windows, .strip, .outcomes { grid-template-columns: 1fr 1fr; }
  .craft { grid-template-columns: 1fr; text-align: center; padding: 38px 26px; gap: 28px; }
  .craft-copy p { margin-left: auto; margin-right: auto; }
  .section { padding: 80px 22px; }
}
@media (max-width: 560px) {
  .features, .grid-windows, .strip, .outcomes { grid-template-columns: 1fr; }
  .nav-tag { display: none; }
  .beta { padding: 40px 22px; }
  .shot-label { display: none; }
}
