/* ===== Design tokens ===== */
:root {
  --bg: #0a0e1a;
  --bg-alt: #0e1424;
  --surface: #121a2e;
  --surface-2: #16203a;
  --border: rgba(255, 255, 255, 0.08);
  --text: #eef2fb;
  --muted: #9aa6c0;
  --accent: #3ad6c5;
  --accent-2: #5b8cff;
  --grad: linear-gradient(120deg, #3ad6c5 0%, #5b8cff 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -0.02em; font-weight: 600; }

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

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

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 26px;
  border-radius: 999px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--grad);
  color: #07111f;
  box-shadow: 0 10px 30px -8px rgba(58, 214, 197, 0.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -8px rgba(58, 214, 197, 0.6); }
.btn-ghost { color: var(--text); border-color: var(--border); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover { border-color: var(--accent); transform: translateY(-2px); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 26, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; }
.logo-mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--grad);
  box-shadow: 0 0 18px rgba(58, 214, 197, 0.5);
}
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { color: var(--muted); font-size: 0.95rem; font-weight: 500; transition: color 0.15s ease; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  color: var(--text) !important;
  border: 1px solid var(--border);
  padding: 9px 18px;
  border-radius: 999px;
}
.nav-cta:hover { border-color: var(--accent); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.2s; }

/* ===== Hero ===== */
.hero { position: relative; padding: 110px 0 90px; overflow: hidden; }
.hero-glow {
  position: absolute;
  top: -200px; left: 50%;
  width: 900px; height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(91, 140, 255, 0.22), transparent 60%),
              radial-gradient(circle at 60% 40%, rgba(58, 214, 197, 0.18), transparent 55%);
  filter: blur(20px);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; max-width: 860px; margin: 0 auto; }
.hero-title { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 700; margin-bottom: 24px; }
.hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--muted); max-width: 680px; margin: 0 auto 36px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats {
  display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
  list-style: none; padding-top: 36px; border-top: 1px solid var(--border);
}
.hero-stats li { display: flex; flex-direction: column; gap: 4px; }
.hero-stats strong { font-family: var(--font-head); font-size: 1.5rem; color: var(--text); }
.hero-stats span { font-size: 0.88rem; color: var(--muted); }

/* ===== Trust bar ===== */
.trustbar { padding: 28px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.trustbar-label { text-align: center; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.trustbar-items { display: flex; justify-content: center; gap: 14px 40px; flex-wrap: wrap; list-style: none; }
.trustbar-items li { font-family: var(--font-head); font-weight: 600; color: var(--text); opacity: 0.7; font-size: 1.05rem; }

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 18px; }
.section-lead { color: var(--muted); font-size: 1.08rem; }

/* ===== Grids ===== */
.grid { display: grid; gap: 22px; }
.cards { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.industries { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.team { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); max-width: 880px; margin: 0 auto; }

/* ===== Cards ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(58, 214, 197, 0.4); background: var(--surface-2); }
.card-icon {
  width: 48px; height: 48px;
  margin-bottom: 18px;
  display: grid; place-items: center;
  border-radius: 12px;
  color: var(--accent);
  background: rgba(58, 214, 197, 0.1);
  border: 1px solid rgba(58, 214, 197, 0.2);
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 0.98rem; }

/* ===== Steps ===== */
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; counter-reset: step; }
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.step-num { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--accent); display: block; margin-bottom: 14px; }
.step h3 { font-size: 1.18rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 0.96rem; }

/* ===== Industries ===== */
.industry {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  transition: border-color 0.2s ease;
}
.industry:hover { border-color: rgba(91, 140, 255, 0.4); }
.industry h3 { font-size: 1.12rem; margin-bottom: 8px; }
.industry p { color: var(--muted); font-size: 0.94rem; }

/* ===== Team ===== */
.member {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
}
.member-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  margin: 0 auto 18px;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.4rem;
  color: #07111f;
  background: var(--grad);
}
.member h3 { font-size: 1.3rem; margin-bottom: 4px; }
.member-role { color: var(--accent); font-weight: 600; font-size: 0.92rem; margin-bottom: 14px; }
.member p { color: var(--muted); font-size: 0.97rem; }
.member-link { display: inline-block; margin-top: 16px; color: var(--accent-2); font-weight: 600; font-size: 0.92rem; }
.member-link:hover { text-decoration: underline; }

/* ===== Clients ===== */
.clients {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 28px 56px;
  margin: 0 auto;
}
.clients li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: transform 0.2s ease;
}
.clients li:hover { transform: translateY(-4px); }
.client-logo {
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.client-logo img {
  max-height: 62px;
  max-width: 200px;
  object-fit: contain;
  display: block;
  /* Black-background logos blend seamlessly into the dark section */
  mix-blend-mode: lighten;
}
/* Scania emblem: transparent PNG, ~2x the wordmark height, true colors */
.client-logo img.client-emblem {
  max-height: 104px;
  max-width: 130px;
  mix-blend-mode: normal;
}
.client-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; max-width: 720px; margin: 0 auto; }
.contact-card-primary { border-color: rgba(58, 214, 197, 0.45); background: var(--surface-2); }
.contact-card {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.contact-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.contact-label { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.contact-value { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; color: var(--text); transition: color 0.15s ease; }
a.contact-value:hover { color: var(--accent); }
.contact-sub { color: var(--muted); font-size: 0.95rem; transition: color 0.15s ease; }
a.contact-sub:hover { color: var(--accent); }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); padding: 44px 0; background: var(--bg); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.footer-inner p { color: var(--muted); font-size: 0.92rem; }
.footer-copy { opacity: 0.7; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links.open { max-height: 360px; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links li a { display: block; padding: 16px; border-top: 1px solid var(--border); }
  .nav-cta { border: none !important; border-radius: 0; }
  .hero-stats { gap: 28px; }
  .local-inner { padding: 40px 24px; }
  .section { padding: 70px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
