@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

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

:root {
  --black: #ffffff;
  --deep: #ffffff;
  --dark: #ffffff;
  --panel: #ffffff;
  --panel2: #f5f5f5;
  --cyan: #03002e;
  --cyan2: #03002e;
  --cyan3: #03002e;
  --blue: #03002e;
  --blue2: #03002e;
  --glow: rgba(3, 0, 46, 0.18);
  --glow2: rgba(3, 0, 46, 0.05);
  --text: #000000;
  --muted: rgba(0, 0, 0, 0.74);
  --subtle: rgba(0, 0, 0, 0.56);
  --border: rgba(3, 0, 46, 0.22);
  --border2: rgba(3, 0, 46, 0.42);
  --font-display: 'Montserrat', sans-serif;
  --font-mono: 'Montserrat', sans-serif;
  --nav-h: 72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-display);
  background: var(--black);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--deep); }
::-webkit-scrollbar-thumb { background: var(--cyan3); border-radius: 4px; }

/* ── SELECTION ── */
::selection { background: rgba(3, 0, 46, 0.28); color: #000; }

/* ── UTILITY ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }

/* ── GRID OVERLAY ── */
.grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(59,130,246,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
}

/* ── NAVIGATION ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: border-color 0.3s;
}
nav.scrolled { border-bottom-color: var(--border2); }
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  width: 100%; display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
}
.logo-mark {
  width: 36px; height: 36px; position: relative;
}
.logo-mark svg { width: 100%; height: 100%; }

.why-motor-wrapper {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.why-motor-img {
  max-width: 100%;
  height: auto;
  border-radius: 8px; /* Optional: smooths out sharp image corners */
  object-fit: cover;
}
/* Brand name */
.logo-text-block {
  display: flex; flex-direction: column; gap: 0px; line-height: 1;
}
.logo-name {
  font-size: 16px; font-weight: 900; letter-spacing: 0.06em;
  color: var(--text); text-transform: uppercase;
}
/* keep legacy .logo-text working just in case */
.logo-text { font-size: 18px; font-weight: 700; letter-spacing: 0.04em; }
.logo-text span { color: var(--cyan); }

.nav-links {
  display: flex; align-items: center; gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  display: block; padding: 0.5rem 1rem;
  color: var(--muted); text-decoration: none;
  font-size: 14px; font-weight: 500; letter-spacing: 0.03em;
  transition: color 0.2s;
  border-radius: 6px;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active { color: var(--cyan); }

.nav-cta {
  padding: 0.5rem 1.25rem !important;
  background: transparent !important;
  border: 1px solid var(--border2) !important;
  border-radius: 6px !important;
  color: var(--cyan) !important;
  transition: background 0.2s, border-color 0.2s !important;
}
.nav-cta:hover { background: var(--glow) !important; border-color: var(--cyan) !important; }

.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 1.5px; background: var(--muted); transition: all 0.3s; }

.mobile-menu {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); z-index: 99;
  padding: 1.5rem 2rem;
  flex-direction: column; gap: 0.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--muted); text-decoration: none; font-size: 16px; font-weight: 500;
  padding: 0.75rem 0; border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--cyan); }
.mobile-menu a:last-child { border-bottom: none; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.75rem 1.75rem; border-radius: 6px;
  font-family: var(--font-display); font-size: 14px; font-weight: 600;
  letter-spacing: 0.04em; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: all 0.2s;
}
.btn-primary {
  background: var(--cyan); color: var(--black);
  border-color: var(--cyan);
}
.btn-primary:hover { background: var(--blue); box-shadow: 0 0 30px rgba(59,130,246,0.35); }
.btn-outline {
  background: transparent; color: var(--cyan);
  border-color: var(--border2);
}
.btn-outline:hover { background: var(--glow); border-color: var(--cyan); }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 13px; }

/* ── EYEBROW / LABEL ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--cyan);
  margin-bottom: 1rem;
}

/* ── SECTION HEADINGS ── */
.section-title {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.15;
  letter-spacing: -0.02em; margin-bottom: 1rem;
}
.section-title span { color: var(--cyan); }
.section-sub {
  font-size: 1.0625rem; color: var(--muted); line-height: 1.7; max-width: 560px;
}

/* ── SECTION SPACING ── */
.section { padding: 7rem 0; position: relative; z-index: 1; }
.section-sm { padding: 5rem 0; }

/* ── DIVIDER ── */
.divider {
  height: 1px; background: linear-gradient(90deg, transparent, var(--border2), transparent);
  margin: 0;
}

/* ── CARDS ── */
.card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 2rem;
  transition: border-color 0.3s, transform 0.3s;
}
.card:hover { border-color: var(--border2); transform: translateY(-4px); }
.card-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--glow2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.card-icon svg { width: 24px; height: 24px; stroke: var(--cyan); fill: none; stroke-width: 1.5; }
.card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.75rem; }
.card p { font-size: 0.9375rem; color: var(--muted); line-height: 1.7; }

/* ── STAT BADGE ── */
.stat-badge {
  display: inline-flex; flex-direction: column;
  padding: 1.5rem 2rem; background: var(--panel);
  border: 1px solid var(--border); border-radius: 12px;
}
.stat-badge .num { font-size: 2.5rem; font-weight: 700; color: var(--cyan); line-height: 1; }
.stat-badge .lbl { font-size: 12px; color: var(--muted); margin-top: 4px; letter-spacing: 0.05em; }

/* ── CYAN LINE ACCENT ── */
.line-accent {
  display: block; width: 48px; height: 2px; background: var(--cyan);
  margin: 1.5rem 0;
}

/* ── PAGE HERO ── */
.page-hero {
  padding-top: calc(var(--nav-h) + 5rem); padding-bottom: 5rem;
  position: relative; z-index: 1;
}
.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 1.25rem;
}
.page-hero h1 span { color: var(--cyan); }
.page-hero p { font-size: 1.125rem; color: var(--muted); max-width: 600px; line-height: 1.7; }

/* ── TEAM CARD ── */
.team-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; transition: border-color 0.3s, transform 0.3s;
}
.team-card:hover { border-color: var(--border2); transform: translateY(-4px); }
.team-photo {
  height: 220px; background: var(--panel2);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.team-photo-initials {
  font-size: 3rem; font-weight: 700; color: var(--cyan);
  opacity: 0.25;
}
.team-photo-scan {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(59,130,246,0.03) 3px, rgba(59,130,246,0.03) 4px);
}
.team-info { padding: 1.5rem; }
.team-info h3 { font-size: 1.0625rem; font-weight: 600; margin-bottom: 4px; }
.team-info .role { font-size: 12px; color: var(--cyan); font-family: var(--font-mono); letter-spacing: 0.08em; margin-bottom: 0.75rem; }
.team-info p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

/* ── PROJECT CARD ── */
.project-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; transition: border-color 0.3s, transform 0.3s;
}
.project-card:hover { border-color: var(--border2); transform: translateY(-4px); }
.project-thumb {
  height: 200px; background: var(--panel2); position: relative;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.project-thumb-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(59,130,246,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(59,130,246,0.04) 1px, transparent 1px);
  background-size: 30px 30px;
}
.project-thumb-icon { position: relative; z-index: 1; }
.project-thumb-icon svg { width: 56px; height: 56px; stroke: var(--cyan); fill: none; stroke-width: 1; opacity: 0.4; }
.project-tag {
  display: inline-block; padding: 3px 10px; border-radius: 4px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  background: rgba(59,130,246,0.1); color: var(--cyan); border: 1px solid var(--border2);
}
.project-body { padding: 1.5rem; }
.project-body h3 { font-size: 1.0625rem; font-weight: 600; margin: 0.75rem 0 0.5rem; }
.project-body p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

/* ── FORM ── */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.5rem;
  font-family: var(--font-mono); text-transform: uppercase;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; background: var(--panel); border: 1px solid var(--border);
  border-radius: 8px; padding: 0.875rem 1rem;
  color: var(--text); font-family: var(--font-display); font-size: 0.9375rem;
  transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-group select option { background: var(--dark); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 4rem 0 2.5rem; position: relative; z-index: 1;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}
.footer-brand p { font-size: 0.875rem; color: var(--muted); line-height: 1.7; margin-top: 1rem; max-width: 280px; }
.footer-col h4 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a {
  color: var(--muted); text-decoration: none; font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--cyan); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-bottom p { font-size: 0.8125rem; color: var(--subtle); }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 5rem 0; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .container { padding: 0 1.25rem; }
}
@media (max-width: 768px) {
  .hero { min-height: 70vh; }   /* was 100vh */
}