/* elevation.css — Premium visual elevation layer
   Loads AFTER styles.css to enhance with glass, depth, motion, gradients */

/* ===== ROOT OVERRIDES ===== */
:root {
  --section-py: 150px;
  --shadow-card: 0 1px 2px rgba(0,0,0,0.03), 0 4px 12px rgba(0,0,0,0.04), 0 16px 40px rgba(0,0,0,0.03);
  --shadow-card-hover: 0 2px 4px rgba(0,0,0,0.05), 0 8px 20px rgba(0,0,0,0.06), 0 32px 56px rgba(0,0,0,0.05);
  --shadow-frame: 0 0 0 1px rgba(0,0,0,0.02), 0 4px 8px rgba(0,0,0,0.03), 0 20px 40px rgba(0,0,0,0.06), 0 56px 96px rgba(0,0,0,0.06);
  --glass-bg: rgba(255,255,255,0.6);
  --glass-border: rgba(255,255,255,0.35);
  --radius-card: 20px;
  --radius-btn: 12px;
  --radius-pricing: 24px;
}

/* ===== TYPOGRAPHY ===== */
h1 { font-weight: 300; }
h2 { font-weight: 600; }
.section-desc { line-height: 1.7; }
.section-heading { color: var(--text); }
.section-label { font-size: 12px; letter-spacing: .1em; }

/* ===== NAV: TRANSPARENT → GLASS ===== */
.nav {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, -webkit-backdrop-filter 0.4s ease, border-color 0.4s ease;
}
.nav--scrolled {
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom-color: rgba(0,0,0,0.05);
}

/* ===== HERO ===== */
.hero {
  min-height: 100dvh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 20px) 0 60px;
  position: relative;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 1; }

/* Hero headline */
.hero__title {
  font-size: 74px;
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.06;
}
.hero__title-accent {
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent) 0%, #7C3AED 40%, #8B5CF6 70%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__subtitle {
  font-size: 20px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Color orbs */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}
.hero__orb--1 {
  width: 650px; height: 650px;
  background: var(--accent);
  opacity: 0.1;
  top: -220px; left: -180px;
}
.hero__orb--2 {
  width: 520px; height: 520px;
  background: #a855f7;
  opacity: 0.08;
  bottom: -180px; right: -120px;
}
.hero__orb--3 {
  width: 380px; height: 380px;
  background: #06b6d4;
  opacity: 0.06;
  top: 38%; left: 58%;
}

/* Dot grid texture */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

/* ===== SECTION BACKGROUNDS ===== */
.section {
  background: linear-gradient(180deg, rgba(252,252,251,1) 0%, rgba(249,248,246,1) 100%);
}
.section--alt {
  background: linear-gradient(180deg, #F5F4F1 0%, #EFEEEB 100%);
}
.section--dark {
  background: linear-gradient(180deg, #1C1917 0%, #0D0C0B 100%);
}

/* ===== BUTTONS ===== */
.btn {
  border-radius: var(--radius-btn);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn:hover {
  transform: scale(1.04);
}
.btn:active {
  transform: scale(0.97);
}
.btn--primary {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18) 0%, transparent 45%),
    linear-gradient(135deg, var(--accent), var(--accent-hover));
  box-shadow:
    0 1px 2px rgba(0,0,0,0.08),
    0 4px 16px color-mix(in srgb, var(--accent) 25%, transparent),
    inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn--primary:hover {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 45%),
    linear-gradient(135deg, var(--accent), var(--accent-hover));
  box-shadow:
    0 2px 4px rgba(0,0,0,0.1),
    0 8px 24px color-mix(in srgb, var(--accent) 30%, transparent),
    inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn--ghost {
  border-radius: var(--radius-btn);
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.btn--ghost:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.12);
}
.btn--dark {
  box-shadow: 0 1px 2px rgba(0,0,0,0.1), 0 4px 16px rgba(255,255,255,0.08);
}
.btn--dark:hover {
  box-shadow: 0 2px 4px rgba(0,0,0,0.12), 0 8px 24px rgba(255,255,255,0.12);
}
.btn--lg {
  border-radius: 14px;
  padding: 17px 36px;
  font-size: 17px;
}

/* ===== CARDS: GLASS + DEPTH ===== */
.feature-card,
.qtype-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.feature-card:hover,
.qtype-card:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(0,0,0,0.04);
}

/* Grid gaps */
.features-grid { gap: 24px; }
.qtypes-grid { gap: 24px; }

/* ===== BROWSER FRAME ===== */
.browser-frame {
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-frame);
  border-color: rgba(0,0,0,0.05);
}

/* ===== PHONE FRAME ===== */
.phone-frame {
  box-shadow: 0 30px 70px -15px rgba(0,0,0,0.22), inset 0 0 0 1.5px rgba(255,255,255,0.06);
}

/* ===== VALUE BAR ===== */
.value-bar {
  border-color: rgba(0,0,0,0.05);
}

/* ===== EXAM PASS BOX ===== */
.exam-exp__pass {
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  border-color: rgba(0,0,0,0.05);
}

/* ===== PRICING ===== */
.pricing-card {
  border-radius: var(--radius-pricing);
  box-shadow: var(--shadow-card);
  border-color: rgba(0,0,0,0.05);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), box-shadow 0.35s ease;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

/* Featured card: animated glow border */
@property --glow-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.pricing-card--featured {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    conic-gradient(from var(--glow-angle, 0deg), var(--accent), #8B5CF6, #06B6D4, #8B5CF6, var(--accent)) border-box;
  animation: glow-rotate 6s linear infinite;
  box-shadow: var(--shadow-card), 0 0 60px -15px color-mix(in srgb, var(--accent) 20%, transparent);
}
.pricing-card--featured:hover {
  box-shadow: var(--shadow-card-hover), 0 0 80px -10px color-mix(in srgb, var(--accent) 30%, transparent);
}
@keyframes glow-rotate {
  to { --glow-angle: 360deg; }
}

/* Pricing toggle: sliding pill */
.pricing-toggle { display: flex; justify-content: center; margin-bottom: 48px; }
.pricing-toggle__track {
  display: inline-flex;
  position: relative;
  background: rgba(0,0,0,0.04);
  border-radius: 14px;
  padding: 4px;
  border: 1px solid rgba(0,0,0,0.04);
}
.pricing-toggle__pill {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background: var(--surface);
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}
.pricing-toggle__pill--right {
  transform: translateX(calc(100% + 8px));
}
.pricing-toggle__btn {
  flex: 1;
  position: relative;
  z-index: 1;
  padding: 10px 32px;
  background: transparent !important;
  border: none !important;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-tertiary);
  transition: color 0.3s ease;
}
.pricing-toggle__btn:first-child { border-radius: 10px; }
.pricing-toggle__btn:last-child { border-radius: 10px; }
.pricing-toggle__btn--active {
  color: var(--text) !important;
  background: transparent !important;
}
.pricing-toggle__btn:hover:not(.pricing-toggle__btn--active) {
  color: var(--text-secondary);
  background: transparent !important;
}
.pricing-grid--3 { gap: 24px; }

/* ===== FAQ ===== */
.faq-item__q {
  transition: color 0.2s ease;
}
.faq-item__q:hover {
  color: var(--accent);
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: none;
}

/* Staggered children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-stagger.revealed > * {
  opacity: 1;
  transform: none;
}
.reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.revealed > *:nth-child(2) { transition-delay: 100ms; }
.reveal-stagger.revealed > *:nth-child(3) { transition-delay: 200ms; }
.reveal-stagger.revealed > *:nth-child(4) { transition-delay: 300ms; }

/* ===== LANGUAGE CROSSFADE ===== */
.lang-fade {
  animation: langCrossfade 0.35s ease;
}
@keyframes langCrossfade {
  0% { opacity: 0.35; transform: translateY(2px); }
  100% { opacity: 1; transform: none; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .pricing-card--featured { animation: none; }
  .hero__orb { display: none; }
  .lang-fade { animation: none; }
  .btn:hover { transform: none; }
  .feature-card:hover, .qtype-card:hover, .pricing-card:hover { transform: none; }
}

/* ===== RESPONSIVE OVERRIDES ===== */
@media (max-width: 1024px) {
  .hero__title { font-size: 60px; }
}
@media (max-width: 768px) {
  :root { --section-py: 80px; }
  .hero {
    min-height: auto;
    padding: 56px 0 64px;
  }
  .hero__title {
    font-size: 42px;
    font-weight: 400;
  }
  .hero__orb--1 { width: 350px; height: 350px; top: -120px; left: -100px; }
  .hero__orb--2 { width: 280px; height: 280px; }
  .hero__orb--3 { display: none; }
  .hero::after { opacity: 0.25; }
  .btn--lg { padding: 15px 28px; font-size: 16px; }
}
@media (max-width: 480px) {
  .hero__title { font-size: 36px; }
  .hero__orb { display: none; }
}
