/* ============================================================
   VisionX v2 — Premium Dark Theme
   Deep midnight + indigo/violet gradients + gold accents
   ============================================================ */

/* --- Custom Properties --- */
:root {
  --bg-deep: #04051a;
  --bg-base: #080b2a;
  --bg-card: rgba(12, 15, 48, 0.65);
  --bg-card-hover: rgba(18, 22, 64, 0.8);
  --bg-surface: #0c1035;
  --bg-alt: #060920;

  --brand-indigo: #6366f1;
  --brand-violet: #8b5cf6;
  --brand-fuchsia: #c026d3;
  --brand-cyan: #22d3ee;

  --accent-gold: #f59e0b;
  --accent-gold-light: #fbbf24;
  --accent-gold-dark: #d97706;

  --text-primary: #eef0ff;
  --text-secondary: #9196b0;
  --text-muted: #5c6180;

  --border-subtle: rgba(99, 102, 241, 0.12);
  --border-card: rgba(99, 102, 241, 0.15);
  --border-glow: rgba(99, 102, 241, 0.3);

  --gradient-brand: linear-gradient(135deg, #6366f1, #8b5cf6, #c026d3);
  --gradient-gold: linear-gradient(135deg, #f59e0b, #fbbf24);
  --gradient-hero: linear-gradient(160deg, #6366f1 0%, #8b5cf6 40%, #c026d3 100%);
  --gradient-card-border: linear-gradient(135deg, rgba(99,102,241,0.4), rgba(139,92,246,0.2), rgba(192,38,211,0.4));

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg: 0 16px 64px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(99,102,241,0.15);
  --shadow-gold: 0 4px 24px rgba(245,158,11,0.3);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 100px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container: 1200px;
  --nav-height: 72px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font: inherit; }

/* --- Utility --- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 2rem; }
.text-center { text-align: center; }
.text-lg { font-size: 1.125rem; line-height: 1.8; color: var(--text-secondary); }
.text-lg + .text-lg { margin-top: 1rem; }

.gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gold-text {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Section --- */
.section {
  padding: 6rem 0;
  position: relative;
}
.section--alt { background: var(--bg-alt); }

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
}
.section-accent {
  width: 48px;
  height: 3px;
  background: var(--gradient-brand);
  border-radius: 2px;
  margin: 1rem auto 0;
}

/* --- Ambient Background --- */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
}
.ambient-orb--1 {
  width: 600px; height: 600px;
  background: #6366f1;
  top: -200px; left: -100px;
  animation: ambientDrift 25s ease-in-out infinite;
}
.ambient-orb--2 {
  width: 500px; height: 500px;
  background: #c026d3;
  top: 40%; right: -150px;
  animation: ambientDrift 30s ease-in-out infinite reverse;
}
.ambient-orb--3 {
  width: 400px; height: 400px;
  background: #8b5cf6;
  bottom: -100px; left: 30%;
  animation: ambientDrift 20s ease-in-out infinite 5s;
}

@keyframes ambientDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}
.navbar--scrolled {
  background: rgba(4, 5, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border-subtle), 0 4px 24px rgba(0,0,0,0.3);
}
.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 10;
}
.logo-img {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s;
}
.logo-img:hover { opacity: 0.8; }
.logo-img--small { height: 38px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color 0.3s, background 0.3s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}
.nav-links a.active {
  background: rgba(99, 102, 241, 0.1);
}
.nav-cta {
  background: var(--gradient-gold) !important;
  color: #000 !important;
  font-weight: 600 !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: var(--radius-pill) !important;
  transition: transform 0.3s, box-shadow 0.3s !important;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold) !important;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 10;
  padding: 4px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--gradient-gold);
  color: #000;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  transition: transform 0.3s, box-shadow 0.3s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}
.btn-primary--large {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-card);
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.btn-secondary:hover {
  background: rgba(99, 102, 241, 0.08);
  border-color: var(--brand-indigo);
  transform: translateY(-2px);
}

.btn-arrow {
  width: 20px;
  height: 20px;
}

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: transform 0.4s, border-color 0.4s, box-shadow 0.4s, background 0.4s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  padding: 1px;
  background: var(--gradient-card-border);
  -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;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  background: var(--bg-card-hover);
}
.card:hover::before { opacity: 1; }

.card-wide {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 2rem) 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: heroGlowPulse 8s ease-in-out infinite;
}
@keyframes heroGlowPulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--brand-indigo);
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--brand-indigo);
  border-radius: 50%;
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero-tagline {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-subtle);
}
.hero-stat {
  text-align: center;
}
.hero-stat-value {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.hero-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* --- Page Hero (Sub-pages) --- */
.page-hero {
  padding: calc(var(--nav-height) + 4rem) 0 3rem;
  text-align: center;
}
.page-hero--compact {
  padding-bottom: 1rem;
}
.page-hero .hero-badge { margin-bottom: 1.5rem; }
.page-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.page-hero .hero-tagline {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* --- Feature Grid --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature-card {
  padding: 2.25rem;
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--brand-indigo);
}
.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.feature-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Detail Cards (Alternating) --- */
.detail-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
}
.detail-section + .detail-section {
  border-top: 1px solid var(--border-subtle);
}
.detail-section--reverse { direction: rtl; }
.detail-section--reverse > * { direction: ltr; }

.detail-text h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.detail-text p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
.detail-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.detail-list svg {
  flex-shrink: 0;
  margin-top: 3px;
}

.detail-visual {
  position: relative;
}
.detail-visual-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}
.detail-visual-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
}

/* --- Workflow Steps --- */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}
.workflow-step {
  text-align: center;
  padding: 2.25rem 1.5rem;
  counter-increment: step;
}
.workflow-number {
  width: 48px;
  height: 48px;
  background: var(--gradient-brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  margin: 0 auto 1.25rem;
}
.workflow-step h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.workflow-step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Logos / Tech Stack --- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.tech-card {
  text-align: center;
  padding: 2rem;
}
.tech-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.tech-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Pricing --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.pricing-card {
  padding: 2.5rem;
  position: relative;
}
.pricing-card--featured {
  border-color: var(--brand-indigo);
  box-shadow: var(--shadow-glow);
  transform: scale(1.03);
}
.pricing-card--featured::before { opacity: 1; }

.pricing-popular {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-brand);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pricing-tier {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.pricing-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.25rem;
}
.pricing-currency {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-muted);
}
.pricing-amount {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.pricing-period {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.pricing-features svg { flex-shrink: 0; }

/* --- Values / Numbers --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.value-card { padding: 2.5rem; }
.value-number {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1rem;
}
.value-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.value-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Stats Row --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.stat-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
}
.stat-card .stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-card .stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* --- FAQ --- */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}
.faq-card { padding: 2rem; }
.faq-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.faq-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: start;
}
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-indigo);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239196b0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-group select option {
  background: var(--bg-surface);
  color: var(--text-primary);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.contact-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.expect-list { display: flex; flex-direction: column; gap: 1.25rem; }
.expect-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.expect-number {
  width: 32px;
  height: 32px;
  background: var(--gradient-brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  color: #fff;
}
.expect-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.expect-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.quick-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 0.4rem 0;
}
.quick-list svg { flex-shrink: 0; }

/* --- About Grid --- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  width: 600px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.1) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.cta-content { position: relative; z-index: 1; }
.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.cta-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 2rem;
}

/* --- Footer --- */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 280px;
}
.footer h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.footer ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.3s;
}
.footer a:hover { color: var(--text-primary); }

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  display: flex;
  justify-content: center;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.4s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.5s; }
.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-card--featured { transform: none; }
  .detail-section { grid-template-columns: 1fr; gap: 2rem; }
  .detail-section--reverse { direction: ltr; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .workflow-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 2rem; }
}

@media (max-width: 768px) {
  :root { --nav-height: 64px; }

  .section { padding: 4rem 0; }
  .section-header { margin-bottom: 2.5rem; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(4, 5, 26, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
  }
  .nav-links.active {
    opacity: 1;
    visibility: visible;
  }
  .nav-links a { font-size: 1.25rem; padding: 1rem 2rem; }

  .hero { min-height: auto; padding-top: calc(var(--nav-height) + 3rem); padding-bottom: 3rem; }
  .hero-stats { flex-direction: column; gap: 1.5rem; }

  .feature-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .values-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .workflow-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ============================================================
   Hero Variants (A–E)
   ============================================================ */

/* --- Hero A: Split Layout (text left, visual right) --- */
.hero--split {
  text-align: left;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: calc(var(--nav-height) + 2rem) 2rem 4rem;
  position: relative;
}
.hero--split .hero-content { max-width: none; }
.hero--split .hero-actions { justify-content: flex-start; }
.hero--split .hero-badge { margin-bottom: 1.5rem; }
.hero--split-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.hero--split-visual .mini-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: miniCardFloat 6s ease-in-out infinite;
}
.hero--split-visual .mini-card:nth-child(2) { animation-delay: 1s; margin-left: 2rem; }
.hero--split-visual .mini-card:nth-child(3) { animation-delay: 2s; margin-left: 1rem; }
.hero--split-visual .mini-card:nth-child(4) { animation-delay: 3s; margin-left: 3rem; }
@keyframes miniCardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.mini-card-icon {
  width: 40px; height: 40px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mini-card-icon svg { width: 20px; height: 20px; stroke: var(--brand-indigo); }
.mini-card-text h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.15rem; }
.mini-card-text p { font-size: 0.8rem; color: var(--text-muted); }

/* --- Hero B: Rotating Words --- */
.hero--rotating .hero-content { max-width: 900px; }
.hero--rotating h1 { font-size: clamp(3rem, 7vw, 5rem); }
.rotating-wrapper {
  display: inline-block;
  position: relative;
  height: 1.15em;
  overflow: hidden;
  vertical-align: bottom;
}
.rotating-words {
  display: flex;
  flex-direction: column;
  animation: rotateWords 10s ease-in-out infinite;
}
.rotating-words span {
  display: block;
  height: 1.15em;
  line-height: 1.15;
}
@keyframes rotateWords {
  0%, 16%    { transform: translateY(0); }
  20%, 36%   { transform: translateY(-1.15em); }
  40%, 56%   { transform: translateY(-2.3em); }
  60%, 76%   { transform: translateY(-3.45em); }
  80%, 96%   { transform: translateY(-4.6em); }
  100%       { transform: translateY(0); }
}

/* --- Hero C: Feature Pills --- */
.hero--pills { padding-bottom: 2rem; }
.hero-pills-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: border-color 0.3s, color 0.3s, transform 0.3s;
  animation: pillFadeUp 0.8s ease both;
}
.hero-pill:nth-child(1) { animation-delay: 0.1s; }
.hero-pill:nth-child(2) { animation-delay: 0.2s; }
.hero-pill:nth-child(3) { animation-delay: 0.3s; }
.hero-pill:nth-child(4) { animation-delay: 0.4s; }
.hero-pill:nth-child(5) { animation-delay: 0.5s; }
.hero-pill:nth-child(6) { animation-delay: 0.6s; }
.hero-pill:hover {
  border-color: var(--brand-indigo);
  color: var(--text-primary);
  transform: translateY(-2px);
}
.hero-pill svg { width: 16px; height: 16px; stroke: var(--brand-indigo); flex-shrink: 0; }
@keyframes pillFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Hero D: Editorial / Minimal --- */
.hero--editorial {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 4rem) 2rem 2rem;
  position: relative;
}
.hero--editorial h1 {
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.05;
  margin-bottom: 2rem;
}
.hero--editorial .hero-tagline {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  max-width: 580px;
  margin-bottom: 3rem;
}
.scroll-indicator {
  margin-top: auto;
  padding-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scroll-indicator-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--brand-indigo), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* --- Hero E: Dashboard Preview (text left, mock UI right) --- */
.hero--preview {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: calc(var(--nav-height) + 2rem) 2rem 4rem;
}
.hero--preview .hero-content {
  max-width: none;
  text-align: left;
}
.hero--preview .hero-actions { justify-content: flex-start; }
.hero--preview .hero-badge { margin-bottom: 1.5rem; }
.hero-dashboard {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-dashboard-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-card);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-dashboard-dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.hero-dashboard-dot:nth-child(1) { background: #ff5f57; }
.hero-dashboard-dot:nth-child(2) { background: #febc2e; }
.hero-dashboard-dot:nth-child(3) { background: #28c840; }
.hero-dashboard-body {
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.dash-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem;
}
.dash-card-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}
.dash-card-value {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.dash-card--wide { grid-column: 1 / -1; }
.dash-bar-row {
  display: flex;
  gap: 0.35rem;
  align-items: flex-end;
  height: 40px;
  margin-top: 0.5rem;
}
.dash-bar {
  flex: 1;
  background: var(--gradient-brand);
  border-radius: 3px 3px 0 0;
  opacity: 0.7;
}

/* Hero variant responsive */
@media (max-width: 1024px) {
  .hero--split { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
  .hero--split .hero-actions { justify-content: center; }
  .hero--split-visual .mini-card { margin-left: 0 !important; }
  .hero--preview { grid-template-columns: 1fr; text-align: center; }
  .hero--preview .hero-content { text-align: center; }
  .hero--preview .hero-actions { justify-content: center; }
}
@media (max-width: 768px) {
  .hero--split, .hero--preview, .hero--editorial {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 3rem);
    padding-bottom: 3rem;
  }
  .hero--editorial h1 { font-size: clamp(2.5rem, 10vw, 3.5rem); }
  .hero--rotating h1 { font-size: clamp(2.25rem, 8vw, 3rem); }
  .hero-pills-row { gap: 0.5rem; }
  .hero-pill { font-size: 0.8rem; padding: 0.5rem 1rem; }
  .hero-dashboard-body { grid-template-columns: 1fr; }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-stagger > * {
    opacity: 1;
    transform: none;
  }
}
