/* ————————————————————————————————————————————————
   BUILD YOUR FUTURE — Conway Clouds landing
   Ported from Conway Clouds.dc.html (claude.ai/design)
   ———————————————————————————————————————————————— */

:root {
  /* tokens consumed by ca.js (rest-fig) */
  --cell: 12;
  --half: 6;
  --a-noise: 0.14;
  --a-flow: 0.5;
  --a-truth: 1;
  --ink: #141412;

  /* Surfaces + text. Every colour the sheet draws with is a variable so `.dark` at the bottom of
     this file can restage the whole page; the sky, the navy footer and the brand sprite colours are
     the deliberate exceptions. */
  --paper: #efeee9;
  --card: #fbfaf7;
  --card-solid: #ffffff;
  --line: #e3e0d7;
  --line-strong: #d9d5ca;
  --line-btn: #dbd8cd;
  --mut: #67635a;
  --mut-2: #8b877c;
  --navy: #101b2e;
  --ink-soft: #43413a;
  --ink-mute: #55524a;
  --ink-hover: #2e2c27;
  --on-ink: #f5f4ef;
  --faded: #a9a599;
  --btn-light-hover: #f1efe7;
  --nav-bg: rgba(251,250,247,0.9);
  --nav-line: rgba(20,20,18,0.14);
  --nav-shadow: 0 1px 2px rgba(20,20,18,0.06), 0 10px 30px rgba(20,20,18,0.08);
  --menu-hover: rgba(20,20,18,0.06);
  --menu-shadow: 0 10px 30px rgba(20,20,18,0.12);
  --modal-shadow: 0 14px 34px rgba(20,20,18,0.16);
  --tile-light-bg: #e3e9f2;
  --tile-light-bg-hover: #d7e0ee;
  --tile-light-fg: var(--navy);
  --tile-light-sub: #5f6f8d;

  /* Read by public/landing/main.js for the Nova canvas, which paints onto the sheet and therefore
     has to follow the theme. `--nova-ink-rgb` is a triplet because the engine composes alphas. */
  --nova-grid: rgba(20,20,18,0.04);
  --nova-dot: rgba(20,20,18,0.10);
  --nova-cell: #141412;
  --nova-node-bg: #fbfaf7;
  --nova-node-line: #e3e0d7;
  --nova-ring: #efeee9;
  --nova-label: #43413a;
  --nova-shadow: rgba(20,20,18,0.18);
  --nova-ink-rgb: 20,20,18;

  /* the four wave layers that ramp the sheet down into the navy footer */
  --w1a: #eff7fd; --w1b: #d2e6f5;
  --w2a: #c1daf0; --w2b: #9cc3e3;
  --w3a: #8bb9e0; --w3b: #5f9bcf;
  --w4a: #5a8ec0; --w4b: #356a9d;
}

/* The wave gradients are declared as `stop-color` presentation attributes in the landing markup.
   A presentation attribute loses to any CSS declaration, so restyling them needs no markup change —
   and the ids are the ones the four <svg class="wave"> elements already reference. */
#clg1 stop:nth-child(1) { stop-color: var(--w1a); }
#clg1 stop:nth-child(2) { stop-color: var(--w1b); }
#clg2 stop:nth-child(1) { stop-color: var(--w2a); }
#clg2 stop:nth-child(2) { stop-color: var(--w2b); }
#clg3 stop:nth-child(1) { stop-color: var(--w3a); }
#clg3 stop:nth-child(2) { stop-color: var(--w3b); }
#clg4 stop:nth-child(1) { stop-color: var(--w4a); }
#clg4 stop:nth-child(2) { stop-color: var(--w4b); }

html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--paper); overflow-x: hidden; }
* { box-sizing: border-box; }
a { color: var(--ink); }
a:hover { color: var(--ink-mute); }
::selection { background: var(--ink); color: var(--paper); }

@keyframes clA { 0%,100% { transform: scaleX(1.08) translateX(-22px); } 50% { transform: scaleX(1.08) translateX(22px); } }
@keyframes clB { 0%,100% { transform: scaleX(1.08) translateX(18px); } 50% { transform: scaleX(1.08) translateX(-18px); } }
@keyframes clC { 0%,100% { transform: scaleX(1.08) translateX(-15px); } 50% { transform: scaleX(1.08) translateX(15px); } }
@keyframes clD { 0%,100% { transform: scaleX(1.08) translateX(20px); } 50% { transform: scaleX(1.08) translateX(-20px); } }
@keyframes byfCloudFloat { 0%,100% { transform: translateY(0) rotate(-0.5deg); } 50% { transform: translateY(-11px) rotate(0.5deg); } }

.page { min-height: 100vh; min-height: 100svh; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; color: var(--ink); }

/* fixed sky */
.sky { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: linear-gradient(180deg, #4e92d0 0%, #8fc0e6 55%, #deeef8 100%); }
.sky-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scroll-cue { position: absolute; left: 0; right: 0; bottom: 24px; display: grid; justify-items: center; gap: 8px; pointer-events: none; }
.scroll-cue-label { font-family: 'Doto', monospace; font-weight: 700; font-size: 11px; letter-spacing: 0.34em; color: rgba(255,255,255,0.85); text-shadow: 0 1px 10px rgba(30,60,95,0.4); }
.scroll-cue-line { width: 1px; height: 26px; background: rgba(255,255,255,0.65); }

/* nav */
.nav { position: fixed; top: 14px; left: 16px; right: 16px; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--nav-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 14px; padding: 10px 16px; box-shadow: var(--nav-shadow); }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.nav-brand img { height: 32px; display: block; }
.nav-brand-name { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 19px; letter-spacing: 0.01em; white-space: nowrap; }
.nav-brand-name sup { font-size: 0.45em; vertical-align: 0.75em; letter-spacing: 0.08em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; font-size: 13.5px; color: var(--ink-mute); }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-login { text-decoration: none; font-size: 13.5px; color: var(--ink); }
.nav-label-short { display: none; }

/* theme switch — light → dark → system, sized to match .nav-menu-btn so the two read as one pair */
.nav-theme { appearance: none; -webkit-appearance: none; cursor: pointer; width: 32px; height: 32px; flex: none; display: grid; place-items: center; padding: 0; background: transparent; border: 1px solid var(--nav-line); border-radius: 10px; color: var(--ink); }
.nav-theme:hover { background: var(--menu-hover); }
.nav-theme svg { display: block; }

/* mobile menu — the disclosure in the nav's right-hand group (hidden until the links collapse) */
.nav-menu { display: none; position: relative; }
.nav-menu-btn { list-style: none; cursor: pointer; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--nav-line); border-radius: 10px; color: var(--ink); }
.nav-menu-btn::-webkit-details-marker { display: none; }
.nav-menu-btn svg { display: block; }
.nav-menu[open] .nav-menu-btn svg { transform: rotate(90deg); }
.nav-menu-panel { position: absolute; right: 0; top: calc(100% + 10px); z-index: 50; width: 208px; display: flex; flex-direction: column; gap: 2px; padding: 6px; background: var(--card); border: 1px solid var(--nav-line); border-radius: 14px; box-shadow: var(--menu-shadow); }
.nav-menu-link { text-decoration: none; font-size: 14px; color: var(--ink); padding: 8px 12px; border-radius: 10px; }
.nav-menu-link:hover { background: var(--menu-hover); color: var(--ink); }
.btn-dark { text-decoration: none; background: var(--ink); color: var(--on-ink); border-radius: 10px; padding: 9px 16px; font-size: 13px; }
.btn-dark:hover { background: var(--ink-hover); color: var(--on-ink); }

.content { position: relative; z-index: 5; }

/* hero */
.hero-space { position: relative; height: 100vh; height: 100svh; }
.hero { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; will-change: transform, opacity; }
.hero-inner { display: grid; justify-items: center; gap: 20px; padding: 0 24px; }
.hero-cloud-float { pointer-events: auto; display: block; animation: byfCloudFloat 7s ease-in-out infinite; }
.hero-cloud { display: block; width: min(300px, 54vw); transition: transform 0.55s cubic-bezier(0.22,1,0.36,1); }
.hero-cloud:hover { transform: scale(1.06) rotate(-1.2deg); }
.hero-title { margin: 0; font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(34px, 9vw, 150px); letter-spacing: 0.01em; text-align: center; white-space: nowrap; }
.hero-title sup { font-size: 0.32em; vertical-align: 0.9em; letter-spacing: 0.08em; }
.hero-sub { margin: 0; font-size: clamp(15px, 1.3vw, 19px); color: rgba(255,255,255,0.92); text-shadow: 0 1px 18px rgba(30,60,95,0.45); letter-spacing: 0.01em; text-align: center; }

/* hero call to action */
.hero-cta { pointer-events: auto; position: relative; margin-top: 18px; display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 26px; border-radius: 999px; background: #fbfaf7; color: #141412; text-decoration: none; border: 1px solid rgba(255,255,255,0.6); box-shadow: 0 6px 24px rgba(20,30,50,0.28); transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease; }
.hero-cta:hover { background: #fff; color: #141412; transform: translateY(-2px); box-shadow: 0 12px 34px rgba(20,30,50,0.34); }
.hero-cta:active { transform: translateY(0); box-shadow: 0 4px 16px rgba(20,30,50,0.3); }
.hero-cta-glyph { font-family: 'Doto', monospace; font-weight: 900; font-size: 16px; line-height: 1; opacity: 0.55; transition: opacity 0.18s ease, transform 0.18s ease; }
.hero-cta:hover .hero-cta-glyph { opacity: 1; transform: translateX(2px); }
.hero-cta-label { font-family: 'Doto', monospace; font-weight: 900; font-size: 13px; letter-spacing: 0.28em; }

/* sheet */
.sheet { background: var(--paper); border-radius: 26px 26px 0 0; box-shadow: 0 -20px 60px rgba(15,30,55,0.3); }
.container { max-width: 1200px; margin: 0 auto; padding: 36px 28px 100px; }
.kicker { font-family: 'Doto', monospace; font-weight: 900; font-size: 13px; letter-spacing: 0.24em; color: var(--mut-2); }

/* stats */
.stats { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 34px 38px; display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 44px; }
.stat { display: flex; flex-direction: column; justify-content: space-between; gap: 34px; border-right: 1px solid var(--line); padding-right: 44px; }
.stat-body { display: grid; gap: 12px; }
/* named .stat-num, NOT .stat-n — ca.js claims .stat-n for its glyph-mask animation */
.stat-num { font-family: 'Doto', monospace; font-weight: 900; font-size: 64px; line-height: 1; }
.stat-caption { font-size: 16px; color: var(--mut); }
.stat-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 26px; }
.stat-copy p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.btn-icon { justify-self: start; align-self: start; display: inline-flex; align-items: center; gap: 10px; border-radius: 12px; padding: 12px 18px; font-size: 14px; }
.btn-glyph { font-family: 'Doto', monospace; font-weight: 900; font-size: 13px; }
.btn-light { text-decoration: none; background: var(--card); border: 1px solid var(--line-btn); color: var(--ink); }
.btn-light:hover { background: var(--btn-light-hover); color: var(--ink); }

/* novas */
.novas { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; padding: 120px 6px 30px; }
.novas-copy { display: flex; flex-direction: column; justify-content: flex-start; gap: 44px; }
.novas-title { margin: 0; font-weight: 500; font-size: clamp(36px, 4.4vw, 56px); line-height: 1.1; letter-spacing: -0.02em; text-wrap: pretty; }
.ink { color: var(--ink); }
.faded { color: var(--faded); }
.novas-copy-body { display: grid; gap: 24px; max-width: 360px; }
.novas-copy-body p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--ink-soft); }
.novas > * { min-width: 0; }
.nova-stage { position: relative; justify-self: end; align-self: center; width: min(500px, 100%); min-width: 0; }
.nova-canvas { width: 100%; max-width: 100%; aspect-ratio: 1; display: block; cursor: crosshair; touch-action: none; }
.nova-modal { position: absolute; left: 50%; top: 60%; width: 224px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; box-shadow: var(--modal-shadow); opacity: 0; pointer-events: none; transition: opacity 0.22s ease, transform 0.22s ease; transform: translate(-50%, 8px); z-index: 3; }
.nova-modal .nm-tag { font-family: 'Doto', monospace; font-weight: 900; font-size: 10px; letter-spacing: 0.24em; color: var(--mut-2); }
.nova-modal .nm-title { font-size: 15px; font-weight: 600; color: var(--ink); margin-top: 6px; }
.nova-modal p { margin: 6px 0 12px; font-size: 12.5px; line-height: 1.55; color: var(--mut); }
.nova-modal .nm-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nova-modal .nm-cta { text-decoration: none; background: var(--ink); color: var(--on-ink); border-radius: 9px; padding: 7px 13px; font-size: 12.5px; }
.nova-modal .nm-price { font-family: 'Doto', monospace; font-weight: 900; font-size: 14px; color: var(--ink); }

/* pitch */
.pitch { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: end; padding: 90px 6px 0; }
.pitch h2 { margin: 0; font-weight: 500; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.16; letter-spacing: -0.02em; text-wrap: pretty; }
.pitch p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--mut); max-width: 300px; justify-self: end; }

/* cards */
.cards { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 44px; margin-top: 70px; border-top: 1px solid var(--line-strong); padding-top: 44px; }
.card-col { display: grid; gap: 14px; align-content: start; }
.card-col h3 { margin: 0; font-size: 17px; font-weight: 600; }
.card-col > p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--mut); }
.rows { display: grid; gap: 10px; margin-top: 6px; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.row-icon { width: 44px; height: 44px; flex: none; border-radius: 10px; border: 1px solid var(--line); background: var(--card-solid); color: var(--ink); display: grid; place-items: center; overflow: hidden; }
.row-icon img { width: 34px; height: 34px; object-fit: contain; }
.row-icon-navy { background: var(--navy); border: none; }
.row-icon-black { background: #101418; border: none; }
.row-icon-blue { background: #2f5cf6; border: none; }
.row-icon img.fit-cover { width: 44px; height: 44px; object-fit: cover; }
.pos-claw { object-position: center 45%; }
.pos-left { object-position: left center; }
.pos-banana { object-position: center; }
.pos-poly { object-position: 12% center; }
.row-text { display: grid; gap: 2px; min-width: 0; }
.row-name { font-size: 14px; font-weight: 600; }
.row-name-note { font-weight: 400; color: var(--mut-2); }
.row-sub { font-size: 12px; color: var(--mut-2); }
.row-price { margin-left: auto; font-family: 'Doto', monospace; font-weight: 900; font-size: 14px; }
.row-price-unit { font-size: 11px; }

/* footer rest figure */
.rest { text-align: center; padding: 120px 24px 90px; }
#rest-fig { width: min(460px, 82vw); aspect-ratio: 104/75; display: block; margin: 0 auto 36px; }
.rest-title { margin: 0 0 18px; font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(34px, 3.6vw, 48px); letter-spacing: 0.01em; color: var(--ink); }
.rest-title sup { font-size: 0.32em; vertical-align: 0.9em; letter-spacing: 0.08em; }
.rest-sub { margin: 0; font-size: 17px; line-height: 1.55; color: var(--mut); }

/* waves + CTA card */
.waves-zone { position: relative; z-index: 2; }
.waves { overflow: hidden; border-radius: 0 0 26px 26px; }
.wave { display: block; width: 100%; height: 54px; position: relative; overflow: visible; }
.wave-1 { z-index: 1; }
.wave-2 { z-index: 2; margin-top: -34px; }
.wave-3 { z-index: 3; margin-top: -34px; }
.wave-4 { z-index: 4; margin-top: -34px; }
.flip { transform: scaleX(-1); }
.wave-path { transform-box: fill-box; transform-origin: center; }
.anim-clA { animation: clA 17s ease-in-out infinite; }
.anim-clB { animation: clB 21s ease-in-out infinite; }
.anim-clC { animation: clC 19s ease-in-out infinite; }
.anim-clD { animation: clD 23s ease-in-out infinite; }

.cta-card { position: absolute; top: -28px; left: 50%; transform: translateX(-50%); z-index: 5; width: min(680px, 92%); background: linear-gradient(135deg, #0b1322, #3a5988); border-radius: 30px; padding: 4px; box-shadow: 0 22px 50px rgba(11,20,40,0.32); }
.cta-card-inner { background: var(--card); border-radius: 26px; padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tile { text-decoration: none; display: grid; gap: 20px; align-content: space-between; border-radius: 24px; padding: 22px; transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), background 0.3s; }
.tile-dark { background: var(--navy); color: #f5f7fb; }
.tile-dark:hover { background: #1b2940; color: #f5f7fb; transform: translateY(-4px); }
.tile-light { background: var(--tile-light-bg); color: var(--tile-light-fg); }
.tile-light:hover { background: var(--tile-light-bg-hover); color: var(--tile-light-fg); transform: translateY(-4px); }
.tile-ico-a { width: 44px; height: 32px; image-rendering: pixelated; }
.tile-ico-b { width: 84px; height: 46px; image-rendering: pixelated; }
.tile-text { display: grid; gap: 4px; }
.tile-name { font-size: 15px; font-weight: 600; }
.tile-sub { font-size: 13px; }
.tile-dark .tile-sub { color: #93a5c4; }
.tile-light .tile-sub { color: var(--tile-light-sub); }

/* dark footer */
.foot { position: relative; z-index: 1; background: var(--navy); color: #dfe7f5; margin-top: -26px; padding-top: 26px; overflow: hidden; }
.foot-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.foot-inner { position: relative; max-width: 1200px; margin: 0 auto; padding: 150px 28px 40px; }
.foot-bar { display: flex; justify-content: space-between; align-items: center; gap: 24px; border-top: 1px solid rgba(223,231,245,0.16); padding-top: 28px; flex-wrap: wrap; }
.foot-logo { height: 30px; display: block; }
.foot-links { display: flex; gap: 26px; }
.foot-links a { text-decoration: none; font-size: 13px; color: #93a5c4; }
.foot-links a:hover { color: #dfe7f5; }
.foot-copy { font-size: 13px; color: #5f6f8d; }

/* ————— responsive ————— */
@media (max-width: 960px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat-copy { grid-column: 1 / -1; }
  .stat:nth-child(2) { border-right: none; padding-right: 0; }
  .novas { grid-template-columns: 1fr; gap: 40px; padding-top: 90px; }
  .nova-stage { justify-self: center; }
  .pitch { grid-template-columns: 1fr; gap: 24px; padding-top: 70px; }
  .pitch p { justify-self: start; }
  .cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .hero-inner { padding: 0 16px; }
  .hero-title { font-size: clamp(26px, 8.2vw, 40px); }
  .nav { top: 10px; left: 10px; right: 10px; padding: 8px 12px; }
  .nav-links { display: none; }
  .nav-login { display: none; }
  .nav-menu { display: block; }
  .nav-label-full { display: none; }
  .nav-label-short { display: inline; }
  .nav-brand-name { font-size: 17px; }
  .stats { grid-template-columns: 1fr; padding: 26px 22px; gap: 30px; }
  .stat { border-right: none; padding-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 26px; gap: 18px; }
  .stat-num { font-size: 52px; }
  .cards { grid-template-columns: 1fr; }
  .cta-card-inner { grid-template-columns: 1fr; }
  .cta-card { position: relative; top: 0; left: 0; transform: none; width: min(680px, 92%); margin: -28px auto 0; }
  .foot-inner { padding-top: 60px; }
  .foot-bar { justify-content: center; text-align: center; }
  .rest { padding: 80px 20px 60px; }
  .container { padding: 28px 18px 70px; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-cloud-float { animation: none; }
  .anim-clA, .anim-clB, .anim-clC, .anim-clD { animation: none; }
  .hero-cloud { transition: none; }
  .tile { transition: none; }
}

/* ————— dark theme —————
   next-themes puts `.dark` on <html> (defaultTheme="system"), the same switch the blog and the
   dashboard read. `.dark` and `:root` have equal specificity, so this block has to stay LAST in the
   file to win.

   Untouched on purpose: the fixed `.sky` canvas (its palette is already time-of-day + geolocated,
   see PAL in main.js), the navy `.foot`, the CTA card's navy frame, and the brand sprite colours
   (#E9CE42 / #F06313 / #863DFF). Only the paper sheet restages. The sky gets a dimming veil instead
   of a repaint so the cloud engine keeps running untouched.

   Values track src/app/_styles/tokens.css so the homepage and the content hub read as one theme:
   --paper ≈ --background, --card ≈ --card, --ink ≈ --foreground, --mut-2 ≈ --muted-foreground. */
.dark {
  --ink: #f5f5f5;
  --paper: #161616;
  --card: #1e1e1e;
  --card-solid: #232323;
  --line: #2c2c2c;
  --line-strong: #333333;
  --line-btn: #383838;
  --mut: #a3a3a3;
  --mut-2: #7d7d7d;
  --navy: #0d1421;
  --ink-soft: #b5b3ae;
  --ink-mute: #a3a3a3;
  --ink-hover: #dedede;
  --on-ink: #161616;
  --faded: #55534e;
  --btn-light-hover: #262626;
  --nav-bg: rgba(30,30,30,0.9);
  --nav-line: rgba(255,255,255,0.14);
  --nav-shadow: 0 1px 2px rgba(0,0,0,0.4), 0 10px 30px rgba(0,0,0,0.45);
  --menu-hover: rgba(255,255,255,0.08);
  --menu-shadow: 0 10px 30px rgba(0,0,0,0.5);
  --modal-shadow: 0 14px 34px rgba(0,0,0,0.55);
  --tile-light-bg: #243449;
  --tile-light-bg-hover: #2d4159;
  --tile-light-fg: #e7edf7;
  --tile-light-sub: #93a5c4;

  --nova-grid: rgba(255,255,255,0.05);
  --nova-dot: rgba(255,255,255,0.12);
  --nova-cell: #f5f5f5;
  --nova-node-bg: #232323;
  --nova-node-line: #383838;
  --nova-ring: #161616;
  --nova-label: #b5b3ae;
  --nova-shadow: rgba(0,0,0,0.55);
  --nova-ink-rgb: 245,245,245;

  /* Same four-step ramp, restaged: the top layer lifts off the dark sheet and the bottom one lands
     exactly on --navy, so the footer still arrives without a seam. */
  --w1a: #313f57; --w1b: #293650;
  --w2a: #24314a; --w2b: #1e2a41;
  --w3a: #1a2537; --w3b: #15202f;
  --w4a: #121b28; --w4b: #0d1421;
}

/* The sky engine is not themed (it paints the real time of day). In dark mode a midday sky would
   blow out the whole viewport above a near-black sheet, so it gets a veil rather than a repaint —
   the clouds still move underneath. */
.dark .sky::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(9,10,14,0.55);
  pointer-events: none;
}

/* The nav mark and the footer mark are ink-on-transparent PNGs, unreadable on a dark bar. */
.dark .nav-brand img { filter: invert(1) brightness(1.6); }

/* The sheet's drop shadow reads as a light halo against a dark page. */
.dark .sheet { box-shadow: 0 -20px 60px rgba(0,0,0,0.55); }
.dark .cta-card { box-shadow: 0 22px 50px rgba(0,0,0,0.5); }
