/* DriveTech landing — theme tokens derived from brand art (navy, cyan, silver) */
:root {
  color-scheme: dark;
  --bg0: #05060a;
  --bg1: #0a1220;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8eef5;
  --muted: #9fb0c3;
  --accent: #22d3ee;
  --accent-dim: rgba(34, 211, 238, 0.14);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --radius-sm: 10px;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-he: "Heebo", var(--font-sans);
  --maxw: 1120px;
  --step--1: clamp(0.85rem, 0.82rem + 0.15vw, 0.95rem);
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-1: clamp(1.15rem, 1.05rem + 0.55vw, 1.35rem);
  --step-2: clamp(1.45rem, 1.2rem + 1.1vw, 1.85rem);
  --step-3: clamp(1.85rem, 1.35rem + 2.2vw, 2.6rem);
  --step-4: clamp(2.2rem, 1.5rem + 3.2vw, 3.25rem);
}

[data-theme="light"] {
  color-scheme: light;
  --bg0: #f6f8fb;
  --bg1: #eef2f7;
  --surface: rgba(10, 18, 32, 0.04);
  --surface-2: rgba(10, 18, 32, 0.06);
  --border: rgba(10, 18, 32, 0.08);
  --text: #0f172a;
  --muted: #475569;
  --accent: #0891b2;
  --accent-dim: rgba(8, 145, 178, 0.12);
  --shadow: 0 18px 60px rgba(15, 23, 42, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: radial-gradient(1200px 600px at 50% -10%, rgba(34, 211, 238, 0.08), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

[lang="he"] body,
body:lang(he) {
  font-family: var(--font-he);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #041018;
  font-weight: 600;
  border-radius: 8px;
  z-index: 100;
}

.skip-link:focus {
  left: 0.75rem;
  outline: 2px solid var(--text);
}

.wrap {
  width: min(100% - 2rem, var(--maxw));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg0) 82%, transparent);
  border-bottom: 1px solid var(--border);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.brand > span {
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-mark {
  height: 1.75rem;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.hero-mark {
  display: block;
  width: clamp(200px, 32vw, 320px);
  height: auto;
  margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
}

.controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-ghost,
.btn-primary,
.lang-btn,
.theme-toggle {
  font: inherit;
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 0.45rem 0.85rem;
  line-height: 1.2;
}

.theme-toggle {
  padding-inline: 0.75rem;
}

.lang-btn[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  background: var(--accent-dim);
}

.lang-group {
  display: inline-flex;
  border-radius: 999px;
  padding: 2px;
  border: 1px solid var(--border);
  background: var(--surface);
  gap: 2px;
}

.lang-btn {
  border: 0;
  background: transparent;
  font-size: var(--step--1);
}

.lang-btn[aria-pressed="true"] {
  background: var(--surface-2);
}

.hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
}

.hero-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
  max-width: 72ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--step--1);
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: var(--step-4);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  font-weight: 700;
}

.lead {
  font-size: var(--step-1);
  color: var(--muted);
  margin: 0 0 1.5rem;
  max-width: 52ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.btn-primary {
  border: 0;
  background: linear-gradient(135deg, #22d3ee, #06b6d4);
  color: #041018;
  font-weight: 650;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 12px 40px rgba(34, 211, 238, 0.22);
}

[data-theme="light"] .btn-primary {
  background: linear-gradient(135deg, #0891b2, #0e7490);
  color: #f0fdff;
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-ghost {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

section {
  padding: clamp(2rem, 5vw, 3.5rem) 0;
}

section:nth-of-type(even) {
  background: linear-gradient(180deg, transparent, rgba(34, 211, 238, 0.03));
}

[data-theme="light"] section:nth-of-type(even) {
  background: linear-gradient(180deg, transparent, rgba(8, 145, 178, 0.05));
}

.section-head {
  max-width: 70ch;
  margin-bottom: 1.5rem;
}

.section-head h2 {
  font-size: var(--step-3);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: var(--step-1);
}

.grid-2 {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  background: var(--surface);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: var(--step-1);
}

.card p,
.card ul {
  margin: 0;
  color: var(--muted);
}

ul.check {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}

ul.check li {
  position: relative;
  padding-inline-start: 1.35rem;
  margin-bottom: 0.5rem;
}

ul.check li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.pill {
  display: inline-block;
  font-size: var(--step--1);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
}

.quote {
  font-size: var(--step-2);
  font-weight: 600;
  letter-spacing: -0.015em;
  border-inline-start: 3px solid var(--accent);
  padding-inline-start: 1rem;
  margin: 1.5rem 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.5rem;
  color: var(--muted);
  font-size: var(--step--1);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 80;
  background: color-mix(in srgb, var(--bg0) 94%, transparent);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.35);
  padding: 0.9rem 0;
}

[data-theme="light"] .cookie-banner {
  box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.08);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner-inner {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 820px) {
  .cookie-banner-inner {
    grid-template-columns: 1fr auto;
  }
}

.cookie-banner-text h2 {
  font-size: var(--step-1);
  margin: 0 0 0.25rem;
  letter-spacing: -0.01em;
}

.cookie-banner-text p {
  margin: 0;
  color: var(--muted);
  font-size: var(--step--1);
  max-width: 68ch;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

@media (max-width: 820px) {
  .cookie-banner-actions {
    justify-content: stretch;
  }
  .cookie-banner-actions .btn-primary,
  .cookie-banner-actions .btn-ghost {
    flex: 1 1 160px;
    justify-content: center;
    text-align: center;
  }
}

#consent-status:empty {
  display: none;
}
