/* Apex Autolab — Premium multi-page frontend */
:root {
  --bg: #07090d;
  --bg2: #0b0f18;
  --panel: rgba(16, 19, 29, 0.7);
  --panel2: rgba(10, 12, 18, 0.7);
  --text: #e9ecf4;
  --muted: #a9b1c6;
  --line: rgba(255, 255, 255, 0.12);
  --line2: rgba(255, 255, 255, 0.07);
  --accent: #4da3ff;
  --accent2: #7b5cff;
  --shadow: 0 18px 70px rgba(0, 0, 0, 0.55);
  --radius: 18px;
  --radius2: 24px;
  --max: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  color: var(--text);
  line-height: 1.55;
  background: radial-gradient(
      900px 520px at 20% -10%,
      rgba(77, 163, 255, 0.18),
      transparent 60%
    ),
    radial-gradient(
      900px 520px at 110% 0%,
      rgba(123, 92, 255, 0.14),
      transparent 55%
    ),
    linear-gradient(180deg, var(--bg), var(--bg2) 40%, var(--bg));
}

a {
  color: inherit;
  text-decoration: none;
}
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
}
section {
  padding: 96px 0;
}
.smallcaps {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(233, 236, 244, 0.72);
}
h1,
h2,
h3 {
  line-height: 1.08;
}
h1 {
  font-size: 72px;
  letter-spacing: 0.04em;
}
h2 {
  font-size: 40px;
}
p {
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
  backdrop-filter: blur(10px);
}
.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
}
.btn.primary {
  border-color: rgba(77, 163, 255, 0.55);
  background: rgba(77, 163, 255, 0.14);
  color: #eaf3ff;
}
.btn.primary:hover {
  background: rgba(77, 163, 255, 0.2);
  border-color: rgba(77, 163, 255, 0.72);
}
.btn.ghost {
  background: transparent;
}

.card {
  border: 1px solid var(--line2);
  background: linear-gradient(180deg, var(--panel), rgba(9, 11, 18, 0.55));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.grid {
  display: grid;
  gap: 22px;
}
.grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 980px) {
  h1 {
    font-size: 52px;
  }
  h2 {
    font-size: 32px;
  }
  section {
    padding: 72px 0;
  }
  .grid.cols-3 {
    grid-template-columns: 1fr;
  }
  .grid.cols-2 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  h1 {
    font-size: 42px;
  }
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 8, 12, 0.55);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 220px;
}
.brand img {
  height: 38px;
  width: auto;
  display: block;
}
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav a {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(233, 236, 244, 0.82);
  padding: 10px 8px;
  border-radius: 12px;
}
.nav a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
.header-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}
.burger {
  display: none;
  gap: 6px;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.burger span {
  height: 2px;
  width: 18px;
  background: rgba(233, 236, 244, 0.85);
  border-radius: 2px;
}
@media (max-width: 980px) {
  .nav {
    display: none;
  }
  .burger {
    display: flex;
  }
  .brand {
    min-width: auto;
  }
}

/* Mobile menu */
.mobile {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(6, 8, 12, 0.75);
  backdrop-filter: blur(12px);
}
.mobile.open {
  display: block;
}
.mobile a {
  display: block;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(233, 236, 244, 0.86);
}
.mobile a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

/* Hero */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: flex-end;
  padding: 96px 0 56px;
  background: radial-gradient(
      800px 420px at 20% 20%,
      rgba(77, 163, 255, 0.18),
      transparent 55%
    ),
    linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.85)),
    url("../images/3.jpg");
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(7, 9, 13, 0.88) 0%,
    rgba(7, 9, 13, 0.55) 45%,
    rgba(7, 9, 13, 0.25) 70%,
    rgba(7, 9, 13, 0.15) 100%
  );
  pointer-events: none;
}
.hero .inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 18px;
  max-width: 880px;
}
.hero .kicker {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(233, 236, 244, 0.86);
  font-size: 12px;
}
.hero p {
  font-size: 18px;
  max-width: 620px;
}
.hero .actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 18px 0 0;
}

/* Sections */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: stretch;
}
@media (max-width: 980px) {
  .split {
    grid-template-columns: 1fr;
  }
}
.panel {
  padding: 26px;
  border-radius: var(--radius2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, var(--panel), rgba(9, 11, 18, 0.55));
  box-shadow: var(--shadow);
}
.media {
  border-radius: var(--radius2);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 340px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.78)),
    url("../images/workshop.jpg");
  background-size: cover;
  background-position: center;
}
.media .label {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  font-size: 12px;
  color: rgba(233, 236, 244, 0.88);
}

/* Feature cards */
.feature {
  padding: 22px;
}
.icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(
    180deg,
    rgba(77, 163, 255, 0.18),
    rgba(255, 255, 255, 0.04)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.feature h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.feature p {
  font-size: 14px;
}
.feature .smallcaps {
  margin-bottom: 8px;
  display: block;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.stat {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}
.stat strong {
  font-size: 20px;
  display: block;
}
.stat span {
  font-size: 12px;
  color: rgba(233, 236, 244, 0.72);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
@media (max-width: 980px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Footer */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 8, 12, 0.6);
  padding: 64px 0 32px;
}
.footer .top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
}
.footer .logo {
  max-width: 240px;
  opacity: 0.95;
}
.footer h4 {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(233, 236, 244, 0.74);
  margin-bottom: 12px;
}
.footer p,
.footer a {
  font-size: 14px;
  color: rgba(233, 236, 244, 0.72);
}
.footer a:hover {
  color: #fff;
}
.footer .bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.footer .bottom span {
  font-size: 13px;
  color: rgba(233, 236, 244, 0.62);
}
@media (max-width: 980px) {
  .footer .top {
    grid-template-columns: 1fr;
  }
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.show {
  opacity: 1;
  transform: none;
}
