/* ============================================================
   FilmTether — "nightfall" landing aesthetic
   Palette pulled straight from the app icon:
     · sky    = nightfall navy → black  (#141c2c → #0d1220 → #090c14)
     · negative = sunset gradient gold→orange→pink (#FFC24D→#FF7A4D→#FF5E8A)
   Warmer & more produced than the stock nightfall dashboard theme.
   Single accent source of truth: the --sunset gradient + --accent below.
   System fonts only (zero network calls, to match the app's ethos).
   ============================================================ */

:root {
  /* nightfall sky (icon background gradient stops) */
  --bg:        #090c14;   /* near-black navy — icon bottom stop */
  --bg-deep:   #0d1220;   /* nightfall primary */
  --bg-2:      #121829;   /* raised band */
  --bg-3:      #181c26;   /* card — matches the film-strip body in the icon */
  --line:      #222838;   /* nightfall hairline */
  --line-warm: rgba(255,122,77,0.30);

  /* nightfall ink */
  --ink:       #f0f2f5;
  --ink-dim:   #c0c8d4;
  --ink-mute:  #8b93a7;
  --ink-faint: #5d6480;

  /* sunset accent system — THE brand, from the negative */
  --gold:   #FFC24D;
  --orange: #FF7A4D;
  --pink:   #FF5E8A;
  --glow:   #FF9D4D;
  --accent: #FF7A4D;                /* single primary accent */
  --sunset: linear-gradient(100deg, #FFC24D 0%, #FF7A4D 50%, #FF5E8A 100%);
  /* full spectrum (icon-gallery wordmark) — amber→pink→violet→cyan */
  --spectrum: linear-gradient(90deg, #FFB24D, #FF5E8A, #C471ED, #21D4FD);

  /* twilight cool — used sparingly to nod at nightfall */
  --violet: #C471ED;
  --cyan:   #21D4FD;

  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1040px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* film grain — fixed nightfall haze */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--gold); text-decoration: underline; }

code, kbd, pre { font-family: var(--mono); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }

/* ============================ HERO ============================ */
.hero {
  position: relative;
  text-align: center;
  padding: 104px 24px 88px;
  /* sunset bloom rising out of the nightfall sky — mirrors the icon */
  background:
    radial-gradient(125% 95% at 50% -12%, rgba(255,122,77,0.20) 0%, rgba(255,94,138,0.10) 32%, rgba(196,113,237,0.05) 52%, transparent 72%),
    linear-gradient(180deg, #141c2c 0%, #0d1220 45%, #090c14 100%);
  border-bottom: 1px solid var(--line);
  z-index: 2;
}
.hero-inner { max-width: 720px; margin: 0 auto; }

.appicon {
  width: 132px; height: 132px;
  border-radius: 29px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05),
    0 24px 70px -22px rgba(255,122,77,0.55),
    0 8px 28px rgba(0,0,0,0.6);
  margin-bottom: 30px;
}

.wordmark {
  font-family: var(--sans);
  font-size: clamp(2.7rem, 8.4vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0 0 16px;
  line-height: 1;
  background: var(--spectrum);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.wordmark span { color: transparent; }  /* whole wordmark carries the gradient */

.tagline {
  font-size: clamp(1.12rem, 3.4vw, 1.5rem);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}
.lede { color: var(--ink-dim); font-size: 1.06rem; margin: 0 auto 34px; max-width: 600px; }
.lede strong { color: var(--gold); font-weight: 600; }

.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 11px;
  font-weight: 650;
  font-size: 1rem;
  letter-spacing: 0.01em;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--sunset);
  color: #1c0d08;
  box-shadow: 0 10px 34px -10px rgba(255,122,77,0.7);
}
.btn-primary:hover { filter: brightness(1.08); color: #1c0d08; }
.btn-ghost {
  background: rgba(255,255,255,0.02);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--line-warm); color: var(--gold); }

.micro { color: var(--ink-faint); font-size: 0.84rem; font-family: var(--mono); margin: 0; }

/* ============================ BANDS ============================ */
.band { padding: 76px 0; border-bottom: 1px solid var(--line); position: relative; z-index: 2; }
.band:nth-child(even) { background: var(--bg-2); }

.kicker {
  font-family: var(--mono);
  font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase;
  margin: 0 0 16px;
  background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-title {
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  font-weight: 750; letter-spacing: -0.02em; margin: 0 0 28px;
}

/* WHY */
.why { background: var(--bg-2); }
.why-copy { font-size: 1.2rem; line-height: 1.7; max-width: 760px; color: var(--ink); margin: 0; }
.why-copy em { font-style: normal; background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 600; }

/* FEATURES */
.features {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px;
}
.features li {
  background: linear-gradient(180deg, var(--bg-3), #14171f);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 23px 22px 20px;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.features li:hover {
  border-color: var(--line-warm);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -20px rgba(255,122,77,0.4);
}
.features h3 { font-family: var(--mono); font-size: 1.02rem; font-weight: 600; margin: 0 0 8px; color: var(--ink); }
.features p { margin: 0; color: var(--ink-mute); font-size: 0.95rem; }
.features strong { color: var(--gold); font-weight: 600; }

code {
  background: rgba(255,122,77,0.12);
  color: var(--gold);
  padding: 1px 6px; border-radius: 5px; font-size: 0.88em;
}
kbd {
  background: #05070d;
  border: 1px solid var(--line);
  border-bottom-width: 2px; border-radius: 5px;
  padding: 1px 7px; font-size: 0.82em; color: var(--ink);
}

/* HONESTY */
.honesty { background: var(--bg-deep); }
.honesty-lede { color: var(--ink-mute); max-width: 620px; margin: -12px 0 28px; }
.nots { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.nots li {
  font-family: var(--mono); font-size: 0.92rem; color: var(--ink-dim);
  border: 1px dashed var(--line); border-radius: 999px; padding: 8px 16px;
}
.nots li::before { content: "—"; color: var(--pink); margin-right: 8px; }

/* REQUIREMENTS */
.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; }
.reqs, .tested { font-size: 1rem; }
.reqs { list-style: none; padding: 0; margin: 0 0 20px; }
.reqs li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.reqs li:last-child { border-bottom: 0; }
.reqs strong { color: var(--ink); }
.dim { color: var(--ink-faint); font-size: 0.9em; }
.caveat {
  font-size: 0.9rem; color: var(--ink-mute);
  border-left: 2px solid var(--orange); padding: 8px 0 8px 16px; margin: 0;
}
.tested { color: var(--ink-mute); }
.tested strong { color: var(--ink); }

/* BUILD */
.build { background: var(--bg-2); }
.build-lede { color: var(--ink-mute); margin: 0 0 14px; }
.code {
  background: #05070e;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px; overflow-x: auto;
  font-size: 0.9rem; line-height: 1.7; margin: 0 0 28px; color: var(--ink);
}
.code code { background: none; color: inherit; padding: 0; border-radius: 0; font-size: inherit; }
.topnav { position: absolute; top: 22px; right: 26px; z-index: 4; display: flex; gap: 18px; align-items: center; }
.topnav a { color: var(--ink-mute); display: inline-flex; transition: color .15s ease; }
.topnav a:hover { color: var(--gold); }
.code .c { color: var(--ink-faint); }

/* FOOTER */
.footer { padding: 58px 0 76px; text-align: center; position: relative; z-index: 2; }
.foot-brand {
  font-family: var(--sans); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.03em; margin: 0 0 10px;
  background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.foot-lic { color: var(--ink-mute); font-size: 0.92rem; margin: 0 0 10px; }
.foot-note { color: var(--ink-faint); font-size: 0.82rem; margin: 0; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 720px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 80px 20px 64px; }
  .band { padding: 58px 0; }
  body { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
