:root {
  --paper: #f7f4ee;
  --paper-2: #fffaf1;
  --ink: #15161a;
  --muted: #60646f;
  --line: #ded7c8;
  --blue: #276ef1;
  --blue-2: #174ea6;
  --coral: #e85d3f;
  --amber: #f3b544;
  --violet: #6b5cff;
  --cyan: #00a6b2;
  --white: #ffffff;
  --r: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}
a { color: inherit; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(247, 244, 238, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 850; text-decoration: none; letter-spacing: -0.02em; }
.brand-mark {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  border-radius: 7px;
  font-weight: 900;
}
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  text-decoration: none;
  font-weight: 760;
  font-size: 0.86rem;
  color: var(--muted);
  padding: 9px 11px;
  border-radius: 7px;
}
.site-nav a:hover, .site-nav .is-active { color: var(--ink); background: var(--white); }
.site-nav .nav-strong { color: var(--blue); border: 1px solid rgba(39, 110, 241, 0.22); background: rgba(39, 110, 241, 0.06); }
.nav-toggle { display: none; border: 1px solid var(--line); background: var(--white); border-radius: 7px; padding: 8px 12px; font-weight: 800; }

.section { padding: clamp(58px, 8vw, 108px) clamp(18px, 4vw, 54px); }
.section.tight { padding-top: 48px; padding-bottom: 48px; }
.wrap { max-width: 1160px; margin: 0 auto; }
.narrow { max-width: 820px; }
.hero {
  padding: clamp(64px, 9vw, 124px) clamp(18px, 4vw, 54px) 54px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(115deg, rgba(255, 250, 241, 0.86), rgba(247, 244, 238, 0.94)),
    linear-gradient(90deg, rgba(39, 110, 241, 0.09), rgba(232, 93, 63, 0.08));
}
.hero-grid { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.eyebrow {
  display: inline-flex;
  max-width: 100%;
  margin-bottom: 18px;
  padding: 7px 10px;
  border-radius: 7px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--blue-2);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 860px; margin-bottom: 18px; font-size: clamp(2.7rem, 6vw, 5.9rem); line-height: 0.95; letter-spacing: -0.065em; }
.hero-copy { max-width: 760px; color: #333842; font-size: clamp(1rem, 1.9vw, 1.26rem); line-height: 1.65; }
.hero-actions, .actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 26px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 17px;
  border: 1px solid var(--ink);
  border-radius: 7px;
  color: var(--ink);
  background: transparent;
  text-decoration: none;
  font-weight: 850;
}
.button.primary { background: var(--ink); color: var(--paper); }
.button.blue { background: var(--blue); color: var(--white); border-color: var(--blue); }
.button.soft { background: var(--white); border-color: var(--line); }
.button:hover { transform: translateY(-1px); }
label { display: block; margin-bottom: 14px; font-weight: 800; color: var(--ink); }
input, textarea {
  width: 100%;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper-2);
  color: var(--ink);
  font: inherit;
  padding: 12px;
}
textarea { resize: vertical; }

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: 0 18px 50px rgba(38, 31, 20, 0.06);
}
.console { display: grid; gap: 12px; }
.console-row {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
}
.console-row:last-child { border-bottom: 0; padding-bottom: 0; }
.console-row b { color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; font-size: 0.68rem; }
.console-row span { color: var(--ink); }

.section-head { max-width: 800px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1; letter-spacing: -0.05em; margin-bottom: 14px; }
.section-head p, .lead { color: var(--muted); font-size: 1.04rem; line-height: 1.75; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.card {
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
}
.card h3 { font-size: 1.02rem; margin-bottom: 8px; letter-spacing: -0.02em; }
.card p, .card li { color: var(--muted); font-size: 0.94rem; line-height: 1.65; }
.card ul { margin: 12px 0 0; padding-left: 18px; }
.tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(39, 110, 241, 0.08);
  color: var(--blue-2);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tag.coral { color: #9e2f19; background: rgba(232, 93, 63, 0.1); }
.tag.amber { color: #8a5c00; background: rgba(243, 181, 68, 0.16); }
.tag.violet { color: #3e35b0; background: rgba(107, 92, 255, 0.1); }

.proof-band { background: #191a20; color: var(--paper); }
.proof-band .section-head p, .proof-band .card p, .proof-band .card li { color: #c8c5bd; }
.proof-band .card { background: #23242b; border-color: #393a42; }
.proof-band .button.soft { background: #2b2c33; color: var(--paper); border-color: #45464f; }

.spot-demo { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 18px; align-items: stretch; }
.sport-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.sport-tabs button {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  padding: 9px 10px;
  font-weight: 850;
  cursor: pointer;
}
.sport-tabs button.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.map-sim {
  position: relative;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(39, 110, 241, 0.2), transparent 42%),
    linear-gradient(20deg, rgba(232, 93, 63, 0.13), transparent 45%),
    #e8eef7;
}
.map-sim::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(21,22,26,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21,22,26,.08) 1px, transparent 1px);
  background-size: 36px 36px;
}
.spot-map-media {
  display: block;
  margin: 0;
  padding: 0;
  aspect-ratio: 1672 / 941;
  min-height: clamp(300px, 34vw, 460px);
  background: #07111f;
}
.spot-map-media::before { display: none; }
.spot-map-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.coast { position: absolute; inset: 0 0 0 52%; background: #d9c8aa; clip-path: polygon(30% 0,100% 0,100% 100%,0 100%,24% 68%,12% 36%); opacity: .86; }
.risk-zone, .sensor-dot, .track-line, .spot-label { position: absolute; z-index: 2; }
.risk-zone { border: 2px solid rgba(232,93,63,.68); background: rgba(232,93,63,.12); border-radius: 999px; }
.risk-zone.one { width: 96px; height: 96px; left: 56%; top: 55%; }
.risk-zone.two { width: 130px; height: 78px; left: 30%; top: 20%; border-color: rgba(243,181,68,.72); background: rgba(243,181,68,.16); }
.sensor-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 8px rgba(39,110,241,.16); }
.sensor-dot.a { left: 18%; top: 34%; }
.sensor-dot.b { left: 44%; top: 62%; background: var(--cyan); }
.sensor-dot.c { left: 75%; top: 28%; background: var(--violet); }
.track-line { left: 20%; top: 53%; width: 280px; height: 3px; background: linear-gradient(90deg, var(--blue), var(--coral)); transform: rotate(12deg); transform-origin: left; }
.spot-label {
  padding: 7px 9px;
  border-radius: 7px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(21,22,26,.16);
  font-size: .72rem;
  font-weight: 850;
}
.spot-label.a { left: 5%; top: 8%; }
.spot-label.b { right: 5%; bottom: 8%; }
.readout { display: grid; gap: 10px; }
.readout-row { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.readout-row b { font-size: .82rem; }
.readout-row span { color: var(--muted); text-align: right; }

.table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.table th, .table td { text-align: left; padding: 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.table td { color: #343841; }

.slides { display: grid; gap: 18px; counter-reset: slide; }
.slide {
  min-height: 460px;
  display: grid;
  align-content: space-between;
  padding: clamp(26px, 5vw, 58px);
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--white);
  counter-increment: slide;
}
.slide::before {
  content: "Slide " counter(slide);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 850;
  color: var(--muted);
}
.slide h2 { font-size: clamp(2.1rem, 5vw, 4.6rem); line-height: .98; letter-spacing: -.06em; }
.slide p { max-width: 740px; color: var(--muted); font-size: 1.08rem; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 38px clamp(18px, 4vw, 54px);
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}
.site-footer p { max-width: 560px; margin: 8px 0 0; color: var(--muted); }
.site-footer div:last-child { display: flex; flex-wrap: wrap; gap: 12px; align-content: start; justify-content: flex-end; }
.site-footer a { color: var(--muted); font-weight: 760; text-decoration: none; }

@media (max-width: 860px) {
  .site-header { align-items: flex-start; }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 18px; right: 18px; top: 60px; flex-direction: column; align-items: stretch; padding: 10px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); }
  .site-nav.is-open { display: flex; }
  .hero-grid, .grid-2, .grid-3, .grid-4, .spot-demo { grid-template-columns: 1fr; }
  .hero { padding-top: 44px; }
  .map-sim { min-height: 340px; }
  .spot-map-media { min-height: 0; }
  .site-footer { flex-direction: column; }
  .site-footer div:last-child { justify-content: flex-start; }
  .console-row { grid-template-columns: 1fr; gap: 4px; }
}
