/* Self-hosted variable fonts (4D.1) — no off-origin requests.
   latin-ext files only download if a visitor's text needs those glyphs. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/jetbrains-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/jetbrains-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #08080c;
  --bg-elevated: #0c0c12;
  --bg-card: #101018;
  --surface: rgba(255,255,255,0.04);
  --surface-hover: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);

  --text: #f0f0f2;
  --text-secondary: #b2b2bc;
  --text-tertiary: #5c5c66;

  --accent: #e94560;
  --accent-soft: #ff6b85;
  --accent-glow: rgba(233, 69, 96, 0.25);

  --font-mono: 'JetBrains Mono', monospace;
  --font-sans: 'Inter', -apple-system, system-ui, sans-serif;

  --max-width: 1080px;
  --radius: 12px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient glow */
.glow {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  background: 
    radial-gradient(ellipse 80% 50% at 20% -10%, var(--accent-glow), transparent),
    radial-gradient(ellipse 60% 40% at 80% 10%, rgba(255,107,133,0.1), transparent);
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ─────────────────────────────────────
   NAVIGATION
───────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 24px;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 8, 12, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 10px 10px 20px;
}

.logo {
  display: flex;
  align-items: center;
  color: var(--text-secondary);
}

.logo svg {
  display: block;
  height: 48px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 100px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:not(.nav-cta):hover {
  color: var(--text);
  background: var(--surface);
}

.nav-links .nav-cta {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 100%);
  color: #fff;
  margin-left: 8px;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(233, 69, 96, 0.3);
}

.nav-links .nav-cta:hover {
  box-shadow: 0 4px 20px rgba(233, 69, 96, 0.45);
  transform: translateY(-1px);
}

/* ─────────────────────────────────────
   HERO
───────────────────────────────────── */
.hero {
  padding: 120px 0 80px;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 120px 0 60px;
    min-height: auto;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(233, 69, 96, 0.08);
  border: 1px solid rgba(233, 69, 96, 0.3);
  border-radius: 100px;
  padding: 6px 14px 6px 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero h1 {
  font-family: var(--font-mono);
  font-size: clamp(28px, 3.8vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  word-spacing: -0.05em;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 32px;
}

@media (max-width: 900px) {
  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 560px) {
  .hero-sub {
    max-width: 100%;
    font-size: 16px;
  }
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero-actions {
    justify-content: center;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  border-radius: 100px;
  border: 1px solid var(--border-hover);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}

.btn:hover {
  background: var(--surface-hover);
  border-color: rgba(255,255,255,0.18);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 100%);
  border: none;
  color: #fff;
  box-shadow: 
    0 2px 8px rgba(233, 69, 96, 0.3),
    0 12px 40px rgba(233, 69, 96, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 
    0 4px 12px rgba(233, 69, 96, 0.35),
    0 16px 48px rgba(233, 69, 96, 0.3);
}

/* Hero device visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-device-img {
  max-width: 360px;
  max-height: 500px;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  filter: drop-shadow(0 40px 80px rgba(0,0,0,0.5));
}

.hero-device-placeholder {
  width: 280px;
  height: 380px;
  background: linear-gradient(145deg, var(--bg-card), var(--bg-elevated));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: 13px;
}

/* ─────────────────────────────────────
   CAPABILITIES
───────────────────────────────────── */
.section {
  padding: 80px 0;
}

.section-header {
  margin-bottom: 48px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-mono);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  word-spacing: -0.05em;
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 600px;
}

/* Capability grid */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 800px) {
  .cap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cap-card:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 500px) {
  .cap-grid {
    grid-template-columns: 1fr;
  }
  .cap-card:last-child {
    grid-column: span 1;
  }
}

.cap-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s;
}

.cap-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.cap-value {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 8px;
}

.cap-value-unit {
  font-size: 0.5em;
  font-weight: 500;
  color: var(--text-secondary);
}

.cap-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--text);
}

.cap-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ─────────────────────────────────────
   FEATURES (Interface + Map)
───────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 800px) {
  .features {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.feature-card .section-label {
  margin-bottom: 8px;
}

.feature-title {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  word-spacing: -0.05em;
  margin-bottom: 12px;
}

.feature-desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.feature-visual {
  margin-top: auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.feature-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-placeholder {
  color: var(--text-tertiary);
  font-size: 13px;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.feature-link:hover {
  color: var(--accent);
}

.feature-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}

.feature-link:hover svg {
  transform: translateX(3px);
}

/* ─────────────────────────────────────
   CALLOUT STRIP
───────────────────────────────────── */
.callout-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
}

.callout-text {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.callout-text span {
  color: var(--text-tertiary);
}

.callout-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.callout-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.15);
  border: 1px solid rgba(74, 222, 128, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4ade80;
  font-size: 11px;
}

/* ─────────────────────────────────────
   RESPONSIBLE
───────────────────────────────────── */
.responsible {
  padding: 40px 0;
  text-align: center;
}

.responsible-content {
  max-width: 520px;
  margin: 0 auto;
}

.responsible .section-title {
  margin-bottom: 16px;
}

.responsible p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
}

/* ─────────────────────────────────────
   FINAL CTA
───────────────────────────────────── */
.final-cta {
  padding: 48px 0 80px;
  text-align: center;
}

.final-cta .section-title {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 16px;
}

.final-cta p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 32px;
}

.final-cta .hero-actions {
  justify-content: center;
  margin-bottom: 16px;
}

.email-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
}

.email-row {
  display: flex;
  gap: 8px;
}

.email-form .cf-turnstile {
  margin: 0 auto;
  min-height: 65px;
}

.email-input {
  flex: 1;
  min-width: 0;
  padding: 14px 20px;
  background: var(--surface);
  border: 1px solid var(--border-hover);
  border-radius: 100px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.email-input::placeholder {
  color: var(--text-tertiary);
}

.email-input:focus {
  border-color: rgba(233, 69, 96, 0.5);
}

/* ─────────────────────────────────────
   FOOTER
───────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-tertiary);
}

.footer-links {
  display: flex;
  gap: 24px;
}

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

/* ─────────────────────────────────────
   MOBILE ADJUSTMENTS
───────────────────────────────────── */
@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .email-row {
    flex-direction: column;
  }
  .email-row .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .logo svg {
    height: 38px;
  }

  .nav-inner {
    padding: 8px 8px 8px 16px;
  }

  .callout-text {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    text-align: left;
  }

  .section {
    padding: 60px 0;
  }

  .feature-card {
    padding: 28px;
  }

  .callout-text {
    flex-direction: column;
    gap: 16px;
  }
}

/* ─────────────────────────────────────
   FORMER INLINE STYLES (moved for CSP, 4E)
───────────────────────────────────── */
.section-flush-top {
  padding-top: 0;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

#updates-status {
  min-height: 1.4em;
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}
