/* ==========================================================================
   FPS Tweaks - Core Stylesheet
   Fonts (Inter, Poppins) are loaded by a <link> in each page's <head>.
   ========================================================================== */

:root {
  --bg-darkest: #07070d;
  --bg-core-900: #0a0a14;
  --bg-core-850: #0e0e1a;
  --bg-core-800: #14141e;
  --bg-core-750: #1a1a28;
  --border-subtle: #1c1c2b;
  --border-muted: #28283c;
  --border-glow: #383852;
  
  --brand-primary: #003D8E;
  --brand-primary-hover: #0052c2;
  --brand-primary-bright: #388bfd;
  --brand-primary-glow: rgba(0, 61, 142, 0.45);
  --brand-indigo: #6366f1;
  --brand-indigo-bright: #7c87fa;
  --brand-cyan: #5bcee2;
  --brand-teal: #7cface;
  --brand-red: #f05858;
  --brand-purple: #d67cfa;

  --text-primary: #ffffff;
  --text-secondary: #bcbcc8;
  --text-muted: #81818c;
  --text-dim: #7d7d8a; /* lowest-contrast text; still 4.5:1+ on the card and footer backgrounds */

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Poppins', 'Inter', sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-core-900);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Keyboard focus ring */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brand-primary-bright);
  outline-offset: 3px;
}

/* Ambient Radial Background Glows */
.ambient-glow-top {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  height: 600px;
  background: radial-gradient(circle at 50% 10%, rgba(99, 102, 241, 0.16) 0%, rgba(0, 61, 142, 0.14) 35%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: #fff;
  line-height: 1.2;
}

.text-gradient-brand {
  background: linear-gradient(135deg, #ffffff 30%, #7c87fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-brand-angle {
  background: linear-gradient(90deg, #7c87fa 0%, #388bfd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Container */
.container {
  width: 100%;
  max-width: 1680px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

@media (min-width: 1280px) {
  .container {
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

@media (min-width: 1536px) {
  .container {
    padding-left: 5rem;
    padding-right: 5rem;
  }
}

/* Section Dividers */
.section-border-bottom {
  border-bottom: 1px solid var(--border-subtle);
}

/* Architectural Hero Borders */
.section-hero-border {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1680px;
  pointer-events: none;
  border-left: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  display: none;
}

@media (min-width: 1024px) {
  .section-hero-border {
    display: block;
  }
}

.hero-square-top-left, .hero-square-top-right {
  position: absolute;
  top: -4px;
  width: 7px;
  height: 7px;
  background: var(--brand-indigo-bright);
  border-radius: 1px;
  box-shadow: 0 0 10px var(--brand-indigo-bright);
}

.hero-square-top-left { left: -4px; }
.hero-square-top-right { right: -4px; }

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--brand-primary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 18px rgba(0, 61, 142, 0.45), 0 0 30px rgba(0, 82, 194, 0.2);
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--brand-primary-hover);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 61, 142, 0.6), 0 0 45px rgba(56, 139, 253, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-lg {
  padding: 1.05rem 2.5rem;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.btn-wide {
  min-width: 220px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border-muted);
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-secondary:hover {
  color: #fff;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

/* Glassmorphism Tags & Pills */
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.6rem 1.25rem;
  transition: all 0.25s ease;
  user-select: none;
  white-space: nowrap;
}

.tag-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.75rem 1.35rem;
  width: 100%;
  justify-content: center;
}

.tag-glass {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.tag-teal {
  background: rgba(49, 125, 116, 0.15);
  border: 1px solid rgba(124, 250, 206, 0.4);
  color: #7cface;
  box-shadow: inset 0 0 15px rgba(124, 250, 206, 0.12);
}

.tag-purple {
  background: linear-gradient(99deg, rgba(20, 20, 42, 0.7) 0%, rgba(43, 24, 42, 0.7) 100%);
  border: 1px solid rgba(214, 124, 250, 0.5);
  color: #d67cfa;
  box-shadow: inset 0 0 20px rgba(214, 124, 250, 0.15), 0 0 15px rgba(214, 124, 250, 0.1);
}

.tag-blue {
  background: rgba(52, 98, 160, 0.15);
  border: 1px solid rgba(125, 180, 250, 0.45);
  color: #7db4fa;
  box-shadow: inset 0 0 15px rgba(125, 180, 250, 0.12);
}

.tag span,
.tag-title span {
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}

/* Glass Pill Badge */
.glass-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.55rem 1.35rem;
  border-radius: 9999px;
  background: rgba(20, 20, 32, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(124, 135, 250, 0.25);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.2;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.glass-pill span {
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}

.glass-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 10px #4ade80;
  animation: pulseGreen 2s infinite;
  flex-shrink: 0;
}

@keyframes pulseGreen {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* Top Navbar */
.site-topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  background: rgba(10, 10, 20, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1000;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-topbar.scrolled {
  background-color: rgba(8, 8, 16, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.navbar-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  max-width: 1680px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .navbar-wrap {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

@media (min-width: 1280px) {
  .navbar-wrap {
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.02);
}

.brand-logo-img-footer {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  line-height: 1.2;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

/* User Actions & CTA in Topbar */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar-login-link {
  display: none;
}

@media (min-width: 640px) {
  .topbar-login-link {
    display: inline-flex;
  }
}

.btn-topbar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  color: #ffffff;
  background: var(--brand-primary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 61, 142, 0.4);
  white-space: nowrap;
}

.btn-topbar-cta:hover {
  background: var(--brand-primary-hover);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 61, 142, 0.55);
}

.btn-topbar-cta:active {
  transform: translateY(0);
}

/* Mobile Menu Button */
.mobile-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

@media (min-width: 1024px) {
  .mobile-toggle-btn {
    display: none;
  }
}

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 72px;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 20, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-muted);
  padding: 1.5rem;
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 999;
  /* Scroll inside the drawer on short screens (landscape phones) */
  max-height: calc(100vh - 72px);
  max-height: calc(100dvh - 72px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-nav-drawer.open {
  display: flex;
}

/* The toggle is hidden from 1024px, so never leave the drawer open there */
@media (min-width: 1024px) {
  .mobile-nav-drawer.open {
    display: none;
  }
}

/* Hero Section */
.section-hero {
  position: relative;
  padding-top: 8.5rem;
  padding-bottom: 3.5rem;
  text-align: center;
}

.hero-content {
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.hero-badge-wrap {
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.75rem, 6vw, 4.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 820px;
  margin: 0 auto 2.25rem auto;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  margin-bottom: 2rem;
}

.download-counter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.download-counter svg {
  color: var(--brand-indigo-bright);
}

/* App showcase: a real screenshot of the app */
.app-shot {
  max-width: 1200px;
  margin: 3rem auto 0 auto;
}

.app-shot img {
  display: block;
  width: 100%;
  height: auto;
  background: #07070d;
  border: 1px solid #26263a;
  border-radius: 12px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9);
}

@media (max-width: 640px) {
  .app-shot {
    margin-top: 2rem;
  }

  .app-shot img {
    border-radius: 8px;
  }
}

/* Trust Pillars Strip Below Showcase */
.trust-pillars-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 2rem;
  background: rgba(14, 14, 26, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2.25rem 2.5rem;
  margin-top: 3.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: left;
}

@media (max-width: 640px) {
  .trust-pillars-strip {
    padding: 1.5rem 1.25rem;
    gap: 1.5rem;
  }
}

.trust-pillar-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.trust-pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-pillar-text h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  line-height: 1.2;
}

.trust-pillar-text p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Carousel Section */
.carousel-wrapper {
  position: relative;
  overflow: hidden;
  padding: 2rem 0;
}

.carousel-track {
  --carousel-gap: 1.5rem;
  --slides-per-view: 1;
  display: flex;
  gap: var(--carousel-gap);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (min-width: 640px) {
  .carousel-track {
    --slides-per-view: 2;
  }
}

@media (min-width: 1024px) {
  .carousel-track {
    --slides-per-view: 3;
  }
}

/* Slides are sized from the track, so whole cards always fit; app.js measures them to page */
.carousel-slide {
  flex: 0 0 calc((100% - var(--carousel-gap) * (var(--slides-per-view) - 1)) / var(--slides-per-view));
  min-width: 0;
}

.feature-card {
  background: #10101a;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 135, 250, 0.4);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(99, 102, 241, 0.15);
}

.feature-card-header {
  height: 190px;
  background: linear-gradient(180deg, #161626 0%, #10101a 100%);
  border-radius: 10px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid #1f1f30;
}

.feature-icon-big {
  width: 64px;
  height: 64px;
  color: var(--brand-indigo-bright);
  filter: drop-shadow(0 0 15px rgba(124, 135, 250, 0.5));
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #fff;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.carousel-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #141420;
  border: 1px solid var(--border-muted);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-nav-btn:hover {
  background: #1e1e30;
  border-color: #fff;
  transform: scale(1.05);
}

/* Pricing Section */
.pricing-intro {
  text-align: center;
  max-width: 850px;
  margin: 0 auto 3rem auto;
}

.pricing-intro h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.pricing-intro p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* One column on phones and tablets, the three cards side by side from 1024px */
.pricing-cards-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .pricing-cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    align-items: stretch;
  }
}

.plan-card {
  background: #0e0e1a;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
}

.plan-card:hover {
  border-color: var(--border-muted);
  transform: translateY(-4px);
}

.plan-card-promoted {
  background: linear-gradient(180deg, #151228 0%, #0c0a18 100%);
  border: 2px solid #8b5cf6;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(139, 92, 246, 0.22);
}

.plan-card-promoted::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.6), rgba(0, 61, 142, 0.45), transparent 70%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

.plan-card-promoted:hover {
  border-color: #a78bfa;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 50px rgba(139, 92, 246, 0.35);
}

.plan-card-header {
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.plan-card-price {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  display: flex;
  flex-wrap: wrap; /* on narrow cards the "/ one-time · incl. VAT" line drops below the price */
  align-items: baseline;
  gap: 0.25rem 0.5rem;
}

.plan-card-amount {
  font-size: 2.75rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: #fff;
  line-height: 1;
}

.plan-card-period {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.plan-card-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.plan-card-features {
  list-style: none;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  position: relative;
  z-index: 1;
  flex-grow: 1;
}

.plan-card-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.plan-card-feature svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* Features the one-time plan does not include */
.plan-card-feature.is-excluded {
  color: var(--text-dim);
}

.tag-pro-only {
  font-size: 0.6875rem;
  color: #d67cfa;
  background: rgba(214, 124, 250, 0.12);
  border: 1px solid rgba(214, 124, 250, 0.3);
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  margin-left: 0.35rem;
  font-weight: 600;
  white-space: nowrap;
}

.plan-card-footer {
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.plan-card-cta {
  width: 100%;
  white-space: normal;
  text-align: center;
}

/* Small laptops (1024-1279px): three cards share less room, so tighten the gap and padding */
@media (min-width: 1024px) and (max-width: 1279px) {
  .pricing-cards-grid {
    gap: 1.25rem;
  }

  .plan-card {
    padding: 2rem 1.5rem;
  }

  .plan-card-cta {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

@media (max-width: 400px) {
  .plan-card {
    padding: 1.75rem 1.25rem;
  }

  .plan-card-cta {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* FAQ Accordion */
.faq-wrap {
  max-width: 1180px;
  margin: 3rem auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  background: #0e0e18;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.active {
  border-color: var(--border-muted);
  background: #11111e;
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

/* .faq-item clips overflow, so draw the FAQ focus ring inside the button */
.faq-question:focus-visible {
  outline-offset: -3px;
  border-radius: 14px;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 60rem; /* well above the longest answer on a 320px phone (about 500px) */
  padding: 0 1.5rem 1.25rem 1.5rem;
}

/* Pre-Footer CTA Banner Section */
.section-prefooter-cta {
  padding: 5rem 0 6.5rem 0;
  position: relative;
  overflow: hidden;
}

.cta-banner-wrapper {
  position: relative;
  max-width: 1680px;
  width: 100%;
  margin: 0 auto;
  border-radius: 26px;
  overflow: hidden;
  background: radial-gradient(130% 120% at 50% -10%, rgba(0, 61, 142, 0.45) 0%, rgba(99, 102, 241, 0.16) 42%, rgba(14, 14, 26, 0.92) 80%), #080812;
  border: 1px solid rgba(56, 139, 253, 0.28);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 60px rgba(0, 61, 142, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  padding: 5rem 2rem;
  text-align: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

@media (min-width: 768px) {
  .cta-banner-wrapper {
    padding: 6.5rem 3.5rem;
  }
}

/* Neon Top Laser Edge */
.cta-banner-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(56, 139, 253, 0.25) 20%, #388bfd 50%, rgba(56, 139, 253, 0.25) 80%, transparent 100%);
  box-shadow: 0 0 20px rgba(56, 139, 253, 0.9);
  pointer-events: none;
  z-index: 2;
}

/* Cyber Matrix Grid Pattern Overlay */
.cta-banner-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(56, 139, 253, 0.14) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, black 25%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, black 25%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* Tactical Corner Crosshairs */
.cta-corner {
  position: absolute;
  font-family: monospace;
  font-size: 1.15rem;
  font-weight: 700;
  color: rgba(56, 139, 253, 0.35);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 2;
}

.cta-corner-tl { top: 16px; left: 18px; }
.cta-corner-tr { top: 16px; right: 18px; }
.cta-corner-bl { bottom: 16px; left: 18px; }
.cta-corner-br { bottom: 16px; right: 18px; }

/* Ambient Center Radial Lighting */
.cta-banner-glow {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 75%;
  height: 75%;
  background: radial-gradient(circle, rgba(0, 61, 142, 0.3) 0%, rgba(99, 102, 241, 0.1) 45%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.cta-banner-content {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
}

/* Tactical Status Badge */
.cta-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.15rem;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(124, 135, 250, 0.32);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7c87fa;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 18px rgba(99, 102, 241, 0.2);
}

.cta-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5bcee2;
  box-shadow: 0 0 8px #5bcee2;
  animation: pulseGreen 2s infinite ease-in-out;
}

.cta-banner-title {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 1.25rem;
  letter-spacing: -0.025em;
  color: #ffffff;
  text-shadow: 0 4px 25px rgba(0, 0, 0, 0.6);
}

.cta-banner-subtitle {
  color: var(--text-secondary);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  max-width: 740px;
  margin: 0 auto 2.75rem auto;
  line-height: 1.65;
}

.cta-banner-actions {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.cta-btn-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--brand-primary);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 25px rgba(0, 61, 142, 0.55), 0 0 45px rgba(56, 139, 253, 0.3);
}

.cta-btn-main:hover {
  background: var(--brand-primary-hover);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(0, 61, 142, 0.75), 0 0 60px rgba(56, 139, 253, 0.45);
}

.cta-btn-arrow {
  transition: transform 0.25s ease;
}

.cta-btn-main:hover .cta-btn-arrow {
  transform: translateX(4px);
}

.cta-support-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-support-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Glassmorphic Trust Badges */
.cta-trust-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  margin-top: 2.75rem;
  flex-wrap: wrap;
}

.cta-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 1.15rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.cta-trust-pill:hover {
  border-color: rgba(56, 139, 253, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.cta-trust-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5bcee2;
}

/* Footer */
.site-footer {
  background: #07070e;
  border-top: 1px dashed var(--border-subtle);
  padding: 5rem 0 3rem 0;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding-top: 2.5rem;
  border-top: 1px solid #141420;
  color: var(--text-dim);
  font-size: 0.8125rem;
}

/* Very narrow phones (under 360px): keep the header, hero title and final CTA buttons inside the screen */
@media (max-width: 359px) {
  .topbar-actions {
    gap: 0.5rem;
  }

  .btn-topbar-cta {
    padding: 0.55rem 0.9rem;
    font-size: 0.8125rem;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .cta-banner-wrapper {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .cta-btn-main,
  .cta-support-btn {
    max-width: 100%;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    gap: 0.5rem;
    font-size: 1rem;
    white-space: normal;
  }

  .cta-btn-arrow {
    display: none;
  }
}

/* Respect the system's reduced-motion setting (animations.js also skips the chart animation) */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
