/* ==========================================================================
   CapGrowth OS — Premium Enterprise Elevation Layer
   Builds on main.css. Stripe/Ramp/Mercury-grade polish without redesign.
   ========================================================================== */

:root {
  --space-14: 56px;
  --space-18: 72px;
  --space-28: 112px;
  --container: 1160px;
  --container-wide: 1320px;
  --header-height: 76px;

  --bg-base: #070b12;
  --bg-surface: #0b1120;
  --bg-elevated: #121a2c;
  --bg-card: #151e32;

  --text-primary: #f7fafc;
  --text-secondary: #9aa8bc;
  --text-muted: #6b7a90;

  --gold-500: #d4af37;
  --gold-400: #e4c45a;
  --gold-600: #b8922a;
  --gold-glow: rgba(212, 175, 55, 0.18);
  --gold-gradient: linear-gradient(135deg, #b8922a 0%, #e4c45a 45%, #d4af37 100%);

  --blue-400: #7eb6ff;
  --blue-500: #5aa3ff;
  --blue-glow: rgba(90, 163, 255, 0.14);

  --border-subtle: rgba(255, 255, 255, 0.055);
  --border-light: rgba(255, 255, 255, 0.1);
  --shadow-premium: 0 24px 80px rgba(0, 0, 0, 0.45), 0 8px 24px rgba(0, 0, 0, 0.28);
  --shadow-gold: 0 8px 32px rgba(212, 175, 55, 0.28), 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 8px 32px rgba(0, 0, 0, 0.22);
  --shadow-card-hover: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 20px 48px rgba(0, 0, 0, 0.35);

  --glass-bg: rgba(11, 17, 32, 0.72);
  --glass-border: rgba(255, 255, 255, 0.09);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-base: 280ms;
  --duration-slow: 480ms;
  --duration-slower: 700ms;
}

/* --- Global atmosphere --- */
body {
  line-height: 1.65;
  background:
    radial-gradient(ellipse 90% 50% at 50% -20%, rgba(90, 163, 255, 0.07), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(212, 175, 55, 0.05), transparent 45%),
    var(--bg-base);
  letter-spacing: 0.005em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.container {
  padding-inline: clamp(var(--space-4), 4vw, var(--space-8));
}

/* --- Scroll progress --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  z-index: 1100;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-400), var(--blue-400));
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.45);
  pointer-events: none;
  transform-origin: left;
}

/* --- Typography elevation --- */
h1, h2, h3, h4, h5 {
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-28));
  position: relative;
}

.section-header {
  margin-bottom: clamp(var(--space-10), 5vw, var(--space-16));
}

.section-title {
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  font-weight: 750;
  margin-bottom: var(--space-5);
  max-width: 22ch;
}

.section-header--center .section-title {
  max-width: 26ch;
  margin-inline: auto;
}

.section-desc {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 54ch;
}

.eyebrow {
  margin-bottom: var(--space-5);
  letter-spacing: 0.14em;
  font-size: 0.7rem;
}

.text-gradient {
  background: linear-gradient(120deg, #e8d48b 0%, #d4af37 40%, #7eb6ff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 10s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

/* --- Premium buttons --- */
.btn {
  isolation: isolate;
  border-radius: 12px;
  letter-spacing: 0.01em;
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out),
    background var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out),
    color var(--duration-base) var(--ease-out),
    filter var(--duration-base) var(--ease-out);
}

.btn__text,
.btn__icon {
  position: relative;
  z-index: 2;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--ripple-x, 50%) var(--ripple-y, 50%), rgba(255, 255, 255, 0.35), transparent 55%);
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
  pointer-events: none;
  z-index: 1;
}

.btn.is-rippling::before {
  opacity: 1;
  animation: btn-ripple 0.55s var(--ease-out) forwards;
}

@keyframes btn-ripple {
  from { transform: scale(0.2); opacity: 0.55; }
  to { transform: scale(2.4); opacity: 0; }
}

.btn--primary {
  background: var(--gold-gradient);
  color: #1a1408;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-gold);
}

.btn--primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.btn--primary:active {
  transform: translateY(0) scale(0.98);
  filter: brightness(0.96);
}

.btn--ghost {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.14);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.btn--secondary {
  background: linear-gradient(180deg, #ffffff 0%, #eef2f7 100%);
  color: var(--text-inverse);
}

.btn--outline:hover {
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.35), 0 8px 28px rgba(212, 175, 55, 0.12);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  filter: none !important;
  box-shadow: none !important;
}

.btn--icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
}

/* --- Navigation glass --- */
.site-header {
  height: var(--header-height);
  border-bottom: 1px solid transparent;
}

.site-header--scrolled {
  background: rgba(7, 11, 18, 0.78);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-bottom-color: var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
}

.nav-desktop a:not(.btn) {
  transition: color var(--duration-base) var(--ease-out);
}

.nav-desktop a:not(.btn)::after {
  content: "";
  position: absolute;
  left: var(--space-4);
  right: var(--space-4);
  bottom: 2px;
  height: 2px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--gold-500), var(--blue-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-base) var(--ease-out);
  opacity: 0.9;
}

.nav-desktop a:not(.btn):hover::after,
.nav-desktop a:not(.btn).active::after {
  transform: scaleX(1);
}

.nav-desktop a:not(.btn).active::after {
  /* replace old underline rule */
  display: block;
}

.nav-dropdown__menu {
  backdrop-filter: blur(20px) saturate(140%);
  background: rgba(15, 22, 38, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-premium);
  border-radius: 14px;
  padding: var(--space-3);
}

.nav-dropdown__menu a {
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
}

.nav-dropdown__menu a:hover {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.1), rgba(90, 163, 255, 0.06));
  color: var(--text-primary);
}

.nav-signin {
  font-weight: 600;
  color: var(--text-secondary);
  padding: var(--space-2) var(--space-3);
  border-radius: 10px;
  transition: color var(--duration-base), background var(--duration-base);
}

.nav-signin:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.search-box--header {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 0.15rem 0.35rem 0.15rem 0.75rem;
  transition: border-color var(--duration-base), box-shadow var(--duration-base);
}

.search-box--header:focus-within {
  border-color: rgba(90, 163, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(90, 163, 255, 0.12);
}

.search-box--header input {
  background: transparent;
  border: 0;
  color: var(--text-primary);
  width: 110px;
  font-size: var(--text-sm);
  outline: none;
}

.search-box--header button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--text-muted);
}

.nav-mobile {
  background: rgba(8, 12, 20, 0.96);
  backdrop-filter: blur(24px);
  gap: var(--space-2);
  padding: var(--space-8) var(--space-6);
}

.nav-mobile a:not(.btn) {
  padding: 0.95rem 1rem;
  border-radius: 12px;
  font-size: 1.05rem;
  border: 1px solid transparent;
}

.nav-mobile a:not(.btn):hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.06);
}

/* --- Flagship hero --- */
.hero {
  min-height: min(100vh, 920px);
  padding-bottom: var(--space-16);
}

.hero__bg {
  overflow: hidden;
}

.hero__gradient {
  background:
    radial-gradient(ellipse 70% 55% at 75% 20%, rgba(90, 163, 255, 0.16) 0%, transparent 55%),
    radial-gradient(ellipse 50% 45% at 15% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 70%),
    linear-gradient(180deg, #070b12 0%, #0b1220 55%, #0d1424 100%);
  animation: hero-aura 16s ease-in-out infinite alternate;
}

@keyframes hero-aura {
  from { filter: hue-rotate(0deg) saturate(1); }
  to { filter: hue-rotate(8deg) saturate(1.08); }
}

.hero__grid {
  opacity: 0.55;
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 75% 65% at 60% 40%, black 10%, transparent 75%);
}

.hero__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__shape {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(90, 163, 255, 0.06), rgba(212, 175, 55, 0.04));
  pointer-events: none;
  filter: blur(0.2px);
  animation: float-shape 18s ease-in-out infinite;
}

.hero__shape--1 {
  width: 180px;
  height: 120px;
  top: 18%;
  left: 8%;
  transform: rotate(-12deg);
}

.hero__shape--2 {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  bottom: 22%;
  right: 12%;
  animation-delay: -6s;
}

.hero__shape--3 {
  width: 90px;
  height: 90px;
  top: 55%;
  left: 42%;
  border-radius: 18px;
  animation-delay: -11s;
}

@keyframes float-shape {
  0%, 100% { transform: translateY(0) rotate(-8deg); opacity: 0.45; }
  50% { transform: translateY(-18px) rotate(4deg); opacity: 0.75; }
}

.hero__inner {
  gap: clamp(var(--space-10), 5vw, var(--space-16));
  padding-block: clamp(var(--space-12), 6vw, var(--space-20));
  align-items: center;
}

.hero__badge {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.22);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.hero__title {
  font-size: clamp(2.4rem, 5.2vw, 4.15rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: var(--space-6);
  max-width: 14ch;
}

.hero__subtitle {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 42ch;
  margin-bottom: var(--space-8);
}

.hero__actions {
  margin-bottom: var(--space-10);
}

.hero__trust-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
  font-weight: 600;
}

.hero__stats {
  gap: var(--space-4);
}

.hero__visual {
  position: relative;
  perspective: 1400px;
}

.hero-float-card {
  position: absolute;
  z-index: 3;
  min-width: 148px;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(15, 22, 38, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-premium);
  pointer-events: none;
  animation: float-card 7s ease-in-out infinite;
}

.hero-float-card--1 {
  top: 8%;
  left: -6%;
}

.hero-float-card--2 {
  bottom: 14%;
  right: -4%;
  animation-delay: -3.5s;
}

.hero-float-card__label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.hero-float-card__value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.hero-float-card__meta {
  font-size: 0.75rem;
  color: var(--blue-400);
  margin-top: 0.2rem;
}

/* --- Cards elevation --- */
.resource-card,
.doc-card,
.solution-card {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  box-shadow: var(--shadow-card);
  transition: transform var(--duration-slow) var(--ease-out), box-shadow var(--duration-slow) var(--ease-out), border-color var(--duration-base);
}

.resource-card:hover,
.doc-card:hover,
.solution-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.28);
  box-shadow: var(--shadow-card-hover);
}

.feature-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.015) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-card);
  border-radius: 18px;
  padding: clamp(var(--space-6), 3vw, var(--space-8));
}

.section--dark .feature-card,
.section--darker .feature-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  backdrop-filter: blur(14px);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 175, 55, 0.28);
  box-shadow: var(--shadow-card-hover), 0 0 0 1px rgba(212, 175, 55, 0.08);
}

.feature-card__icon-wrap {
  background: linear-gradient(145deg, rgba(90, 163, 255, 0.16), rgba(212, 175, 55, 0.08));
  border-color: rgba(90, 163, 255, 0.2);
  border-radius: 14px;
}

.feature-card__title {
  letter-spacing: -0.025em;
  margin-bottom: var(--space-3);
}

.feature-card__desc {
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.pricing-card {
  border-radius: 20px;
  padding: clamp(var(--space-6), 3vw, var(--space-8));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-card);
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.pricing-card--featured {
  border-color: rgba(212, 175, 55, 0.45);
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(212, 175, 55, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow-gold), var(--shadow-card);
}

.pricing-card__badge {
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35);
}

.faq-item {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  padding: 0;
  overflow: hidden;
  margin-bottom: var(--space-3);
}

.faq-item__question {
  padding: 1.15rem 1.25rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  align-items: center;
  font-weight: 600;
  color: var(--text-primary);
  transition: background var(--duration-base);
}

.faq-item__question::-webkit-details-marker { display: none; }

.faq-item__question:hover {
  background: rgba(255, 255, 255, 0.03);
}

.faq-item__answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-item[open] {
  border-color: rgba(212, 175, 55, 0.25);
  background: rgba(212, 175, 55, 0.04);
}

.stat-counter {
  min-width: 110px;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
}

.stat-counter__value {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  letter-spacing: -0.03em;
}

/* --- Screenshot frames --- */
.browser-frame {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-premium);
  position: relative;
}

.browser-frame::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.45), rgba(90, 163, 255, 0.2), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
  z-index: 2;
}

.browser-frame--interactive:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(212, 175, 55, 0.15);
}

.browser-frame--hero {
  border-radius: 20px;
  transform: rotateX(2deg) rotateY(-4deg) translateZ(0);
  transition: transform var(--duration-slow) var(--ease-out), box-shadow var(--duration-slow) var(--ease-out);
}

.hero__visual:hover .browser-frame--hero {
  transform: rotateX(0deg) rotateY(0deg) translateY(-4px);
}

.browser-frame__chrome {
  background: linear-gradient(180deg, #1a2338 0%, #121a2c 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.browser-frame__overlay {
  background: linear-gradient(180deg, transparent 40%, rgba(7, 11, 18, 0.55));
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.hero-screenshot__glow {
  background:
    radial-gradient(ellipse at 60% 40%, rgba(90, 163, 255, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse at 30% 70%, rgba(212, 175, 55, 0.18) 0%, transparent 50%);
  filter: blur(8px);
}

.hero-screenshot::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -18px;
  height: 40px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent);
  filter: blur(18px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

.screenshot-callout__label {
  backdrop-filter: blur(10px);
  background: rgba(12, 18, 30, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* --- CTA banner --- */
.cta-banner {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
  background:
    radial-gradient(ellipse 70% 80% at 50% 100%, rgba(212, 175, 55, 0.12), transparent 55%),
    var(--bg-elevated);
}

.cta-banner__title {
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  letter-spacing: -0.035em;
}

.cta-banner__subtitle {
  font-size: 1.125rem;
  max-width: 48ch;
}

/* --- Forms --- */
.contact-form-card {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  box-shadow: var(--shadow-premium);
  padding: clamp(var(--space-6), 3vw, var(--space-10));
}

.form-group {
  position: relative;
  margin-bottom: var(--space-5);
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-primary);
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  transition: border-color var(--duration-base), box-shadow var(--duration-base), background var(--duration-base);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(90, 163, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(90, 163, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
}

.form-group input:user-valid,
.form-group textarea:user-valid {
  border-color: rgba(34, 197, 94, 0.35);
}

.form-group input:user-invalid:not(:placeholder-shown),
.form-group textarea:user-invalid:not(:placeholder-shown) {
  border-color: rgba(239, 68, 68, 0.45);
}

/* --- Footer --- */
.site-footer {
  padding-top: clamp(var(--space-16), 7vw, var(--space-24));
  background:
    radial-gradient(ellipse 50% 40% at 20% 0%, rgba(90, 163, 255, 0.06), transparent 50%),
    var(--bg-base);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
  gap: clamp(var(--space-8), 4vw, var(--space-12));
  margin-bottom: var(--space-16);
}

.footer-brand p {
  max-width: 34ch;
  line-height: 1.75;
}

.footer-col h4 {
  margin-bottom: var(--space-5);
  color: var(--text-primary);
  letter-spacing: 0.1em;
}

.footer-col a {
  padding: 0.4rem 0;
  transition: color var(--duration-fast), transform var(--duration-fast);
}

.footer-col a:hover {
  color: var(--gold-400);
  transform: translateX(2px);
}

.footer-newsletter {
  margin-top: var(--space-6);
  padding: var(--space-5);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.footer-newsletter p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.footer-newsletter__row {
  display: flex;
  gap: var(--space-2);
}

.footer-newsletter input {
  flex: 1;
  min-width: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-primary);
  padding: 0.7rem 0.85rem;
  font-size: var(--text-sm);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: var(--space-6);
}

/* --- Page hero --- */
.page-hero {
  padding-top: calc(var(--header-height) + clamp(var(--space-12), 5vw, var(--space-20)));
  padding-bottom: clamp(var(--space-12), 5vw, var(--space-20));
}

.page-hero__bg {
  background:
    radial-gradient(ellipse 70% 80% at 50% -10%, rgba(90, 163, 255, 0.1) 0%, transparent 55%),
    radial-gradient(ellipse 40% 50% at 80% 20%, rgba(212, 175, 55, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-base) 0%, var(--bg-surface) 100%);
}

/* --- Reveal / motion --- */
.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  filter: blur(2px);
  transition:
    opacity var(--duration-slower) var(--ease-soft),
    transform var(--duration-slower) var(--ease-soft),
    filter var(--duration-slower) var(--ease-soft);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.divider-glow {
  height: 1px;
  width: min(720px, 80%);
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.45), rgba(90, 163, 255, 0.35), transparent);
  opacity: 0.7;
}

/* --- Credibility / strips --- */
.authenticity-strip {
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.05), transparent);
}

.authenticity-badge {
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  background: rgba(212, 175, 55, 0.06);
  backdrop-filter: blur(8px);
}

/* --- FAQ toolbar --- */
.faq-toolbar {
  margin-bottom: var(--space-10);
}

.faq-search {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text-primary);
  padding: 0.95rem 1.1rem;
  font-size: 1rem;
  margin-bottom: var(--space-5);
  transition: border-color var(--duration-base), box-shadow var(--duration-base);
}

.faq-search:focus {
  outline: none;
  border-color: rgba(90, 163, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(90, 163, 255, 0.12);
}

.faq-categories {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.faq-categories__chip {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: background var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast);
}

.faq-categories__chip:hover,
.faq-categories__chip.is-active {
  color: var(--text-primary);
  border-color: rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.1);
}

.faq-category__title {
  font-size: 1.25rem;
  margin-bottom: var(--space-5);
  letter-spacing: -0.02em;
}

.faq-empty {
  text-align: center;
  color: var(--text-muted);
  padding: var(--space-8);
}

/* --- Lightbox polish --- */
.lightbox__dialog {
  filter: drop-shadow(0 30px 80px rgba(0, 0, 0, 0.55));
}

.lightbox__close,
.lightbox__nav {
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* --- Mobile --- */
@media (max-width: 1100px) {
  .hero-float-card { display: none; }
  .hero__title { max-width: none; }
  .browser-frame--hero { transform: none; }
}

@media (max-width: 768px) {
  .section { padding-block: var(--space-16); }
  .hero { min-height: auto; }
  .search-box--header { display: none; }
  .btn-group .btn { width: 100%; }
  .footer-newsletter__row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .text-gradient,
  .hero__gradient,
  .hero__shape,
  .hero-float-card,
  .hero__orb {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .btn.is-rippling::before { display: none; }
}

/* --- Guided Product Tour (Digital Product Experience) --- */
.guided-tour__layout {
  max-width: 1100px;
}

.guided-tour__progress {
  margin-bottom: var(--space-8);
}

.guided-tour__progress-bar {
  height: 4px;
  width: 6.25%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--gold-600), var(--gold-400), var(--blue-400));
  transition: width var(--duration-base) var(--ease-out);
}

.guided-tour__progress-label {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.guided-tour__step {
  display: none;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(var(--space-6), 4vw, var(--space-12));
  align-items: center;
}

.guided-tour__step.is-active {
  display: grid;
}

.guided-tour__kicker {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-400);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.guided-tour__headline {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
}

.guided-tour__value {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: var(--space-6);
  max-width: 42ch;
}

.guided-tour__footer {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.center-block {
  padding: clamp(var(--space-8), 4vw, var(--space-12)) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.center-block:last-child { border-bottom: 0; }

.center-block__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-4) 0 var(--space-6);
}

.center-block__chip {
  font-size: 0.75rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.social-proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-4);
}

.social-proof-card {
  padding: var(--space-6);
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.social-proof-card__status {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: var(--space-3);
  font-weight: 700;
}

.doc-preview {
  margin-top: var(--space-4);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.doc-preview img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  object-position: top;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .guided-tour__step.is-active {
    grid-template-columns: 1fr;
  }
}
