/* =====================================================
   PermitCore Public Website — Modern Dark Theme CSS
   ===================================================== */

:root {
  --primary: #6D5CE8;
  --primary-dark: #5346D0;
  --primary-light: #9389F5;
  --accent: #00C2B2;
  --success: #22C55E;
  --warning: #F59E0B;
  --danger: #EF4444;
  --key: #F59E0B;

  --dark: #04050B;
  --dark-2: #090A14;
  --dark-3: #0F1120;
  --dark-4: #1C2033;

  --text: #EEF2F8;
  --text-muted: #8897B0;
  --text-dim: #7280A3; /* [SF-30] was #536080 (~3:1 against --dark-3, fails WCAG AA's 4.5:1 for
                           normal text — used site-wide for nav links, blog dates, tags, pricing
                           details). This value clears 4.5:1 against all 3 dark background tokens. */
  --border: rgba(255,255,255,0.06);
  --card-bg: rgba(255,255,255,0.025);
  --glow: 0 0 48px rgba(109,92,232,0.28);
  --glow-accent: 0 0 40px rgba(0,194,178,0.2);
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg: 0 12px 56px rgba(0,0,0,0.7);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
ul { list-style: none; padding: 0; margin: 0; }

/* Suppress focus ring for mouse/programmatic focus (Blazor FocusOnNavigate targets h1) */
:focus:not(:focus-visible) { outline: none !important; box-shadow: none !important; }
h1:focus, h2:focus, h3:focus, p:focus, section:focus, div:focus { outline: none !important; }

/* ---- Typography Utilities ---- */
.gradient-text {
  background: linear-gradient(135deg, #9389F5 0%, #F59E0B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-purple {
  background: linear-gradient(135deg, #C4B5FD 0%, #6D5CE8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-muted-custom { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }

/* ---- Noise Overlay ---- */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ---- Navbar ---- */
.navbar-public {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.875rem 0;
  transition: var(--transition);
  background: transparent;
}

/* [SF-22] Anchor targets need clearance for the fixed navbar (~64px), or scrolling to #features
   etc. lands the section title half-hidden behind it. */
#features,
.section-anchor-target {
  scroll-margin-top: 90px;
}

.navbar-public.scrolled {
  background: rgba(10, 14, 26, 0.88);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 8px 32px rgba(0,0,0,0.5);
}

.navbar-brand-custom {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text) !important;
  letter-spacing: -0.02em;
}

.navbar-brand-custom .brand-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  flex-shrink: 0;
}

.navbar-nav-custom {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link-custom {
  color: var(--text-muted) !important;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.875rem !important;
  border-radius: 8px;
  transition: var(--transition);
}

.nav-link-custom:hover {
  color: var(--text) !important;
  background: rgba(255,255,255,0.06);
}

/* [SF-21] "Resources" dropdown — groups Portal/Status/Contact off the main bar */
.nav-resources-dropdown { position: relative; padding-bottom: 0.25rem; }
.nav-resources-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.nav-resources-menu {
  /* [S-nav-gap-fix] top:100% is measured off the wrapper's padding box, which now includes the
     0.25rem padding-bottom above — so this sits flush with no gap, instead of the old
     margin-top:0.25rem that left a dead zone the mouse could leave the wrapper through
     (mouseleave fired mid-crossing, closing the menu before a click could land). */
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background: var(--dark-2, #10131f);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.4rem;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  z-index: 1010;
}
.nav-resources-menu.open { display: block; }
.nav-resources-item {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  color: var(--text-muted) !important;
  font-size: 0.88rem;
  text-decoration: none;
  transition: var(--transition);
}
.nav-resources-item:hover {
  color: var(--text) !important;
  background: rgba(255,255,255,0.06);
}

.btn-nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white !important;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem !important;
  border-radius: 8px;
  border: none;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(109,92,232,0.4);
}

.btn-nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(109,92,232,0.5);
  color: white !important;
}

.hamburger-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 0.5rem;
  cursor: pointer;
  display: none;
}

/* mobile collapse — hidden on desktop by default */
.navbar-collapse-custom {
  display: none;
}

@media (max-width: 768px) {
  .hamburger-btn { display: flex; align-items: center; }
  .navbar-collapse-custom {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10,14,26,0.98);
    backdrop-filter: blur(16px);
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .navbar-collapse-custom.open { display: block; }
  .navbar-nav-custom { flex-direction: column; align-items: stretch; }
  .nav-link-custom { padding: 0.75rem 1rem !important; }
}

/* [Trial marketing, 2026-08-20] Shared TrialPromoBanner.razor partial — used identically by
   Home.razor and Pricing.razor (see that component's own header comment). Sits in normal document
   flow wherever each page places it, so it never fights the fixed .navbar-public for space —
   an earlier version embedded this in the navbar itself and had exactly that problem. display:
   inline-flex (not centered here) so it respects whatever text-align/justify-content its call
   site already uses — Home's hero column is left-aligned, Pricing's hero is centered, and this
   adapts to both without needing two different components. */
.trial-promo-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(52,211,153,0.14), rgba(99,102,241,0.14));
  border: 1px solid rgba(52,211,153,0.32);
  border-radius: 14px;
  padding: 0.65rem 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 24px rgba(52,211,153,0.1);
  transition: var(--transition);
}
.trial-promo-banner:hover {
  border-color: rgba(52,211,153,0.55);
  box-shadow: 0 6px 28px rgba(52,211,153,0.18);
  transform: translateY(-1px);
}
.trial-promo-icon { font-size: 1.15rem; line-height: 1; }
.trial-promo-cta { color: #34d399; font-weight: 700; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.trial-promo-cta i { font-size: 0.72rem; }

@media (max-width: 768px) {
  .trial-promo-banner { font-size: 0.78rem; padding: 0.6rem 1rem; flex-wrap: wrap; justify-content: center; }
}

/* ---- Hero Section ---- */
.hero-section {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 6rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 40% -10%, rgba(109,92,232,0.22) 0%, transparent 65%),
              radial-gradient(ellipse 50% 50% at 85% 45%, rgba(245,158,11,0.07) 0%, transparent 60%),
              radial-gradient(ellipse 40% 40% at 15% 75%, rgba(0,194,178,0.06) 0%, transparent 55%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: 36px 36px;
  -webkit-mask-image: radial-gradient(ellipse 58% 50% at 50% 36%, black 0%, transparent 60%);
  mask-image: radial-gradient(ellipse 58% 50% at 50% 36%, black 0%, transparent 60%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(109,92,232,0.1);
  border: 1px solid rgba(109,92,232,0.28);
  color: var(--primary-light);
  padding: 0.375rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99,102,241,0); }
  50% { box-shadow: 0 0 0 6px rgba(99,102,241,0.1); }
}

.hero-badge .badge-dot {
  width: 6px; height: 6px;
  background: var(--primary-light);
  border-radius: 50%;
  animation: dotBlink 2s ease-in-out infinite;
}

@keyframes dotBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-title {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.1rem;
}

@media (min-width: 992px) and (max-width: 1439.98px) {
  /* Bootstrap's container caps at 1140px until the 1400px xxl breakpoint, so the
     hero column is ~90px narrower here than at 1440px+ even though 4.5vw keeps
     growing the font — wraps "License. Sell. Protect." to its own 3rd line. */
  .hero-title { font-size: clamp(2.1rem, 3.7vw, 2.85rem); }
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

@media (max-width: 575.98px) {
  .hero-ctas { flex-wrap: nowrap; gap: 0.75rem; }
  .hero-ctas > .btn-primary-custom,
  .hero-ctas > .btn-ghost-custom {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    padding-left: 1rem;
    padding-right: 1rem;
    text-align: center;
  }
}

.btn-primary-custom {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 0.875rem 1.75rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(109,92,232,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
  border: none;
  cursor: pointer;
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(109,92,232,0.55), inset 0 1px 0 rgba(255,255,255,0.1);
  color: white;
}

.btn-ghost-custom {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text-muted);
  padding: 0.875rem 1.75rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  border: 1px solid var(--border);
  cursor: pointer;
}

.btn-ghost-custom:hover {
  color: var(--text);
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.15);
}

.hero-stats {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  flex-wrap: nowrap;
}
.hero-stat-value {
  white-space: nowrap;
}
.hero-stat-label {
  white-space: nowrap;
  font-size: 0.72rem;
}
@media (max-width: 767.98px) {
  /* The same 3 numbers (23ms / Zero-Knowledge / 6 SDKs) repeat seconds later in the
     metrics strip directly below the hero — dropping them here shortens an
     otherwise ~1180px-tall mobile hero with no loss of information. */
  .hero-stats { display: none; }
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.hero-stat-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 500;
  margin-top: 0.15rem;
}

/* ---- Browser Mockup ---- */
.browser-mockup {
  background: var(--dark-2);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg), 0 0 80px rgba(99,102,241,0.15);
  overflow: hidden;
  position: relative;
}

.browser-bar {
  background: var(--dark-3);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.browser-dots { display: flex; gap: 6px; }
.browser-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.browser-url {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: monospace;
}

.browser-content {
  padding: 1.25rem;
  min-height: 260px;
}

.mock-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.mock-stat-card {
  background: var(--dark-3);
  border-radius: 8px;
  padding: 0.75rem;
  border: 1px solid var(--border);
}

.mock-stat-num {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-light);
}

.mock-stat-lbl {
  font-size: 0.65rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.mock-chart-area {
  background: var(--dark-3);
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid var(--border);
  height: 100px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  overflow: hidden;
}

.mock-bar {
  flex: 1;
  background: linear-gradient(to top, var(--primary), var(--accent));
  border-radius: 3px 3px 0 0;
  opacity: 0.7;
  transition: opacity 0.3s;
}

/* ---- Section Styles ---- */
.section-pad { padding: 6rem 0; }
.section-pad-sm { padding: 4rem 0; }

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

.section-divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  margin: 1rem 0 1.5rem;
}

/* ---- Feature Cards ---- */
.features-section {
  background: var(--dark);
  position: relative;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: rgba(109,92,232,0.28);
  background: rgba(109,92,232,0.04);
  transform: translateY(-4px);
  box-shadow: var(--glow), var(--shadow);
}

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

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.icon-indigo { background: rgba(99,102,241,0.15); }
.icon-cyan { background: rgba(6,182,212,0.15); }
.icon-green { background: rgba(16,185,129,0.15); }
.icon-purple { background: rgba(167,139,250,0.15); }
.icon-orange { background: rgba(245,158,11,0.15); }
.icon-red { background: rgba(239,68,68,0.15); }

.feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ---- How It Works ---- */
.how-section {
  background: linear-gradient(to bottom, var(--dark), var(--dark-2));
}

.step-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: var(--transition);
  text-align: center;
}

.step-card:hover {
  border-color: rgba(99,102,241,0.25);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-size: 1.5rem;
  font-weight: 900;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 16px rgba(99,102,241,0.4);
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.step-connector {
  display: none;
}

@media (min-width: 768px) {
  .step-connector {
    display: block;
    position: absolute;
    top: 50%;
    right: -20px;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0.4;
  }
}

/* ---- Pricing Cards ---- */
.pricing-section {
  background: var(--dark-2);
}

.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.pricing-card.featured {
  background: rgba(109,92,232,0.07);
  border-color: rgba(109,92,232,0.45);
  box-shadow: var(--glow);
}

.pricing-card.featured:hover {
  box-shadow: 0 0 60px rgba(109,92,232,0.4), var(--shadow);
}

.badge-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 100px;
  white-space: nowrap;
}

.plan-name {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.plan-price {
  margin-bottom: 0.25rem;
}

.price-amount {
  font-size: 3rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 1;
}

.price-currency {
  font-size: 1.3rem;
  font-weight: 600;
  vertical-align: top;
  margin-top: 0.5rem;
  display: inline-block;
  color: var(--text-muted);
}

.price-period {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* [Tax disclosure, 2026-08-20] Its own small line under the billing-cycle text — not crammed next
   to the price number, which read as a rendering glitch rather than a deliberate note. */
.price-tax-note {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.plan-divider {
  height: 1px;
  background: var(--border);
  margin: 1.25rem 0;
}

.plan-features {
  flex: 1;
  margin-bottom: 1.5rem;
}

.plan-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.plan-feature .check-icon {
  color: var(--success);
  flex-shrink: 0;
  margin-top: 1px;
}

.plan-feature .x-icon {
  color: var(--text-dim);
  flex-shrink: 0;
  margin-top: 1px;
}

.btn-plan {
  display: block;
  width: 100%;
  padding: 0.75rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-plan-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-plan-outline:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
}

.btn-plan-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 16px rgba(99,102,241,0.4);
}

.btn-plan-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(99,102,241,0.5);
  color: white;
}

/* ---- Testimonials ---- */
/* ---- Trust Signals ---- */
.trust-section {
  background: var(--dark);
}

.trust-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  height: 100%;
  transition: var(--transition);
}

.trust-card:hover {
  border-color: rgba(109,92,232,0.22);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.trust-icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.trust-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.trust-body {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.author-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.author-title {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ---- CTA Section ---- */
.cta-section {
  background: linear-gradient(135deg, rgba(99,102,241,0.15) 0%, rgba(6,182,212,0.1) 50%, rgba(16,185,129,0.08) 100%);
  border-top: 1px solid rgba(99,102,241,0.2);
  border-bottom: 1px solid rgba(6,182,212,0.15);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* ---- Footer ---- */
.footer-section {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 240px;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: var(--transition);
}

.social-link:hover {
  background: rgba(99,102,241,0.15);
  border-color: rgba(99,102,241,0.4);
  color: var(--primary-light);
}

.footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.footer-links li {
  margin-bottom: 0.625rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-dim);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-links a {
  font-size: 0.82rem;
  color: var(--text-dim);
  transition: var(--transition);
}

.footer-legal-links a:hover { color: var(--text); }

/* ---- Comparison Table ---- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
}

.comparison-table th {
  padding: 1rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.comparison-table th:first-child { text-align: left; }

.comparison-table td {
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.comparison-table td:first-child { color: var(--text); font-weight: 500; }
.comparison-table td:not(:first-child) { text-align: center; }

.comparison-table tr:hover td { background: rgba(255,255,255,0.02); }

.check-yes { color: var(--success); }
.check-no { color: var(--text-dim); }

/* ---- Docs Page ---- */
.docs-sidebar {
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.docs-nav-group { margin-bottom: 1.5rem; }

.docs-nav-group-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
  padding: 0 0.75rem;
}

.docs-nav-link {
  display: block;
  padding: 0.45rem 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  border-radius: 6px;
  transition: var(--transition);
  border-left: 2px solid transparent;
}

.docs-nav-link:hover {
  color: var(--text);
  background: rgba(255,255,255,0.04);
}

.docs-nav-link.active {
  color: var(--primary-light);
  background: rgba(99,102,241,0.08);
  border-left-color: var(--primary);
}

.docs-content h2 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--text);
}

.docs-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.docs-content p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.code-block {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 0.82rem;
  color: #e2e8f0;
  overflow-x: auto;
  margin: 1rem 0;
  position: relative;
}

.code-block .code-lang {
  position: absolute;
  top: 0.5rem; right: 0.75rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

.code-comment { color: var(--text-dim); }
.code-key { color: #60a5fa; }
.code-string { color: #34d399; }
.code-keyword { color: #a78bfa; }

.inline-code {
  background: rgba(99,102,241,0.12);
  color: var(--primary-light);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.85em;
}

/* ---- Contact Page ---- */
.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.contact-info-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.contact-info-card:hover {
  border-color: rgba(99,102,241,0.25);
}

.contact-info-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(99,102,241,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  flex-shrink: 0;
}

/* ---- Form Controls ---- */
.form-control-custom {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  outline: none;
}

.form-control-custom::placeholder { color: var(--text-dim); }

/* [S-select-contrast-fix] The select's own `background` above is a translucent overlay meant to
   sit on the dark page behind it, not an opaque color — the native <option> popup list has no
   page behind it, so browsers render it against their own default (usually white), leaving
   var(--text)'s near-white text almost invisible. <option> needs its own explicit opaque
   background/color; most browsers (Chrome, Firefox, Edge) honor this for the popup list even
   though they ignore it for the closed control. */
.form-control-custom option {
  background: var(--dark-2, #10131f);
  color: var(--text);
}

.form-control-custom:focus {
  border-color: rgba(99,102,241,0.5);
  background: rgba(99,102,241,0.05);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.form-label-custom {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}

.form-group-custom { margin-bottom: 1.25rem; }

/* ---- Glow Badge ---- */
.glow-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.3);
  color: #34d399;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}

.glow-badge-primary {
  background: rgba(99,102,241,0.12);
  border-color: rgba(99,102,241,0.3);
  color: var(--primary-light);
}

/* ---- Animations ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.animate-fade-in-up { animation: fadeInUp 0.6s ease forwards; }
.animate-fade-in { animation: fadeIn 0.8s ease forwards; }
.animate-float { animation: float 4s ease-in-out infinite; }

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* ---- Misc Utilities ---- */
.border-glow {
  border: 1px solid rgba(99,102,241,0.4);
  box-shadow: 0 0 30px rgba(99,102,241,0.15);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
}

.divider-gradient {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(109,92,232,0.3), transparent);
  margin: 0.5rem 0;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--dark-4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ====================================================
   TERMINAL HERO MOCKUP
   ==================================================== */
.terminal-card {
  background: #06070F;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(109,92,232,0.08),
    0 40px 100px rgba(0,0,0,0.7),
    inset 0 1px 0 rgba(255,255,255,0.04);
  font-family: 'Fira Code', 'Consolas', monospace;
}

.terminal-header {
  background: rgba(255,255,255,0.025);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.terminal-title-bar {
  font-size: 0.68rem;
  color: var(--text-dim);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.04em;
  margin-left: 0.25rem;
}

.terminal-body {
  padding: 1.5rem 1.75rem;
  min-height: 300px;
}

.t-input-line {
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
}

.t-prompt { color: var(--primary-light); font-weight: 500; margin-right: 0.5rem; }
.t-cmd { color: var(--text-muted); }

.t-key {
  color: #F59E0B;
  font-weight: 600;
}

.typing-key {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  animation: type-key 1.2s steps(26, end) 0.4s forwards;
}

@keyframes type-key {
  to { width: 26ch; }
}

.t-caret {
  display: inline-block;
  width: 0.55ch;
  height: 1.1em;
  background: var(--text-muted);
  vertical-align: text-bottom;
  opacity: 0;
  animation: caret-blink 0.9s step-end 1.65s infinite;
}

@keyframes caret-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.t-output {
  opacity: 0;
  animation: fadeInUp 0.5s ease 1.7s forwards;
}

.t-checking {
  color: var(--text-dim);
  font-size: 0.76rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.t-spin {
  width: 10px;
  height: 10px;
  border: 1.5px solid rgba(255,255,255,0.12);
  border-top-color: var(--primary-light);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.t-result-valid {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #22C55E;
  letter-spacing: 0.12em;
  margin: 1rem 0 0.875rem;
}

.t-valid-icon {
  width: 18px;
  height: 18px;
  background: rgba(34,197,94,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.65rem;
}

.t-data-grid {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 0.875rem 1rem;
}

.t-row {
  display: flex;
  align-items: flex-start;
  font-size: 0.78rem;
  margin-bottom: 0.45rem;
  gap: 1rem;
}

.t-row:last-child { margin-bottom: 0; }

.t-field { color: var(--text-dim); width: 68px; flex-shrink: 0; }
.t-value { color: var(--text-muted); }
.t-value-key { color: #F59E0B; }

.t-tags { display: flex; gap: 0.3rem; flex-wrap: wrap; }

.t-tag {
  background: rgba(109,92,232,0.12);
  color: var(--primary-light);
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
}

/* ====================================================
   PRODUCT STORY STAGE — hero right-side Validate/Sell/Control
   cross-fade, styled as part of the hero background rather than
   a card floating next to the copy.
   ==================================================== */
.story-stage {
  position: relative;
  padding-bottom: 0.25rem;
}

/* Ambient glow sitting behind the whole stage — deliberately soft/blurred, not a hard shape */
.story-glow {
  position: absolute;
  inset: -10% -8% 0 -8%;
  background:
    radial-gradient(ellipse 55% 45% at 35% 20%, rgba(109,92,232,0.22) 0%, transparent 70%),
    radial-gradient(ellipse 45% 40% at 80% 70%, rgba(0,194,178,0.14) 0%, transparent 65%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

/* A handful of near-invisible signal lines, purely decorative */
.story-signals {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}
.story-signals svg { width: 100%; height: 100%; }
.story-signals line {
  stroke: rgba(255,255,255,0.05);
  stroke-width: 1;
}

/* The masked viewport — right and bottom edges fade into the hero background instead of
   ending in a hard card edge, so the stage reads as part of the scene, not a window glued on. */
.story-viewport {
  position: relative;
  z-index: 1;
  min-height: 300px;
  /* Fades left/right/bottom into the ambient background so the panel dissolves into the
     scene instead of reading as a hard-edged card; top stays intact since the header
     (traffic-light dots + URL bar) reads fine as opaque chrome, like a real window titlebar. */
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, black 14%, black 86%, transparent 100%),
    linear-gradient(180deg, black 0%, black 80%, transparent 99%);
  -webkit-mask-composite: source-over, source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, black 14%, black 86%, transparent 100%),
    linear-gradient(180deg, black 0%, black 80%, transparent 99%);
  mask-composite: intersect;
}

.story-panel {
  position: absolute;
  inset: 0;
  background: #06070F;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  overflow: hidden;
  font-family: 'Fira Code', 'Consolas', monospace;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(0.985);
  transition: opacity 0.6s ease, transform 0.6s ease, visibility 0s linear 0.6s;
}

.story-panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition: opacity 0.6s ease, transform 0.6s ease, visibility 0s;
  position: relative; /* first/active panel defines the viewport's actual height */
}

/* One-line caption under the stage — cross-fades between the 3 story sentences */
.story-caption {
  position: relative;
  z-index: 1;
  margin: 1rem 0 0;
  min-height: 1.4em;
  text-align: center;
}

.story-caption-text {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.story-caption-text.is-active {
  opacity: 1;
  position: relative; /* active one sizes the row */
}

/* Tabs */
.story-tabs {
  /* Pure auto-rotating slider — no visible manual controls, just the caption label. */
  display: none;
}

.story-tab {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.story-tab:hover { color: var(--text-muted); }

.story-tab:focus { outline: none; }

.story-tab:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(109,92,232,0.55);
}

.pricing-currency-select:focus { outline: none; }

.pricing-currency-select:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(109,92,232,0.55);
}

.story-tab.is-active {
  color: var(--primary-light);
  background: rgba(109,92,232,0.12);
}

.story-tab.is-active:focus-visible {
  box-shadow: 0 0 0 2px rgba(109,92,232,0.55), inset 0 0 0 100px rgba(109,92,232,0.12);
}

/* Sell panel content */
.story-product-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.story-product-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 9px;
  background: rgba(109,92,232,0.15);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.story-product-info { flex: 1; min-width: 0; }
.story-product-name { font-family: 'Inter', sans-serif; font-size: 0.85rem; font-weight: 600; color: var(--text); }
.story-product-sub { font-family: 'Inter', sans-serif; font-size: 0.72rem; color: var(--text-dim); }
.story-product-price { font-size: 1.1rem; font-weight: 700; color: #22C55E; }

.story-checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.7rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
}

/* Control panel mini bar chart */
.story-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
  height: 70px;
  margin-top: 1.1rem;
  padding: 0 0.25rem;
}

.story-bar {
  flex: 1;
  height: var(--h, 40%);
  background: linear-gradient(180deg, rgba(109,92,232,0.8), rgba(109,92,232,0.2));
  border-radius: 4px 4px 0 0;
}

.story-live-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.story-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22C55E;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.5);
  animation: storyLivePulse 2.4s ease-out infinite;
}

@keyframes storyLivePulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,0.45); }
  70%  { box-shadow: 0 0 0 5px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

.story-live-time {
  margin-left: auto;
  color: rgba(114,128,163,0.7);
  white-space: nowrap;
}

@media (max-width: 991px) {
  .story-viewport { min-height: 260px; }
}
@media (max-width: 575px) {
  .story-viewport { min-height: 240px; }
}

/* ====================================================
   SCROLL-REVEAL ANIMATIONS
   ==================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }
.reveal-delay-6 { transition-delay: 0.48s; }

/* ====================================================
   FEATURE SCREENSHOTS SHOWCASE
   ==================================================== */
.showcase-section {
  background: var(--dark-2);
  overflow: hidden;
}

.showcase-tabs {
  display: flex;
  gap: 0.25rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.showcase-tab {
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.showcase-tab.active,
.showcase-tab:hover {
  background: var(--dark-3);
  color: var(--text);
}

.showcase-tab.active {
  color: var(--primary-light);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.showcase-panel {
  display: none;
}

.showcase-panel.active {
  display: block;
  animation: fadeInUp 0.35s ease;
}

.showcase-img-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(109,92,232,0.06);
}

.showcase-img-wrap img {
  width: 100%;
  display: block;
}

/* ====================================================
   FEATURE BAR (auto-scrolling ticker with descriptions)
   ==================================================== */
.feature-bar-section {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 1.5rem 0;
  cursor: grab;
}
.feature-bar-section:active { cursor: grabbing; }

.feature-bar-track {
  display: flex;
  gap: 0.75rem;
  width: max-content;
  user-select: none;
  padding: 0 1.5rem;
  will-change: transform;
}

.feat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
  width: 148px;
  padding: 0.85rem 0.75rem 0.75rem;
  background: transparent;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  transition: background 0.2s, transform 0.15s;
}
.feat-pill:hover {
  background: rgba(109,92,232,0.09);
  transform: translateY(-1px);
}
.feat-pill.active {
  background: rgba(109,92,232,0.14);
}
.feat-pill-icon {
  font-size: 1.1rem;
  color: var(--primary-light);
  margin-bottom: 0.1rem;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.feat-pill:hover .feat-pill-icon,
.feat-pill.active .feat-pill-icon { opacity: 1; }
.feat-pill-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.feat-pill-desc {
  font-size: 0.63rem;
  color: var(--text-dim);
  line-height: 1.3;
}

/* ====================================================
   RESPONSIVE OVERRIDES
   ==================================================== */
@media (max-width: 1024px) {
  .terminal-body { padding: 1.25rem 1.25rem; min-height: 260px; }
}

@media (max-width: 768px) {
  .terminal-body { padding: 1rem 1rem; min-height: 240px; }
  .t-input-line { font-size: 0.78rem; }
  .showcase-tabs { gap: 0.15rem; }
  .showcase-tab { padding: 0.4rem 0.75rem; font-size: 0.76rem; }
}

@media (max-width: 480px) {
  .terminal-header { padding: 0.6rem 0.875rem; }
  .terminal-card { border-radius: 14px; }
  .t-data-grid { padding: 0.75rem; }
  .t-row { gap: 0.5rem; font-size: 0.72rem; }
  .t-field { width: 56px; }
}

/* ====================================================
   SPEKTAKL DESIGN ENHANCEMENTS
   ==================================================== */

/* 1. Gradient text: violet → sky-blue — more premium, more coherent */
.gradient-text {
  background: linear-gradient(135deg, #A78BFA 0%, #38BDF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 2. Hero aurora: richer, three-tone depth */
.hero-bg {
  background:
    radial-gradient(ellipse 95% 68% at 36% -6%,  rgba(109,92,232,0.40) 0%, transparent 58%),
    radial-gradient(ellipse 60% 58% at 92% 50%,  rgba(0,194,178,0.15)  0%, transparent 60%),
    radial-gradient(ellipse 50% 48% at 8%  82%,  rgba(56,189,248,0.10) 0%, transparent 56%),
    radial-gradient(ellipse 38% 36% at 68% 6%,   rgba(167,139,250,0.08) 0%, transparent 50%);
}

/* 3. Terminal card: slow glow pulse */
@keyframes terminalGlow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(109,92,232,0.08),
      0 40px 100px rgba(0,0,0,0.70),
      inset 0 1px 0 rgba(255,255,255,0.04);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(109,92,232,0.30),
      0 40px 100px rgba(0,0,0,0.70),
      0 0 90px rgba(109,92,232,0.20),
      inset 0 1px 0 rgba(255,255,255,0.04);
  }
}
.terminal-card { animation: terminalGlow 5s ease-in-out infinite; }

/* 4. Feature category cards: always-on top accent stripe */
.feat-category-card {
  border-top: 3px solid var(--cat-color, rgba(99,102,241,0.55)) !important;
  border-radius: 3px 3px 18px 18px !important;
}

/* 5. Pricing featured card: animated glow, no vertical offset so cards stay aligned */
.pricing-card.featured {
  background: linear-gradient(180deg, rgba(109,92,232,0.14) 0%, rgba(109,92,232,0.04) 100%);
  border-color: rgba(109,92,232,0.55);
}
.pricing-card.featured:hover {
  transform: translateY(-4px);
}
@keyframes featuredGlow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(109,92,232,0.25), 0 0 50px rgba(109,92,232,0.18), 0 32px 80px rgba(0,0,0,0.55); }
  50%       { box-shadow: 0 0 0 1px rgba(109,92,232,0.48), 0 0 88px rgba(109,92,232,0.32), 0 32px 80px rgba(0,0,0,0.55); }
}
.pricing-card.featured { animation: featuredGlow 4s ease-in-out infinite; }

/* 6. CTA: radial burst from below */
.cta-section {
  background:
    radial-gradient(ellipse 140% 110% at 50% 108%, rgba(109,92,232,0.30) 0%, transparent 55%),
    radial-gradient(ellipse 80%  60%  at 15% 50%,  rgba(0,194,178,0.09)  0%, transparent 55%),
    linear-gradient(180deg, var(--dark-2) 0%, var(--dark) 100%);
  border-top: 1px solid rgba(109,92,232,0.28);
}
.cta-section::before {
  width: 1100px; height: 1100px;
  background: radial-gradient(circle, rgba(109,92,232,0.14) 0%, transparent 70%);
}

/* 7. Section eyebrow: leading accent line */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--primary-light);
  border-radius: 1px;
  flex-shrink: 0;
  opacity: 0.8;
}

/* 8. Cipher float keyframes */
@keyframes cipherRise {
  0%   { transform: translateY(0) rotate(-2deg);    opacity: 0;   }
  8%   {                                             opacity: 1;   }
  88%  {                                             opacity: 0.5; }
  100% { transform: translateY(-72vh) rotate(2deg); opacity: 0;   }
}
.cipher-float {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  user-select: none;
  font-family: 'Fira Code', monospace;
  letter-spacing: 0.05em;
}

/* 9. Metrics strip */
.metrics-strip {
  background: linear-gradient(180deg, var(--dark) 0%, var(--dark-2) 100%);
  border-bottom: 1px solid rgba(255,255,255,0.045);
  padding: 2.75rem 0;
  position: relative;
}
.metrics-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 100% at 50% 50%, rgba(109,92,232,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 1.5rem;
  position: relative;
}
.metric-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 15%; height: 70%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.08), transparent);
}
.metric-value {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.metric-sup {
  font-size: 0.48em;
  font-weight: 700;
  color: var(--primary-light);
  vertical-align: super;
  line-height: 0;
}
.metric-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Trust signal, not a value proposition — small and quiet on purpose. See /security
   and the Pricing FAQ for the fuller "where is PermitCore hosted" explanation. */
.trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  background: var(--dark-2);
  border-bottom: 1px solid rgba(255,255,255,0.045);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-dim);
}
.trust-strip-dot { color: rgba(114,128,163,0.4); }

/* 10. Reduced-motion: kill new animations */
@media (prefers-reduced-motion: reduce) {
  .terminal-card         { animation: none !important; }
  .pricing-card.featured { animation: none !important; transform: none; }
  .cipher-float          { display: none !important; }
  .story-live-dot         { animation: none !important; box-shadow: none !important; }
  .story-panel            { transition: opacity 0.25s ease, visibility 0s linear 0.25s !important; transform: none !important; }
  .story-panel.is-active  { transition: opacity 0.25s ease, visibility 0s !important; transform: none !important; }
}

/* 11. Equal-height pricing cards — row stretches, card fills column, features fill card */
.row.align-items-stretch > [class*="col-"] {
  display: flex;
  flex-direction: column;
}
.row.align-items-stretch > [class*="col-"] > .pricing-card {
  flex: 1;
  height: auto;
}

/* 12. "All features from X" inherited tier line */
.plan-feature-all {
  color: var(--primary-light);
  font-weight: 600;
  opacity: 0.85;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(109,92,232,0.15);
}
.all-icon {
  color: var(--primary-light) !important;
  font-size: 0.72rem !important;
}
