/* backsample — landing page
   Nightfall design system, Witching Hour flavor. */

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

:root,
[data-flavor="witching"] {
  /* Nightfall — Witching Hour */
  --nf-pink: #ff4d94;
  --nf-mauve: #c47dff;
  --nf-red: #ff556e;
  --nf-peach: #ff9d5c;
  --nf-sky: #8fd0ff;
  --nf-green: #7ee787;
  --nf-blue: #7088ff;

  --nf-base: #0e0b16;
  --nf-mantle: #0a0811;
  --nf-crust: #07050e;
  --nf-surface0: #221c30;
  --nf-surface1: #2e2740;
  --nf-surface2: #3b3350;
  --nf-overlay1: #5b5274;
  --nf-overlay2: #6f6589;
  --nf-subtext0: #a298bb;
  --nf-subtext1: #c5bbd8;
  --nf-text: #e9e1f4;
  --nf-text-bright: #f3eef8;
  --nf-on-accent: #16121f;

  --nf-pink-rgb: 255, 77, 148;
  --nf-peach-rgb: 255, 157, 92;
  --nf-sky-rgb: 143, 208, 255;
  --nf-mauve-rgb: 196, 125, 255;
  --nf-green-rgb: 126, 231, 135;
  --nf-blue-rgb: 112, 136, 255;
  --nf-crust-rgb: 7, 5, 14;
  --nf-mantle-rgb: 10, 8, 17;
  --nf-surface0-rgb: 34, 28, 48;
  --nf-surface1-rgb: 46, 39, 64;
  --nf-surface2-rgb: 59, 51, 80;
  --nf-text-rgb: 233, 225, 244;
}

[data-flavor="matinee"] {
  --nf-pink: #d61f6f;
  --nf-mauve: #8b3fc4;
  --nf-red: #d22d3f;
  --nf-peach: #c2661c;
  --nf-sky: #2d7fb8;
  --nf-green: #2f8f44;
  --nf-blue: #3a52c0;

  --nf-base: #f4eff3;
  --nf-mantle: #ece5ec;
  --nf-crust: #e3dbe5;
  --nf-surface0: #d8cfdb;
  --nf-surface1: #c9bfd0;
  --nf-surface2: #bbb0c4;
  --nf-overlay1: #978ca6;
  --nf-overlay2: #867b96;
  --nf-subtext0: #6a6080;
  --nf-subtext1: #564d6b;
  --nf-text: #2e2740;
  --nf-text-bright: #1a1428;
  --nf-on-accent: #f6f1f6;

  --nf-pink-rgb: 214, 31, 111;
  --nf-peach-rgb: 194, 102, 28;
  --nf-sky-rgb: 45, 127, 184;
  --nf-mauve-rgb: 139, 63, 196;
  --nf-green-rgb: 47, 143, 68;
  --nf-blue-rgb: 58, 82, 192;
  --nf-crust-rgb: 227, 219, 229;
  --nf-mantle-rgb: 236, 229, 236;
  --nf-surface0-rgb: 216, 207, 219;
  --nf-surface1-rgb: 201, 191, 208;
  --nf-surface2-rgb: 187, 176, 196;
  --nf-text-rgb: 46, 39, 64;
}

[data-flavor="dusk"] {
  --nf-pink: #e8608f;
  --nf-mauve: #a578d6;
  --nf-red: #d95a6c;
  --nf-peach: #e08a4a;
  --nf-sky: #7ab0d6;
  --nf-green: #6fbf7a;
  --nf-blue: #6f7fc7;

  --nf-base: #2e1a33;
  --nf-mantle: #251629;
  --nf-crust: #1e1220;
  --nf-surface0: #422a49;
  --nf-surface1: #533659;
  --nf-surface2: #654469;
  --nf-overlay1: #916f95;
  --nf-overlay2: #a988ad;
  --nf-subtext0: #c8aecd;
  --nf-subtext1: #ddc8e1;
  --nf-text: #f3e4f3;
  --nf-text-bright: #faf2fa;
  --nf-on-accent: #16121f;

  --nf-pink-rgb: 232, 96, 143;
  --nf-peach-rgb: 224, 138, 74;
  --nf-sky-rgb: 122, 176, 214;
  --nf-mauve-rgb: 165, 120, 214;
  --nf-green-rgb: 111, 191, 122;
  --nf-blue-rgb: 111, 127, 199;
  --nf-crust-rgb: 30, 18, 32;
  --nf-mantle-rgb: 37, 22, 41;
  --nf-surface0-rgb: 66, 42, 73;
  --nf-surface1-rgb: 83, 54, 89;
  --nf-surface2-rgb: 101, 68, 105;
  --nf-text-rgb: 243, 228, 243;
}

[data-flavor="midnight"] {
  --nf-pink: #ff1f83;
  --nf-mauve: #b355ff;
  --nf-red: #ff3355;
  --nf-peach: #ff8a3d;
  --nf-sky: #4fc3ff;
  --nf-green: #4dff9e;
  --nf-blue: #4a6bff;

  --nf-base: #0b0f1e;
  --nf-mantle: #080b17;
  --nf-crust: #05070f;
  --nf-surface0: #161c30;
  --nf-surface1: #212a44;
  --nf-surface2: #2d3658;
  --nf-overlay1: #4c5588;
  --nf-overlay2: #6169a0;
  --nf-subtext0: #9aa0c8;
  --nf-subtext1: #c0c4e0;
  --nf-text: #e8eaf7;
  --nf-text-bright: #f2f3fc;
  --nf-on-accent: #16121f;

  --nf-pink-rgb: 255, 31, 131;
  --nf-peach-rgb: 255, 138, 61;
  --nf-sky-rgb: 79, 195, 255;
  --nf-mauve-rgb: 179, 85, 255;
  --nf-green-rgb: 77, 255, 158;
  --nf-blue-rgb: 74, 107, 255;
  --nf-crust-rgb: 5, 7, 15;
  --nf-mantle-rgb: 8, 11, 23;
  --nf-surface0-rgb: 22, 28, 48;
  --nf-surface1-rgb: 33, 42, 68;
  --nf-surface2-rgb: 45, 54, 88;
  --nf-text-rgb: 232, 234, 247;
}

:root {
  --font-display: 'DM Serif Display', serif;
  --font-body: 'Archivo', system-ui, sans-serif;
  --font-mono: 'Space Mono', monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--nf-crust);
  color: var(--nf-text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
}

::selection {
  background: var(--nf-pink);
  color: var(--nf-on-accent);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

/* ---------- atmosphere ---------- */

@keyframes nf-glow {
  0%, 100% { text-shadow: 0 0 28px rgba(var(--nf-pink-rgb), 0.45), 0 0 68px rgba(var(--nf-pink-rgb), 0.2); }
  50% { text-shadow: 0 0 38px rgba(var(--nf-pink-rgb), 0.7), 0 0 96px rgba(var(--nf-pink-rgb), 0.32); }
}

@keyframes nf-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.page {
  position: relative;
  min-height: 100%;
  background: var(--nf-base);
  background-image:
    radial-gradient(120% 80% at 70% -10%, rgba(var(--nf-pink-rgb), 0.16), transparent 55%),
    radial-gradient(90% 70% at 0% 0%, rgba(var(--nf-blue-rgb), 0.08), transparent 50%),
    linear-gradient(150deg, var(--nf-base) 0%, var(--nf-mantle) 100%);
  transition: background 0.35s ease, background-color 0.35s ease;
}

.vignette-overlay {
  position: fixed;
  inset: 0;
  z-index: 59;
  pointer-events: none;
  background: radial-gradient(120% 130% at 50% 30%, transparent 55%, rgba(var(--nf-crust-rgb), 0.55) 100%);
}

/* ---------- layout helpers ---------- */

.wrap {
  position: relative;
  z-index: 10;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--nf-pink);
}

.section-head {
  text-align: center;
  margin-bottom: 56px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 4.5vw, 54px);
  line-height: 1.05;
  color: var(--nf-text-bright);
  margin-top: 14px;
}

.section-head h2:first-child {
  margin-top: 0;
}

.section-lead {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.55;
  color: var(--nf-subtext1);
  max-width: 42ch;
  margin: 14px auto 0;
}

/* ---------- nav ---------- */

.site-header {
  position: relative;
  z-index: 10;
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 40px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.brand-mark img {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 0 22px rgba(var(--nf-pink-rgb), 0.35);
}

.brand-name {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: none;
  color: var(--nf-text);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--nf-subtext1);
  text-decoration: none;
}

.nav-cta {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--nf-on-accent);
  background: var(--nf-pink);
  padding: 9px 16px;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(var(--nf-pink-rgb), 0.35);
  transition: background 0.15s ease;
}

.nav-cta:hover {
  background: var(--nf-peach);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  padding: 16px 28px;
  border-radius: 12px;
  transition: box-shadow 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.btn-primary {
  color: var(--nf-on-accent);
  background: linear-gradient(150deg, var(--nf-pink), var(--nf-peach));
  box-shadow: 0 10px 40px rgba(var(--nf-pink-rgb), 0.35);
}

.btn-primary:hover {
  box-shadow: 0 14px 52px rgba(var(--nf-pink-rgb), 0.5);
  transform: translateY(-1px);
}

.btn-primary .arrow {
  font-size: 18px;
}

.btn-secondary {
  font-weight: 600;
  color: var(--nf-text);
  background: rgba(var(--nf-surface1-rgb), 0.5);
  border: 1px solid var(--nf-surface1);
  gap: 9px;
}

.btn-secondary:hover {
  background: rgba(var(--nf-surface2-rgb), 0.7);
}

.btn-cta-large {
  font-size: 17px;
  padding: 18px 34px;
  border-radius: 13px;
  box-shadow: 0 10px 44px rgba(var(--nf-pink-rgb), 0.4);
}

.btn-cta-large:hover {
  box-shadow: 0 16px 60px rgba(var(--nf-pink-rgb), 0.55);
  transform: translateY(-1px);
}

.btn-cta-large .arrow {
  font-size: 20px;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  z-index: 10;
  max-width: 1180px;
  margin: 0 auto;
  padding: 88px 40px 40px;
  text-align: center;
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nf-subtext0);
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(46px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: var(--nf-text-bright);
  max-width: 16ch;
  margin: 0 auto;
}

.hero h1 .accent {
  color: var(--nf-pink);
  animation: nf-glow 3.6s ease-in-out infinite;
}

.hero-sub {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--nf-subtext1);
  max-width: 60ch;
  margin: 28px auto 0;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 38px;
}

.hero-fineprint {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--nf-overlay2);
  margin-top: 18px;
}

.hero-shot {
  position: relative;
  margin: 60px auto 0;
  max-width: 1024px;
}

.hero-shot-glow {
  position: absolute;
  inset: -40px -10px;
  background: radial-gradient(60% 120% at 50% 50%, rgba(var(--nf-pink-rgb), 0.28), transparent 70%);
  filter: blur(20px);
  z-index: 0;
}

.hero-shot-frame {
  position: relative;
  z-index: 1;
  border: 1px solid var(--nf-surface1);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(var(--nf-crust-rgb), 0.8), 0 0 0 1px rgba(var(--nf-pink-rgb), 0.06);
}

.hero-shot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- marquee ---------- */

.marquee {
  position: relative;
  z-index: 10;
  margin-top: 36px;
  border-top: 1px solid var(--nf-surface1);
  border-bottom: 1px solid var(--nf-surface1);
  background: rgba(var(--nf-mantle-rgb), 0.6);
  overflow: hidden;
  padding: 13px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: nf-marquee 48s linear infinite;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--nf-subtext0);
}

.marquee-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}

.marquee-group span {
  padding: 0 14px;
}

.marquee-group .marquee-dot {
  color: var(--nf-red);
  padding: 0 6px 0 14px;
}

/* ---------- pillars ---------- */

.pillars {
  padding: 100px 40px 30px;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.pillar-card {
  position: relative;
  padding: 34px 30px 36px;
  border: 1px solid var(--nf-surface1);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(var(--nf-surface0-rgb), 0.55), rgba(var(--nf-mantle-rgb), 0.4));
  overflow: hidden;
}

.pillar-num {
  position: absolute;
  top: -30px;
  right: -20px;
  font-family: var(--font-display);
  font-size: 130px;
  line-height: 1;
  color: rgba(var(--nf-pink-rgb), 0.07);
}

.pillar-card:nth-child(2) .pillar-num { color: rgba(var(--nf-peach-rgb), 0.08); }
.pillar-card:nth-child(3) .pillar-num { color: rgba(var(--nf-sky-rgb), 0.08); }

.pillar-icon {
  font-size: 30px;
  margin-bottom: 18px;
}

.pillar-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 27px;
  line-height: 1.12;
  color: var(--nf-text-bright);
  margin-bottom: 12px;
}

.pillar-card p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--nf-subtext1);
}

/* ---------- secondary trio ---------- */

.secondary {
  padding: 70px 40px 30px;
}

.secondary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.secondary-card {
  padding: 30px 28px;
  border: 1px solid var(--nf-surface1);
  border-radius: 16px;
  background: rgba(var(--nf-mantle-rgb), 0.4);
}

.secondary-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 20px;
}

.secondary-icon.green { background: rgba(var(--nf-green-rgb), 0.12); border: 1px solid rgba(var(--nf-green-rgb), 0.3); }
.secondary-icon.sky { background: rgba(var(--nf-sky-rgb), 0.12); border: 1px solid rgba(var(--nf-sky-rgb), 0.3); }
.secondary-icon.peach { background: rgba(var(--nf-peach-rgb), 0.12); border: 1px solid rgba(var(--nf-peach-rgb), 0.3); }

.secondary-card h3 {
  font-weight: 700;
  font-size: 19px;
  color: var(--nf-text-bright);
  margin-bottom: 10px;
}

.secondary-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--nf-subtext0);
}

/* ---------- themes showcase ---------- */

.themes {
  padding: 80px 40px 30px;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.theme-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--nf-surface1);
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
  width: 100%;
  padding: 0;
  background: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.theme-card:hover {
  transform: translateY(-2px);
}

.theme-card:focus-visible {
  outline: 2px solid var(--nf-pink);
  outline-offset: 3px;
}

.theme-card.is-active {
  border-color: var(--nf-pink);
  box-shadow: 0 0 26px rgba(var(--nf-pink-rgb), 0.22);
}

.theme-swatch {
  height: 96px;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  gap: 6px;
}

.theme-swatch span {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.theme-card.matinee .theme-swatch { background: linear-gradient(150deg, #f4eff3, #ece5ec); }
.theme-card.dusk .theme-swatch { background: linear-gradient(150deg, #2e1a33, #1e1220); }
.theme-card.midnight .theme-swatch { background: linear-gradient(150deg, #0b0f1e, #05070f); }
.theme-card.witching .theme-swatch { background: linear-gradient(150deg, #0e0b16, #07050e); }

.theme-info {
  padding: 16px 16px 18px;
  background: rgba(var(--nf-mantle-rgb), 0.4);
}

.theme-card.witching .theme-info {
  background: rgba(var(--nf-mantle-rgb), 0.55);
}

.theme-info .theme-name {
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--nf-text-bright);
}

.theme-info .theme-time {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nf-overlay2);
  margin-top: 4px;
}

.theme-card.witching .theme-time {
  color: var(--nf-peach);
}

/* ---------- use cases ---------- */

.use-cases {
  padding: 90px 40px 30px;
}

.use-cases-head {
  margin-bottom: 44px;
}

.use-cases-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  color: var(--nf-text-bright);
  margin-top: 14px;
}

.use-cases-head h2 em {
  font-style: italic;
  color: var(--nf-peach);
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.use-case-card {
  display: flex;
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--nf-surface1);
  border-radius: 14px;
  background: rgba(var(--nf-mantle-rgb), 0.35);
}

.use-case-icon {
  font-size: 26px;
  flex-shrink: 0;
}

.use-case-card h3 {
  font-weight: 700;
  font-size: 18px;
  color: var(--nf-text-bright);
  margin-bottom: 7px;
}

.use-case-card p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--nf-subtext0);
}

/* ---------- power user panel ---------- */

.power {
  padding: 90px 40px 30px;
}

.power-panel {
  border: 1px solid var(--nf-surface1);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(var(--nf-surface0-rgb), 0.6), rgba(var(--nf-crust-rgb), 0.5));
  padding: 48px clamp(28px, 5vw, 60px);
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 50px;
  align-items: center;
}

.power-panel h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.06;
  color: var(--nf-text-bright);
  margin: 14px 0 16px;
}

.power-panel p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--nf-subtext1);
}

.shortcut-list {
  display: grid;
  gap: 10px;
}

.shortcut-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(var(--nf-mantle-rgb), 0.5);
  border: 1px solid var(--nf-surface1);
  border-radius: 11px;
}

.shortcut-row span {
  font-size: 14.5px;
  color: var(--nf-text);
}

kbd {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 7px;
  white-space: nowrap;
}

kbd.sky { color: var(--nf-sky); background: rgba(var(--nf-sky-rgb), 0.1); border: 1px solid rgba(var(--nf-sky-rgb), 0.25); }
kbd.peach { color: var(--nf-peach); background: rgba(var(--nf-peach-rgb), 0.1); border: 1px solid rgba(var(--nf-peach-rgb), 0.25); }
kbd.pink { color: var(--nf-pink); background: rgba(var(--nf-pink-rgb), 0.1); border: 1px solid rgba(var(--nf-pink-rgb), 0.25); }

/* ---------- privacy callout ---------- */

.privacy {
  padding: 90px 40px 30px;
}

.privacy-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(var(--nf-sky-rgb), 0.25);
  border-radius: 22px;
  background: linear-gradient(150deg, rgba(var(--nf-sky-rgb), 0.07), rgba(var(--nf-crust-rgb), 0.4));
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
}

.privacy-glow {
  position: absolute;
  inset: -40% 30% auto;
  height: 60%;
  background: radial-gradient(50% 100% at 50% 0%, rgba(var(--nf-sky-rgb), 0.18), transparent 70%);
  filter: blur(30px);
}

.privacy-content {
  position: relative;
}

.privacy-content .eyebrow {
  color: var(--nf-sky);
}

.privacy-content h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.04;
  color: var(--nf-text-bright);
  margin: 16px auto 0;
  max-width: 18ch;
}

.privacy-content p {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
  color: var(--nf-subtext1);
  max-width: 64ch;
  margin: 22px auto 0;
}

.privacy-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 30px;
}

.privacy-tags span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--nf-subtext1);
  padding: 9px 15px;
  border: 1px solid var(--nf-surface1);
  border-radius: 999px;
  background: rgba(var(--nf-mantle-rgb), 0.5);
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 860px;
  padding: 100px 40px 30px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--nf-surface1);
  border-radius: 14px;
  background: rgba(var(--nf-mantle-rgb), 0.4);
  padding: 4px 24px;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-q {
  font-weight: 600;
  font-size: 17px;
  color: var(--nf-text);
}

.faq-sign {
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--nf-pink);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item[open] .faq-sign {
  transform: rotate(45deg);
}

.faq-item[open] .faq-q {
  color: var(--nf-pink);
}

.faq-item p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--nf-subtext0);
  padding: 0 0 22px;
}

.faq-item code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--nf-subtext1);
}

/* ---------- final CTA ---------- */

.final-cta {
  padding: 100px 40px 60px;
  text-align: center;
}

.final-cta-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--nf-surface1);
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(var(--nf-surface0-rgb), 0.7), rgba(var(--nf-crust-rgb), 0.6));
  padding: clamp(48px, 7vw, 88px) 40px;
}

.final-cta-glow {
  position: absolute;
  inset: -50% 20% auto;
  height: 80%;
  background: radial-gradient(50% 100% at 50% 0%, rgba(var(--nf-pink-rgb), 0.22), transparent 70%);
  filter: blur(40px);
}

.final-cta-content {
  position: relative;
}

.final-cta-content h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1;
  color: var(--nf-text-bright);
}

.final-cta-content p {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--nf-subtext1);
  max-width: 50ch;
  margin: 24px auto 0;
}

.final-cta-content .hero-actions {
  margin-top: 38px;
}

/* ---------- system requirements footer ---------- */

.sysreq {
  margin-top: 70px;
  padding-top: 36px;
  border-top: 1px solid var(--nf-surface1);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: left;
}

.sysreq-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nf-overlay2);
  margin-bottom: 10px;
}

.sysreq-value {
  font-size: 15px;
  color: var(--nf-subtext1);
}

.site-footer {
  margin-top: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-mark {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.footer-mark img {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  box-shadow: 0 0 16px rgba(var(--nf-pink-rgb), 0.3);
}

.footer-brand-name {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: none;
  color: var(--nf-subtext0);
}

.footer-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--nf-overlay2);
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .pillar-grid,
  .secondary-grid,
  .use-case-grid {
    grid-template-columns: 1fr;
  }

  .theme-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .power-panel {
    grid-template-columns: 1fr;
  }

  .sysreq {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-nav {
    gap: 16px;
  }
}

@media (max-width: 560px) {
  .wrap,
  .site-header,
  .hero,
  .pillars,
  .secondary,
  .themes,
  .use-cases,
  .power,
  .privacy,
  .faq,
  .final-cta {
    padding-left: 20px;
    padding-right: 20px;
  }

  .theme-grid {
    grid-template-columns: 1fr;
  }

  .sysreq {
    grid-template-columns: 1fr;
  }

  .site-nav a:not(.nav-cta) {
    display: none;
  }
}
