:root {
  --bg: #FFF9F5;
  --bg-soft: #FFF1E8;
  --surface: #FFFFFF;
  --surface-tint: #FFEFE5;
  --border: #F2D8C8;
  --text: #241914;
  --muted: #6E5A50;
  --accent: #E86434;
  --accent-dark: #CC4F22;
  --accent-soft: #FFE4D6;
  --green-bg: #E3F6EC;
  --green-text: #147A46;
  --amber-bg: #FFF1D6;
  --amber-text: #995800;
  --purple: #7A3FD1;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
code, pre, .mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; }

/* Navbar */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 249, 245, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 24px; height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 18px; color: var(--text); text-decoration: none;
}
.brand-badge {
  background: var(--accent-soft); color: var(--accent-dark);
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 6px 2px; border-bottom: 2px solid transparent; transition: all 0.15s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--accent-dark);
  border-bottom-color: var(--accent);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 14px; border-radius: 11px; padding: 11px 20px;
  text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: all 0.15s ease;
}
.btn-primary {
  background: var(--accent); color: #FFFFFF;
  box-shadow: 0 8px 22px rgba(232, 100, 52, 0.25);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--bg-soft); }

/* Hero */
.hero { max-width: 1160px; margin: 0 auto; padding: 72px 24px 56px; text-align: center; }
.pill-live {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft); color: var(--accent-dark);
  font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  font-weight: 800; letter-spacing: -0.035em; line-height: 1.1;
  max-width: 840px; margin: 0 auto 18px;
}
.hero h1 span { color: var(--accent); }
.hero p { font-size: 18px; color: var(--muted); max-width: 660px; margin: 0 auto 28px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 16px; }
.hero-actions .btn { padding: 14px 26px; font-size: 15px; }
.hero-meta { font-size: 13px; color: var(--muted); margin-bottom: 42px; }

/* Spec Strip */
.spec-strip {
  max-width: 980px; margin: 0 auto 44px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.spec-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px 14px; text-align: center;
}
.spec-val { font-size: 19px; font-weight: 800; color: var(--accent-dark); }
.spec-lbl { font-size: 12px; color: var(--muted); font-weight: 500; margin-top: 3px; }

/* Mockup */
.mockup {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: 0 26px 64px rgba(110, 62, 38, 0.1); overflow: hidden; text-align: left;
}
.mockup-titlebar {
  background: var(--bg-soft); padding: 11px 16px;
  display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--border);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: #FF5F56; } .dot-y { background: #FFBD2E; } .dot-g { background: #27C93F; }
.mockup-title { margin-left: 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.mockup-toolbar {
  padding: 10px 14px; display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--border); background: var(--surface);
}
.hamburger-mock {
  width: 34px; height: 30px; border: 1.5px solid var(--accent); border-radius: 7px;
  display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 0 7px;
}
.hamburger-mock span { height: 2px; background: var(--accent); border-radius: 2px; }
.search-mock {
  flex: 1; background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 6px 12px; font-size: 12px; color: var(--muted); display: flex; justify-content: space-between;
}
.mockup-body { display: grid; grid-template-columns: 1.45fr 1fr; min-height: 290px; }
.real-shot-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 28px 72px rgba(110, 62, 38, 0.12);
  overflow: hidden;
  text-align: left;
}
.shot-bar {
  background: var(--bg-soft);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.shot-tabs {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: 10px;
  gap: 4px;
}
.shot-tabs button {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.shot-tabs button.active {
  background: var(--accent);
  color: #FFFFFF;
}
.shot-img {
  display: block;
  width: 100%;
  height: auto;
  background: #FFFFFF;
}
.shot-caption {
  padding: 14px 20px;
  background: #FFFDFB;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.mock-table { border-right: 1px solid var(--border); font-size: 12px; }
.mock-row {
  display: grid; grid-template-columns: 34px 58px 56px 130px 1fr 64px;
  padding: 10px 12px; border-bottom: 1px solid #F7E8DF; align-items: center; gap: 6px;
}
.mock-row.head { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; background: #FFFDFB; }
.mock-row.selected { background: var(--surface-tint); box-shadow: inset 3px 0 0 var(--accent); }
.status-pill { display: inline-block; padding: 2px 7px; border-radius: 999px; font-size: 11px; font-weight: 600; text-align: center; }
.s-200 { background: var(--green-bg); color: var(--green-text); }
.s-404 { background: var(--amber-bg); color: var(--amber-text); }
.m-get { color: #0B6BB5; font-weight: 700; }
.m-post { color: var(--purple); font-weight: 700; }

.mock-inspector { padding: 14px; background: var(--surface); }
.seg {
  display: inline-flex; background: var(--bg-soft); padding: 3px;
  border-radius: 8px; gap: 4px; margin-bottom: 12px;
}
.seg button {
  border: none; background: transparent; font-family: inherit;
  font-size: 11px; font-weight: 600; padding: 5px 10px; border-radius: 6px;
  color: var(--muted); cursor: pointer;
}
.seg button.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.kv-row { display: grid; grid-template-columns: 115px 1fr; padding: 7px 0; border-bottom: 1px solid #F7E8DF; font-size: 11.5px; }
.kv-k { color: var(--accent-dark); font-weight: 600; }
.code-preview {
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; font-size: 11px; color: var(--text); overflow-x: auto; white-space: pre-wrap;
}

/* Sections & Cards */
.section { max-width: 1160px; margin: 0 auto; padding: 64px 24px; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 40px; }
.section-head h1, .section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 10px;
}
.section-head p { color: var(--muted); font-size: 16px; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
}
.card-icon {
  width: 42px; height: 42px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 19px; margin-bottom: 14px;
}
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--muted); }

.ui-list { list-style: none; display: grid; gap: 12px; margin-top: 14px; }
.ui-list li {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; font-size: 13.5px;
}

/* Steps & Code */
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; min-width: 0; }
.step-num {
  display: inline-flex; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 13px;
  align-items: center; justify-content: center; margin-bottom: 12px;
}
.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }
.code-box {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; font-size: 12px; display: flex; flex-direction: column; gap: 10px;
}
.code-box code {
  word-break: break-all;
  white-space: pre-wrap;
  color: var(--text);
  line-height: 1.5;
}
.copy-btn {
  align-self: flex-end;
  background: var(--surface); border: 1px solid var(--border); border-radius: 6px;
  padding: 5px 12px; font-size: 11.5px; font-weight: 600; cursor: pointer;
}
.copy-btn:hover { background: var(--bg-soft); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; }
summary { font-weight: 700; font-size: 15px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
summary::after { content: "+"; color: var(--accent); font-weight: 800; }
details[open] summary::after { content: "−"; }
details p { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* CTA */
.cta-box {
  background: linear-gradient(135deg, #E86434 0%, #CC4F22 100%);
  color: #FFFFFF; border-radius: 20px; padding: 48px 32px; text-align: center;
  box-shadow: 0 20px 50px rgba(232, 100, 52, 0.25);
}
.cta-box h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 10px; }
.cta-box p { opacity: 0.92; max-width: 580px; margin: 0 auto 24px; font-size: 15px; }
.cta-box .btn { background: #FFFFFF; color: var(--accent-dark); padding: 13px 26px; font-size: 15px; }

footer {
  border-top: 1px solid var(--border); background: var(--surface);
  padding: 28px 24px; text-align: center; font-size: 13px; color: var(--muted);
}

@media (max-width: 860px) {
  .spec-strip { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .mockup-body { grid-template-columns: 1fr; }
  .mock-table { border-right: none; border-bottom: 1px solid var(--border); }
  .nav-links { display: none; }
}
