/* ── Reset & tokens ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

:root {
  --bg-0: #0a0c0f;
  --bg-1: #10141a;
  --bg-2: #161c25;
  --bg-3: #1e2630;
  --bg-card: #141920;
  --border: #2a3545;
  --accent: #4a9eff;
  --accent-hover: #6bb3ff;
  --accent-dim: rgba(74,158,255,.12);
  --text-primary: #e8edf4;
  --text-secondary: #8a9ab5;
  --text-muted: #5a6a82;
  --danger: #ff4455;
  --success: #2ecc71;
  --warning: #f39c12;
  --success-dim: rgba(46,204,113,.12);
  --danger-dim: rgba(255,68,85,.12);
  --warn-dim: rgba(243,156,18,.12);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  --radius: 8px;
  --radius-sm: 4px;
  --shadow: 0 4px 24px rgba(0,0,0,.45);
}
html { font-size: 14px; }
body { font-family: var(--font); background: var(--bg-0); color: var(--text-primary); line-height: 1.5; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500; cursor: pointer;
  border: 1px solid transparent; transition: all .15s; white-space: nowrap;
  text-decoration: none !important;
}
.btn-primary { background: var(--accent); color: #000; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--text-secondary); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-3); color: var(--text-primary); border-color: var(--accent); }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-lg { padding: 12px 28px; font-size: 15px; font-weight: 600; }

.spinner {
  width: 20px; height: 20px; border: 2px solid var(--border);
  border-top-color: var(--accent); border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════════════════
   LANDING PAGE
═══════════════════════════════════════════════════════════════════════ */
.landing-page { height: 100vh; background: var(--bg-0); overflow-y: auto; overflow-x: hidden; }

.landing-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 40px; border-bottom: 1px solid var(--border);
  background: rgba(10,12,15,.9); position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(8px);
}
.landing-nav__brand { display: flex; align-items: center; gap: 10px; }
.brand-icon { font-size: 20px; }
.brand-name { font-size: 18px; font-weight: 700; color: var(--text-primary); }

.hero-section {
  display: flex; align-items: center; justify-content: space-between;
  gap: 48px; padding: 80px 40px 60px; max-width: 1200px; margin: 0 auto;
}
.hero-content { flex: 1; max-width: 520px; }
.hero-badge {
  display: inline-block; background: var(--accent-dim); color: var(--accent);
  border: 1px solid rgba(74,158,255,.3); padding: 4px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 600; letter-spacing: .05em; margin-bottom: 20px;
  text-transform: uppercase;
}
.hero-title { font-size: 52px; font-weight: 800; line-height: 1.1; margin-bottom: 20px; }
.hero-subtitle { font-size: 16px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 32px; max-width: 440px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero mock */
.hero-mock { flex: 0 0 420px; }
.mock-app {
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px; box-shadow: var(--shadow); font-size: 12px;
}
.mock-search-row { display: flex; gap: 8px; margin-bottom: 12px; }
.mock-search {
  flex: 1; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 7px 10px; color: var(--text-secondary);
}
.mock-gen-btn {
  background: var(--accent); color: #000; border-radius: var(--radius-sm);
  padding: 7px 12px; font-weight: 600;
}
.mock-summary {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px; margin-bottom: 10px;
}
.mock-summary-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.mock-item-icon { font-size: 24px; }
.mock-item-name { font-size: 13px; font-weight: 600; }
.mock-idiot { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }
.idiot-good { color: var(--success); font-weight: 700; }
.idiot-bad { color: var(--danger); font-weight: 700; }
.mock-cost-row {
  display: flex; justify-content: space-between;
  padding: 4px 0; border-top: 1px solid rgba(42,53,69,.5);
  color: var(--text-secondary);
}
.mock-cost-row.profitable span:last-child { color: var(--success); font-weight: 600; }
.mock-tree { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; }
.mock-node { padding: 3px 0; font-family: var(--mono); font-size: 11px; color: var(--text-secondary); }
.mock-node.root { color: var(--text-primary); font-weight: 600; }
.mock-node.depth1 { padding-left: 12px; }
.mock-node.depth2 { padding-left: 24px; color: var(--text-muted); }
.mock-node.raw { color: var(--text-muted); }

/* Stats strip */
.stats-strip {
  display: flex; justify-content: center; flex-wrap: wrap;
  background: var(--bg-1); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 28px 40px;
}
.stat-item {
  display: flex; flex-direction: column; align-items: center;
  padding: 0 40px; border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-number { font-size: 32px; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

/* Features */
.features-section { max-width: 1200px; margin: 0 auto; padding: 72px 40px; }
.section-title { font-size: 28px; font-weight: 700; text-align: center; margin-bottom: 12px; }
.section-sub { font-size: 15px; color: var(--text-secondary); text-align: center; margin-bottom: 40px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 20px; margin-top: 40px; }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; transition: border-color .2s;
}
.feature-card:hover { border-color: var(--accent); }
.feature-icon { font-size: 24px; margin-bottom: 12px; }
.feature-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* Quickstart */
.quickstart-section { background: var(--bg-1); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 72px 40px; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 24px; margin-top: 40px; max-width: 1200px; margin-left: auto; margin-right: auto; }
.step-card { text-align: center; }
.step-number {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent-dim); color: var(--accent); border: 2px solid var(--accent);
  font-size: 20px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.step-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.step-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* Idiot section */
.idiot-section { max-width: 1200px; margin: 0 auto; padding: 72px 40px; }
.idiot-cards { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 20px; margin-top: 40px; }
.idiot-card { border-radius: var(--radius); padding: 24px; text-align: center; border: 1px solid var(--border); }
.idiot-card.good { background: var(--success-dim); border-color: rgba(46,204,113,.3); }
.idiot-card.neutral { background: var(--warn-dim); border-color: rgba(243,156,18,.3); }
.idiot-card.bad { background: var(--danger-dim); border-color: rgba(255,68,85,.3); }
.idiot-value { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.idiot-card.good .idiot-value { color: var(--success); }
.idiot-card.neutral .idiot-value { color: var(--warning); }
.idiot-card.bad .idiot-value { color: var(--danger); }
.idiot-label { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.idiot-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.6; }

/* CTA */
.cta-section { background: var(--bg-1); border-top: 1px solid var(--border); padding: 80px 40px; text-align: center; }
.cta-section h2 { font-size: 32px; font-weight: 700; margin-bottom: 12px; }
.cta-sub { font-size: 16px; color: var(--text-secondary); margin-bottom: 32px; }

/* Footer */
.landing-footer { background: var(--bg-1); border-top: 1px solid var(--border); padding: 32px 40px; text-align: center; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 12px; }
.footer-copy { font-size: 12px; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px; }
.footer-links { display: flex; justify-content: center; gap: 20px; }
.footer-links a { font-size: 12px; color: var(--text-secondary); }

/* ═══════════════════════════════════════════════════════════════════════
   CRAFT APP
═══════════════════════════════════════════════════════════════════════ */
.craft-app { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }

.craft-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px; background: var(--bg-1); border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.craft-nav__brand { display: flex; align-items: center; gap: 8px; color: inherit; }
.craft-nav__brand:hover { text-decoration: none; }

.craft-body { display: flex; flex: 1; overflow: hidden; }

/* Sidebar */
.craft-sidebar {
  width: 340px; flex-shrink: 0; background: var(--bg-1);
  border-right: 1px solid var(--border); overflow-y: auto;
}
.sidebar-inner { padding: 20px; }
.sidebar-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.sidebar-sub { font-size: 12px; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.6; }

/* Form */
.craft-form { display: flex; flex-direction: column; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-row { display: flex; gap: 10px; }
.form-row .form-group { flex: 1; }
.form-label { font-size: 11px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .05em; }
.form-input, .form-select {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-primary);
  padding: 7px 10px; font-size: 13px; outline: none; width: 100%;
}
.form-input:focus, .form-select:focus { border-color: var(--accent); }
.form-input::placeholder { color: var(--text-muted); }
.form-input--sm { width: 80px; }
.form-actions { display: flex; gap: 8px; padding-top: 4px; }
.form-actions .btn { flex: 1; justify-content: center; }

/* Search dropdown */
.search-wrap { position: relative; }
.search-dropdown {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 200;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  max-height: 240px; overflow-y: auto; box-shadow: var(--shadow);
}
.search-result {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; cursor: pointer; transition: background .1s;
}
.search-result:hover { background: var(--bg-3); }
.search-result img { width: 24px; height: 24px; border-radius: 2px; }
.search-result-name { font-size: 13px; }

/* Selected item */
.selected-item {
  display: flex; align-items: center; gap: 8px; margin-top: 6px;
  padding: 6px 10px; background: var(--accent-dim);
  border: 1px solid rgba(74,158,255,.3); border-radius: var(--radius-sm);
}
.selected-item img { width: 24px; height: 24px; border-radius: 2px; }
.selected-item span { flex: 1; font-size: 13px; font-weight: 500; }
.clear-item { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 14px; padding: 2px; }
.clear-item:hover { color: var(--danger); }

/* About idiot index in sidebar */
.about-idiot {
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border);
}
.about-idiot h3 { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.about-idiot p { font-size: 12px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 12px; }
.idiot-legend { display: flex; flex-direction: column; gap: 6px; }
.idiot-leg-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-secondary); }
.idiot-chip {
  display: inline-block; padding: 2px 8px; border-radius: var(--radius-sm);
  font-size: 11px; font-weight: 700; min-width: 44px; text-align: center;
}
.idiot-chip.good { background: var(--success-dim); color: var(--success); }
.idiot-chip.neutral { background: var(--warn-dim); color: var(--warning); }
.idiot-chip.bad { background: var(--danger-dim); color: var(--danger); }

/* Main content */
.craft-main { flex: 1; overflow-y: auto; padding: 20px; background: var(--bg-0); }

.craft-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; text-align: center; color: var(--text-secondary); padding: 40px; }
.empty-icon { font-size: 48px; margin-bottom: 20px; opacity: .4; }
.craft-empty h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; color: var(--text-primary); }
.craft-empty p { font-size: 14px; max-width: 400px; line-height: 1.7; }

.craft-loading { display: flex; align-items: center; justify-content: center; gap: 12px; height: 200px; color: var(--text-secondary); font-size: 14px; }
.craft-error { display: flex; flex-direction: column; align-items: center; padding: 40px; text-align: center; color: var(--text-secondary); }
.error-icon { font-size: 32px; margin-bottom: 12px; }

/* ── Summary section ────────────────────────────────────────────────── */
.summary-section {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; margin-bottom: 16px;
}
.summary-header {
  display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px;
}
.summary-icon { width: 48px; height: 48px; border-radius: 4px; }
.summary-title-group { flex: 1; }
.summary-item-name { font-size: 18px; font-weight: 700; }
.summary-qty { font-size: 13px; color: var(--text-secondary); }
.summary-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.6; margin-top: 4px; max-width: 500px; }

.cost-grid {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr));
  gap: 12px; margin-bottom: 16px;
}
.cost-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px;
}
.cost-card.profitable { border-color: rgba(46,204,113,.3); background: var(--success-dim); }
.cost-card.expensive { border-color: rgba(255,68,85,.3); background: var(--danger-dim); }
.cost-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: 4px; }
.cost-total { font-size: 16px; font-weight: 700; font-family: var(--mono); }
.cost-card.profitable .cost-total { color: var(--success); }
.cost-card.expensive .cost-total { color: var(--danger); }
.cost-per { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }

.idiot-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px solid var(--border);
}
.idiot-index-val { font-size: 28px; font-weight: 800; font-family: var(--mono); }
.idiot-index-val.good { color: var(--success); }
.idiot-index-val.neutral { color: var(--warning); }
.idiot-index-val.bad { color: var(--danger); }
.idiot-message { font-size: 13px; color: var(--text-secondary); }
.idiot-message strong { color: var(--text-primary); }

.summary-meta { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.meta-item { font-size: 12px; color: var(--text-secondary); }
.meta-item span { color: var(--text-primary); font-weight: 500; }

/* ── Raw materials ──────────────────────────────────────────────────── */
.raw-materials-section {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; margin-bottom: 16px;
}
.raw-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.raw-header h3 { font-size: 14px; font-weight: 600; }
.raw-toggle { cursor: pointer; user-select: none; }
.raw-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.raw-table th {
  text-align: left; padding: 6px 8px; font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.raw-table th.th-num { text-align: right; }
.raw-table td { padding: 6px 8px; border-bottom: 1px solid rgba(42,53,69,.4); color: var(--text-secondary); }
.raw-table tr:last-child td { border-bottom: none; }
.raw-table td.td-name { display: flex; align-items: center; gap: 6px; color: var(--text-primary); }
.raw-table td.td-name img { width: 20px; height: 20px; border-radius: 2px; }
.td-num { font-family: var(--mono); text-align: right; }
.raw-show-more { text-align: center; padding: 8px; }

/* ── Tree ───────────────────────────────────────────────────────────── */
.tree-section {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
}
.tree-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.tree-header h3 { font-size: 14px; font-weight: 600; }
.tree-actions { display: flex; gap: 6px; }

/* Tree nodes */
.tree-node { border-left: 2px solid var(--border); margin-left: 0; }
.tree-node.depth-0 { border-left: none; }
.tree-node.depth-1 { margin-left: 16px; }
.tree-node.depth-2 { margin-left: 32px; }
.tree-node.depth-3 { margin-left: 48px; }
.tree-node.depth-4 { margin-left: 64px; }

.node-row {
  display: flex; align-items: flex-start; gap: 0;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: 6px; overflow: hidden; background: var(--bg-2);
  transition: border-color .15s;
}
.node-row:hover { border-color: rgba(74,158,255,.3); }
.node-row.expanded { border-color: var(--accent); }

.node-expand {
  display: flex; align-items: center; justify-content: center;
  width: 32px; flex-shrink: 0;
  background: var(--bg-3); border-right: 1px solid var(--border);
  cursor: pointer; font-size: 14px; color: var(--text-muted);
  user-select: none; transition: background .1s; align-self: stretch;
}
.node-expand:hover { background: var(--accent-dim); color: var(--accent); }
.node-expand.no-children { cursor: default; }
.node-expand.no-children:hover { background: var(--bg-3); color: var(--text-muted); }

.node-body { flex: 1; padding: 10px 12px; min-width: 0; }
.node-main { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.node-icon { width: 28px; height: 28px; border-radius: 3px; flex-shrink: 0; }
.node-name { font-size: 13px; font-weight: 600; flex: 1; min-width: 140px; }
.node-qty { font-size: 12px; color: var(--text-secondary); white-space: nowrap; }
.node-prices { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.node-price-item { font-size: 11px; color: var(--text-secondary); }
.node-price-item span { font-family: var(--mono); }
.node-price-item.profitable span { color: var(--success); }
.node-price-item.expensive span { color: var(--danger); }
.node-idiot { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: var(--radius-sm); font-size: 11px; font-weight: 700; font-family: var(--mono); }
.node-idiot.good { background: var(--success-dim); color: var(--success); border: 1px solid rgba(46,204,113,.3); }
.node-idiot.neutral { background: var(--warn-dim); color: var(--warning); border: 1px solid rgba(243,156,18,.3); }
.node-idiot.bad { background: var(--danger-dim); color: var(--danger); border: 1px solid rgba(255,68,85,.3); }
.node-raw-badge {
  font-size: 10px; padding: 1px 6px; border-radius: var(--radius-sm);
  background: var(--bg-3); color: var(--text-muted); border: 1px solid var(--border);
}
.node-detail { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.node-detail-item { font-size: 11px; color: var(--text-muted); }
.node-detail-item span { color: var(--text-secondary); }

.node-children { margin-top: 6px; }

/* Modals */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.65); backdrop-filter: blur(4px);
  z-index: 1000; display: flex; align-items: center; justify-content: center;
}
.modal-box { background: var(--bg-1); border: 1px solid var(--border); border-radius: 12px; width: 460px; max-width: 95vw; box-shadow: var(--shadow); }
.modal-box--sm { width: 320px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-header h3 { font-size: 15px; font-weight: 600; }
.modal-close { background: none; border: none; color: var(--text-secondary); font-size: 16px; cursor: pointer; padding: 4px; border-radius: 4px; }
.modal-close:hover { background: var(--bg-3); }
.modal-body { padding: 20px; }
.shortcut-list { display: flex; flex-direction: column; gap: 10px; }
.shortcut-row { display: flex; align-items: center; gap: 16px; font-size: 13px; }
kbd { background: var(--bg-3); border: 1px solid var(--border); border-radius: 4px; padding: 3px 8px; font-size: 12px; font-family: var(--mono); min-width: 32px; text-align: center; }

/* Responsive */
@media (max-width: 900px) {
  .hero-section { flex-direction: column; padding: 40px 20px; }
  .hero-title { font-size: 36px; }
  .hero-mock { display: none; }
  .stat-item { padding: 0 20px; }
  .craft-body { flex-direction: column; }
  .craft-sidebar { width: 100%; max-height: 50vh; border-right: none; border-bottom: 1px solid var(--border); }
}

/* ── evemail-standard landing page classes ─────────────────────────────────── */
.lp-nav { position: sticky; top: 0; z-index: 100; background: rgba(10,12,15,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.lp-nav__inner { max-width: 1200px; margin: 0 auto; padding: .9rem 2rem; display: flex; align-items: center; justify-content: space-between; }
.lp-nav__logo { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); }
.btn--primary { background: var(--accent); color: #fff; border: none; padding: .55rem 1.2rem; border-radius: var(--radius); cursor: pointer; font-weight: 600; font-size: .9rem; text-decoration: none; display: inline-flex; align-items: center; transition: background .15s; }
.btn--primary:hover { background: var(--accent-hover); text-decoration: none; }
.btn--ghost  { background: var(--bg-2); color: var(--text-primary); border: 1px solid var(--border); padding: .55rem 1.2rem; border-radius: var(--radius); cursor: pointer; font-weight: 600; font-size: .9rem; text-decoration: none; display: inline-flex; align-items: center; }
.btn--ghost:hover { background: var(--bg-3); text-decoration: none; }
.btn--lg { padding: .75rem 1.75rem; font-size: 1rem; }

.hero.hero--split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 4rem; max-width: 1200px; margin: 0 auto; padding: 5rem 2rem 4rem; position: relative; overflow: hidden; min-height: 520px; }
.hero__glow { position: absolute; top: -200px; left: 0; width: 600px; height: 600px; background: radial-gradient(circle, rgba(74,158,255,.1) 0%, transparent 70%); pointer-events: none; }
.hero__content { position: relative; z-index: 1; }
.hero__title { font-size: clamp(2rem,4vw,3.2rem); font-weight: 700; line-height: 1.15; margin-bottom: 1.25rem; }
.hero__accent { color: var(--accent); }
.hero__sub { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 2rem; max-width: 520px; }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__visual { position: relative; z-index: 1; }
.lp-badge { display: inline-block; padding: .3rem .9rem; background: rgba(74,158,255,.1); color: var(--accent); border: 1px solid rgba(74,158,255,.25); border-radius: 100px; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .75rem; }

.stats-strip .stat-sep { width: 1px; height: 40px; background: var(--border); }
.stats-strip .stat-num { font-size: 1.6rem; font-weight: 800; color: var(--accent); }
.stats-strip .stat-item { display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: 0 2.5rem; border-right: none; }
.stats-strip .stat-label { font-size: .8rem; color: var(--text-secondary); }

.mock-panel { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-width: 300px; }
.mock-panel__header { background: var(--bg-1); padding: .75rem 1rem; display: flex; align-items: center; gap: .5rem; }
.mock-dot { width: 12px; height: 12px; border-radius: 50%; }
.mock-dot--red    { background: #ef4444; }
.mock-dot--yellow { background: #eab308; }
.mock-dot--green  { background: #22c55e; }
.mock-panel__title { font-size: .8rem; color: var(--text-secondary); margin-left: .25rem; }
.mock-panel__body { padding: 1rem; }
.mock-summary { background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius); padding: .75rem; margin-bottom: .75rem; }
.mock-summary__title { font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.mock-idiot { font-size: .8rem; color: var(--text-secondary); margin-bottom: .5rem; }
.mock-idiot__val { font-family: var(--mono); font-weight: 700; }
.mock-idiot--good { color: var(--success); }
.mock-costs { display: flex; flex-direction: column; gap: .2rem; }
.mock-cost-row { display: flex; justify-content: space-between; font-size: .8rem; color: var(--text-secondary); }
.mock-cost-row--profit { color: var(--success); font-weight: 600; }
.mock-tree { display: flex; flex-direction: column; gap: .25rem; font-family: var(--mono); font-size: .78rem; }
.mock-node { padding: .2rem .4rem; border-radius: 4px; }
.mock-node--root { color: var(--text-primary); font-weight: 600; }
.mock-node--d1 { padding-left: 12px; color: var(--text-primary); }
.mock-node--d2 { padding-left: 24px; color: var(--text-secondary); }
.mock-node--raw { padding-left: 36px; color: var(--text-muted); }

.lp-section { padding: 5rem 2rem; }
.lp-section--alt { background: var(--bg-1); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.lp-section__inner { max-width: 1100px; margin: 0 auto; }
.lp-section__header { text-align: center; margin-bottom: 3rem; }
.lp-section__header h2 { font-size: clamp(1.6rem,3vw,2.2rem); font-weight: 700; margin-top: .75rem; }

.feat-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 1.5rem; }
.feat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; transition: border-color .2s; }
.feat-card:hover { border-color: var(--accent); }
.feat-card__icon { font-size: 2rem; margin-bottom: 1rem; }
.feat-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: .5rem; }
.feat-card p { color: var(--text-secondary); font-size: .9rem; line-height: 1.6; margin-bottom: 1rem; }
.feat-card__list { list-style: none; display: flex; flex-direction: column; gap: .35rem; }
.feat-card__list li { font-size: .85rem; color: var(--text-secondary); padding-left: 1.2rem; position: relative; }
.feat-card__list li::before { content: '→'; position: absolute; left: 0; color: var(--accent); }

.steps { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 2rem; }
.step { display: flex; flex-direction: column; align-items: flex-start; }
.step__num { font-size: 2.5rem; font-weight: 800; color: var(--accent); opacity: .3; line-height: 1; margin-bottom: .75rem; }
.step__connector { width: 60%; height: 2px; background: linear-gradient(90deg,var(--accent),transparent); margin: .25rem 0 .75rem; opacity: .3; }
.step__content h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: .5rem; }
.step__content p { color: var(--text-secondary); font-size: .9rem; line-height: 1.6; }

.idiot-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 1.25rem; margin-top: 2rem; }
.idiot-card { border-radius: var(--radius); padding: 1.5rem; text-align: center; border: 1px solid var(--border); }
.idiot-card--good    { background: var(--success-dim); border-color: rgba(46,204,113,.3); }
.idiot-card--neutral { background: var(--warn-dim);    border-color: rgba(243,156,18,.3); }
.idiot-card--bad     { background: var(--danger-dim);  border-color: rgba(255,68,85,.3); }
.idiot-card__val { font-size: 2rem; font-weight: 800; margin-bottom: .5rem; }
.idiot-card--good    .idiot-card__val { color: var(--success); }
.idiot-card--neutral .idiot-card__val { color: var(--warning); }
.idiot-card--bad     .idiot-card__val { color: var(--danger); }
.idiot-card__label { font-size: .9rem; font-weight: 600; margin-bottom: .5rem; }
.idiot-card p { font-size: .82rem; color: var(--text-secondary); line-height: 1.5; }

.tech-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 1.25rem; }
.tech-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.tech-card__name { font-weight: 700; color: var(--accent); font-size: 1.05rem; margin-bottom: .5rem; }
.tech-card__desc { font-size: .85rem; color: var(--text-secondary); line-height: 1.5; }

.cta-section { position: relative; overflow: hidden; text-align: center; padding: 6rem 2rem; background: var(--bg-1); border-top: 1px solid var(--border); }
.cta-section__glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 700px; height: 400px; background: radial-gradient(ellipse,rgba(74,158,255,.08) 0%,transparent 70%); pointer-events: none; }
.cta-section__content { position: relative; z-index: 1; }
.cta-section h2 { font-size: clamp(1.8rem,3vw,2.5rem); font-weight: 700; margin-bottom: 1rem; }
.cta-section p  { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 2rem; }

.landing-footer { background: var(--bg-1); border-top: 1px solid var(--border); padding: 2rem; text-align: center; }
.landing-footer__top { display: flex; align-items: center; justify-content: space-between; max-width: 1100px; margin: 0 auto 1rem; flex-wrap: wrap; gap: 1rem; }
.landing-footer__brand { font-weight: 700; font-size: 1rem; }
.landing-footer__nav { display: flex; gap: 1.5rem; }
.landing-footer__nav a { color: var(--text-secondary); font-size: .9rem; text-decoration: none; }
.landing-footer__nav a:hover { color: var(--text-primary); }
.landing-footer__legal { font-size: .78rem; color: var(--text-muted); max-width: 700px; margin: 0 auto; }
