/* Baseline — marketing site. Product-first dark design (Flighty-style):
   dark warm canvas, orange/ember gradient identity, app UI as the hero. */

:root {
  color-scheme: dark;
  --bg: #100b07;
  --bg-2: #17100a;
  --surface: #1d150e;
  --surface-2: #241a11;
  --ink: #f5efe8;
  --soft: #b3a698;
  --faint: #7d7062;
  --border: #32261b;
  --accent: #ff7a26;
  --ember: #ff5714;
  --deep: #b83a08;
  --accent-soft: rgba(255, 122, 38, 0.12);
  --good: #34c98d;
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.4), 0 18px 50px rgba(0, 0, 0, 0.5);
  --grad: linear-gradient(120deg, var(--accent), var(--ember));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

::selection { background: var(--accent); color: #fff; }

/* ── Nav ─────────────────────────────────────────────────────────────── */
.nav-shell {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(16, 11, 7, 0.72);
  border-bottom: 1px solid rgba(50, 38, 27, 0.6);
}
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 900; font-size: 18px; letter-spacing: 0.24em;
  color: var(--ink); text-decoration: none;
}
.brand svg { flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--soft); text-decoration: none; font-size: 14.5px; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--ink); }

.btn {
  display: inline-block;
  background: var(--grad);
  color: #fff; text-decoration: none;
  padding: 13px 26px; border-radius: 999px;
  font-weight: 700; font-size: 15px;
  box-shadow: 0 6px 24px rgba(255, 87, 20, 0.35);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 32px rgba(255, 87, 20, 0.45); }
.btn.small { padding: 9px 18px; font-size: 13.5px; }
.btn.ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--border); box-shadow: none;
}
.btn.ghost:hover { border-color: var(--faint); }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  text-align: center;
  padding: 92px 0 40px;
}
.hero::before {
  content: "";
  position: absolute; inset: -40% -20% auto;
  height: 130%;
  background:
    radial-gradient(46% 42% at 50% 12%, rgba(255, 106, 26, 0.22) 0%, transparent 70%),
    radial-gradient(30% 30% at 78% 30%, rgba(255, 87, 20, 0.10) 0%, transparent 70%);
  pointer-events: none;
}
.hero > .wrap { position: relative; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 122, 38, 0.25);
  color: var(--accent);
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 7px 16px; border-radius: 999px; margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(44px, 7.6vw, 84px);
  line-height: 1.02; letter-spacing: -0.035em;
  margin: 0 0 20px; font-weight: 800;
}
.hero h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.sub {
  max-width: 600px; margin: 0 auto 34px;
  color: var(--soft); font-size: 19px; line-height: 1.55;
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .note { margin-top: 16px; font-size: 13px; color: var(--faint); }

/* ── Hero visual: phone + floating cards ────────────────────────────── */
.hero-visual {
  position: relative;
  margin: 64px auto 0;
  max-width: 900px;
  min-height: 620px;
}

.phone {
  position: relative;
  width: 310px; margin: 0 auto;
  border-radius: 52px;
  padding: 11px;
  background: linear-gradient(160deg, #3a2d20, #1c140c 60%);
  box-shadow: var(--shadow), inset 0 0 0 2px #0c0805;
  z-index: 2;
}
.screen {
  border-radius: 42px;
  overflow: hidden;
  background: linear-gradient(180deg, #171008 0%, #211710 100%);
  padding: 54px 16px 22px;
  min-height: 596px;
  position: relative;
}
.island {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 28px; border-radius: 999px;
  background: #000;
}
.screen-title {
  font-size: 24px; font-weight: 800; letter-spacing: -0.02em;
  margin: 0 0 14px; text-align: left;
}

/* Mini app UI inside the phone */
.app-card {
  background: var(--grad);
  border-radius: 20px;
  padding: 16px;
  color: #fff;
  text-align: left;
  margin-bottom: 12px;
}
.app-card .eyebrow { font-size: 10px; font-weight: 800; letter-spacing: 0.12em; opacity: 0.85; margin: 0 0 6px; }
.app-card h4 { margin: 0 0 4px; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.app-card .meta { font-size: 11.5px; opacity: 0.85; margin: 0; }
.app-card .chip {
  display: inline-block; margin-top: 12px;
  background: rgba(255,255,255,0.22);
  padding: 5px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em;
}

.app-row {
  display: flex; align-items: center; gap: 11px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 11px 13px;
  margin-bottom: 9px;
  text-align: left;
}
.app-row .cube {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
  background: var(--accent-soft);
}
.app-row .txt { min-width: 0; }
.app-row .txt b { display: block; font-size: 13px; font-weight: 700; }
.app-row .txt span { display: block; font-size: 10.5px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-row .end { margin-left: auto; font-size: 11px; font-weight: 800; color: var(--accent); white-space: nowrap; }

/* Floating cards around the phone */
.float-card {
  position: absolute;
  background: rgba(29, 21, 14, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
  text-align: left;
  z-index: 3;
  animation: float 7s ease-in-out infinite;
}
.float-card .label { font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; color: var(--faint); text-transform: uppercase; margin: 0 0 4px; }
.float-card .big {
  font-size: 30px; font-weight: 900; letter-spacing: -0.02em; line-height: 1.1;
  font-variant-numeric: tabular-nums; margin: 0;
}
.float-card .big em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.float-card .sub { font-size: 12px; color: var(--soft); margin: 2px 0 0; }
.fc-1 { top: 6%; left: 4%; animation-delay: 0s; }
.fc-2 { top: 38%; right: 3%; animation-delay: 1.6s; }
.fc-3 { bottom: 10%; left: 8%; animation-delay: 3.1s; }

.spark { display: block; margin-top: 8px; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@media (prefers-reduced-motion: reduce) {
  .float-card { animation: none; }
  .marquee-track { animation: none; }
}

/* ── Marquee ─────────────────────────────────────────────────────────── */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  overflow: hidden;
  padding: 16px 0;
  margin-top: 48px;
}
.marquee-track {
  display: flex; gap: 44px; width: max-content;
  animation: scroll 36s linear infinite;
  font-size: 14px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--soft); text-transform: uppercase;
  white-space: nowrap;
}
.marquee-track span::before { content: "◆"; color: var(--accent); margin-right: 44px; font-size: 9px; vertical-align: 2px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ── Bento ───────────────────────────────────────────────────────────── */
section { padding: 84px 0; }
.section-title {
  text-align: center;
  font-size: clamp(30px, 4.4vw, 44px);
  letter-spacing: -0.03em; line-height: 1.1;
  margin: 0 0 10px; font-weight: 800;
}
.section-title em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-sub { text-align: center; color: var(--soft); margin: 0 auto 52px; max-width: 540px; font-size: 17px; }

.bento {
  display: grid; gap: 16px;
  grid-template-columns: repeat(6, 1fr);
}
.bento .card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  overflow: hidden;
  position: relative;
  transition: border-color .2s, transform .2s;
}
.bento .card:hover { border-color: rgba(255, 122, 38, 0.4); transform: translateY(-2px); }
.card.span-3 { grid-column: span 3; }
.card.span-2 { grid-column: span 2; }
.card.span-4 { grid-column: span 4; }
.card h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -0.015em; }
.card > p { margin: 0 0 18px; color: var(--soft); font-size: 14.5px; }
.card .tag {
  display: inline-block;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

/* In-card UI fragments */
.ui-fixture {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 14px; padding: 11px 14px; margin-bottom: 8px;
  font-size: 13px;
}
.ui-fixture .date {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; line-height: 1.05;
}
.ui-fixture .date small { font-size: 8.5px; letter-spacing: 0.06em; font-weight: 800; }
.ui-fixture b { display: block; font-size: 13.5px; }
.ui-fixture span { color: var(--soft); font-size: 11.5px; }
.ui-fixture .away { margin-left: auto; color: var(--accent); font-weight: 800; font-size: 11.5px; }

.ui-prompt {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 14px; padding: 13px 15px;
  color: var(--soft); font-size: 13.5px; font-style: italic;
  margin-bottom: 10px;
}
.ui-plan-row {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--border);
  padding: 9px 2px; font-size: 13px;
}
.ui-plan-row:last-child { border-bottom: none; }
.ui-plan-row b { font-weight: 700; }
.ui-plan-row span { color: var(--faint); font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; }

.ui-big-num {
  font-size: 52px; font-weight: 900; letter-spacing: -0.03em; line-height: 1;
  font-variant-numeric: tabular-nums;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ui-big-num-label { color: var(--soft); font-size: 12.5px; font-weight: 600; margin-top: 4px; }

.ui-check { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13.5px; }
.ui-check .tick {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  background: var(--good); color: #08130d;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 900;
}
.ui-check.todo .tick { background: transparent; border: 1.5px solid var(--faint); color: transparent; }
.ui-check.todo { color: var(--soft); }

.ui-macro { margin-bottom: 12px; }
.ui-macro .row { display: flex; justify-content: space-between; font-size: 12px; color: var(--soft); margin-bottom: 5px; font-weight: 600; }
.ui-macro .bar { height: 7px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.ui-macro .fill { height: 100%; border-radius: 999px; background: var(--grad); }
.ui-macro .fill.g { background: var(--good); }
.ui-macro .fill.a { background: #f0a94a; }

.streak-flames { display: flex; gap: 6px; margin-top: 14px; }
.streak-flames span {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.streak-flames span.dim { opacity: 0.28; filter: grayscale(1); }

/* ── Steps ───────────────────────────────────────────────────────────── */
.steps { counter-reset: step; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.step {
  position: relative; padding: 30px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border); border-radius: 24px;
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block;
  font-size: 42px; font-weight: 900; letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 10px;
}
.step h3 { margin: 0 0 8px; font-size: 18px; }
.step p { margin: 0; color: var(--soft); font-size: 14.5px; }

/* ── Manifesto ──────────────────────────────────────────────────────── */
.manifesto {
  text-align: center;
  max-width: 780px; margin: 0 auto;
  font-size: clamp(22px, 3.4vw, 32px);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.35;
}
.manifesto em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ── CTA band ───────────────────────────────────────────────────────── */
.cta-band {
  position: relative;
  background: var(--grad);
  border-radius: 30px;
  text-align: center;
  padding: 72px 32px;
  color: #fff;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 90% at 50% -20%, rgba(255,255,255,0.28), transparent 70%);
  pointer-events: none;
}
.cta-band h2 { margin: 0 0 12px; font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.03em; position: relative; }
.cta-band p { margin: 0 0 30px; opacity: 0.92; font-size: 17px; position: relative; }
.cta-band .btn { background: #fff; color: var(--deep); box-shadow: 0 8px 30px rgba(0,0,0,0.25); position: relative; }

/* ── Footer ─────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  margin-top: 64px; padding: 36px 0 48px;
  display: flex; flex-wrap: wrap; gap: 14px;
  align-items: center; justify-content: space-between;
  color: var(--faint); font-size: 14px;
}
footer a { color: var(--soft); text-decoration: none; margin-left: 20px; }
footer a:hover { color: var(--accent); }
footer a:first-child { margin-left: 0; }

/* ── Legal pages ────────────────────────────────────────────────────── */
.legal { max-width: 760px; margin: 0 auto; padding: 24px 24px 64px; }
.legal h1 { font-size: 36px; letter-spacing: -0.025em; margin: 32px 0 6px; }
.legal .updated { color: var(--faint); font-size: 14px; margin-bottom: 30px; }
.legal h2 { font-size: 21px; margin: 36px 0 10px; letter-spacing: -0.01em; }
.legal h3 { font-size: 16.5px; margin: 24px 0 8px; color: var(--accent); }
.legal p, .legal li { color: var(--soft); font-size: 15.5px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent); text-decoration: none; }
.legal a:hover { text-decoration: underline; }
.legal .muted { color: var(--faint); }
.legal .callout {
  background: var(--accent-soft);
  border: 1px solid rgba(255, 122, 38, 0.35);
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 14.5px;
  margin: 18px 0;
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .card.span-2, .card.span-3, .card.span-4 { grid-column: span 6; }
  .fc-1 { left: 0; }
  .fc-2 { right: 0; }
}
@media (max-width: 640px) {
  .nav-links { gap: 14px; }
  .nav-links a.hide-mobile { display: none; }
  .hero { padding: 60px 0 24px; }
  .hero-visual { min-height: auto; }
  .float-card { position: static; margin: 14px auto 0; width: fit-content; animation: none; }
  .phone { width: 280px; }
}
