:root {
  --clay: #d97757;
  --clay-deep: #c6613f;
  --bg: #0e1014;
  --bg-soft: #14171d;
  --panel: #171b22;
  --panel-2: #1d222b;
  --rule: #272d38;
  --rule-strong: #36404f;
  --text: #ecebe6;
  --text-dim: #a4abb8;
  --text-faint: #6c7585;
  --white: #ffffff;
  --live: #4fae9d;
  --warn: #d6a35a;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --site-margin: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding: 14px var(--site-margin);
  background: rgba(14, 16, 20, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand-mark {
  display: inline-flex; align-items: center; gap: 2px;
  font: 700 10px var(--font-mono); letter-spacing: 0.05em;
  background: var(--panel-2); border: 1px solid var(--rule);
  border-radius: 6px; padding: 4px 8px; line-height: 1;
}
.bm-nodes { color: var(--text); }
.bm-sep { color: var(--text-faint); }
.bm-ai { color: var(--clay); font-weight: 700; letter-spacing: 0.1em; }
.brand-wordmark { font: 500 17px var(--font-sans); letter-spacing: -0.01em; color: var(--text); }
.bm-colons { color: var(--clay); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 13.5px var(--font-sans);
  border-radius: 10px; padding: 9px 16px; cursor: pointer;
  border: 1px solid var(--rule-strong); background: var(--panel-2); color: var(--text);
  transition: all 160ms var(--ease); white-space: nowrap;
}
.btn:hover { border-color: var(--rule-strong); background: var(--panel); }
.btn-primary { background: var(--clay); border-color: var(--clay); color: #fff; }
.btn-primary:hover { background: var(--clay-deep); border-color: var(--clay-deep); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-dim); }
.btn-ghost:hover { color: var(--text); background: var(--panel); }
.btn-block { width: 100%; }
.btn-lg { padding: 13px 24px; font-size: 15px; border-radius: 12px; }

/* ---------- Layout ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--site-margin); }
.section { padding: 80px 0; }
.eyebrow {
  font: 600 11px var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--clay); margin-bottom: 14px;
}
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.12; margin: 0; }
.muted { color: var(--text-dim); }
.faint { color: var(--text-faint); }

/* ---------- Hero ---------- */
.hero { padding: 92px 0 64px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% 0 auto 0; height: 520px;
  background: radial-gradient(60% 60% at 50% 0%, rgba(217,119,87,0.16), transparent 70%);
  pointer-events: none;
}
.hero h1 { font-size: clamp(34px, 6vw, 58px); font-weight: 600; max-width: 920px; margin: 0 auto; }
.hero .lede { font-size: clamp(16px, 2.2vw, 20px); color: var(--text-dim); max-width: 680px; margin: 22px auto 0; }
.tagline-rotator {
  margin: 30px auto 0; min-height: 28px;
  font: 500 15px var(--font-mono); letter-spacing: 0.01em; color: var(--clay);
}
.tagline-rotator span { transition: opacity 400ms var(--ease); }
.hero-cta { margin-top: 34px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Value cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: linear-gradient(180deg, var(--panel), var(--bg-soft));
  border: 1px solid var(--rule); border-radius: 16px; padding: 26px;
  transition: border-color 200ms var(--ease), transform 200ms var(--ease);
}
.card:hover { border-color: var(--rule-strong); transform: translateY(-3px); }
.card .num { font: 700 12px var(--font-mono); color: var(--clay); letter-spacing: 0.1em; }
.card h3 { font-size: 19px; font-weight: 600; margin: 14px 0 10px; }
.card p { color: var(--text-dim); margin: 0; font-size: 14.5px; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature { display: flex; gap: 12px; padding: 18px; border: 1px solid var(--rule); border-radius: 13px; background: var(--bg-soft); }
.feature .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--clay); margin-top: 7px; flex-shrink: 0; }
.feature h4 { font-size: 15px; font-weight: 600; margin: 0 0 4px; }
.feature p { margin: 0; color: var(--text-dim); font-size: 13.5px; }

/* ---------- Demo ---------- */
.demo-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.video-card {
  display: block; position: relative; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--rule); aspect-ratio: 16 / 9; background: #000;
}
.video-card img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.9; transition: opacity 200ms; }
.video-card:hover img { opacity: 1; }
.video-card .play {
  position: absolute; inset: 0; margin: auto; width: 66px; height: 66px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(217,119,87,0.92); border-radius: 50%; color: #fff; font-size: 22px;
}

/* ---------- Auth / forms ---------- */
.auth-shell { min-height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center; padding: 48px var(--site-margin); }
.auth-card {
  width: 100%; max-width: 420px; background: var(--panel);
  border: 1px solid var(--rule); border-radius: 18px; padding: 34px;
}
.auth-card h1 { font-size: 24px; font-weight: 600; margin-bottom: 6px; }
.auth-card .sub { color: var(--text-dim); margin: 0 0 22px; font-size: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; color: var(--text-dim); margin-bottom: 6px; font-weight: 500; }
.field input {
  width: 100%; padding: 11px 13px; font-size: 14.5px; font-family: var(--font-sans);
  background: var(--bg-soft); border: 1px solid var(--rule-strong); border-radius: 10px; color: var(--text);
}
.field input:focus { outline: none; border-color: var(--clay); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.checkbox { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-dim); }
.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--text-faint); font-size: 12px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.oauth-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; }
.alt-link { margin-top: 20px; text-align: center; font-size: 13.5px; color: var(--text-dim); }
.alt-link a { color: var(--clay); font-weight: 500; }

.flash { padding: 11px 14px; border-radius: 10px; font-size: 13.5px; margin-bottom: 18px; }
.flash-error { background: rgba(214,90,70,0.12); border: 1px solid rgba(214,90,70,0.4); color: #f0b5ac; }
.flash-ok { background: rgba(79,174,157,0.12); border: 1px solid rgba(79,174,157,0.4); color: #a9e4d7; }
.flash-info { background: rgba(217,119,87,0.1); border: 1px solid rgba(217,119,87,0.35); color: #e7b6a3; }

/* ---------- Account / subscribe ---------- */
.panel { background: var(--panel); border: 1px solid var(--rule); border-radius: 18px; padding: 30px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font: 600 11px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 20px; }
.badge-live { background: rgba(79,174,157,0.14); color: var(--live); border: 1px solid rgba(79,174,157,0.4); }
.badge-trial { background: rgba(217,119,87,0.14); color: var(--clay); border: 1px solid rgba(217,119,87,0.4); }
.badge-expired { background: rgba(108,117,133,0.16); color: var(--text-faint); border: 1px solid var(--rule-strong); }
.pricing { max-width: 460px; margin: 0 auto; text-align: center; }
.price { font-size: 52px; font-weight: 600; letter-spacing: -0.03em; }
.price small { font-size: 16px; color: var(--text-dim); font-weight: 400; }
.check-list { list-style: none; padding: 0; margin: 22px 0; text-align: left; }
.check-list li { padding: 8px 0; color: var(--text-dim); display: flex; gap: 10px; }
.check-list li::before { content: "✓"; color: var(--clay); font-weight: 700; }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--rule); padding: 36px var(--site-margin); color: var(--text-faint); font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

@media (max-width: 820px) {
  .cards, .features { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
}
