/* ============================================================
   FitBot landing — dark IDE theme, mobile-first, wide desktop
   Display: JetBrains Mono (headings, technical, Cyrillic-safe)
   Body:    Manrope (text)
   Accent is concentrated on the CTA; UI chrome stays neutral.
   ============================================================ */

/* ---------- Fonts (self-hosted, variable, cyrillic+latin) ---------- */
@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/jetbrains-mono-cyrillic.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2074,
    U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-cyrillic.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2074,
    U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #16181d;
  --bg-alt: #1a1d23;
  --surface: #1e2127;
  --surface-2: #23272f;
  --bubble-bot: #23272f;
  --bubble-user: #303640;
  --text: #edeef0;
  --muted: #9298a3;
  --faint: #565b65;
  --border: #2b2f37;
  --border-soft: #24282f;

  --accent: #fe8019;          /* one sharp warm accent — CTA + rare highlight */
  --accent-hi: #ff9440;
  --accent-dim: rgba(254, 128, 25, 0.14);
  --accent-ink: #17130c;      /* text on accent */
  --ok: #8ec07c;              /* bot checkmarks / done */

  --font-display: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1120px;
  --pad: 22px;
  --radius: 16px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  background-image:
    radial-gradient(100% 60% at 80% -5%, rgba(254, 128, 25, 0.08), transparent 55%),
    linear-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 100% 100%, 34px 34px, 34px 34px;
  background-attachment: fixed, scroll, scroll;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
section { padding-block: clamp(52px, 8vw, 104px); }
.section-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 44px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--accent);
}

h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 4.6vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0;
}
.section-head p { color: var(--muted); font-size: 17px; margin: 14px 0 0; }

/* ---------- Header / logo mark (no nav) ---------- */
.topbar { padding-top: 24px; display: flex; align-items: center; }
.logo {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--font-display); font-weight: 800; font-size: 18px;
  letter-spacing: 0.02em;
}
.logo svg { width: 28px; height: 28px; display: block; }
.logo .b { color: var(--accent); }

/* ---------- CTA ---------- */
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 30px;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-body); font-weight: 800; font-size: 17px;
  text-decoration: none; border-radius: 14px;
  box-shadow: 0 10px 30px rgba(254, 128, 25, 0.26);
  transition: transform 0.12s ease, background 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
.cta:hover { background: var(--accent-hi); }
.cta:active { transform: translateY(1px); }
.cta svg { width: 20px; height: 20px; }

.cta-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 13px; color: var(--muted);
  text-decoration: none;
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(36px, 6vw, 64px); }
.hero-grid { display: grid; gap: clamp(32px, 5vw, 56px); align-items: center; }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 6.4vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin: 0 0 22px;
  overflow-wrap: break-word;
}
.hero h1 .mark { color: var(--accent); }

.subhead { font-size: clamp(16px, 2.4vw, 19px); color: var(--muted); max-width: 42ch; margin: 0 0 30px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; }
.hero-note { font-family: var(--font-mono); font-size: 12.5px; color: var(--faint); }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
  .hero-media { justify-self: end; width: 100%; max-width: 420px; }
}

/* ---------- Phone / chat mockup (pure CSS) ---------- */
.phone {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 26px; padding: 12px;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.5);
}
.phone-head { display: flex; align-items: center; gap: 11px; padding: 8px 8px 14px; border-bottom: 1px solid var(--border); }
.phone-ava {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #d65d0e);
  display: grid; place-items: center; font-size: 18px;
}
.phone-name { font-weight: 800; font-size: 14px; line-height: 1.1; }
.phone-status { font-size: 11.5px; color: var(--ok); }

.chat { padding: 16px 8px 8px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 84%; padding: 10px 13px; border-radius: 16px; font-size: 14.5px; line-height: 1.42; }
.msg .mono { font-family: var(--font-mono); font-weight: 500; }
.msg.user { align-self: flex-end; background: var(--bubble-user); border-bottom-right-radius: 5px; font-family: var(--font-mono); font-weight: 500; }
.msg.bot { align-self: flex-start; background: var(--bubble-bot); border-bottom-left-radius: 5px; }
.msg.bot .ok { color: var(--ok); font-weight: 700; }
.msg.bot .rec { color: var(--accent); font-weight: 700; }
.msg.bot .dim { color: var(--muted); }
.msg .row { display: block; }
.msg .row + .row { margin-top: 3px; }
.chat-btns { display: flex; gap: 8px; align-self: flex-start; margin-top: 2px; flex-wrap: wrap; }
.chat-btn { font-family: var(--font-mono); font-size: 12.5px; color: var(--text); background: #2a2f38; border: 1px solid var(--border); border-radius: 10px; padding: 7px 11px; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 16px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.step {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 26px 24px;
}
.step-n {
  font-family: var(--font-display); font-weight: 800; font-size: 15px;
  color: var(--faint); letter-spacing: 0.1em; margin-bottom: 18px;
}
.step-n b { color: var(--accent); font-weight: 800; }
.step h3 { margin: 0 0 8px; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }
.step .mono, .benefit .mono, .final .mono, .price .mono { font-family: var(--font-mono); font-weight: 500; color: var(--text); }

/* ---------- Benefits ---------- */
.benefits { display: grid; gap: 16px; }
@media (min-width: 720px) { .benefits { grid-template-columns: 1fr 1fr; } }
.benefit {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 24px;
}
.benefit-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.benefit h3 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.benefit p { margin: 0; color: var(--muted); font-size: 14.5px; }
.benefit .ic {
  width: 30px; height: 30px; flex: none; border-radius: 9px;
  background: var(--surface-2); border: 1px solid var(--border);
  display: grid; place-items: center; font-size: 15px;
}
.pro-pill {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.08em; color: var(--accent);
  border: 1px solid rgba(254, 128, 25, 0.4); border-radius: 999px;
  padding: 2px 8px; margin-left: auto;
}

/* ---------- Screenshots ---------- */
.shots { display: grid; gap: 26px; }
@media (min-width: 780px) { .shots { grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; } }
.shot-cap { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }

/* device frame that holds a REAL screenshot (or a CSS mockup for now) */
.device {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 22px; padding: 14px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.42);
}
.device > img { border-radius: 12px; width: 100%; display: block; }

/* inner CSS mockups (used until real screenshots arrive) */
.screen-title { font-family: var(--font-display); font-weight: 800; font-size: 14px; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.log-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 13.5px; }
.log-row:last-child { border-bottom: 0; }
.log-row .name { font-weight: 700; }
.log-row .val { font-family: var(--font-mono); font-weight: 500; color: var(--muted); white-space: nowrap; }
.log-row .val b { color: var(--text); font-weight: 700; }
.pr { color: var(--accent); }

.cal-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.cal-head .mo { font-family: var(--font-display); font-weight: 800; font-size: 14px; }
.cal-head .yr { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { font-family: var(--font-mono); font-size: 10px; text-align: center; color: var(--faint); text-transform: uppercase; }
.cal-day { aspect-ratio: 1; display: grid; place-items: center; font-family: var(--font-mono); font-size: 12px; color: var(--muted); border-radius: 9px; background: var(--bg-alt); }
.cal-day.done { background: rgba(142, 192, 124, 0.16); color: var(--ok); font-weight: 700; }
.cal-day.plan { background: rgba(254, 128, 25, 0.16); color: var(--accent); font-weight: 700; }
.cal-day.blank { background: transparent; }
.cal-legend { display: flex; gap: 16px; margin-top: 14px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.cal-legend i { font-style: normal; display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.dot.done { background: var(--ok); }
.dot.plan { background: var(--accent); }

/* ---------- Pricing (honest free / Pro) ---------- */
.price-grid { display: grid; gap: 18px; }
@media (min-width: 720px) { .price-grid { grid-template-columns: 1fr 1fr; } }
.price {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 28px;
}
.price.pro { border-color: rgba(254, 128, 25, 0.45); background: linear-gradient(180deg, rgba(254,128,25,0.05), transparent 40%), var(--surface); }
.price-tier { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.price.pro .price-tier { color: var(--accent); }
.price-cost { font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; margin: 0 0 18px; }
.price-cost small { font-family: var(--font-body); font-weight: 500; font-size: 14px; color: var(--muted); }
.price ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.price li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--text); }
.price li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--ok); font-weight: 800; }
.price.pro li::before { color: var(--accent); }

/* ---------- Final CTA ---------- */
.final { text-align: center; }
.final .section-head { margin-inline: auto; }
.final h2 { margin-bottom: 12px; }
.final p { color: var(--muted); margin: 0 auto 30px; max-width: 44ch; }
.final .cta { min-height: 60px; font-size: 18px; }

/* ---------- Footer ---------- */
.foot { text-align: center; padding: 34px 0 120px; color: var(--faint); font-family: var(--font-mono); font-size: 12px; }

/* ---------- Sticky mobile CTA ---------- */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 62%, rgba(22, 24, 29, 0));
  display: none;
}
.sticky .cta { width: 100%; }

@media (max-width: 720px) {
  .sticky { display: block; }
  .foot { padding-bottom: 110px; }
}

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