:root {
  color-scheme: light;
  --bg: #f7f9fc;
  --surface: #ffffff;
  --text: #14213a;
  --muted: #617089;
  --border: #dce4ef;
  --accent: #385def;
  --accent-hover: #2949cc;
  --shadow: 0 16px 52px rgba(29, 54, 108, .07);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101624;
  --surface: #192338;
  --text: #f3f6ff;
  --muted: #a8b7d0;
  --border: #2b3b56;
  --accent: #89a4ff;
  --accent-hover: #adc0ff;
  --shadow: 0 16px 52px rgba(0, 0, 0, .16);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.page-shell { max-width: 1160px; padding: 0 clamp(20px, 5vw, 50px); margin: 0 auto; }
.site-header { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 1.08rem; font-weight: 780; letter-spacing: -.035em; text-decoration: none; }
.brand-light { font-weight: 460; }
.brand-mark { display: grid; place-items: center; border-radius: 11px; width: 38px; height: 38px; color: white; background: #385def; font-size: 1rem; font-weight: 800; }
.theme-toggle { border: 1px solid var(--border); border-radius: 99px; padding: 10px 16px; color: var(--text); background: var(--surface); font-size: .87rem; font-weight: 650; }
.theme-toggle:hover, .button-secondary:hover { border-color: var(--accent); }
.hero { padding: 92px 0 120px; max-width: 780px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 99px; padding: 7px 13px; color: var(--muted); font-size: .81rem; font-weight: 680; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #22ba92; box-shadow: 0 0 0 3px rgba(34,186,146,.14); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 26px 0 24px; font-size: clamp(3.6rem, 8.5vw, 6.7rem); line-height: 1.04; letter-spacing: -.075em; font-weight: 800; }
.gradient-text { background: linear-gradient(100deg, #385def 0%, #8d60e8 78%); background-clip: text; -webkit-background-clip: text; color: transparent; }
.hero-copy { max-width: 560px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.23rem); line-height: 1.75; }
.primary-link { display: inline-flex; align-items: center; gap: 17px; margin-top: 16px; border-radius: 11px; background: #385def; color: #fff; padding: 15px 21px; text-decoration: none; font-weight: 700; }
.primary-link:hover { background: #2949cc; }
.workflow { padding: 0 0 118px; }
.section-heading { margin-bottom: 27px; }
.kicker { font-size: .76rem; letter-spacing: .16em; font-weight: 800; color: var(--accent); }
h2 { margin-bottom: 0; font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -.055em; line-height: 1.15; }
.step-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.step { border: 1px solid var(--border); background: var(--surface); border-radius: 17px; padding: 29px; box-shadow: var(--shadow); }
.step-number { display: inline-block; color: var(--accent); font-weight: 800; margin-bottom: 25px; font-size: .89rem; }
.step h3 { margin-bottom: 9px; font-size: 1.22rem; letter-spacing: -.03em; }
.step p { color: var(--muted); margin-bottom: 0; line-height: 1.65; }
.demo { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(30px, 6vw, 85px); padding: 0 0 120px; }
.demo-copy > p:not(.kicker) { color: var(--muted); font-size: 1.05rem; line-height: 1.75; margin-top: 22px; }
.demo-copy .fine-print { font-size: .84rem !important; }
.counter-card { border: 1px solid var(--border); background: var(--surface); border-radius: 22px; padding: clamp(25px, 5vw, 40px); box-shadow: var(--shadow); }
.counter-label { color: var(--muted); font-size: .76rem; font-weight: 770; letter-spacing: .14em; }
#click-count { display: block; font-size: clamp(5.5rem, 13vw, 8rem); font-variant-numeric: tabular-nums; line-height: 1.3; letter-spacing: -.075em; font-weight: 750; }
.counter-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button { border-radius: 11px; border: 1px solid transparent; padding: 12px 18px; font-size: .9rem; font-weight: 720; }
.button-primary { background: #385def; color: #fff; }
.button-primary:hover { background: #2949cc; }
.button-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.save-state { margin: 22px 0 0; color: var(--muted); font-size: .79rem; }
.site-footer { border-top: 1px solid var(--border); padding: 25px 0 40px; display: flex; justify-content: space-between; gap: 15px; flex-wrap: wrap; color: var(--muted); font-size: .82rem; }
@media (max-width: 720px) {
  .site-header { min-height: 75px; }
  .brand { font-size: .95rem; }
  .hero { padding: 65px 0 85px; }
  .workflow { padding-bottom: 85px; }
  .step-grid, .demo { grid-template-columns: 1fr; }
  .demo { padding-bottom: 85px; }
  .step { padding: 23px; }
  .step-number { margin-bottom: 12px; }
}
@media (max-width: 380px) {
  .brand-mark { width: 32px; height: 32px; }
  .theme-toggle { padding: 9px 12px; font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Proposed review-cycle demo: deliberately visible only on the review branch until approved. */
.preview-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 4vw, 55px);
  align-items: center;
  padding: clamp(28px, 5vw, 50px);
  margin-bottom: 105px;
  border-radius: 22px;
  background: var(--surface);
  border: 2px dashed var(--accent);
  box-shadow: var(--shadow);
}
.preview-feature-copy h2 { margin: 16px 0 20px; }
.preview-feature-copy > p { max-width: 460px; color: var(--muted); line-height: 1.7; margin-bottom: 0; }
.preview-tag { display: inline-block; padding: 5px 11px; border-radius: 99px; color: #fff; background: #385def; font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.preview-feature-panel { background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.preview-panel-title { font-weight: 750; margin-bottom: 12px; }
.preview-feature-panel ul { padding-left: 19px; margin: 0 0 13px; color: var(--muted); }
.preview-feature-panel li { padding: 4px 0; }
.preview-panel-footnote { color: var(--muted); font-size: .75rem; }
@media (max-width: 720px) {
  .preview-feature { grid-template-columns: 1fr; margin-bottom: 70px; }
}
