/* ============================================================
   Film Positive: "nightfall" landing aesthetic, sibling of the Film Tether site.
   Palette pulled straight from the app icon:
     · sky   = nightfall navy to black  (#141c2c, #0d1220, #090c14)
     · print = the sunset in the icon's frame, pink sky to orange to the gold sun
               (#FF6183, #FF824D, #FFC24D)
   Film Tether leads with orange and a full-spectrum wordmark. Film Positive leads
   with the pink of its print, so the two read as a pair without being the same page.
   Single accent source of truth: --accent and the --print gradient below.
   System fonts only (zero network calls, to match the app's ethos).
   ============================================================ */

:root {
  /* nightfall sky (icon background gradient stops) */
  --bg:        #090c14;
  --bg-deep:   #0d1220;
  --bg-2:      #121829;
  --bg-3:      #181c26;
  --line:      #222838;
  --line-warm: rgba(255,97,131,0.32);

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

  /* print accent system, from the icon's sunset frame */
  --gold:   #FFC24D;
  --orange: #FF824D;
  --pink:   #FF6183;
  --accent: #FF6183;                 /* single primary accent */
  --print:  linear-gradient(100deg, #FFC24D 0%, #FF824D 48%, #FF6183 100%);

  --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(--pink); 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; }

/* top nav: a single GitHub mark, same as the Film Tether page */
.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); }
.topnav a.navlink { font-family: var(--sans); font-size: 0.88rem; font-weight: 600; text-decoration: none; letter-spacing: 0.01em; }

/* ============================ HERO ============================ */
.hero {
  position: relative;
  text-align: center;
  padding: 104px 24px 88px;
  /* the print's glow rising out of the nightfall sky, mirrors the icon */
  background:
    radial-gradient(125% 95% at 50% -12%, rgba(255,97,131,0.20) 0%, rgba(255,130,77,0.10) 34%, rgba(255,194,77,0.04) 54%, transparent 72%),
    linear-gradient(180deg, #141c2c 0%, #0d1220 45%, #090c14 100%);
  border-bottom: 1px solid var(--line);
  z-index: 2;
}
.hero-inner { max-width: 960px; margin: 0 auto; }

.appicon {
  display: block; margin: 0 auto 38px;
  width: 132px; height: 132px; max-width: 100%;
  /* The PNG carries its own squircle in the alpha channel. Do NOT add a border-radius,
     it clips inside the baked edge. drop-shadow follows the alpha, box-shadow would
     draw a square. */
  filter: drop-shadow(0 18px 38px rgba(0,0,0,0.6)) drop-shadow(0 0 40px rgba(255,97,131,0.24));
}

.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;
  color: var(--ink);
}
.wordmark span {
  background: var(--print);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

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

.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;
}
a.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--print);
  color: #1c0d0f;
  box-shadow: 0 10px 34px -10px rgba(255,97,131,0.7);
}
.btn-primary:hover { filter: brightness(1.08); color: #1c0d0f; }
.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; }

.section-title {
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  font-weight: 750; letter-spacing: -0.02em; margin: 0 0 28px;
}

/* HOW (prose band) */
.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 + .why-copy { margin-top: 1.1rem; }
.why-copy em { font-style: normal; background: var(--print); -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,97,131,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,97,131,0.12);
  color: var(--gold);
  padding: 1px 6px; border-radius: 5px; font-size: 0.88em;
}

/* HONESTY */
.honesty { background: var(--bg-deep); }
.honesty-lede { color: var(--ink-mute); max-width: 620px; margin: -12px 0 28px; }
.honesty-lede.after { margin: 1.25rem 0 0; }

/* lists */
.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; }
.tested { color: var(--ink-mute); margin: 0; }
.tested + .tested { margin-top: 1rem; }
.tested strong { color: var(--ink); }

/* ROADMAP */
.roadmap { background: var(--bg-2); }

/* REQUIREMENTS */
.two-col { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; }

/* 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(--print); -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block;
}
.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; }
  .wrap { padding: 0 20px; }
  body { font-size: 16px; }
  .why-copy { font-size: 1.1rem; }
}

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

/* App screenshot, hero showcase, same size and spacing as the Film Tether page */
.app-shot {
  display: block;
  width: min(100%, 720px);
  height: auto;
  margin: 56px auto 0;
  filter: drop-shadow(0 30px 70px rgba(255, 90, 60, 0.10)) drop-shadow(0 10px 30px rgba(140, 90, 255, 0.12));
}
