/* ── PhantomCapy Landing Page Styles ── */

/* ────────────────────────────────────
   KEYFRAMES
   ──────────────────────────────────── */
@keyframes mascot-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes glow-pulse {
  0%, 100% {
    text-shadow:
      0 0 20px rgba(34, 197, 94, 0.35),
      0 0 60px rgba(34, 197, 94, 0.15);
  }
  50% {
    text-shadow:
      0 0 35px rgba(34, 197, 94, 0.65),
      0 0 90px rgba(34, 197, 94, 0.3);
  }
}
@keyframes btn-breath {
  0%, 100% {
    box-shadow:
      0 0 32px rgba(34, 197, 94, 0.32),
      0 4px 16px rgba(34, 197, 94, 0.22);
  }
  50% {
    box-shadow:
      0 0 52px rgba(34, 197, 94, 0.55),
      0 6px 28px rgba(34, 197, 94, 0.38);
  }
}

/* ────────────────────────────────────
   SCROLL REVEAL
   ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 0.68, 0, 1.2),
    transform 0.6s cubic-bezier(0.22, 0.68, 0, 1.2);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* ────────────────────────────────────
   GLASS CARD
   ──────────────────────────────────── */
.card-gb {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 14, 26, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: border-color 0.25s;
}
.card-gb:hover {
  border-color: transparent;
  background:
    linear-gradient(#0a0e1a, #0a0e1a) padding-box,
    conic-gradient(from var(--angle), #22c55e, #3a8dff, #8b5cf6, #22c55e) border-box;
  animation: spin-border 3s linear infinite;
}

/* ══════════════════════════════════
   HERO
   ══════════════════════════════════ */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - 4.5rem);
  background-image: url('/images/hero_bg_new.webp');
  background-size: cover;
  background-position: center top;
  display: flex;
  flex-direction: column;
}

/* bottom fade */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    #080818 0%,
    rgba(8, 8, 24, 0.4) 28%,
    transparent 58%
  );
  pointer-events: none;
  z-index: 0;
}

/* subtle scanline texture */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.04) 3px,
    rgba(0, 0, 0, 0.04) 4px
  );
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.hero-row {
  flex: 1;
  display: flex;
  align-items: flex-end;
}

.hero-inner {
  flex: 1;
  align-self: center;
  padding: 2rem 0;
  max-width: 38rem;
}

.hero-mascot {
  flex-shrink: 0;
  align-self: flex-end;
  height: 86vh;
  pointer-events: none;
  margin-left: auto;
  margin-right: -1.25rem;
  animation: mascot-float 5s ease-in-out infinite;
}
.hero-mascot img {
  height: 100%;
  width: auto;
  display: block;
  filter:
    drop-shadow(0 0 40px rgba(34, 197, 94, 0.22))
    drop-shadow(0 20px 60px rgba(0, 0, 0, 0.5));
}

/* ── Eyebrow badge ── */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(34, 197, 94, 0.75);
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 2rem;
  padding: 0.3rem 0.875rem 0.3rem 0.625rem;
  margin-bottom: 1.25rem;
}

.eyebrow-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: dot-pulse 2s ease-in-out infinite;
}

/* ── Hero title ── */
.hero-title {
  font-family: 'Unbounded', system-ui, sans-serif;
  font-size: clamp(2rem, 5.5vw, 4.25rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}
.hero-title .line-white {
  color: #e5e7eb;
  display: block;
}
.hero-title .line-green {
  color: #22c55e;
  display: block;
  animation: glow-pulse 3s ease-in-out infinite;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* ── Hero body ── */
.hero-body {
  font-size: clamp(0.9375rem, 1.5vw, 1.125rem);
  line-height: 1.55;
  color: #e5e7eb;
  margin-top: 1.5rem;
}
.hero-body p { margin: 0; }
.hero-body p + p { margin-top: 0.25rem; }

/* ── Download button ── */
.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 4rem;
  padding: 0 2.5rem;
  border-radius: 2rem;
  background: #22c55e;
  color: #080818;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow:
    0 0 32px rgba(34, 197, 94, 0.32),
    0 4px 16px rgba(34, 197, 94, 0.22);
  transition: transform 0.15s, box-shadow 0.15s;
  margin-top: 2.25rem;
  animation: btn-breath 3s ease-in-out infinite;
}
.btn-download:hover {
  transform: scale(1.015);
  box-shadow:
    0 0 48px rgba(34, 197, 94, 0.48),
    0 8px 28px rgba(34, 197, 94, 0.3);
}
.btn-download:active {
  transform: scale(0.99);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.22);
}

.hero-note {
  font-size: 0.75rem;
  line-height: 1;
  color: #9ca3af;
  margin-top: 0.875rem;
}

/* ── Stats bar ── */
.hero-stats-bar {
  background: rgba(10, 14, 26, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 1.125rem 0;
}

.stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.stat-num {
  font-family: 'Unbounded', system-ui, sans-serif;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 700;
  color: #22c55e;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
}

.stat-sep {
  width: 1px;
  height: 2.25rem;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

/* ══════════════════════════════════
   SECTIONS — shared
   ══════════════════════════════════ */
.section {
  position: relative;
  padding: 5rem 0;
  background: transparent;
}

.section-install::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 70% at 15% 50%,
    rgba(34, 197, 94, 0.11) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}
.section-benefits::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 65% at 85% 40%, rgba(139, 92, 246, 0.13) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 20% 80%, rgba(58, 141, 255, 0.1) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.section-faq::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 50% 60% at 50% 30%,
    rgba(58, 141, 255, 0.11) 0%,
    transparent 65%
  );
  pointer-events: none;
  z-index: 0;
}
.section-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 80% at 50% 60%,
    rgba(34, 197, 94, 0.08) 0%,
    transparent 65%
  );
  pointer-events: none;
  z-index: 0;
}

.section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(34, 197, 94, 0.12) 25%,
    rgba(58, 141, 255, 0.12) 75%,
    transparent 100%
  );
  pointer-events: none;
}

.section > .container {
  position: relative;
  z-index: 1;
}

/* ── Section header with decorative number ── */
.section-header {
  position: relative;
  text-align: center;
  margin-bottom: 3rem;
  padding-top: 1.5rem;
}

.section-num {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Unbounded', system-ui, sans-serif;
  font-size: clamp(4rem, 8vw, 6.5rem);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(34, 197, 94, 0.08);
  letter-spacing: -0.04em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.section-title {
  font-family: 'Unbounded', system-ui, sans-serif;
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 800;
  color: #e5e7eb;
  text-align: center;
  margin: 0;
  letter-spacing: -0.02em;
  position: relative;
}

/* ──────────── STEPS ──────────── */
.steps-row {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}

.step-item {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  gap: 1rem;
}

.step-connector,
.step-arrow {
  display: flex;
  align-items: center;
  padding: 0 0.125rem;
  flex-shrink: 0;
}
.step-connector svg,
.step-arrow svg {
  color: rgba(34, 197, 94, 0.45);
  width: 1.25rem;
  height: 1.25rem;
}

.step-num {
  width: 2.25rem;
  height: 2.25rem;
  min-width: 2.25rem;
  border-radius: 50%;
  background: transparent;
  border: 2px solid rgba(34, 197, 94, 0.5);
  color: rgba(34, 197, 94, 0.8);
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.card-gb:hover .step-num,
.card-gb:hover .step-num-final {
  background: #22c55e;
  border-color: #22c55e;
  color: #080818;
}

.step-content {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.step-item h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #e5e7eb;
  margin: 0;
}
.step-item p {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #9ca3af;
  margin: 0;
}

/* ──────────── BENEFITS ──────────── */
.benefits-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.benefit-inner {
  padding: 1.5rem;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
}
.benefit-text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.benefit-icon {
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem;
  border-radius: 50%;
  background: transparent;
  border: 2px solid rgba(34, 197, 94, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s, border-color 0.25s;
}
.card-gb:hover .benefit-icon {
  background: rgba(34, 197, 94, 0.12);
  border-color: #22c55e;
}
.benefit-text h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #e5e7eb;
  margin: 0;
}
.benefit-text p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #9ca3af;
  margin: 0;
}

/* ──────────── FAQ (Alpine accordion) ──────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 45rem;
  margin: 0 auto;
}

.faq-item {
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item.faq-active {
  border-color: rgba(34, 197, 94, 0.3);
}

.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #e5e7eb;
  line-height: 1.4;
}
.faq-trigger:hover {
  color: #ffffff;
}

.faq-chevron {
  color: #22c55e;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.faq-chevron-open {
  transform: rotate(180deg);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  padding: 0 1.25rem;
}
.faq-body-open {
  max-height: 16rem;
  padding-bottom: 1.25rem;
}

.faq-body p {
  margin: 0;
  font-size: 0.875rem;
  color: #9ca3af;
  line-height: 1.6;
}
.faq-body a {
  color: #3a8dff;
  text-decoration: none;
}
.faq-body a:hover {
  text-decoration: underline;
}

/* ──────────── BOTTOM CTA ──────────── */
.section-cta {
  text-align: center;
  padding: 5rem 0;
}

.cta-tagline {
  font-family: 'Unbounded', system-ui, sans-serif;
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: #e5e7eb;
  letter-spacing: -0.02em;
  margin: 0 0 2rem;
}

.cta-note {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 1rem;
}

/* ──────────── RESPONSIVE ──────────── */
@media (max-width: 63.9375em) {
  .hero {
    background-image: url('/images/hero_bg_new-md.webp');
  }
  .hero-title { line-height: 1.12; }
  .hero-row { align-items: center; }
  .hero-mascot {
    height: 60vh;
    align-self: center;
    margin-left: 0;
  }
  .hero-inner {
    min-width: 18rem;
    max-width: 50%;
  }

  .stats-row { gap: 1.5rem; }

  .section-num { font-size: clamp(3rem, 6vw, 5rem); }

  .steps-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  .step-connector,
  .step-arrow { display: none; }

  .benefits-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 47.9375em) {
  .hero {
    background-image: url('/images/hero_bg_new-sm.webp');
  }
  .hero .container {
    padding-top: 1rem;
    justify-content: flex-start;
  }
  .hero-row {
    flex-direction: column;
    align-items: stretch;
    flex: none; /* let content dictate height, not stretch to fill */
  }
  .hero-mascot {
    order: -1;
    height: 28vh;       /* was 38vh — reduced so text sits higher */
    max-height: 13rem;  /* was 18rem */
    margin-left: 0;
    margin-right: 0;
    align-self: center;
  }
  .hero-inner {
    order: 0;
    align-self: auto;
    max-width: 100%;
    padding: 0.75rem 0 1.5rem;
    text-align: center;
  }
  .hero-title { line-height: 1.15; }
  .hero-eyebrow { margin-left: auto; margin-right: auto; }
  .btn-download {
    height: 3.375rem;
    padding: 0 1.75rem;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-note { text-align: center; }

  /* stats: grid instead of flex so items never overlap */
  .stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    text-align: center;
  }
  .stat-item {
    padding: 0 0.25rem;
  }
  .stat-num {
    font-size: clamp(0.8125rem, 3.5vw, 1rem);
  }
  .stat-label {
    font-size: 0.5625rem;
    letter-spacing: 0.04em;
  }
  .stat-sep { display: none; }

  .section { padding: 3.5rem 0; }
  .section-header { margin-bottom: 2rem; }
  .section-num { display: none; }

  .steps-row {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
  }
  .step-connector,
  .step-arrow { display: none; }

  .benefits-row {
    grid-template-columns: 1fr;
    gap: 0.625rem;
  }

  .faq-trigger { padding: 1rem; }
  .faq-body { padding-left: 1rem; padding-right: 1rem; }
  .faq-body-open { padding-bottom: 1rem; }

  .section-cta { padding: 3rem 0; }
  .cta-tagline { margin-bottom: 1.5rem; }
}
