:root {
  --bg: #0f1419;
  --surface: #1a2332;
  --surface-2: #243044;
  --text: #e7ecf3;
  --muted: #94a3b8;
  --accent: #d97757;
  --accent-2: #6ee7b7;
  --border: #334155;
  --ok: #22c55e;
  --warn: #f59e0b;
  --bad: #ef4444;
  --radius: 14px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 920px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: radial-gradient(ellipse 120% 80% at 50% -20%, #2a1f1a 0%, var(--bg) 55%);
}

a {
  color: var(--accent);
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(15, 20, 25, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}

.brand span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 16px;
  font-size: 0.875rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

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

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 20px 24px;
  text-align: center;
}

.landing-hero {
  text-align: left;
  max-width: 720px;
}

.eyebrow {
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 12px;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.honest-box {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-top: 8px;
}

.honest-box h2 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.honest-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 600px) {
  .honest-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.honest-box h3 {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: var(--accent-2);
}

.honest-box p,
.honest-box li {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.honest-box ul {
  padding-left: 18px;
  margin: 0;
}

.honest-footer {
  margin-top: 14px !important;
  font-size: 0.85rem !important;
  font-style: italic;
}

.waitlist-section {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.waitlist-card h2 {
  margin: 0 0 8px;
}

.waitlist-sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 18px;
}

.waitlist-form .field-row {
  display: grid;
  gap: 12px;
}

@media (min-width: 480px) {
  .waitlist-form .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

.cta-btn {
  width: 100%;
  margin-top: 8px;
  padding: 14px 20px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #111;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}

.cta-btn:hover {
  filter: brightness(1.06);
}

.waitlist-msg {
  margin-top: 12px;
  font-size: 0.875rem;
  padding: 10px 12px;
  border-radius: 8px;
}

.waitlist-msg.ok {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
}

.waitlist-msg.err {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

.dev-export {
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}

.demo-details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
  padding: 0 20px;
  max-width: var(--max);
  margin: 0 auto;
}

.demo-details {
  max-width: var(--max);
  margin: 0 auto 48px;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.2;
  margin: 0 0 12px;
}

.hero p {
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 8px;
}

.disclaimer {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 12px;
}

.calc-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px 48px;
}

.calc-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 860px) {
  .calc-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.panel h2 {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 600;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.field input,
.field select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.95rem;
}

.field input:focus,
.field select:focus {
  outline: 2px solid rgba(217, 119, 87, 0.45);
  border-color: var(--accent);
}

.presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.preset-btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 0.75rem;
  cursor: pointer;
}

.preset-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}

.limits-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.limit-chip {
  background: var(--surface-2);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}

.limit-chip .val {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-2);
}

.limit-chip .lbl {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bar-row {
  margin-bottom: 12px;
}

.bar-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.bar-track {
  height: 8px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.25s ease;
}

.bar-ok {
  background: var(--ok);
}

.bar-warning {
  background: var(--warn);
}

.bar-exceeded {
  background: var(--bad);
}

.status-card {
  border-radius: var(--radius);
  padding: 18px;
  margin-top: 4px;
}

.status-ok {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.status-warning {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.status-exceeded {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.status-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.status-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.meta-line {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 10px;
}

.pro-banner {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px dashed rgba(217, 119, 87, 0.5);
  background: rgba(217, 119, 87, 0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pro-banner p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.pro-btn {
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #111;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.875rem;
}

.pro-btn:hover {
  filter: brightness(1.08);
}

.content {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px 64px;
}

.content section {
  margin-bottom: 40px;
}

.content h2 {
  font-size: 1.25rem;
  margin: 0 0 12px;
  padding-top: 8px;
}

.content p,
.content li {
  color: var(--muted);
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 10px;
  padding: 12px 16px;
}

.faq summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--text);
}

.faq details p {
  margin: 10px 0 0;
  font-size: 0.9rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 20px;
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal.open {
  display: flex;
}

.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 420px;
  padding: 24px;
}

.modal-box h3 {
  margin: 0 0 10px;
}

.modal-box ul {
  color: var(--muted);
  font-size: 0.9rem;
  padding-left: 18px;
}

.modal-close {
  margin-top: 16px;
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
}
