/* EV Engineering — landing page */

:root {
  --navy-950: #070d1a;
  --navy-900: #0b1220;
  --navy-800: #111a2e;
  --navy-700: #1b2740;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --amber-400: #fbbf24;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-900: #0f172a;
  --radius: 14px;
  --container: 1160px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--slate-900);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.icon-sm {
  width: 16px;
  height: 16px;
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--blue-600);
  color: #fff;
}

.brand-mark .icon {
  width: 20px;
  height: 20px;
}

.brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav > a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--slate-300);
  transition: color 0.15s, background-color 0.15s;
}

.site-nav > a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.site-nav > a.nav-engineering {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  padding: 9px 16px;
  color: #fff;
  background: var(--blue-600);
  font-weight: 600;
}

.site-nav > a.nav-engineering:hover {
  background: var(--blue-500);
}

.lang-switch {
  display: inline-flex;
  margin-left: 10px;
  padding: 3px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
}

.lang-switch a {
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--slate-400);
}

.lang-switch a.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  padding: 8px;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
}

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(37, 99, 235, 0.35), transparent 60%),
    radial-gradient(700px 380px at 0% 100%, rgba(59, 130, 246, 0.18), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
}

/* faint blueprint grid */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 75%);
}

.hero-inner {
  position: relative;
  padding-top: 112px;
  padding-bottom: 120px;
  max-width: var(--container);
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(34px, 5.4vw, 60px);
  font-weight: 800;
}

.hero-text {
  max-width: 620px;
  margin-top: 22px;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--slate-300);
}

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

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--blue-600);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-500);
}

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

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.btn-light {
  background: #fff;
  color: var(--navy-900);
}

.btn-light:hover {
  background: var(--slate-100);
}

/* ---------------------------------------------------------------- sections */

.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--slate-50);
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
}

.eyebrow-light {
  color: var(--amber-400);
}

.section h2 {
  max-width: 640px;
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.card {
  padding: 28px 24px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 12px 30px -12px rgba(15, 23, 42, 0.18);
  transform: translateY(-2px);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #eff6ff;
  color: var(--blue-600);
}

.card h3 {
  margin-top: 20px;
  font-size: 18px;
  font-weight: 700;
}

.card p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--slate-600);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--slate-200);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--navy-900);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.step h3 {
  margin-top: 18px;
  font-size: 18px;
  font-weight: 700;
}

.step p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--slate-600);
}

/* ---------------------------------------------------------------- CTA band */

.cta {
  padding: 72px 0;
  background:
    radial-gradient(600px 260px at 90% 0%, rgba(255, 255, 255, 0.16), transparent 60%),
    var(--blue-600);
  color: #fff;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
}

.cta p {
  margin-top: 10px;
  max-width: 560px;
  color: #dbeafe;
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  background: var(--navy-950);
  color: var(--slate-400);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding-top: 56px;
  padding-bottom: 40px;
}

.footer-brand p {
  margin-top: 14px;
  font-size: 15px;
}

.footer-label {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-300);
}

.socials {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--navy-700);
  color: var(--slate-300);
  transition: color 0.15s, border-color 0.15s, background-color 0.15s;
}

.socials a:hover {
  color: #fff;
  border-color: var(--blue-500);
  background: rgba(59, 130, 246, 0.12);
}

.socials .icon {
  width: 19px;
  height: 19px;
}

.footer-bottom {
  padding-top: 20px;
  padding-bottom: 28px;
  border-top: 1px solid var(--navy-800);
  font-size: 14px;
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1024px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 880px) {
  .nav-toggle-label {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 20px 20px;
    background: var(--navy-900);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-toggle:checked ~ .site-nav {
    display: flex;
  }

  .site-nav > a {
    padding: 12px;
  }

  .site-nav > a.nav-engineering {
    justify-content: center;
    margin: 8px 0 0;
    padding: 13px;
  }

  .lang-switch {
    align-self: center;
    margin: 12px 0 0;
  }

  .hero-inner {
    padding-top: 80px;
    padding-bottom: 88px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .cta-inner,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 72px 0;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}

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

  .btn,
  .card {
    transition: none;
  }
}
