/* ============================================================
   NoNighter — landing page styles
   Brand palette sourced from NoNighter Overview_v6.pptx
   ============================================================ */

:root {
  /* Brand */
  --purple:      #6B4EE6;  /* primary */
  --purple-700:  #5a3fd1;
  --indigo:      #36278D;
  --ink:         #17152E;  /* darkest */
  --ink-2:       #221f3d;
  --magenta:     #CF80FF;
  --violet:      #7C3AED;
  --teal:        #64D2C8;

  /* Surfaces */
  --bg:          #F7F6FB;
  --lilac:       #EFEAFC;
  --surface:     #ffffff;
  --line:        #e7e3f4;

  /* Text */
  --text:        #1b1930;
  --muted:       #5b5870;
  --muted-2:     #8b88a3;
  --on-dark:     #ece9fb;
  --on-dark-mut: #a9a4cf;

  /* Effects */
  --grad: linear-gradient(120deg, var(--purple) 0%, var(--violet) 45%, var(--magenta) 100%);
  --grad-deep: linear-gradient(160deg, var(--indigo) 0%, var(--ink) 100%);
  --shadow-sm: 0 2px 8px rgba(23, 21, 46, .06);
  --shadow:    0 14px 40px rgba(54, 39, 141, .12);
  --shadow-lg: 0 30px 70px rgba(54, 39, 141, .22);
  --radius:    18px;
  --radius-sm: 12px;

  --maxw: 1140px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; color: var(--ink); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.08rem; letter-spacing: -0.01em; }
p { color: var(--muted); }
a { color: inherit; text-decoration: none; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  font-weight: 700; font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 24px rgba(107, 78, 230, .35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(107, 78, 230, .45); }
.btn--sm { padding: 10px 18px; font-size: .92rem; }

.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--violet);
  background: var(--lilac);
  padding: 6px 14px; border-radius: 999px;
}
.eyebrow--center { display: inline-block; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 246, 251, .8);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.nav.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; }
.brand__logo { height: 30px; width: auto; display: block; }
.brand__logo--footer { height: 30px; }

.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { font-weight: 600; font-size: .95rem; color: var(--muted); transition: color .15s ease; }
.nav__links a:hover { color: var(--ink); }
.nav__links a.btn--primary { color: #fff; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 84px 0 72px; overflow: hidden; }
.hero__glow {
  position: absolute; inset: -30% 0 auto 0; height: 720px; z-index: 0;
  background:
    radial-gradient(620px 380px at 78% 8%, rgba(207, 128, 255, .35), transparent 70%),
    radial-gradient(720px 460px at 12% 0%, rgba(107, 78, 230, .30), transparent 65%),
    radial-gradient(500px 320px at 60% 40%, rgba(100, 210, 200, .18), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; text-align: center; max-width: 820px; margin: 0 auto; }
.hero__title { font-size: clamp(2.6rem, 6.4vw, 4.5rem); font-weight: 900; margin: 22px 0 18px; }
.hero__sub { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 660px; margin: 0 auto; }

.hero__stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 44px; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 22px; min-width: 190px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 2px; text-align: left;
}
.stat__num { font-size: 1.5rem; font-weight: 900; color: var(--purple); letter-spacing: -.02em; }
.stat__label { font-size: .85rem; color: var(--muted); line-height: 1.35; }

/* ---------- Waitlist forms ---------- */
.waitlist { display: flex; gap: 10px; margin: 30px auto 10px; max-width: 480px; }
.waitlist input {
  flex: 1; min-width: 0;
  padding: 14px 18px; font-size: 1rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--text); transition: border-color .15s ease, box-shadow .15s ease;
}
.waitlist input:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(107, 78, 230, .15); }
.waitlist input.invalid { border-color: #e0436b; box-shadow: 0 0 0 4px rgba(224, 67, 107, .14); }
.waitlist__note { font-size: .85rem; color: var(--muted-2); text-align: center; }
.waitlist__note.success { color: #1a9d6c; font-weight: 600; }
.waitlist__note.error { color: #e0436b; font-weight: 600; }

/* ---------- Trust bar ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.trust__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px; padding: 22px 24px; }
.trust__label { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.trust__chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.trust__chips li {
  font-size: .85rem; font-weight: 600; color: var(--indigo);
  background: var(--lilac); padding: 6px 14px; border-radius: 999px;
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section--alt { background: var(--lilac); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section__head h2 { margin: 16px 0 12px; }
.section__lead { font-size: 1.08rem; color: var(--muted); }

/* ---------- Cards (offerings) ---------- */
.cards { display: grid; gap: 24px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); max-width: 860px; margin: 0 auto; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #d9d2f3; }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.3rem; font-weight: 800;
  font-family: "JetBrains Mono", monospace;
  background: var(--lilac); color: var(--violet); margin-bottom: 18px;
}
.card__kicker { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); filter: brightness(.7); }
.card h3 { margin: 8px 0 10px; }
.card--featured {
  background: var(--grad-deep); border-color: transparent; color: var(--on-dark);
  box-shadow: var(--shadow);
}
.card--featured h3 { color: #fff; }
.card--featured p { color: var(--on-dark-mut); }
.card--featured .card__icon { background: rgba(255,255,255,.12); color: var(--magenta); }
.card--featured .card__kicker { color: var(--magenta); filter: none; }
.card--featured .ticks li { color: var(--on-dark); }
.card--featured .ticks li::before { color: var(--teal); }

/* ---------- Ticks ---------- */
.ticks { list-style: none; margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; font-size: .95rem; color: var(--text); }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--purple); font-weight: 900;
}
.ticks li strong { color: inherit; font-weight: 700; }
.ticks--lg li { font-size: 1rem; margin-bottom: 2px; }

/* ---------- Features (why) ---------- */
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature__bullet {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-weight: 900; margin-bottom: 14px;
}
.feature h4 { margin-bottom: 8px; }
.feature p { font-size: .92rem; }

/* ---------- Compare (speed) ---------- */
.compare {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
  max-width: 920px; margin: 0 auto;
}
.compare__col {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-sm);
}
.compare__col--win { border: 2px solid var(--purple); box-shadow: var(--shadow); }
.compare__tag {
  display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--purple); margin-bottom: 8px;
}
.compare__tag--muted { color: var(--muted-2); }
.compare__time { font-size: 3rem; font-weight: 900; color: var(--ink); letter-spacing: -.03em; line-height: 1; }
.compare__time span { font-size: 1rem; font-weight: 700; color: var(--muted-2); margin-left: 6px; }
.compare__time--bad { color: var(--muted-2); }
.compare__list { list-style: none; margin: 18px 0; display: flex; flex-direction: column; gap: 7px; }
.compare__list li { font-size: .9rem; color: var(--muted); }
.compare__perks { list-style: none; border-top: 1px dashed var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.compare__perks li { position: relative; padding-left: 24px; font-size: .9rem; font-weight: 600; color: var(--text); }
.compare__perks li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); filter: brightness(.7); font-weight: 900; }
.compare__perks--bad li { color: var(--muted-2); font-weight: 500; }
.compare__perks--bad li::before { content: "✕"; color: #d4566f; filter: none; }
.compare__vs { font-weight: 900; color: var(--muted-2); font-size: 1.1rem; }

/* ---------- How (dark) ---------- */
.section--dark { background: var(--grad-deep); }
.section--dark h2 { color: #fff; }
.section--dark .section__lead { color: var(--on-dark-mut); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius);
  padding: 26px 22px; backdrop-filter: blur(4px);
}
.step__num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px;
  background: var(--grad); color: #fff; font-weight: 900; margin-bottom: 16px;
}
.step h4 { color: #fff; margin-bottom: 8px; }
.step p { color: var(--on-dark-mut); font-size: .9rem; }

/* ---------- How: two channels ---------- */
.how { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 920px; margin: 0 auto; }
.how__card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 34px 32px;
}
.how__tag { display: inline-block; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--magenta); margin-bottom: 14px; }
.how__card h3 { color: #fff; margin-bottom: 18px; }
.how__card > p { color: var(--on-dark-mut); }
.how__steps { list-style: none; counter-reset: hstep; display: flex; flex-direction: column; gap: 13px; }
.how__steps li { position: relative; padding-left: 44px; color: var(--on-dark); font-weight: 500; min-height: 30px; display: flex; align-items: center; }
.how__steps li::before {
  counter-increment: hstep; content: counter(hstep);
  position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--grad); color: #fff; font-weight: 800; font-size: .85rem;
  display: grid; place-items: center;
}
.how__logos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.how__logos span { font-size: .85rem; font-weight: 700; color: var(--on-dark); background: rgba(255,255,255,.1); padding: 8px 16px; border-radius: 999px; }

/* ---------- Security ---------- */
.security__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.security__copy h2 { margin: 16px 0 14px; }
.security__panel {
  background: var(--grad-deep); border-radius: var(--radius); padding: 60px 40px;
  text-align: center; box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.security__panel::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(400px 200px at 50% 0%, rgba(207,128,255,.35), transparent 70%);
}
.lock { font-size: 3.4rem; position: relative; z-index: 1; }
.lock__label { color: var(--on-dark); font-weight: 700; margin-top: 14px; position: relative; z-index: 1; }

/* ---------- CTA ---------- */
.cta { position: relative; padding: 96px 0; background: var(--ink); overflow: hidden; }
.cta__glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(620px 360px at 50% -10%, rgba(107,78,230,.55), transparent 65%),
    radial-gradient(500px 320px at 85% 120%, rgba(207,128,255,.35), transparent 70%);
}
.cta__inner { position: relative; z-index: 1; text-align: center; max-width: 680px; margin: 0 auto; }
.cta__inner h2 { color: #fff; margin: 16px 0 12px; }
.cta__inner > p { color: var(--on-dark-mut); font-size: 1.08rem; }
.cta .waitlist input { background: rgba(255,255,255,.95); }

/* ---------- Footer ---------- */
.footer { background: var(--ink-2); color: var(--on-dark-mut); padding: 52px 0 28px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer__brand .brand { color: #fff; margin-bottom: 8px; }
.footer__brand p { color: var(--on-dark-mut); }
.footer__links { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.footer__links a { color: var(--on-dark-mut); font-size: .92rem; font-weight: 600; transition: color .15s; }
.footer__links a:hover { color: #fff; }
.footer__bottom { padding-top: 22px; font-size: .85rem; color: var(--muted-2); }

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

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards--3, .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .security__inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 14px 24px 22px; box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .2s ease;
  }
  .nav__links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 12px 6px; font-size: 1rem; }
  .nav__links a.btn--primary { margin-top: 8px; text-align: center; }

  .compare { grid-template-columns: 1fr; }
  .compare__vs { margin: -6px auto; }
  .how { grid-template-columns: 1fr; }
  .waitlist { flex-direction: column; }
  .waitlist .btn { width: 100%; }
}

@media (max-width: 520px) {
  .cards--2, .cards--3, .cards--4, .steps { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 56px; }
  .stat { min-width: 100%; }
}

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