/* ============================================================
   SlotAero — Product Page Styles
   ============================================================ */

/* ---- Tokens ---- */
:root {
  --bg-deep: #080c12;
  --bg-card: #0b1018;
  --bg-card-hover: #0e1420;
  --accent-blue: #4a9eff;
  --accent-cyan: #00d4aa;
  --accent-amber: #ffaa2c;
  --accent-red: #ff4757;
  --accent-green: #2ed573;
  --text-primary: #c8d6e5;
  --text-dim: #556677;
  --border: rgba(74, 158, 255, 0.08);
  --glow-blue: rgba(74, 158, 255, 0.25);
  --font: 'JetBrains Mono', monospace;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--accent-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* ---- Utility ---- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
  position: relative;
}

.section__label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 12px;
  display: block;
}

.section__title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.25;
}

.section__subtitle {
  font-size: 0.95rem;
  color: var(--text-dim);
  max-width: 580px;
  line-height: 1.7;
}

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children */
.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.35s; }
.reveal-delay-5 { transition-delay: 0.4s; }
.reveal-delay-6 { transition-delay: 0.45s; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}

.nav--scrolled {
  background: rgba(8, 12, 18, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
  padding: 12px 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.nav__logo span { color: var(--accent-blue); }

.nav__links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav__links a {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.25s;
}

.nav__links a:hover {
  color: var(--text-primary);
  text-decoration: none;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 100px 0 80px;
}

/* Radar sweep background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    conic-gradient(from 0deg at 50% 120%, transparent 0deg, rgba(74, 158, 255, 0.04) 30deg, transparent 60deg),
    radial-gradient(ellipse at 50% 120%, rgba(74, 158, 255, 0.06) 0%, transparent 60%);
  animation: radarSweep 8s linear infinite;
}

@keyframes radarSweep {
  to { filter: hue-rotate(360deg); }
}

/* Grid overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(74, 158, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 158, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 70%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero__badge {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 212, 170, 0.2);
  padding: 6px 16px;
  border-radius: 2px;
  margin-bottom: 28px;
}

.hero__logo {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  margin-bottom: 6px;
}

.hero__logo span { color: var(--accent-blue); }

.hero__tag {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 32px;
}

.hero__headline {
  font-size: clamp(1.15rem, 2.8vw, 1.55rem);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.55;
  margin-bottom: 40px;
  max-width: 600px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  text-decoration: none;
}

.btn:hover { text-decoration: none; }

.btn--primary {
  background: var(--accent-blue);
  color: #080c12;
  box-shadow: 0 0 30px rgba(74, 158, 255, 0.2);
}

.btn--primary:hover {
  background: #5eadff;
  box-shadow: 0 0 40px rgba(74, 158, 255, 0.35);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(200, 214, 229, 0.15);
}

.btn--ghost:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  transform: translateY(-2px);
}

.hero__trust {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hero__trust span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__trust span::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}

/* ============================================================
   PROBLEM
   ============================================================ */
.problem__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.problem__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 36px 28px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.problem__card:hover {
  border-color: rgba(255, 71, 87, 0.2);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(-4px);
}

/* -- CSS-drawn problem icons -- */
.problem__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  position: relative;
}

/* Clock — expired slot */
.problem__icon--clock {
  border: 2px solid var(--accent-amber);
  border-radius: 50%;
  opacity: 0.85;
}

.problem__icon--clock::before {
  content: '';
  position: absolute;
  top: 9px;
  left: 50%;
  width: 2px;
  height: 11px;
  background: var(--accent-amber);
  transform: translateX(-50%);
  transform-origin: bottom center;
}

.problem__icon--clock::after {
  content: '';
  position: absolute;
  top: 18px;
  left: 18px;
  width: 9px;
  height: 2px;
  background: var(--accent-amber);
  transform-origin: left center;
  transform: rotate(0deg);
}

/* Alert triangle outlined with exclamation — CTOT violation */
/* Outer filled triangle */
.problem__icon--alert::before {
  content: '';
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  background: var(--accent-red);
  opacity: 0.85;
}

/* Inner cutout — creates outline effect */
.problem__icon--alert::after {
  content: '';
  position: absolute;
  inset: 3px;
  clip-path: polygon(50% 4px, 3px calc(100% - 1px), calc(100% - 3px) calc(100% - 1px));
  background: var(--bg-card);
}

/* Exclamation mark (real element inside the div) */
.problem__icon--alert-bang {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 2.5px;
  height: 12px;
  background: var(--accent-red);
  border-radius: 1px;
  z-index: 2;
  opacity: 0.85;
}

.problem__icon--alert-bang::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent-red);
}

/* Cascade — three staggered bars via box-shadow */
.problem__icon--cascade::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 2px;
  width: 18px;
  height: 3px;
  border-radius: 1px;
  background: var(--accent-red);
  box-shadow:
    6px 8px 0 0 rgba(255, 71, 87, 0.65),
    14px 16px 0 0 rgba(255, 71, 87, 0.35);
}

.problem__card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
}

.problem__card p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.65;
}

.problem__stat {
  margin-top: 16px;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-red);
}

/* ============================================================
   FEATURES
   ============================================================ */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 36px 28px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--card-accent, var(--accent-blue));
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  border-color: rgba(74, 158, 255, 0.15);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(-4px);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 20px;
  background: rgba(74, 158, 255, 0.08);
  color: var(--card-accent, var(--accent-blue));
}

.feature-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ============================================================
   HOW IT WORKS — Flow
   ============================================================ */
.flow {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 56px;
  position: relative;
}

.flow__step {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 12px;
}

.flow__node {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-blue);
  background: var(--bg-deep);
  position: relative;
  z-index: 2;
  transition: background 0.3s, box-shadow 0.3s;
}

.flow__step:hover .flow__node {
  background: rgba(74, 158, 255, 0.1);
  box-shadow: 0 0 24px rgba(74, 158, 255, 0.2);
}

.flow__step h4 {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}

.flow__step p {
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.55;
}

/* connector line between nodes */
.flow__step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(50% + 28px);
  right: calc(-50% + 28px);
  height: 2px;
  background: linear-gradient(90deg, var(--accent-blue), rgba(74, 158, 255, 0.2));
  z-index: 1;
}

/* animated pulse on line */
.flow__step:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(50% + 32px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-blue);
  box-shadow: 0 0 12px var(--accent-blue);
  z-index: 3;
  animation: flowPulse 3s ease-in-out infinite;
  animation-delay: calc(var(--step) * 0.6s);
}

@keyframes flowPulse {
  0%, 100% { opacity: 0; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(calc(100% + 20px)); }
}

/* ============================================================
   SPECS — Terminal Block
   ============================================================ */
.specs__terminal {
  background: #060a10;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 48px;
  max-width: 560px;
}

.specs__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: rgba(74, 158, 255, 0.04);
  border-bottom: 1px solid var(--border);
}

.specs__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-dim);
  opacity: 0.4;
}

.specs__dot:nth-child(1) { background: var(--accent-red); opacity: 0.7; }
.specs__dot:nth-child(2) { background: var(--accent-amber); opacity: 0.7; }
.specs__dot:nth-child(3) { background: var(--accent-green); opacity: 0.7; }

.specs__bar span {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-left: 8px;
  letter-spacing: 0.05em;
}

.specs__body {
  padding: 28px 24px;
}

.specs__line {
  display: flex;
  padding: 6px 0;
  font-size: 0.82rem;
  line-height: 1.8;
}

.specs__key {
  color: var(--accent-cyan);
  min-width: 180px;
  letter-spacing: 0.04em;
}

.specs__val {
  color: var(--text-primary);
}

/* ============================================================
   SHOWCASE — Video + Screenshot Carousel
   ============================================================ */

/* Browser-style frame */
.showcase__frame {
  background: #060a10;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.showcase__frame-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(74, 158, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

.showcase__frame-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.showcase__frame-dot:nth-child(1) { background: var(--accent-red); opacity: 0.7; }
.showcase__frame-dot:nth-child(2) { background: var(--accent-amber); opacity: 0.7; }
.showcase__frame-dot:nth-child(3) { background: var(--accent-green); opacity: 0.7; }

.showcase__frame-title {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-left: 8px;
  letter-spacing: 0.05em;
}

/* Video */
.showcase__video {
  margin-top: 48px;
  margin-bottom: 48px;
}

.showcase__player {
  width: 100%;
  display: block;
}

/* Carousel */
.carousel {
  position: relative;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 8px;
}

.carousel__track {
  display: flex;
  transition: transform 0.5s var(--ease);
  will-change: transform;
}

.carousel__slide {
  flex: 0 0 100%;
  min-width: 0;
}

.showcase__frame--sm {
  cursor: pointer;
  transition: box-shadow 0.3s, border-color 0.3s;
}

.showcase__frame--sm:hover {
  border-color: rgba(74, 158, 255, 0.2);
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.4);
}

.showcase__frame--sm img {
  width: 100%;
  display: block;
}

/* Carousel controls */
.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
}

.carousel__btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(200, 214, 229, 0.12);
  background: var(--bg-card);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  font-family: var(--font);
}

.carousel__btn:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: rgba(74, 158, 255, 0.06);
  transform: scale(1.08);
}

.carousel__dots {
  display: flex;
  gap: 10px;
}

.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
  opacity: 0.3;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.carousel__dot--active {
  opacity: 1;
  background: var(--accent-blue);
  box-shadow: 0 0 10px rgba(74, 158, 255, 0.4);
  transform: scale(1.3);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(4, 6, 10, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.lightbox--open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__img {
  max-width: 95vw;
  max-height: 90vh;
  border-radius: 6px;
  box-shadow: 0 16px 80px rgba(0, 0, 0, 0.6);
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 32px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(200, 214, 229, 0.15);
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  font-family: var(--font);
}

.lightbox__close:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

/* ============================================================
   CTA
   ============================================================ */
.cta {
  text-align: center;
  padding: 100px 0 120px;
}

.cta .section__title {
  max-width: 560px;
  margin: 0 auto 16px;
}

.cta__email {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 32px;
}

.cta__email a {
  color: var(--accent-blue);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
}

.footer__copy {
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

.footer__copy span { color: var(--accent-blue); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .problem__grid,
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .flow__step {
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
    padding: 16px 0;
  }

  .flow__node {
    margin: 0;
    flex-shrink: 0;
  }

  .flow__step h4, .flow__step p { display: inline; }

  .flow__step:not(:last-child)::after {
    top: auto;
    left: 27px;
    right: auto;
    width: 2px;
    height: 100%;
    bottom: -16px;
    top: 56px;
    background: linear-gradient(180deg, var(--accent-blue), rgba(74, 158, 255, 0.2));
  }

  .flow__step:not(:last-child)::before {
    display: none;
  }

  .nav__links { display: none; }
}

@media (max-width: 600px) {
  .problem__grid,
  .features__grid {
    grid-template-columns: 1fr;
  }

  .section { padding: 80px 0; }

  .hero { min-height: auto; padding: 120px 0 80px; }

  .hero__trust { flex-direction: column; gap: 12px; }

  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  .specs__key { min-width: 130px; font-size: 0.72rem; }
  .specs__val { font-size: 0.72rem; }

  .carousel__btn { width: 36px; height: 36px; }
  .carousel__controls { gap: 14px; }
}
