:root {
  color-scheme: light;
  --bg: #f5f4ef;
  --bg-soft: #ecebe4;
  --panel: #ffffff;
  --panel-subtle: #fbfaf6;
  --text: #1d1c1b;
  --text-soft: #3d3c3a;
  --muted: #7a7872;
  --muted-2: #9a988f;
  --border: #e6e4dc;
  --border-strong: #d7d4c9;
  --accent: #c15f3c;
  --accent-soft: rgba(193, 95, 60, 0.10);
  --accent-ring: rgba(193, 95, 60, 0.28);
  --hover: #f0eee8;
  --kbd-bg: #eeece4;
  --shadow-sm: 0 1px 2px rgba(29, 28, 27, 0.04);
  --shadow-md: 0 6px 24px -8px rgba(29, 28, 27, 0.12), 0 2px 6px -2px rgba(29, 28, 27, 0.06);
  --shadow-lg: 0 24px 80px -20px rgba(29, 28, 27, 0.25), 0 8px 24px -8px rgba(29, 28, 27, 0.08);

  --font-ui: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-serif: 'Source Serif 4', 'Iowan Old Style', 'Georgia', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #1d1c1b;
    --bg-soft: #222220;
    --panel: #2a2a27;
    --panel-subtle: #262624;
    --text: #ededea;
    --text-soft: #d6d5d0;
    --muted: #98968d;
    --muted-2: #797770;
    --border: #3a3a37;
    --border-strong: #4a4945;
    --accent: #d97757;
    --accent-soft: rgba(217, 119, 87, 0.14);
    --accent-ring: rgba(217, 119, 87, 0.32);
    --hover: #3a3a37;
    --kbd-bg: #3a3a37;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 6px 24px -8px rgba(0, 0, 0, 0.45), 0 2px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 24px 80px -20px rgba(0, 0, 0, 0.55), 0 8px 24px -8px rgba(0, 0, 0, 0.3);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

a { color: inherit; text-decoration: none; }

kbd {
  display: inline-block;
  padding: 1px 6px;
  background: var(--kbd-bg);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-soft);
  line-height: 1.4;
  vertical-align: 1px;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 5px;
  color: var(--text-soft);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 140ms ease, background-color 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
  white-space: nowrap;
}

.btn-lg {
  padding: 14px 22px;
  font-size: 0.95rem;
  border-radius: 12px;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.btn-primary:hover {
  background: var(--text-soft);
  border-color: var(--text-soft);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--text-soft);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--panel);
  border-color: var(--border-strong);
  color: var(--text);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 28px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.2) blur(12px);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background 200ms ease;
}

.nav.scrolled {
  border-bottom-color: var(--border);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.nav-brand img {
  display: block;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 120ms ease, color 120ms ease;
}

.nav-links a:hover {
  background: var(--hover);
  color: var(--text);
}

.nav-cta {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.nav-cta .btn {
  padding: 8px 14px;
  font-size: 0.85rem;
  border-radius: 8px;
}

@media (max-width: 760px) {
  .nav { padding: 12px 16px; gap: 8px; }
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 28px 60px;
  overflow: hidden;
}

.hero-inner {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-sm);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  animation: pulseDot 2.4s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 3px var(--accent-soft); }
  50%      { box-shadow: 0 0 0 6px transparent; }
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.2rem, 5.2vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 28px auto 20px;
  color: var(--text);
  max-width: 16ch;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
  position: relative;
}

.hero-title em::after {
  content: '';
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: -0.06em;
  height: 0.08em;
  background: var(--accent);
  opacity: 0.28;
  border-radius: 999px;
}

.hero-sub {
  max-width: 56ch;
  margin: 0 auto 28px;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 28px;
}

.hero-trust {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 18px 22px;
  justify-content: center;
  font-size: 0.82rem;
  color: var(--muted);
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-trust .check {
  color: var(--accent);
  font-weight: 700;
}

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 0%, var(--accent-soft) 0%, transparent 60%),
    radial-gradient(40% 40% at 80% 30%, rgba(193, 95, 60, 0.05) 0%, transparent 70%);
  z-index: 0;
}

/* ---------- Section head (shared) ---------- */
.section-head {
  max-width: 680px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-label {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-head h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--text);
}

.section-head p {
  margin: 0 auto;
  color: var(--text-soft);
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 58ch;
}

/* ---------- Demo ---------- */
.demo {
  padding: 64px 28px 96px;
  max-width: 1200px;
  margin: 0 auto;
}

.demo-frame {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin: 0 auto;
  max-width: 1120px;
}

.demo-chrome {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 12px 16px;
  background: var(--panel-subtle);
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.chrome-dots {
  display: inline-flex;
  gap: 6px;
}

.chrome-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border-strong);
}

.chrome-dots span:nth-child(1) { background: #e56767; }
.chrome-dots span:nth-child(2) { background: #e3b341; }
.chrome-dots span:nth-child(3) { background: #63c97a; }

.chrome-address {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  justify-self: center;
}

.chrome-lock {
  color: var(--accent);
}

.chrome-action {
  justify-self: end;
}

.chrome-action a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: var(--muted);
  transition: background 120ms ease, color 120ms ease;
}

.chrome-action a:hover {
  background: var(--hover);
  color: var(--text);
}

.demo-body {
  position: relative;
  background: var(--bg);
  aspect-ratio: 16 / 10;
  min-height: 560px;
}

.demo-body iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.demo-hint {
  margin: 22px auto 0;
  max-width: 640px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.hint-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: 8px;
  vertical-align: 1px;
}

@media (max-width: 720px) {
  .demo-body { min-height: 460px; }
  .chrome-address { display: none; }
  .demo-chrome { grid-template-columns: 1fr auto; }
}

/* ---------- Features ---------- */
.features {
  padding: 64px 28px;
  max-width: 1120px;
  margin: 0 auto;
}

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

.feature {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.feature:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text);
}

.feature p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

.feature p code {
  font-size: 0.85em;
  padding: 0 5px;
}

/* ---------- Split showcase ---------- */
.split {
  padding: 80px 28px;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.split-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 900px) {
  .split-inner { grid-template-columns: 1fr; gap: 40px; }
}

.split-copy .section-label {
  margin-bottom: 14px;
}

.split-copy h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--text);
  max-width: 22ch;
}

.split-copy > p {
  color: var(--text-soft);
  line-height: 1.65;
  font-size: 1rem;
  margin: 0 0 22px;
  max-width: 48ch;
}

.split-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.split-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-soft);
  font-size: 0.94rem;
  line-height: 1.5;
}

.split-points .dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 9px;
}

.split-visual {
  position: relative;
  display: grid;
  gap: 18px;
}

.mini-window {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.mini-visual { transform: translateX(-6%) rotate(-0.6deg); }
.mini-code   { transform: translateX(6%)  rotate(0.6deg);  margin-top: -40px; z-index: 1; position: relative; }

@media (max-width: 560px) {
  .mini-visual, .mini-code { transform: none; }
  .mini-code { margin-top: 0; }
}

.mini-chrome {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: var(--panel-subtle);
  border-bottom: 1px solid var(--border);
}

.mini-chrome span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
}

.mini-chrome span:nth-child(1) { background: #e56767; }
.mini-chrome span:nth-child(2) { background: #e3b341; }
.mini-chrome span:nth-child(3) { background: #63c97a; }

.mini-body {
  padding: 22px 26px;
  min-height: 180px;
}

.mini-body.serif {
  font-family: var(--font-serif);
  color: var(--text);
  line-height: 1.65;
  font-size: 0.98rem;
}

.mini-body.mono {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--text-soft);
}

.mini-h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: var(--text);
}

.mini-tasks {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 6px;
}

.mini-tasks li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mini-tasks .box {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--panel);
  background: var(--panel);
}

.mini-tasks .box.checked {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.tk-h  { color: var(--accent); }
.tk-em { color: var(--text-soft); font-style: italic; }
.tk-b  { color: var(--text); font-weight: 700; }
.tk-li { color: var(--muted-2); }

/* ---------- Shortcuts ---------- */
.shortcuts {
  padding: 80px 28px;
  max-width: 1120px;
  margin: 0 auto;
}

.shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.sc {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 14px;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.sc:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.sc-keys {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.sc-desc {
  color: var(--text-soft);
  font-size: 0.85rem;
  line-height: 1.4;
}

.sc-desc code {
  font-size: 0.82em;
  padding: 0 4px;
}

@media (max-width: 960px) {
  .shortcuts-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 520px) {
  .shortcuts-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- FAQ ---------- */
.faq {
  padding: 80px 28px;
  max-width: 760px;
  margin: 0 auto;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq details {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2px 22px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.faq details[open] {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.faq summary {
  padding: 18px 0;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--muted);
  transition: transform 180ms ease;
  flex: 0 0 auto;
}

.faq details[open] summary::after {
  content: '−';
  color: var(--accent);
}

.faq details p {
  margin: 0 0 18px;
  color: var(--text-soft);
  line-height: 1.65;
  font-size: 0.94rem;
}

/* ---------- Final CTA ---------- */
.final-cta {
  padding: 80px 28px;
  text-align: center;
  background:
    radial-gradient(70% 100% at 50% 0%, var(--accent-soft) 0%, transparent 70%),
    var(--bg);
  border-top: 1px solid var(--border);
}

.final-inner {
  max-width: 620px;
  margin: 0 auto;
}

.final-inner h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 16px;
  color: var(--text);
}

.final-inner p {
  color: var(--text-soft);
  font-size: 1.05rem;
  margin: 0 0 32px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

.site-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  font-weight: 600;
}

.site-footer-brand img {
  display: block;
  border-radius: 5px;
}

.site-footer-meta {
  display: inline-flex;
  gap: 20px;
  align-items: center;
}

.site-footer-meta a:hover {
  color: var(--text);
}

@media (max-width: 560px) {
  .site-footer-inner { flex-direction: column; align-items: flex-start; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
