/* ===================================================================
   RETRIVA — Awwwards-Level Design System
   Native JS + GSAP + Locomotive Scroll
   =================================================================== */

/* ===== CSS Custom Properties ===== */
:root {
  /* Light Theme */
  --bg: #ffffff;
  --bg-elevated: #f8f9fb;
  --bg-card: #ffffff;
  --bg-card-hover: #f8f9fb;
  --surface: #f1f3f5;

  /* Text */
  --text-primary: #111111;
  --text-secondary: #555555;
  --text-muted: #999999;
  --text-inverse: #ffffff;

  /* Accent - Retriva Blue */
  --accent: #2563eb;
  --accent-light: #3b82f6;
  --accent-glow: rgba(37, 99, 235, 0.08);
  --accent-glow-strong: rgba(37, 99, 235, 0.15);

  /* Borders */
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);
  --border-accent: rgba(37, 99, 235, 0.25);

  /* Typography */
  --font-display: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --section-pad: clamp(5rem, 12vh, 10rem);
  --container-pad: clamp(1.25rem, 4vw, 3rem);

  /* Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --duration-fast: 0.3s;
  --duration-normal: 0.6s;
  --duration-slow: 1s;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

/* Selection */
::selection {
  background: var(--accent);
  color: var(--bg);
}


/* ===== Grain Overlay ===== */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10002;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* ===== Layout ===== */
.container {
  max-width: 82rem;
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.container-sm {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 var(--container-pad);
  transition: background 0.4s, border-color 0.4s;
  will-change: background;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
  border-bottom: 1px solid var(--border);
}

.header.scrolled .header-inner {
  border-bottom-color: transparent;
}

/* When mobile nav is open, give the header a solid background */
.header:has(.mobile-nav.open) {
  background: rgba(255, 255, 255, 0.98);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-logo img {
  height: 1.75rem;
  width: auto;
}

.header-logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.header-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .header-nav { display: flex; }
}

.header-nav a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-secondary);
  position: relative;
  transition: color var(--duration-fast);
  letter-spacing: 0.01em;
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s var(--ease-out-expo);
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--text-primary);
}

.header-nav a:hover::after,
.header-nav a.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 767px) {
  .header-actions .btn-ghost { display: none; }
  .header-actions .btn-primary { display: none; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  padding: 0.625rem 1.5rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
  font-family: var(--font-body);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--accent);
  color: var(--text-inverse);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.btn-outline:hover {
  border-color: var(--text-primary);
  background: rgba(0, 0, 0, 0.03);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 0.625rem 1rem;
}

.btn-ghost:hover {
  color: var(--text-primary);
}

.btn-lg {
  padding: 0.875rem 2.25rem;
  font-size: 1rem;
}

.btn-xl {
  padding: 1rem 2.75rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.btn-full {
  width: 100%;
}

.btn-icon {
  gap: 0.5rem;
}

.btn-icon svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.3s var(--ease-out-expo);
}

.btn-icon:hover svg {
  transform: translateX(3px);
}

/* ===== Mobile Menu ===== */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.mobile-menu-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

@media (min-width: 768px) {
  .mobile-menu-btn { display: none; }
}

.mobile-nav {
  display: none;
  padding: 1rem var(--container-pad) 1.5rem;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border);
  max-width: 82rem;
  margin: 0 auto;
}

.mobile-nav.open {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

@media (min-width: 768px) {
  .mobile-nav { display: none !important; }
}

.mobile-nav a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  background: rgba(0, 0, 0, 0.03);
  color: var(--text-primary);
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 10rem 0 6rem;
  overflow: hidden;
}

@media (max-width: 767px) {
  .hero {
    min-height: auto;
    padding: 8rem 0 4rem;
    align-items: flex-start;
  }
}

.hero > .container {
  display: flex;
  align-items: center;
  gap: 3rem;
}

@media (max-width: 1023px) {
  .hero > .container {
    flex-direction: column;
    gap: 3rem;
  }
}

@media (max-width: 767px) {
  .hero > .container {
    gap: 2rem;
  }
}

.hero-bg-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.08;
  pointer-events: none;
  will-change: transform;
}

.hero-bg-glow-1 {
  top: -200px;
  right: -100px;
  background: var(--accent);
}

.hero-bg-glow-2 {
  bottom: -200px;
  left: -100px;
  background: #7c3aed;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 56rem;
  flex: 1 1 55%;
  min-width: 0;
}

@media (max-width: 1023px) {
  .hero-content {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem 0.375rem 0.5rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  overflow: hidden;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-badge span {
  color: var(--accent-light);
  font-weight: 500;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.hero h1 .line {
  display: block;
  overflow: hidden;
}

.hero h1 .line-inner {
  display: block;
  transform: translateY(110%);
}

.hero h1 .text-gradient {
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  margin-top: 1.75rem;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 36rem;
  opacity: 0;
}

@media (min-width: 1024px) {
  .hero-description {
    max-width: 32rem;
  }
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  opacity: 0;
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    text-align: center;
    justify-content: center;
  }
}

.hero-visual {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  max-width: 420px;
  opacity: 0;
  display: none;
}

@media (min-width: 768px) {
  .hero-visual {
    display: block;
    max-width: 380px;
    margin: 0 auto;
  }
}

@media (min-width: 1024px) {
  .hero-visual {
    flex: 1 1 40%;
    max-width: 480px;
    margin: 0;
  }
}

/* Hero floating UI mockup */
.hero-mockup {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 0 0 1px var(--border);
}

.hero-mockup-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.hero-mockup-bar-icon {
  width: 1rem;
  height: 1rem;
  color: var(--accent);
}

.hero-mockup-bar-text {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.hero-mockup-result {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: 0.5rem;
  transition: border-color 0.3s;
}

.hero-mockup-result:hover {
  border-color: var(--border-accent);
}

.hero-mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 0.375rem;
  flex-shrink: 0;
}

.hero-mockup-result-text h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.hero-mockup-result-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== Marquee ===== */
.marquee-section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 3rem;
}

.marquee-track.marquee-animate {
  animation: marquee-scroll 30s linear infinite;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(var(--marquee-width, 50%) * -1)); }
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--text-muted);
  user-select: none;
}

.marquee-item .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}

/* ===== Stats Bar ===== */
.stats-section {
  padding: var(--section-pad) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-item {
  text-align: center;
  padding: 2rem 1rem;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1;
}

.stat-number .accent {
  color: var(--accent);
}

.stat-label {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ===== Features Section ===== */
.features-section {
  padding: var(--section-pad) 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
  max-width: 36rem;
}

.section-subtitle {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 36rem;
}

/* Centered section headers (pricing, comparison, FAQ) */
.pricing-header .section-title,
.pricing-header .section-subtitle {
  max-width: none;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 4rem;
}

@media (min-width: 640px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== Feature Card ===== */
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: border-color 0.4s, transform 0.4s var(--ease-out-expo), background 0.4s, box-shadow 0.4s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

@media (max-width: 479px) {
  .feature-card {
    padding: 1.5rem;
  }
}

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

.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

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

.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--accent);
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.feature-card p {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* ===== Bento Grid ===== */
.bento-section {
  padding: var(--section-pad) 0;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 4rem;
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(180px, auto);
  }
  .bento-item-wide { grid-column: span 7; }
  .bento-item-narrow { grid-column: span 5; }
  .bento-item-half { grid-column: span 6; }
}

@media (max-width: 767px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-item-wide,
  .bento-item-narrow,
  .bento-item-half {
    grid-column: span 1;
  }
}

.bento-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.5s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

@media (max-width: 479px) {
  .bento-item {
    padding: 1.75rem;
  }
}

.bento-item:hover {
  border-color: var(--border-hover);
}

.bento-item h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.bento-item p {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 28rem;
}

.bento-visual {
  margin-top: 2rem;
  padding: 1rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

/* ===== CTA Section ===== */
.cta-section {
  padding: var(--section-pad) 0;
}

.cta-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 4vw, 5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center top, var(--accent-glow) 0%, transparent 60%);
  pointer-events: none;
}

.cta-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  position: relative;
}

.cta-block p {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--text-secondary);
  position: relative;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
  position: relative;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .cta-actions .btn {
    text-align: center;
    justify-content: center;
  }
}

/* ===== Pricing Section ===== */
.pricing-section {
  padding: var(--section-pad) 0;
}

.pricing-header {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
}

/* Toggle */
.pricing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 0.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
}

.pricing-toggle-btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  transition: background 0.3s, color 0.3s;
}

.pricing-toggle-btn.active {
  background: var(--accent);
  color: var(--text-inverse);
}

.pricing-save-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: #22c55e;
  padding: 0.125rem 0.5rem;
  background: rgba(34, 197, 94, 0.1);
  border-radius: var(--radius-full);
}

/* Pricing Cards */
.pricing-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 3rem;
  align-items: stretch;
  justify-content: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) and (max-width: 1023px) {
  .pricing-grid {
    max-width: 32rem;
  }
}

@media (min-width: 1024px) {
  .pricing-grid { }
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  transition: transform 0.4s var(--ease-out-expo), border-color 0.4s, box-shadow 0.4s;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  flex: 1 1 350px;
  display: flex;
  flex-direction: column;
}

@media (max-width: 479px) {
  .pricing-card {
    padding: 2rem 1.5rem;
  }
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.pricing-card-popular {
  border-color: var(--accent);
  background: var(--bg-card);
  box-shadow: 0 0 0 1px var(--accent), 0 20px 60px rgba(37, 99, 235, 0.12);
}

.pricing-card-popular:hover {
  border-color: var(--accent-light);
}

.popular-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 1rem;
  background: var(--accent);
  color: var(--text-inverse);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.pricing-plan-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.pricing-plan-desc {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.pricing-price {
  margin-top: 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.pricing-amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1;
}

.pricing-period {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.pricing-divider {
  margin: 1.5rem 0;
  border: none;
  border-top: 1px solid var(--border);
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.pricing-features svg {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.pricing-cta {
  margin-top: auto;
  padding-top: 2rem;
}

/* ===== FAQ Section ===== */
.faq-section {
  padding: var(--section-pad) 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 3rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text-primary);
  text-align: left;
  transition: color 0.3s;
}

@media (max-width: 479px) {
  .faq-question {
    font-size: 0.9375rem;
    padding: 1.25rem 0;
  }
}

.faq-question:hover {
  color: var(--accent);
}

.faq-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--text-muted);
  transition: transform 0.3s var(--ease-out-expo);
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out-expo);
}

.faq-answer-inner {
  padding-bottom: 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 5rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 480px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
  }
}

.footer-brand {
  grid-column: 1 / -1;
}

@media (min-width: 480px) {
  .footer-brand { grid-column: 1 / -1; }
}

@media (min-width: 768px) {
  .footer-brand { grid-column: auto; }
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand img {
  height: 1.75rem;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 20rem;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

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

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

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

.footer-social a {
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.footer-social svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* ===== Scroll Reveal ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Magnetic Button Effect ===== */
.magnetic {
  transition: transform 0.3s var(--ease-out-expo);
}

/* ===== Main ===== */
.main {
  padding-top: 0; /* Hero handles its own top spacing via section padding */
  position: relative;
  z-index: 1;
}

/* ===== Utility: Visually Hidden ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ===== Comparison table ===== */
.comparison-section {
  padding: var(--section-pad) 0;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 3rem;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}

.comparison-table th {
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-display);
}

.comparison-table th:first-child {
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-weight: 400;
}

.comparison-table td {
  color: var(--text-secondary);
}

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

.comparison-table .check {
  color: var(--accent);
}

.comparison-table .dash {
  color: var(--text-muted);
}

.comparison-table thead th {
  padding-bottom: 1.5rem;
  font-size: 1rem;
}

.comparison-table .col-highlight {
  background: var(--accent-glow);
}

/* Responsive table */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.table-wrapper .comparison-table {
  margin-top: 0;
  min-width: 600px;
}

@media (max-width: 639px) {
  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem 0.875rem;
    font-size: 0.8125rem;
  }
}

/* ===== Animations for page load ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Text Gradient utility ===== */
.text-gradient {
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Line decoration ===== */
.line-decoration {
  width: 40px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
