/* ── Reset & tokens ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent:    #FC4C02;
  --accent-2:  #FF6B35;
  --accent-3:  #FFAB8A;
  --bg:        #0C0A08;
  --surface:   #181310;
  --border:    rgba(255,255,255,0.08);
  --text:      #FFFFFF;
  --muted:     rgba(255,255,255,0.5);
  --radius:    16px;
  font-size: 16px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent-3); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout helper ───────────────────────────────────────────────────── */
.container { max-width: 1000px; margin: 0 auto; padding: 0 24px; }

/* ── Nav ─────────────────────────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12,10,8,0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--accent-2);
}

.nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background .15s, transform .1s;
}
.nav-cta:hover { background: var(--accent-2); transform: translateY(-1px); text-decoration: none; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 100px 24px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(252,76,2,.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--accent-3);
  text-transform: uppercase;
}

.hero-headline {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--text);
}

.hero-headline em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 440px;
}

/* ── Demo card ───────────────────────────────────────────────────────── */
.demo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px 20px;
  max-width: 580px;
  width: 100%;
  text-align: left;
  position: relative;
  transition: border-color .2s;
  box-shadow: 0 0 40px rgba(252,76,2,.08);
}

.demo-card:has(.demo-text::selection) {
  border-color: rgba(252,76,2,.5);
}

.demo-card-label {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  font-weight: 600;
}

.demo-text {
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  cursor: text;
  user-select: text;
}

.demo-text::selection {
  background: rgba(252,76,2,.5);
  color: #fff;
}

/* Toast */
.demo-toast {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 30px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .2s, transform .2s;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 20px rgba(252,76,2,.4);
}

.demo-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.demo-toast-icon { font-size: 10px; }

/* ── Hero CTA buttons ─────────────────────────────────────────────────── */
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: background .15s, transform .1s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); text-decoration: none; }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color .15s, color .15s;
}
.btn-ghost:hover { border-color: var(--accent-3); color: var(--accent-3); text-decoration: none; }

/* ── Section shared ──────────────────────────────────────────────────── */
.section-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -.025em;
  text-align: center;
  margin-bottom: 48px;
}

/* ── How it works ────────────────────────────────────────────────────── */
.how {
  padding: 100px 40px;
  background: linear-gradient(180deg, transparent, rgba(252,76,2,.05), transparent);
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 180px;
  max-width: 220px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.step-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--accent-2);
  text-transform: uppercase;
}

.step-icon {
  font-size: 40px;
  width: 72px;
  height: 72px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.step p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

.step-arrow {
  font-size: 22px;
  color: var(--border);
  padding: 36px 10px 0;
  align-self: flex-start;
}

/* ── History section ─────────────────────────────────────────────────── */
.history-section {
  padding: 80px 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.history-content {
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.history-text {
  flex: 1;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pill {
  display: inline-block;
  background: rgba(252,76,2,.15);
  border: 1px solid rgba(252,76,2,.3);
  color: var(--accent-3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 3px 10px;
  border-radius: 30px;
  text-transform: uppercase;
  width: fit-content;
}

.history-text h2 {
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.15;
}

.history-text p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

kbd {
  background: rgba(255,255,255,.08);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 7px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--text);
  vertical-align: middle;
}

/* Overlay mockup */
.history-mockup {
  flex: 1;
  min-width: 260px;
  display: flex;
  justify-content: center;
}

.mockup-panel {
  width: 320px;
  background: rgba(20,14,10,.95);
  border: 1px solid rgba(252,76,2,.25);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 0 1px rgba(252,76,2,.1);
  overflow: hidden;
  font-size: 12px;
}

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 8px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.mockup-brand {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-2);
  letter-spacing: .06em;
}

.mockup-count { color: var(--muted); font-size: 10px; }

.mockup-search {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.mockup-search-inner {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 7px;
  padding: 6px 10px;
  color: var(--muted);
  font-size: 11.5px;
  font-family: "Inter", sans-serif;
}

.mockup-list { list-style: none; padding: 4px; }

.mockup-item {
  padding: 8px 9px;
  border-radius: 8px;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 3px;
  cursor: default;
}

.mockup-item.active {
  background: rgba(252,76,2,.1);
  border-color: rgba(252,76,2,.3);
}

.mockup-preview { color: var(--text); font-size: 11.5px; }
.mockup-meta { color: var(--muted); font-size: 10px; }

.mockup-footer {
  padding: 8px 12px;
  border-top: 1px solid rgba(255,255,255,.07);
  color: var(--muted);
  font-size: 10px;
  text-align: right;
}

/* ── Features ────────────────────────────────────────────────────────── */
.features {
  padding: 80px 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .15s, transform .15s;
}

.feature-card:hover {
  border-color: rgba(252,76,2,.35);
  transform: translateY(-2px);
}

.feature-icon { font-size: 28px; }
.feature-card h3 { font-size: 16px; font-weight: 700; }
.feature-card p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* ── Download ────────────────────────────────────────────────────────── */
.download {
  padding: 80px 40px;
  text-align: center;
}

.download-sub {
  color: var(--muted);
  font-size: 16px;
  margin-top: -36px;
  margin-bottom: 48px;
}

.platform-cards {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto 32px;
}

.platform-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  flex: 1;
  min-width: 200px;
  max-width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}

.platform-card:hover {
  border-color: rgba(252,76,2,.4);
  box-shadow: 0 8px 32px rgba(252,76,2,.12);
  transform: translateY(-3px);
}

.platform-icon { font-size: 36px; }
.platform-card h3 { font-size: 17px; font-weight: 700; }
.platform-card p { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

.btn-download {
  background: var(--accent);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  width: 100%;
  text-align: center;
  transition: background .15s, transform .1s;
  margin-top: 4px;
  display: block;
}
.btn-download:hover { background: var(--accent-2); transform: translateY(-1px); text-decoration: none; }

.source-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 2;
}

/* ── Footer ──────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  font-size: 16px;
  font-weight: 800;
  color: var(--accent-2);
  letter-spacing: .06em;
}

.footer-copy {
  color: var(--muted);
  font-size: 13px;
}

.footer-link {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  transition: color .15s;
}
.footer-link:hover { color: var(--accent-3); text-decoration: none; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 680px) {
  .nav { padding: 14px 20px; }
  .hero { padding: 70px 20px 60px; }
  .history-content { flex-direction: column; }
  .history-mockup { width: 100%; }
  .mockup-panel { width: 100%; max-width: 340px; }
  .step-arrow { display: none; }
  .platform-card { max-width: 100%; }
  .features { padding: 60px 20px; }
  .footer { padding: 24px 20px; }
  .footer-link { margin-left: 0; width: 100%; }
}
