/* ============ APEXGARD landing ============ */

:root {
  --bg: #070c0f;
  --bg-2: #0b1217;
  --bg-card: #0d161c;
  --bg-card-2: #101b22;
  --accent: #35d6d2;
  --accent-dim: #1fa9a6;
  --accent-glow: rgba(53, 214, 210, 0.35);
  --text: #e9f1f2;
  --text-muted: #93a6ab;
  --border: rgba(53, 214, 210, 0.16);
  --border-strong: rgba(53, 214, 210, 0.38);
  --radius: 18px;
  --font-head: "Montserrat", sans-serif;
  --font-body: "Inter", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

.container {
  width: min(1180px, 100% - 40px);
  margin-inline: auto;
}

.accent { color: var(--accent); }

.section { padding: 90px 0; }

.section__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(26px, 4vw, 40px);
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.02em;
  margin-bottom: 56px;
}

/* ============ Buttons ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.btn--solid {
  background: var(--accent);
  color: #04282a;
}
.btn--solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn--outline {
  border: 1.5px solid var(--border-strong);
  color: var(--accent);
  background: transparent;
}
.btn--outline:hover {
  background: var(--accent);
  color: #04282a;
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn--wide { width: 100%; }

/* ============ Header ============ */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.header.is-scrolled {
  background: rgba(7, 12, 15, 0.88);
  backdrop-filter: blur(14px);
  padding: 10px 0;
  box-shadow: 0 1px 0 var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.logo__mark { width: 44px; height: auto; flex: none; }

.logo__full { width: 120px; height: auto; }

.logo__text {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 19px;
  letter-spacing: 0.14em;
}
.logo__text b { font-weight: 800; color: var(--accent); }

.nav { display: flex; gap: 28px; }

.nav__link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  transition: color 0.2s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav__link:hover,
.nav__link.is-active { color: var(--accent); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }

.header__cta { padding: 11px 22px; font-size: 12px; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}
.burger span {
  width: 24px; height: 2px;
  background: var(--accent);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 12, 15, 0.96) 8%, rgba(7, 12, 15, 0.55) 50%, rgba(7, 12, 15, 0.35) 100%),
    url("../assets/hero-car.png") center right / cover no-repeat;
  z-index: -1;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 180px;
  background: linear-gradient(to bottom, transparent, var(--bg));
}

.hero__inner {
  max-width: 720px;
}

.hero__kicker {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 8px 18px;
  margin-bottom: 22px;
  animation: kicker-glow 3s ease-in-out infinite;
}

@keyframes kicker-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(53, 214, 210, 0); }
  50% { box-shadow: 0 0 18px rgba(53, 214, 210, 0.25); }
}

.hero__content .hero__kicker,
.hero__content .hero__title,
.hero__content .hero__subtitle,
.hero__content .hero__badges {
  animation: hero-enter 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero__content .hero__title { animation-delay: 0.08s; }
.hero__content .hero__subtitle { animation-delay: 0.16s; }
.hero__content .hero__badges { animation-delay: 0.24s; }

@keyframes hero-enter {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-badge__icon {
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: rgba(13, 22, 28, 0.7);
  color: var(--accent);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.hero-badge:hover .hero-badge__icon {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(53, 214, 210, 0.2);
}

.hero__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.12;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 38px;
}

.hero__badges {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 14px;
  list-style: none;
}

.hero-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  max-width: 110px;
}

.hero-badge__icon svg { width: 26px; height: 26px; }

/* ============ Products ============ */

.products { background: var(--bg); }

.products__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.product-card {
  background: linear-gradient(180deg, var(--bg-card-2), var(--bg-card));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.35s ease;
  position: relative;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --lift: 0px;
}
.product-card[data-tilt] {
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(var(--lift));
}
.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 42%, rgba(53, 214, 210, 0.07) 50%, transparent 58%);
  transform: translateX(-130%);
  transition: transform 0.65s ease;
  pointer-events: none;
  z-index: 2;
}
.product-card:hover::before { transform: translateX(130%); }
.product-card:hover {
  border-color: var(--border-strong);
  --lift: -4px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 50px rgba(53, 214, 210, 0.07);
}

.product-card__media {
  background: radial-gradient(ellipse at center, rgba(53, 214, 210, 0.10), transparent 70%);
  display: grid;
  place-items: center;
  padding: 30px;
}
.product-card__media img {
  max-height: 420px;
  width: 100%;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}

.product-card__body {
  padding: 32px 34px 38px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 26px;
  text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: 8px;
}

.product-card__desc {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 28px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 34px;
  flex: 1;
}

.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature__icon {
  flex: none;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  color: var(--accent);
  background: rgba(53, 214, 210, 0.06);
}
.feature__icon svg { width: 22px; height: 22px; }

.feature h4 {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.feature p {
  font-size: 13.5px;
  color: var(--text-muted);
}

.product-card .btn { align-self: flex-start; }

/* ============ How to use ============ */

.howto {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(53, 214, 210, 0.06), transparent 55%),
    var(--bg);
}

.howto__intro {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: -28px auto 52px;
  font-size: 15px;
}

.howto__layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}

.howto__steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.howto-step {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.howto-step:hover {
  border-color: var(--border-strong);
  transform: translateX(4px);
}

.howto-step__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.85;
  flex: none;
  width: 52px;
}

.howto-step h3 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}

.howto-step p {
  font-size: 14px;
  color: var(--text-muted);
}
.howto-step p + p {
  margin-top: 10px;
}
.howto-step p b { color: var(--accent); }

.howto__card {
  position: sticky;
  top: 90px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
}

.howto__img {
  width: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.howto__ratio {
  padding: 24px 26px 28px;
  border-top: 1px solid var(--border);
}

.howto__ratio-label {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.howto__ratio-value {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 30px;
  color: var(--accent);
  margin-bottom: 10px;
}
.howto__ratio-value span {
  font-size: 16px;
  color: var(--text);
  font-weight: 700;
}

.howto__ratio-note {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ============ Why ============ */

.why { background: var(--bg-2); }

.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.why-item {
  text-align: center;
  padding: 30px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.why-item:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.why-item__icon {
  display: inline-grid;
  place-items: center;
  width: 58px; height: 58px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--accent);
  margin-bottom: 18px;
}
.why-item__icon svg { width: 28px; height: 28px; }

.why-item h3 {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.why-item p {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ============ Audience ============ */

.audience__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.audience-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 380px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.35s ease;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --lift: 0px;
}
.audience-card[data-tilt] {
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(var(--lift));
}
.audience-card:hover {
  border-color: var(--border-strong);
  --lift: -4px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.audience-card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.audience-card:hover img { transform: scale(1.06); }
.reveal-group.is-visible .audience-card img {
  animation: audience-zoom 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes audience-zoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

.audience-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  background: linear-gradient(to top, rgba(7, 12, 15, 0.95) 10%, rgba(7, 12, 15, 0.45) 50%, transparent 80%);
}

.audience-card__icon {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--accent);
  background: rgba(7, 12, 15, 0.6);
  margin-bottom: 14px;
}
.audience-card__icon svg { width: 24px; height: 24px; }

.audience-card h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.audience-card p {
  font-size: 13.5px;
  color: var(--text-muted);
}

/* ============ CTA ============ */

.cta {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(53, 214, 210, 0.08), transparent 60%),
    var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta__inner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  align-items: center;
}

.cta__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(24px, 3.4vw, 36px);
  text-transform: uppercase;
  line-height: 1.18;
  margin-bottom: 34px;
}

.cta__features {
  list-style: none;
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
}

.cta__features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}
.cta__features li b { color: var(--text); }
.cta__features svg { width: 30px; height: 30px; color: var(--accent); flex: none; }

.cta__delivery {
  flex: 1 1 100%;
  max-width: 100%;
}
.cta__delivery span {
  max-width: 520px;
}

.cta__card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.cta__question {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  color: var(--text-muted);
  font-size: 14px;
}
.cta__question b { color: var(--text); font-size: 16px; }
.cta__question svg { color: var(--accent); flex: none; }

/* ============ Footer ============ */

.footer { background: var(--bg); padding-top: 56px; }

.footer__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--border);
}

.footer__text {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

.footer__social p {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-align: right;
}

.footer__icons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.footer__icons a {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--accent);
  transition: background 0.2s ease, color 0.2s ease;
}
.footer__icons a:hover { background: var(--accent); color: #04282a; }
.footer__icons svg { width: 20px; height: 20px; }

.footer__bottom {
  padding: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* ============ Motion & polish ============ */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 200;
  pointer-events: none;
  box-shadow: 0 0 12px var(--accent-glow);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 98;
  backdrop-filter: blur(2px);
}
.nav-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

body.nav-open { overflow: hidden; }

.btn:active { transform: scale(0.97); }

.reveal-group .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-group.is-visible .reveal {
  opacity: 1;
  transform: translateY(0);
}
.reveal-group.is-visible .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-group.is-visible .reveal:nth-child(2) { transition-delay: 90ms; }
.reveal-group.is-visible .reveal:nth-child(3) { transition-delay: 180ms; }
.reveal-group.is-visible .reveal:nth-child(4) { transition-delay: 270ms; }
.reveal-group.is-visible .reveal:nth-child(5) { transition-delay: 360ms; }
.reveal-group.is-visible .reveal:nth-child(6) { transition-delay: 450ms; }

/* ============ Reveal animation ============ */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-group .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero__content .hero__kicker,
  .hero__content .hero__title,
  .hero__content .hero__subtitle,
  .hero__content .hero__badges,
  .hero__kicker { animation: none; }
  .scroll-progress { display: none; }
  .product-card[data-tilt],
  .audience-card[data-tilt] { transform: none; }
  .product-card::before { display: none; }
  .reveal-group.is-visible .audience-card img { animation: none; }
}

/* ============ Responsive ============ */

@media (max-width: 1024px) {
  .hero__badges { grid-template-columns: repeat(4, 1fr); }

  .products__grid { grid-template-columns: 1fr; }
  .howto__layout { grid-template-columns: 1fr; }
  .howto__card { position: static; max-width: 420px; margin-inline: auto; }
  .why__grid { grid-template-columns: repeat(3, 1fr); }
  .audience__grid { grid-template-columns: 1fr 1fr; }
  .cta__inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }

  .nav {
    position: fixed;
    top: 0; right: 0;
    height: 100dvh;
    width: min(320px, 80vw);
    flex-direction: column;
    gap: 8px;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    padding: 90px 28px 28px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 99;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__link { font-size: 17px; padding: 12px 0; }

  .header__cta { display: none; }
  .burger { display: flex; z-index: 100; }

  .why__grid { grid-template-columns: 1fr 1fr; }
  .audience__grid { grid-template-columns: 1fr; }
  .hero__badges { grid-template-columns: 1fr 1fr; justify-items: center; }
  .hero-badge { max-width: none; }

  .footer__inner { grid-template-columns: 1fr; justify-items: center; }
  .footer__social p, .footer__icons { text-align: center; justify-content: center; }
}

@media (max-width: 480px) {
  .why__grid { grid-template-columns: 1fr; }
  .cta__features { flex-direction: column; gap: 18px; }
}
