/* ============================================================
   Fourier landing — same design system as the product:
   warm gray, white cards, one orange accent, tabular numerals.
   ============================================================ */

:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --ink: #191919;
  --muted: #8a8a86;
  --line: #ececea;
  --accent: #f4602c;
  --accent-deep: #d94e1f;
  --accent-soft: #fdf0ea;
  --ok: #1f9d55;
  --ok-soft: #e8f5ee;
  --red: #d64545;
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Poppins", "Inter", "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
}

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

body {
  font-family: var(--font);
  background: #fbfbfa;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  padding-top: 86px;
}

h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.12; }
h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 700; }
h3 { font-size: 16px; font-weight: 650; }
a { color: inherit; }
code { font-family: var(--mono); font-size: 0.92em; }

svg { width: 18px; height: 18px; }

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

.nav {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 20;
  pointer-events: none;
}
.nav-inner {
  pointer-events: auto;
  max-width: 920px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px; padding: 10px 12px 10px 20px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 8px 30px -12px rgba(25, 25, 25, 0.18);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 28px; height: 28px; border-radius: 9px; background: #0a0a0a; padding: 3px; display: block; flex: none; }
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 20px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 13.5px; opacity: 0.75; }
.nav-links a:hover { opacity: 1; }

.btn {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 14px; padding: 11px 20px; border-radius: 11px;
  border: 0; cursor: pointer; transition: background 0.15s ease;
}
.btn:hover { background: var(--accent-deep); }
.btn-small { padding: 8px 15px; font-size: 13px; }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-outline:hover { background: var(--surface); }

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

.hero {
  max-width: 1080px; margin: 0 auto; padding: 24px 20px 96px;
  min-height: calc(100svh - 86px);
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-content: center;
}
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 650; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--accent-deep); background: var(--accent-soft);
  border-radius: 999px; padding: 5px 12px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(38px, 5.4vw, 56px); font-weight: 750; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { color: var(--muted); font-size: 16.5px; margin-top: 18px; max-width: 46ch; }
.hero-rule { margin-top: 14px; font-weight: 650; font-size: 14.5px; }

.install {
  margin-top: 26px; display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: #fff; border-radius: 12px; padding: 13px 16px;
}
.install code { font-size: 14px; color: #fff; }
.copy-btn {
  background: rgba(255, 255, 255, 0.12); color: #fff; border: 0; border-radius: 7px;
  font-size: 12px; font-weight: 600; padding: 5px 10px; cursor: pointer;
}
.copy-btn:hover { background: rgba(255, 255, 255, 0.22); }

.hero-links { margin-top: 18px; display: flex; gap: 18px; font-size: 13.5px; }
.hero-links a { font-weight: 550; }

.try-note { margin-top: 10px; color: var(--muted); font-size: 12.5px; }
.try-note code { background: var(--bg); padding: 1px 7px; border-radius: 6px; }

/* hero demo: terminal + verdict card */

.hero-demo { position: relative; }
.term {
  background: #0d0d0d; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 24px 60px -24px rgba(25, 25, 25, 0.45);
}
.term-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.term-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.term-bar span:first-child { background: var(--accent); }
.term-bar em { margin-left: 10px; font-style: normal; color: rgba(255, 255, 255, 0.4); font-size: 11.5px; font-family: var(--mono); }
.term-body {
  padding: 18px 20px 22px; font-family: var(--mono); font-size: 12.5px; line-height: 1.75;
  color: rgba(255, 255, 255, 0.78); overflow-x: auto; min-height: 302px;
}
.term-body .line { display: block; opacity: 0; }
.term-body .line.show { opacity: 1; transition: opacity 0.22s ease; }
.cursor { color: var(--accent); animation: blink 0.9s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.t-dim { color: rgba(255, 255, 255, 0.35); }
.t-white { color: #fff; font-weight: 600; }
.t-orange { color: var(--accent); font-weight: 600; }
.t-red { color: #ff7a66; font-weight: 700; }

.verdict-card {
  position: absolute; right: -14px; bottom: -34px;
  width: 270px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px 18px; box-shadow: 0 18px 44px -18px rgba(25, 25, 25, 0.28);
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.verdict-card.visible { opacity: 1; transform: none; }
.v-chips { display: flex; gap: 6px; margin-bottom: 10px; }
.chip { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.chip-ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.v-title { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 10px; }
.v-rows { display: flex; flex-direction: column; }
.v-rows div {
  display: flex; justify-content: space-between; font-size: 12.5px;
  border-top: 1px solid var(--line); padding: 7px 0;
}
.v-rows span { color: var(--muted); }
.v-rows strong { font-variant-numeric: tabular-nums; }

/* ---------- problem strip ---------- */

.problem { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.problem p {
  max-width: 800px; margin: 0 auto; padding: 44px 20px;
  font-size: clamp(17px, 2.4vw, 21px); line-height: 1.6; text-align: center; color: var(--ink);
}

/* ---------- sections ---------- */

.band { background: #f0f0ee; border-block: 1px solid var(--line); }
.band-alt { background: #ececea; }
.band .section { padding-top: 60px; padding-bottom: 56px; }
.band .section h2 { text-align: center; }

.section { max-width: 1080px; margin: 0 auto; padding: 76px 20px 8px; }
.section h2 { margin-bottom: 34px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; cursor: pointer; }

/* subtle orange stroke pulse on click */
.stroke-pulse { animation: stroke-pulse 0.7s ease; }
@keyframes stroke-pulse {
  0% { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
  100% { border-color: var(--line); box-shadow: none; }
}
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 9px; background: var(--accent-soft);
  color: var(--accent-deep); font-weight: 700; font-size: 14px; margin-bottom: 14px;
}
.step p { color: var(--muted); font-size: 13.5px; margin-top: 7px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; cursor: pointer; }
.feature p { color: var(--muted); font-size: 13.5px; margin-top: 8px; }
.feature code { background: var(--bg); padding: 1px 6px; border-radius: 5px; }

/* ---------- safety ---------- */

.safety { margin: 76px 0 0; background: #0d0d0d; color: #fff; }
.safety-inner { max-width: 780px; margin: 0 auto; padding: 72px 24px; }
.safety h2 { font-size: clamp(26px, 4vw, 38px); }
.safety ul { margin: 28px 0 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.safety li { padding-left: 26px; position: relative; color: rgba(255, 255, 255, 0.82); font-size: 15px; }
.safety li::before { content: "◆"; position: absolute; left: 0; top: 1px; color: var(--accent); font-size: 12px; }
.safety-note { margin-top: 26px; color: rgba(255, 255, 255, 0.45); font-size: 13px; }

/* ---------- cta ---------- */

.cta { text-align: center; padding: 90px 20px; }
.cta h2 { font-size: clamp(28px, 4.4vw, 42px); }
.cta p { color: var(--muted); margin: 16px auto 8px; max-width: 52ch; }
.cta .install { margin-top: 22px; }
.cta-links { margin-top: 24px; display: flex; gap: 12px; justify-content: center; }

/* ---------- footer ---------- */

.footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner {
  max-width: 1080px; margin: 0 auto; padding: 30px 20px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.footer p { color: var(--muted); font-size: 12.5px; }
.footer-links { margin-left: auto; display: flex; gap: 16px; font-size: 13px; }
.footer-links a { text-decoration: none; opacity: 0.7; }
.footer-links a:hover { opacity: 1; }

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

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; gap: 40px; }
  .verdict-card { position: static; width: auto; margin-top: 12px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}

@media (max-width: 560px) {
  .steps, .features { grid-template-columns: 1fr; }
  .footer-links { margin-left: 0; }
}

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