/* ==========================================================================
   Autobotic — site styles
   Brand: red #D40000 / hover #A80000, black #000, off-white #F6F6F4
   ========================================================================== */

:root {
  --red: #D40000;
  --red-dark: #A80000;
  --black: #000000;
  --white: #FFFFFF;
  --sand: #F6F6F4;
  --line: #ECECEC;
  --muted: #5A5A5A;
  --font-display: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--black);
  width: 100%;
  overflow-x: hidden;
}

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }

img { max-width: 100%; }

/* Animations ------------------------------------------------------------- */

@keyframes dash { to { stroke-dashoffset: -200; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal { animation: fadeUp 0.6s ease-out both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; }
  .route-live, .hero-ping { animation: none !important; }
}

/* Shared ----------------------------------------------------------------- */

.container { max-width: 1280px; margin: 0 auto; }
.container-narrow { max-width: 1100px; margin: 0 auto; }
.container-prose { max-width: 800px; margin: 0 auto; }

.eyebrow {
  color: var(--red);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-head { text-align: center; margin-bottom: 64px; }

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 36px;
  letter-spacing: -0.01em;
  color: var(--black);
}

.btn {
  display: inline-block;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 16px;
  padding: 16px 32px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 160ms ease-out, border-color 160ms ease-out;
}

.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }

.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); color: #fff; }

.btn-sm { padding: 12px 24px; font-size: 14px; }
.btn-block { display: block; width: 100%; text-align: center; }

/* Nav -------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px;
  flex-wrap: wrap;
  gap: 16px;
}

.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 56px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: var(--black); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--red); }

.nav-actions { display: flex; align-items: center; gap: 16px; }

.hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.hamburger-btn span { width: 22px; height: 2px; background: var(--black); }

.mobile-menu {
  /* Sits directly under the sticky nav — no magic offset to keep in sync. */
  position: relative;
  z-index: 99;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: none;
  flex-direction: column;
  padding: 8px 24px 16px;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  padding: 14px 0;
  color: var(--black);
  font-weight: 500;
  font-size: 16px;
  border-bottom: 1px solid #F0F0F0;
}
.mobile-menu a:last-child { border-bottom: none; }

/* Hero ------------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--black);
  color: #fff;
  padding: 96px 48px 0;
  overflow: hidden;
}

.hero-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  padding-bottom: 72px;
}

.hero-badge {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #ccc;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero-title span { color: var(--red); }

.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: #C9C9C9;
  max-width: 520px;
  margin-bottom: 36px;
}

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

.hero-visual {
  position: relative;
  border-radius: 16px;
  background: linear-gradient(160deg, #0A0A0A, #000);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 32px;
  min-height: 380px;
  overflow: hidden;
}

.hero-visual-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}

.hero-visual-glow {
  position: absolute;
  width: 260px;
  height: 260px;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(212, 0, 0, 0.16) 0%, rgba(212, 0, 0, 0) 70%);
}

.hero-visual svg { position: relative; width: 100%; height: 340px; }

.route-live { animation: dash 2.4s linear infinite; }
.hero-ping { animation: pulse 2.2s ease-in-out infinite; }

.hero-chip {
  position: absolute;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: #fff;
}
.hero-chip-tl { top: 24px; left: 24px; }
.hero-chip-br { bottom: 24px; right: 24px; }
.hero-chip-dot { color: var(--red); font-weight: 700; }

.hero-trust {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 32px;
  max-width: 1280px;
  margin: 0 auto;
}
.hero-trust span { color: #8A8A8A; font-size: 13px; }
.hero-trust .sep { color: #3A3A3A; }

/* Features --------------------------------------------------------------- */

.features { background: #fff; padding: 112px 48px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.feature-card {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px;
  transition: box-shadow 200ms ease-out, transform 200ms ease-out;
}
.feature-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  margin-bottom: 10px;
  color: var(--black);
}

.feature-card p { font-size: 15px; line-height: 1.6; color: var(--muted); }

/* Industries ------------------------------------------------------------- */

.industries { background: var(--sand); padding: 96px 48px; text-align: center; }
.industries .section-title { font-size: 32px; margin-bottom: 40px; }

.industry-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

.industry-pill {
  background: #fff;
  border: 1px solid #E2E2E2;
  border-radius: 999px;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 15px;
  color: var(--black);
}

/* How it works ----------------------------------------------------------- */

.how { background: #fff; padding: 112px 48px; }
.how .section-head { margin-bottom: 72px; }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }

.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 44px;
  color: var(--red);
  margin-bottom: 16px;
}

.steps-grid h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--black);
}

.steps-grid p { font-size: 15px; line-height: 1.6; color: var(--muted); }

/* Stats ------------------------------------------------------------------ */

.stats { background: var(--black); color: #fff; padding: 80px 48px; }

.stats-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 42px;
  color: var(--red);
  margin-bottom: 8px;
}

.stat-label { font-size: 14px; color: #B0B0B0; letter-spacing: 0.02em; }

/* Contact ---------------------------------------------------------------- */

.contact { background: var(--sand); padding: 112px 48px; }

.cta-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 38px;
  letter-spacing: -0.01em;
  color: var(--black);
  line-height: 1.15;
  margin-bottom: 24px;
}

.contact-lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 440px;
}

.contact-links { display: flex; flex-direction: column; gap: 16px; }

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--black);
  font-weight: 600;
  font-size: 16px;
}
.contact-link:hover { color: var(--red); }

.contact-link-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Form ------------------------------------------------------------------- */

.form-card {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.06);
}

.form-card form { display: flex; flex-direction: column; gap: 18px; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  border: 1px solid #C8C8C8;
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: var(--font-body);
  background: #fff;
  color: var(--black);
}
.form-input:focus { border-color: var(--red); outline: none; }
.form-input.has-error { border-color: var(--red); background: #FFF7F7; }

textarea.form-input { resize: vertical; }

.form-error { display: block; font-size: 13px; color: var(--red); margin-top: 6px; }

.form-card .btn-primary { padding: 16px; font-weight: 700; margin-top: 8px; }

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-success {
  background: #fff;
  border-radius: 12px;
  padding: 48px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.06);
}

.form-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.form-success h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--black);
  margin-bottom: 8px;
}

.form-success p { font-size: 15px; color: var(--muted); }

.form-legal {
  font-size: 12px;
  line-height: 1.5;
  color: #8A8A8A;
  text-align: center;
  margin-top: 4px;
}
.form-legal a { color: #8A8A8A; text-decoration: underline; }
.form-legal a:hover { color: var(--red); }

/* The badge is hidden; .form-legal carries Google's required attribution. */
.grecaptcha-badge { visibility: hidden; }

.form-alert {
  border-radius: 6px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.5;
  background: #FFF1F1;
  border: 1px solid #F3C4C4;
  color: #8A1010;
}

/* Footer ----------------------------------------------------------------- */

.footer { background: var(--black); color: #fff; padding: 64px 48px 32px; }

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo img { height: 64px; filter: brightness(0) invert(1); }

.footer-about { font-size: 14px; color: #9A9A9A; line-height: 1.6; max-width: 320px; }

.footer-heading { font-weight: 700; font-size: 14px; margin-bottom: 16px; color: #fff; }

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: #9A9A9A;
}
.footer-list a { color: #9A9A9A; }
.footer-list a:hover, .footer-list a.is-current { color: var(--red); }

.footer-copy {
  max-width: 1280px;
  margin: 24px auto 0;
  font-size: 13px;
  color: #6E6E6E;
  text-align: center;
}

/* Legal pages ------------------------------------------------------------ */

.legal { max-width: 800px; margin: 0 auto; padding: 80px 24px 120px; }

.legal-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 40px;
  letter-spacing: -0.01em;
  color: var(--black);
  margin-bottom: 8px;
}

.legal-updated { font-size: 14px; color: var(--muted); margin-bottom: 48px; }

.prose h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--black);
  margin: 40px 0 12px;
  padding-left: 16px;
  border-left: 3px solid var(--red);
}
.prose p, .prose li { font-size: 16px; line-height: 1.7; color: #333; margin-bottom: 12px; }
.prose ul, .prose ol { padding-left: 24px; margin-bottom: 12px; }

.legal-note {
  margin-top: 56px;
  padding: 20px 24px;
  background: var(--sand);
  border-radius: 8px;
  border: 1px solid var(--line);
}
.legal-note p { font-size: 14px; color: var(--muted); margin: 0; }

/* Responsive ------------------------------------------------------------- */

@media (max-width: 900px) {
  .hero-grid,
  .feature-grid,
  .steps-grid,
  .cta-grid,
  .footer-grid { grid-template-columns: 1fr !important; }
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .nav-links { display: none !important; }
  .hamburger-btn { display: flex !important; }
}

@media (max-width: 640px) {
  .nav { padding: 16px 24px; }
  .hero { padding: 64px 24px 0; }
  .hero-title { font-size: 38px; }
  .features, .how, .contact { padding: 72px 24px; }
  .industries, .stats { padding: 64px 24px; }
  .section-title { font-size: 28px; }
  .contact-title { font-size: 30px; }
  .form-card { padding: 28px; }
  .footer { padding: 48px 24px 32px; }
  .legal-title { font-size: 32px; }
}
