html, body { max-width: 100%; }
html, body { overflow-x: hidden; }

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(20, 20, 20, 0.9); backdrop-filter: blur(10px); border-bottom: var(--border-default); }
.header-inner { min-height: 4.25rem; display: flex; align-items: center; justify-content: space-between; }
.brand { font-family: var(--font-heading); font-size: 2.1rem; color: var(--color-text-primary); text-decoration: none; letter-spacing: 0.02em; }
.menu-btn { width: 2.5rem; height: 2.5rem; background: transparent; border: 1px solid #cecece66; display: grid; place-content: center; gap: 4px; }
.menu-btn span { width: 1rem; height: 2px; background: var(--color-accent); display: block; }

.main-nav { position: fixed; inset: 4.25rem 0 auto; display: none; gap: var(--space-12); padding: var(--space-16); background: #1f1f1f; border-top: var(--border-default); border-bottom: var(--border-default); }
.main-nav.open { display: grid; }
.main-nav a { color: var(--color-text-primary); text-decoration: none; }
.nav-cta { justify-self: start; }

.hero { position: relative; overflow: hidden; background: radial-gradient(circle at 30% 8%, #2a42ff 0%, #0f22d3 38%, #121212 72%); padding-top: 0.25rem; }
.hero-glow { position: absolute; pointer-events: none; border-radius: 50%; filter: blur(42px); }
.hero-glow-a { width: 280px; height: 280px; right: -100px; top: 30px; background: #beff0066; }
.hero-glow-b { width: 220px; height: 220px; left: -80px; bottom: -60px; background: #f1831c33; }

.hero-grid { display: grid; gap: var(--space-24); align-items: center; position: relative; z-index: 2; }
.hero-copy-col { position: relative; z-index: 6; }
.eyebrow { color: var(--color-accent); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.surface-light .eyebrow { color: var(--color-brand); }
.hero-title { max-width: 13ch; line-height: 0.95; }
.hero-copy { max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-12); margin: var(--space-16) 0; }
.trust-row { display: flex; flex-wrap: wrap; gap: var(--space-8); }

.hero-phones { position: relative; min-height: 400px; overflow: visible; z-index: 4; }
.phone-stack {
  position: absolute;
  width: min(286px, 76vw);
  border-radius: 30px;
  padding: 12px;
  background: linear-gradient(165deg, #1e1e1e, #0e0e0e);
  border: 1px solid #ffffff2b;
  box-shadow: 0 34px 48px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.phone-stack::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 16px;
  border-radius: 999px;
  background: #080808;
  z-index: 3;
}

.phone-stack img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}

.phone-a { left: 18px; top: 62px; transform: rotate(-5deg); }
.phone-b { right: 8px; top: 14px; transform: rotate(7deg); }

.ticker-wrap {
  position: relative;
  z-index: 12;
  background-color: #fafafa;
  background-image: url("../bg-white.svg");
  background-repeat: repeat;
  background-size: 402px 197px;
  overflow: hidden;
  border: 0;
  transform: rotate(-1.35deg);
  transform-origin: center;
  width: 112%;
  height: 46px;
  margin: -20px 0 -0.45rem -6%;
}

.ticker-marquee {
  display: flex;
  width: max-content;
  animation: ticker-marquee 32s linear infinite;
  will-change: transform;
}

.ticker-segment {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 1.5rem;
  padding: 0.4rem 0.75rem;
  color: #222;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  white-space: nowrap;
}

.ticker-segment span::before {
  content: "✸ ";
  color: #222;
}

@keyframes ticker-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-marquee {
    animation: none;
  }

  .ticker-segment[aria-hidden="true"] {
    display: none;
  }
}

.social-proof { border-bottom: var(--border-default); padding-top: var(--space-16); margin-top: 14px; }
.stats-grid { display: grid; gap: var(--space-16); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats-grid article { border: 1px solid #cecece22; background: #252525; padding: var(--space-12); }
.stats-grid strong { display: block; font-family: var(--font-heading); color: var(--color-accent); font-size: 2.4rem; line-height: 1; }
.stats-grid span { color: var(--color-text-muted); font-size: 0.92rem; }

.section-headline {
  display: grid;
  gap: 0.2rem;
  margin-bottom: var(--space-16);
}

.steps-grid, .features-grid, .purpose-grid { display: grid; gap: var(--space-16); }

.timeline {
  display: grid;
  gap: var(--space-12);
}

.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-12);
  border: 1px solid #ffffff22;
  background: linear-gradient(120deg, #2c2c2c, #1e1e1e);
  padding: var(--space-16);
  align-items: center;
}

.timeline-icon {
  width: 3.2rem;
  height: 3.2rem;
  display: grid;
  place-items: center;
}

.timeline-icon svg {
  width: 100%;
  height: 100%;
}
.timeline-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.timeline-item h3 {
  margin-bottom: 0.2rem;
}

.timeline-item p {
  margin: 0;
  color: var(--color-text-muted);
}

.section-head { display: flex; justify-content: space-between; gap: var(--space-16); align-items: center; }
.carousel-controls { display: flex; gap: var(--space-8); }
.carousel {
  margin-top: var(--space-12);
  border: 1px solid #ffffff2b;
  background: #111;
  overflow: hidden;
  position: relative;
  padding: var(--space-12) 0;
}

.carousel-track {
  display: flex;
  gap: var(--space-12);
  padding: 0 var(--space-12);
  transition: transform 0.45s ease;
  will-change: transform;
  width: max-content;
}

.carousel-slide {
  flex: 0 0 210px;
  border: 1px solid #ffffff2b;
  background: linear-gradient(145deg, #2a2a2a, #1b1b1b);
  padding: 8px;
  cursor: zoom-in;
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  background: rgba(0, 0, 0, 0.86);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-image {
  max-width: min(92vw, 540px);
  max-height: 86vh;
  width: auto;
  height: auto;
  border: 1px solid #ffffff33;
  background: #111;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid #ffffff55;
  background: #252525;
  color: #fafafa;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.feature-card {
  border: 1px solid #ffffff24;
  background: linear-gradient(120deg, #252525, #2f2f2f);
  padding: var(--space-16);
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, border-color .25s ease;
}
.feature-card:hover { transform: translateY(-6px); border-color: #beff00aa; }
.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.4rem;
  border: 1px solid #beff0080;
  background: #beff0020;
}
.feature-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.purpose-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.purpose-card {
  position: relative;
  border: 1px solid #ffffff22;
  background: linear-gradient(125deg, #2c2c2c, #1e1e1e);
  padding: var(--space-16);
  min-height: 9rem;
  display: grid;
  align-content: start;
  gap: 0.4rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.purpose-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #beff00 0%, #0f22d3 100%);
}

.purpose-card h4 {
  margin: 0;
  color: var(--color-text-primary);
  font-size: 2rem;
}

.purpose-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.purpose-card:hover {
  transform: translateY(-3px);
  border-color: #ffffff44;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.faq-list { display: grid; gap: var(--space-12); }
.faq-item { border: 1px solid #ffffff22; background: linear-gradient(130deg, #2b2b2b, #212121); }
.faq-question { width: 100%; border: 0; background: transparent; color: var(--color-text-primary); display: flex; justify-content: space-between; align-items: center; padding: var(--space-12) var(--space-16); text-align: left; cursor: pointer; }
.faq-question span { color: var(--color-accent); font-size: 1.6rem; transition: transform .2s ease; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-answer p { margin: 0; padding: 0 var(--space-16) var(--space-16); color: var(--color-text-muted); }
.faq-item.open .faq-answer { max-height: 220px; }
.faq-item.open .faq-question span { transform: rotate(45deg); }

.cta-block {
  background: radial-gradient(circle at 70% 0%, #3152ff 0%, #0f22d3 34%, #141414 85%);
  border-top: 1px solid #ffffff22;
  border-bottom: 1px solid #ffffff22;
}
.cta-inner { text-align: center; }
.cta-inner .hero-cta { justify-content: center; }
.cta-copy { max-width: 58ch; margin-inline: auto; color: #fafaf0; }

/* Footer layout lives in css/styles.css (shared site-footer) */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (min-width: 768px) {
  .menu-btn { display: none; }
  .main-nav { position: static; display: flex; background: transparent; border: 0; padding: 0; align-items: center; }
  .hero-grid { grid-template-columns: 1.06fr .94fr; }
  .hero-title { max-width: 14ch; white-space: normal; font-size: clamp(2.8rem, 4.2vw, 3.8rem); }
  .hero { padding-top: 5.5rem; }
  .hero-phones { min-height: 520px; }
  .phone-stack { width: 312px; }
  .phone-a { top: 78px; left: 28px; }
  .phone-b { top: 12px; right: 16px; }
  .ticker-wrap { width: 106%; margin-left: -3%; margin-top: -24px; height: 48px; }
  .social-proof { margin-top: 18px; }
  .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .carousel-slide { flex-basis: 245px; }
  .carousel-slide img { height: 410px; }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .purpose-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
