:root {
  color-scheme: dark;
  --bg: #07111f;
  --panel: #0f1d31;
  --panel-2: #13243c;
  --text: #f4f7fb;
  --muted: #a9b8cc;
  --line: rgba(255,255,255,.12);
  --gold: #f8b84e;
  --gold-2: #ffd78a;
  --green: #42d392;
  --danger: #ff6868;
  --shadow: 0 20px 80px rgba(0,0,0,.35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(248,184,78,.22), transparent 32rem),
    radial-gradient(circle at 85% 10%, rgba(66,211,146,.12), transparent 28rem),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
}
a { color: inherit; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .9rem clamp(1rem, 4vw, 3rem);
  background: rgba(7,17,31,.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; gap: .6rem; align-items: center; font-weight: 800; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 2rem; height: 2rem; background: rgba(248,184,78,.16); border: 1px solid rgba(248,184,78,.45); border-radius: 999px; }
nav { display: flex; gap: .85rem; color: var(--muted); font-size: .95rem; }
nav a { text-decoration: none; }
nav a:hover { color: var(--text); }
.section-shell { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(3rem, 7vw, 5.5rem) 0; }
.hero { display: block; }
.hero-copy { max-width: 760px; }
.hero .machine-visual { max-width: 420px; }
.hero h1 { max-width: 100%; }
.eyebrow { color: var(--gold-2); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 800; margin: 0 0 .9rem; }
h1, h2 { line-height: 1.05; margin: 0 0 1rem; letter-spacing: -.04em; }
h1 { font-size: clamp(2.35rem, 6vw, 5.7rem); max-width: 10ch; }
h1 span { display: block; }
h2 { font-size: clamp(1.8rem, 4vw, 3.2rem); }
p { color: var(--muted); }
.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 62ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 1rem; }
.button { border: 1px solid var(--line); border-radius: 999px; padding: .85rem 1.15rem; text-decoration: none; font-weight: 800; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
.button.primary { background: linear-gradient(135deg, var(--gold), #ffdd97); color: #1f1303; border-color: transparent; box-shadow: 0 12px 36px rgba(248,184,78,.25); }
.button.secondary { background: rgba(255,255,255,.06); color: var(--text); }
.trust-note, .fine-print { font-size: .9rem; }
.hero-card, .agent-card, .cards article, .zones, .faq details {
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.035));
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.hero-card { padding: clamp(1.3rem, 4vw, 2rem); }
.machine-visual { font-size: 5rem; width: 100%; aspect-ratio: 1.4; display: grid; place-items: center; border-radius: 22px; background: linear-gradient(135deg, rgba(248,184,78,.22), rgba(66,211,146,.12)); margin-bottom: 1.2rem; }
.hero-card ul { padding-left: 1.2rem; color: var(--muted); }
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2rem; align-items: start; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.cards article { padding: 1.1rem; }
.cards strong { display: block; margin-bottom: .4rem; }
.cards span { color: var(--muted); }
.quote-section { display: grid; grid-template-columns: .7fr 1fr; gap: 2rem; align-items: start; }
.agent-card { overflow: hidden; }
.agent-header { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); background: rgba(0,0,0,.16); }
.agent-header span { display: block; color: var(--muted); font-size: .9rem; }
.status-dot { color: var(--green) !important; white-space: nowrap; }
.messages { display: flex; flex-direction: column; gap: .75rem; padding: 1rem; min-height: 330px; max-height: 470px; overflow: auto; }
.message { max-width: 82%; padding: .78rem .9rem; border-radius: 18px; white-space: pre-wrap; }
.message.agent { align-self: flex-start; background: rgba(255,255,255,.08); border-bottom-left-radius: 6px; }
.message.user { align-self: flex-end; color: #082017; background: linear-gradient(135deg, var(--green), #9ef3c3); border-bottom-right-radius: 6px; }
.message.error { align-self: center; background: rgba(255,104,104,.16); border: 1px solid rgba(255,104,104,.35); color: #ffd8d8; }
.message.success { align-self: center; background: rgba(66,211,146,.16); border: 1px solid rgba(66,211,146,.35); color: #d8ffe9; }
.agent-form { display: grid; grid-template-columns: 1fr auto; gap: .6rem; padding: 1rem; border-top: 1px solid var(--line); }
.agent-form input { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 999px; padding: .85rem 1rem; background: rgba(255,255,255,.06); color: var(--text); font: inherit; }
.agent-form button { border: 0; border-radius: 999px; padding: .85rem 1rem; font-weight: 900; background: var(--gold); color: #1f1303; cursor: pointer; }
.agent-actions { display: flex; justify-content: space-between; gap: .8rem; padding: 0 1rem 1rem; }
.preview-consent { display: block; padding: 0 1rem 1rem; color: var(--muted); font-size: .9rem; }
.preview-consent input { accent-color: var(--gold); }
.text-button { border: 0; background: transparent; color: var(--gold-2); cursor: pointer; font: inherit; text-decoration: underline; padding: .2rem; }
.zones { padding: 2rem; }
.faq { padding-top: 1rem; }
.faq details { padding: 1rem 1.2rem; margin: .8rem 0; }
.faq summary { cursor: pointer; font-weight: 800; }
footer { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; padding: 2rem 0 3rem; border-top: 1px solid var(--line); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 820px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  nav { width: 100%; justify-content: space-between; }
  .hero, .split, .quote-section { grid-template-columns: 1fr; min-height: unset; }
  h1 { max-width: 12ch; }
  .grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { overflow-x: hidden; }
  .site-header { padding: .85rem 1rem; }
  .section-shell { width: min(318px, calc(100% - 2rem)); overflow: hidden; }
  .hero, .hero-copy, .quote-intro, .zones, .faq, .hero-card, .agent-card { max-width: 318px; }
  .hero-copy > *, .quote-intro > *, .zones > *, .faq > * { max-width: 318px; }
  .eyebrow { overflow-wrap: anywhere; word-break: break-word; line-height: 1.45; font-size: .7rem; }
  nav { flex-wrap: wrap; row-gap: .35rem; column-gap: .75rem; justify-content: flex-start; }
  nav a { font-size: .95rem; }
  .cta-row, .agent-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .agent-header { flex-direction: column; }
  .agent-form { grid-template-columns: 1fr; }
  .message { max-width: 94%; }
  h1 { font-size: clamp(1.7rem, 8.3vw, 2rem); max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
}
