/* Visual system: readable type, fluid layout, safe overflow */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}
#hero, #hero-canvas { max-width: 100%; overflow: hidden; }
.hero-glow-top { max-width: 100%; }
body {
  font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
h1, h2, h3, .hero-h1, .section-heading, .showcase-h2, .cta-heading, .stats-headline {
  text-wrap: balance;
  font-kerning: normal;
}
p, .section-sub, .hero-subtitle, .feat-desc, .cta-body {
  text-wrap: pretty;
  font-weight: 400;
}

/* Type scale: display 800, section 800, card titles 700, body 400, labels 600 */
h1, .hero-h1 { font-weight: 800; }
h2, .section-heading, .showcase-h2, .cta-heading, .stats-headline { font-weight: 800; }
h3,
.product-card h3,
.flow-step h3,
.faq-item h3,
.feat-title,
.role-name {
  font-family: "Syne", ui-sans-serif, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
}
.product-card h3 {
  font-size: clamp(1.2rem, 1.6vw, 1.35rem);
  font-weight: 700;
}
.flow-step h3,
.faq-item h3 {
  font-size: 1.0625rem;
  font-weight: 700;
}
.feat-title { font-size: 1rem; }
.role-name { font-size: 0.9375rem; }

.hero-subtitle,
.section-sub,
.cta-body {
  font-weight: 400;
}
.product-card p,
.showcase-body,
.faq-item p {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
}
.product-list li,
.flow-step p,
.feat-desc,
.role-caps li {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
}
.product-host,
.stat-lbl,
.feat-tag,
.footer-contact-label {
  font-weight: 600;
}
.stat-lbl { font-size: 12px; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
}
.nav-cta,
.btn-primary,
.mobile-cta {
  font-weight: 700;
}
a.nav-cta {
  font-weight: 700 !important;
  font-size: 14px !important;
}
.btn-secondary { font-weight: 500; }
.footer-tagline,
.footer-links a,
.footer-contact-text {
  font-size: 14px;
  font-weight: 400;
}
.footer-col-title { font-weight: 700; }
.footer-bottom-copy,
.footer-bottom-links a {
  font-size: 13px;
  font-weight: 400;
}

.nav-logo-mark,
.footer-logo-mark,
.cta-logo-mark,
.footer-col-brand .footer-logo-mark,
.cta-logo-text,
.footer-col-brand .footer-logo-name,
.hero-h1,
.stats-number {
  font-family: "Syne", ui-sans-serif, sans-serif;
  font-weight: 800;
}

.hero-h1 {
  font-size: clamp(2.15rem, 6.2vw, 4.5rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.hero-subtitle {
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.75;
  max-width: 36rem;
  color: #A4B4CC;
}
.section-heading {
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
}
.section-sub {
  font-size: 16px;
  line-height: 1.75;
  max-width: 40rem;
  color: #A4B4CC;
}
.product-card h3,
.flow-step h3,
.faq-item h3 {
  font-family: "Syne", ui-sans-serif, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.product-card p,
.flow-step p,
.faq-item p,
.product-list li {
  line-height: 1.7;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 0;
  gap: 0;
  overflow: hidden;
}
.stat-item {
  flex: unset;
  max-width: none;
  padding: 28px 16px;
  border-right: 1px solid var(--border);
  border-bottom: none;
}
.stat-item:last-child { border-right: none; }
.stat-val {
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: -0.03em;
}
.stat-lbl {
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.roles-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.features-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.flow {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.phone-wrap {
  width: 100%;
  max-width: 280px;
  margin-inline: auto;
}
.phone-frame {
  width: 100% !important;
  max-width: 280px;
}
.showcase-block {
  gap: clamp(32px, 5vw, 64px);
}

.footer-bottom-copy,
.footer-bottom-links a {
  color: #8B9BB4;
}
.footer-contact-label {
  color: #6B7C94;
}
.footer-grid,
.footer-bottom,
.section-inner,
.stats-inner,
.cta-inner {
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}
nav {
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}
.nav-hamburger {
  width: 44px;
  height: 44px;
  min-width: 44px;
  justify-content: center;
  align-items: stretch;
  padding: 12px 11px;
  gap: 6px;
}
.nav-hamburger span {
  width: 100%;
  min-width: 18px;
  height: 2px;
}
.nav-hamburger.open span:nth-child(1),
.nav-hamburger.open span:nth-child(3) {
  width: 100%;
}
.btn-primary,
.btn-secondary,
.mobile-cta,
.nav-cta,
.footer-app-badge {
  min-height: 44px;
}

@media (max-width: 1280px) {
  .roles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1080px) {
  .nav-links { display: none !important; }
  .nav-hamburger { display: flex !important; }
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .showcase-block { grid-template-columns: 1fr; }
  .showcase-block.reverse .showcase-visual { order: 0; }
}

@media (min-width: 1081px) {
  .nav-hamburger { display: none !important; }
  .nav-links { display: flex !important; }
}

@media (max-width: 720px) {
  .product-card h3 { font-size: 1.25rem; font-weight: 700; }
  .feat-title { font-size: 1rem; }
  .stat-lbl { font-size: 11px; font-weight: 600; }
  .product-card p,
  .showcase-body,
  .faq-item p,
  .section-sub {
    font-size: 15px;
  }
  .product-list li,
  .flow-step p,
  .feat-desc,
  .role-caps li {
    font-size: 14px;
  }
  .product-grid,
  .flow,
  .footer-grid,
  .features-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat-item {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .stat-item:nth-child(2n) { border-right: none; }
  .stat-item:nth-child(5) {
    grid-column: 1 / -1;
    border-right: none;
    border-bottom: none;
  }
  .roles-grid { grid-template-columns: 1fr; }
  .hero-actions { align-items: stretch; }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .footer-bottom-links { justify-content: center; }
  .section-inner,
  .stats-inner,
  .cta-inner {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}

@media (max-width: 380px) {
  .hero-h1 { font-size: 2rem; letter-spacing: -0.02em; }
  .product-card,
  .faq-item,
  .role-card,
  .flow-step { padding: 20px 16px; }
  #hero { padding-bottom: 72px; }
}
@media (max-height: 780px) {
  .hero-scroll { display: none; }
}

@media (min-width: 1600px) {
  .section-inner,
  .stats-inner,
  .footer-grid {
    max-width: 1280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-content { animation: none; }
  .hero-badge-dot, .hero-scroll, .mock-gps-live-dot { animation: none !important; }
  .feat-card:hover, .role-card:hover { transform: none; }
}
