/* ============ EditVolt design system — Claude light theme ============ */
:root {
  --bg: #faf9f5;
  --bg-soft: #f4f2ea;
  --panel: #ffffff;
  --panel-2: #f0eee4;
  --border: #e3e0d5;
  --text: #29261b;
  --text-dim: #6f6a58;
  --volt: #d97757;
  --volt-soft: #c6613f;
  --volt-dim: rgba(217, 119, 87, 0.1);
  --blue: #3a70c2;
  --green: #2f9e44;
  --red: #d64545;
  --amber: #e8a33d;
  --radius: 12px;
  --mono: "SF Mono", "Cascadia Code", "Fira Code", Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ============ Nav ============ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 249, 245, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.logo img { height: 34px; width: auto; display: block; }
.footer .logo img { height: 30px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14.5px; color: var(--text-dim); }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--volt-soft); }
.nav-cta {
  background: var(--volt); color: #fff !important; font-weight: 600;
  padding: 8px 18px; border-radius: 8px; transition: all 0.15s;
}
.nav-cta:hover { background: var(--volt-soft); transform: translateY(-1px); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 10px; font-size: 15.5px; font-weight: 600;
  transition: all 0.15s; cursor: pointer; border: none;
}
.btn-volt { background: var(--volt); color: #fff; box-shadow: 0 8px 24px rgba(217, 119, 87, 0.25); }
.btn-volt:hover { background: var(--volt-soft); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(217, 119, 87, 0.35); }
.btn-ghost { background: var(--panel); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--text-dim); transform: translateY(-2px); }

/* ============ Hero ============ */
.hero { padding: 96px 0 64px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 500px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(217, 119, 87, 0.08), transparent);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--volt-dim); color: var(--volt-soft); border: 1px solid rgba(217, 119, 87, 0.35);
  font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px; margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 64px); font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.1; max-width: 820px; margin: 0 auto 24px;
}
.hero h1 em { font-style: normal; color: var(--volt); }
.hero p.lede { font-size: 19px; color: var(--text-dim); max-width: 620px; margin: 0 auto 40px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--text-dim); }

/* ============ Section scaffolding ============ */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head .eyebrow { color: var(--volt-soft); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.section-head p { color: var(--text-dim); font-size: 17px; }

/* ============ Cards / grids ============ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: all 0.2s; box-shadow: 0 1px 3px rgba(41, 38, 27, 0.04);
}
.card:hover { border-color: rgba(217, 119, 87, 0.45); transform: translateY(-3px); box-shadow: 0 12px 32px rgba(41, 38, 27, 0.08); }
.card .icon {
  width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: var(--volt-dim); margin-bottom: 18px; font-size: 21px;
}
.card h3 { font-size: 17.5px; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--text-dim); }

/* ============ IDE window mockup ============ */
.ide-window {
  max-width: 980px; margin: 72px auto 0; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border); background: var(--panel);
  box-shadow: 0 30px 80px rgba(41, 38, 27, 0.14);
  text-align: left; font-size: 13px;
}
.ide-titlebar {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  background: var(--panel-2); border-bottom: 1px solid var(--border);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-r { background: #ff5f56; } .dot-y { background: #ffbd2e; } .dot-g { background: #27c93f; }
.ide-titlebar .title { flex: 1; text-align: center; color: var(--text-dim); font-size: 12.5px; }
.ide-body { display: grid; grid-template-columns: 190px 1fr 300px; min-height: 380px; }
.ide-sidebar { background: var(--bg-soft); border-right: 1px solid var(--border); padding: 14px 0; font-family: var(--mono); font-size: 12px; }
.ide-sidebar .tree-label { padding: 4px 16px; color: var(--text-dim); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; font-family: inherit; }
.ide-sidebar .tree-item { padding: 4px 16px; color: var(--text-dim); cursor: default; }
.ide-sidebar .tree-item.open { color: var(--volt-soft); background: var(--volt-dim); }
.ide-sidebar .tree-item.nested { padding-left: 30px; }
.ide-editor { padding: 16px 20px; font-family: var(--mono); font-size: 12.5px; line-height: 1.75; overflow-x: auto; }
.ide-editor .ln { color: #c2beb0; display: inline-block; width: 26px; user-select: none; }
.c-kw { color: #a626a4; } .c-fn { color: #3a70c2; } .c-str { color: #50a14f; }
.c-cm { color: #a3a08f; font-style: italic; } .c-num { color: #b76b01; } .c-type { color: #c18401; }
.ghost-suggestion { color: #b0ac9e; font-style: italic; }
.ai-panel { background: var(--bg-soft); border-left: 1px solid var(--border); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ai-panel .ai-head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; color: var(--volt-soft); }
.ai-msg { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 12px; color: var(--text-dim); }
.ai-msg.user { background: var(--volt-dim); border-color: rgba(217, 119, 87, 0.3); color: var(--text); }
.ai-input {
  margin-top: auto; background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 12px; font-size: 12px; color: var(--text-dim); display: flex; justify-content: space-between; align-items: center;
}
.kbd {
  font-family: var(--mono); font-size: 10.5px; background: var(--panel-2); border: 1px solid var(--border);
  border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; color: var(--text-dim);
}

/* ============ Stats ============ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; text-align: center; }
.stat .num { font-size: 40px; font-weight: 800; color: var(--volt); letter-spacing: -0.02em; }
.stat .label { color: var(--text-dim); font-size: 14px; }

/* ============ Feature rows (features page) ============ */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 56px 0; }
.feature-row.reverse .feature-copy { order: 2; }
.feature-copy .eyebrow { color: var(--volt-soft); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 10px; }
.feature-copy h3 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.feature-copy p { color: var(--text-dim); margin-bottom: 16px; }
.feature-copy ul { list-style: none; }
.feature-copy li { padding-left: 26px; position: relative; margin-bottom: 10px; color: var(--text-dim); font-size: 15px; }
.feature-copy li::before { content: "⚡"; position: absolute; left: 0; color: var(--volt); font-size: 13px; }
.feature-visual {
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 22px;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.8; color: var(--text-dim);
  box-shadow: 0 16px 44px rgba(41, 38, 27, 0.1);
}

/* ============ Pricing ============ */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 34px 30px;
  display: flex; flex-direction: column; position: relative;
  box-shadow: 0 1px 3px rgba(41, 38, 27, 0.04);
}
.price-card.featured { border-color: var(--volt); box-shadow: 0 16px 48px rgba(217, 119, 87, 0.18); }
.price-card .plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--volt); color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 14px; border-radius: 999px;
}
.price-card h3 { font-size: 18px; font-weight: 700; }
.price-card .price { font-size: 44px; font-weight: 800; margin: 14px 0 2px; letter-spacing: -0.02em; }
.price-card .price span { font-size: 15px; font-weight: 500; color: var(--text-dim); }
.price-card .desc { color: var(--text-dim); font-size: 14px; margin-bottom: 24px; }
.price-card ul { list-style: none; margin-bottom: 28px; flex: 1; }
.price-card li { padding-left: 26px; position: relative; margin-bottom: 11px; font-size: 14.5px; color: var(--text-dim); }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.price-card .btn { justify-content: center; }

/* ============ FAQ ============ */
.faq { max-width: 720px; margin: 0 auto; }
.faq details {
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  padding: 18px 22px; margin-bottom: 12px;
}
.faq summary { font-weight: 600; cursor: pointer; font-size: 15.5px; }
.faq details p { color: var(--text-dim); font-size: 14.5px; margin-top: 12px; }

/* ============ Docs layout ============ */
.docs-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; padding: 48px 0 96px; }
.docs-nav { position: sticky; top: 96px; align-self: start; font-size: 14px; }
.docs-nav .group { margin-bottom: 24px; }
.docs-nav .group-title { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); font-weight: 700; margin-bottom: 10px; }
.docs-nav a { display: block; padding: 6px 12px; border-radius: 7px; color: var(--text-dim); border-left: 2px solid transparent; }
.docs-nav a:hover { color: var(--text); background: var(--bg-soft); }
.docs-nav a.active { color: var(--volt-soft); border-left-color: var(--volt); background: var(--volt-dim); border-radius: 0 7px 7px 0; }
.docs-content h1 { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.docs-content .doc-lede { color: var(--text-dim); font-size: 17px; margin-bottom: 36px; }
.docs-content h2 { font-size: 22px; font-weight: 700; margin: 40px 0 14px; padding-top: 16px; border-top: 1px solid var(--border); }
.docs-content p { color: var(--text-dim); margin-bottom: 14px; font-size: 15.5px; }
.docs-content code { font-family: var(--mono); font-size: 13px; background: var(--panel-2); border: 1px solid var(--border); padding: 2px 6px; border-radius: 5px; color: var(--volt-soft); }
.codeblock {
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px 18px; font-family: var(--mono); font-size: 13px; line-height: 1.7;
  overflow-x: auto; margin: 16px 0; color: var(--text);
}
.callout {
  border-left: 3px solid var(--volt); background: var(--volt-dim); border-radius: 0 10px 10px 0;
  padding: 14px 18px; margin: 20px 0; font-size: 14.5px; color: var(--text-dim);
}

/* ============ Download page ============ */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dl-card { text-align: center; padding: 40px 28px; }
.dl-card .os-icon { font-size: 48px; margin-bottom: 16px; }
.dl-card .meta { font-size: 13px; color: var(--text-dim); margin: 8px 0 20px; }
.req-table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin-top: 8px; }
.req-table th, .req-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.req-table th { color: var(--text-dim); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
.req-table td:first-child { color: var(--text-dim); }

/* ============ CTA band ============ */
.cta-band {
  text-align: center; padding: 88px 24px; border-top: 1px solid var(--border);
  background: radial-gradient(ellipse at 50% 0%, rgba(217, 119, 87, 0.07), transparent 60%);
}
.cta-band h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.cta-band p { color: var(--text-dim); margin-bottom: 32px; }

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--border); padding: 56px 0 40px; background: var(--bg-soft); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer .logo { margin-bottom: 12px; }
.footer p { color: var(--text-dim); font-size: 13.5px; max-width: 260px; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: 14px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 9px; }
.footer li a { color: var(--text-dim); font-size: 14px; }
.footer li a:hover { color: var(--volt-soft); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; color: var(--text-dim); font-size: 13px; flex-wrap: wrap; gap: 12px; }

/* ============ Page hero (inner pages) ============ */
.page-hero { padding: 72px 0 24px; text-align: center; }
.page-hero h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 14px; }
.page-hero h1 em { font-style: normal; color: var(--volt); }
.page-hero p { color: var(--text-dim); font-size: 17px; max-width: 560px; margin: 0 auto; }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .grid-3, .pricing-grid, .dl-grid, .stats { grid-template-columns: 1fr 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 28px; }
  .feature-row.reverse .feature-copy { order: 0; }
  .ide-body { grid-template-columns: 1fr; }
  .ide-sidebar, .ai-panel { display: none; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-nav { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { gap: 16px; }
  .nav-links .hide-mobile { display: none; }
}
@media (max-width: 560px) {
  .grid-3, .pricing-grid, .dl-grid, .stats, .grid-2 { grid-template-columns: 1fr; }
}

/* ============ Legal pages ============ */
.legal { max-width: 780px; margin: 0 auto; padding: 8px 24px 96px; }
.legal .updated { color: var(--text-dim); font-size: 13.5px; margin-bottom: 32px; }
.legal h2 { font-size: 20px; }
.legal ul { margin: 0 0 14px 22px; color: var(--text-dim); font-size: 15.5px; }
.legal li { margin-bottom: 8px; }
.legal .req-table { font-size: 14px; }

/* ============ Auth page ============ */
.auth-wrap { min-height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 18px;
  padding: 44px 40px; width: 100%; max-width: 420px; text-align: center;
  box-shadow: 0 20px 60px rgba(41, 38, 27, 0.1);
}
.auth-card .logo { justify-content: center; margin-bottom: 10px; }
.auth-card h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }
.auth-card .sub { color: var(--text-dim); font-size: 14.5px; margin-bottom: 30px; }
.auth-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 12px 16px; border-radius: 10px; font-size: 15px; font-weight: 600;
  border: 1px solid var(--border); margin-bottom: 12px; transition: all 0.15s; cursor: pointer;
}
.auth-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(41, 38, 27, 0.1); }
.auth-btn.github { background: #24292f; color: #fff; border-color: #24292f; }
.auth-btn.google { background: #fff; color: var(--text); }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--text-dim); font-size: 12.5px; margin: 22px 0; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-input {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font-size: 14.5px; margin-bottom: 12px; outline: none;
}
.auth-input:focus { border-color: var(--volt); }
.auth-note { font-size: 12.5px; color: var(--text-dim); margin-top: 20px; }
.auth-note a { color: var(--volt-soft); }
