/* ============================================
   MediaMeta — US-Style SaaS Design System
   ============================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Primary — Teal/Emerald */
  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-200: #99f6e4;
  --teal-300: #5eead4;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-800: #115e59;
  --teal-900: #134e4a;

  /* Accent — Amber */
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;

  /* Neutral — Slate */
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  /* Dark sections */
  --dark-bg: #0a0f1c;
  --dark-surface: #111827;
  --dark-border: #1f2937;

  /* Semantic */
  --bg: #ffffff;
  --bg-subtle: var(--slate-50);
  --bg-muted: var(--slate-100);
  --text: var(--slate-900);
  --text-secondary: var(--slate-600);
  --text-muted: var(--slate-400);
  --border: var(--slate-200);
  --primary: var(--teal-600);
  --primary-hover: var(--teal-700);
  --primary-light: var(--teal-50);
  --accent: var(--amber-500);
  --accent-hover: var(--amber-600);

  /* Typography */
  --font-head: 'Space Grotesk', 'Outfit', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

  /* Spacing */
  --container: 1240px;
  --container-narrow: 880px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 4px 12px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 24px 60px rgba(15, 23, 42, 0.12), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-glow: 0 0 40px rgba(13, 148, 136, 0.15);

  /* Transitions */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.7, 0, 0.84, 0);
  --duration: 0.3s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}
h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.5rem, 2vw, 2rem); }
h4 { font-size: 1.25rem; }
p { color: var(--text-secondary); }

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-sm { padding: 64px 0; }
.section-dark { background: var(--dark-bg); color: #e2e8f0; }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark p { color: #94a3b8; }
.section-subtle { background: var(--bg-subtle); }
.section-gradient {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-subtle) 100%);
}
.text-center { text-align: center; }
.mx-auto { margin: 0 auto; }

/* Section header */
.section-header { max-width: 680px; margin: 0 auto 64px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--primary);
  padding: 6px 14px; border-radius: var(--radius-full);
  background: var(--primary-light); margin-bottom: 20px;
}
.section-dark .eyebrow { background: rgba(20, 184, 166, 0.1); }
.section-title { margin-bottom: 16px; }
.section-subtitle { font-size: 1.125rem; line-height: 1.7; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.9375rem;
  padding: 12px 24px; border-radius: var(--radius-full);
  transition: all var(--duration) var(--ease);
  white-space: nowrap; border: 1.5px solid transparent;
}
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.25);
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.35);
}
.btn-dark { background: var(--slate-900); color: #fff; }
.btn-dark:hover { background: var(--slate-800); transform: translateY(-2px); }
.btn-outline { border-color: var(--border); color: var(--text); background: var(--bg); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.btn-ghost { color: var(--text-secondary); }
.btn-ghost:hover { color: var(--primary); }
.btn-white { background: #fff; color: var(--slate-900); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-sm { padding: 8px 18px; font-size: 0.8125rem; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: all var(--duration) var(--ease);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.nav-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.03em; }
.nav-logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 1.125rem;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 14px; border-radius: var(--radius);
  font-size: 0.9375rem; font-weight: 500; color: var(--text-secondary);
  transition: all 0.2s var(--ease);
}
.nav-link:hover { color: var(--text); background: var(--bg-muted); }
.nav-link svg { width: 14px; height: 14px; transition: transform 0.2s; }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }

/* Mega menu */
.mega-menu {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(8px);
  width: 560px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-xl);
  padding: 24px; opacity: 0; visibility: hidden;
  transition: all var(--duration) var(--ease);
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.nav-item:hover .mega-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-link {
  display: flex; gap: 14px; padding: 12px; border-radius: var(--radius);
  transition: background 0.2s;
}
.mega-link:hover { background: var(--bg-subtle); }
.mega-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-light); color: var(--primary);
}
.mega-icon svg { width: 20px; height: 20px; }
.mega-link h5 { font-size: 0.9375rem; margin-bottom: 2px; }
.mega-link p { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.4; }

.nav-actions { display: flex; align-items: center; gap: 12px; }

/* Language selector */
.lang-selector { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 600; color: var(--text-secondary);
  transition: all 0.2s;
}
.lang-btn:hover { background: var(--bg-muted); color: var(--text); }
.lang-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0;
  min-width: 180px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all var(--duration) var(--ease);
}
.lang-selector.open .lang-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-option {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 500; color: var(--text-secondary);
  transition: all 0.15s; cursor: pointer; width: 100%; text-align: left;
}
.lang-option:hover { background: var(--bg-subtle); color: var(--text); }
.lang-option.active { background: var(--primary-light); color: var(--primary); }
.lang-flag { font-size: 1.25rem; }

/* Mobile nav toggle */
.nav-toggle { display: none; width: 40px; height: 40px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
  background: #fff; z-index: 999; padding: 24px;
  overflow-y: auto; transform: translateX(100%);
  transition: transform var(--duration) var(--ease);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu .nav-link { padding: 14px 0; font-size: 1.125rem; border-bottom: 1px solid var(--border); }
.mobile-menu .nav-link svg { display: none; }
.mobile-menu .btn { width: 100%; margin-top: 16px; }

/* ---------- Hero ---------- */
.hero { padding: 140px 0 80px; position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(13, 148, 136, 0.08), transparent),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(245, 158, 11, 0.05), transparent);
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: var(--radius-full);
  background: var(--primary-light); border: 1px solid var(--teal-200);
  font-size: 0.8125rem; font-weight: 600; color: var(--primary);
  margin-bottom: 24px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); animation: pulse 2s infinite; }
.hero h1 { margin-bottom: 24px; }
.hero h1 .grad {
  background: linear-gradient(135deg, var(--teal-600), var(--teal-400));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-subtitle { font-size: 1.25rem; line-height: 1.7; max-width: 540px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 40px; }
.hero-stat .num { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--text); }
.hero-stat .label { font-size: 0.875rem; color: var(--text-muted); }

/* Hero visual */
.hero-visual { position: relative; }
.hero-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl); padding: 24px; overflow: hidden;
  transform: rotate(-1deg); transition: transform 0.5s var(--ease);
}
.hero-card:hover { transform: rotate(0deg); }
.hero-card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.hero-card-header .dot { width: 12px; height: 12px; border-radius: 50%; }
.hero-card-header .dot:nth-child(1) { background: #ff5f57; }
.hero-card-header .dot:nth-child(2) { background: #febc2e; }
.hero-card-header .dot:nth-child(3) { background: #28c840; }
.hero-card-body { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-card-item {
  background: var(--bg-subtle); border-radius: var(--radius); padding: 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.hero-card-item .icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.hero-card-item .label { font-size: 0.8125rem; font-weight: 600; color: var(--text); }
.hero-card-item .desc { font-size: 0.75rem; color: var(--text-muted); }
.hero-float {
  position: absolute; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 12px 16px;
  display: flex; align-items: center; gap: 10px; font-size: 0.8125rem; font-weight: 600;
}
.hero-float-1 { top: -16px; right: -20px; animation: float 4s ease-in-out infinite; }
.hero-float-2 { bottom: -16px; left: -20px; animation: float 4s ease-in-out infinite 2s; }
.hero-float .icon { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; }

/* ---------- Trusted By ---------- */
.trusted { padding: 48px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trusted-label { text-align: center; font-size: 0.8125rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 28px; }
.trusted-logos { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.trusted-logo { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--slate-300); transition: color 0.3s; letter-spacing: -0.02em; }
.trusted-logo:hover { color: var(--slate-500); }

/* ---------- Bento Grid ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bento-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; transition: all var(--duration) var(--ease);
  position: relative; overflow: hidden;
}
.bento-card:hover { border-color: var(--teal-300); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.bento-card.large { grid-column: span 2; }
.bento-card.tall { grid-row: span 2; }
.bento-icon {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center; color: #fff;
  transition: transform var(--duration) var(--ease);
}
.bento-card:hover .bento-icon { transform: scale(1.1) rotate(-5deg); }
.bento-card h3 { font-size: 1.375rem; margin-bottom: 8px; }
.bento-card p { font-size: 0.9375rem; line-height: 1.65; margin-bottom: 16px; }
.bento-features { display: flex; flex-direction: column; gap: 8px; }
.bento-feature { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--text-secondary); }
.bento-feature svg { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; }
.bento-card .link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.875rem; font-weight: 600; color: var(--primary); margin-top: 12px; transition: gap 0.2s; }
.bento-card .link:hover { gap: 10px; }

/* ---------- Product Showcase ---------- */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.showcase.reverse .showcase-content { order: 2; }
.showcase + .showcase { margin-top: 80px; }
.showcase-visual {
  background: var(--bg-subtle); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 32px; min-height: 360px;
  display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
}
.showcase-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.showcase h3 { font-size: 1.75rem; margin-bottom: 16px; }
.showcase-desc { font-size: 1.0625rem; line-height: 1.7; margin-bottom: 24px; }
.showcase-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.showcase-list-item { display: flex; gap: 12px; align-items: flex-start; }
.showcase-list-item .check {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.showcase-list-item .check svg { width: 14px; height: 14px; }
.showcase-list-item .text { font-size: 0.9375rem; color: var(--text); font-weight: 500; }
.showcase-list-item .text span { display: block; font-size: 0.8125rem; color: var(--text-muted); font-weight: 400; margin-top: 2px; }

/* ---------- Steps / How It Works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; position: relative; }
.steps::before {
  content: ''; position: absolute; top: 40px; left: 16%; right: 16%; height: 2px;
  background: linear-gradient(90deg, var(--teal-200), var(--amber-400)); z-index: 0;
}
.step { text-align: center; position: relative; z-index: 1; }
.step-num {
  width: 80px; height: 80px; margin: 0 auto 24px; border-radius: 50%;
  background: #fff; border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; color: var(--primary);
  box-shadow: var(--shadow); transition: all var(--duration) var(--ease);
}
.step:hover .step-num { border-color: var(--primary); transform: scale(1.05); box-shadow: var(--shadow-glow); }
.step h4 { font-size: 1.25rem; margin-bottom: 8px; }
.step p { font-size: 0.9375rem; }

/* ---------- Use Cases Tabs ---------- */
.tabs-nav { display: flex; justify-content: center; gap: 8px; margin-bottom: 48px; flex-wrap: wrap; }
.tab-btn {
  padding: 12px 24px; border-radius: var(--radius-full);
  font-size: 0.9375rem; font-weight: 600; color: var(--text-secondary);
  transition: all 0.2s; border: 1.5px solid var(--border);
}
.tab-btn:hover { border-color: var(--primary); color: var(--primary); }
.tab-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.4s var(--ease); }
.tab-content { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.tab-list { display: flex; flex-direction: column; gap: 16px; }
.tab-list-item {
  display: flex; gap: 16px; padding: 20px; border-radius: var(--radius);
  background: var(--bg-subtle); transition: all 0.2s;
}
.tab-list-item:hover { background: var(--primary-light); transform: translateX(4px); }
.tab-list-item .icon { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; }
.tab-list-item h5 { font-size: 1rem; margin-bottom: 4px; }
.tab-list-item p { font-size: 0.875rem; }

/* ---------- Stats ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat-box { text-align: center; }
.stat-box .num { font-family: var(--font-head); font-size: 3rem; font-weight: 800; color: #fff; }
.stat-box .num .accent { color: var(--teal-400); }
.stat-box .label { font-size: 0.9375rem; color: #94a3b8; margin-top: 8px; }

/* ---------- Testimonials ---------- */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; transition: all var(--duration) var(--ease);
}
.testimonial:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.testimonial .stars { display: flex; gap: 2px; margin-bottom: 16px; color: var(--amber-500); }
.testimonial .stars svg { width: 18px; height: 18px; }
.testimonial blockquote { font-size: 1rem; line-height: 1.7; color: var(--text); margin-bottom: 24px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 1.125rem;
}
.testimonial-author .name { font-size: 0.9375rem; font-weight: 600; color: var(--text); }
.testimonial-author .role { font-size: 0.8125rem; color: var(--text-muted); }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: stretch; }
.pricing-card {
  background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; display: flex; flex-direction: column; transition: all var(--duration) var(--ease);
}
.pricing-card:hover { border-color: var(--teal-300); box-shadow: var(--shadow-lg); }
.pricing-card.featured { border-color: var(--primary); border-width: 2px; box-shadow: var(--shadow-glow); position: relative; }
.pricing-card.featured::before {
  content: 'Most Popular'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: 0.75rem; font-weight: 700;
  padding: 4px 14px; border-radius: var(--radius-full); white-space: nowrap;
}
.pricing-card .plan-name { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.pricing-card .plan-desc { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 24px; min-height: 40px; }
.pricing-card .price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.pricing-card .price .amount { font-family: var(--font-head); font-size: 2.5rem; font-weight: 800; }
.pricing-card .price .period { font-size: 0.875rem; color: var(--text-muted); }
.pricing-card .price-note { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 24px; }
.pricing-card .btn { width: 100%; margin-bottom: 24px; }
.pricing-features { display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.pricing-feature { display: flex; gap: 10px; align-items: flex-start; font-size: 0.875rem; color: var(--text-secondary); }
.pricing-feature svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; margin-top: 1px; }
.pricing-feature.muted { color: var(--text-muted); }
.pricing-feature.muted svg { color: var(--text-muted); }

/* Billing toggle */
.billing-toggle { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 48px; }
.billing-toggle .label { font-size: 0.9375rem; font-weight: 600; color: var(--text-secondary); transition: color 0.2s; }
.billing-toggle .label.active { color: var(--text); }
.billing-switch { width: 52px; height: 28px; border-radius: var(--radius-full); background: var(--slate-200); position: relative; cursor: pointer; transition: background 0.3s; }
.billing-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease); }
.billing-switch.annual { background: var(--primary); }
.billing-switch.annual::after { transform: translateX(24px); }
.billing-save { font-size: 0.75rem; font-weight: 700; color: var(--primary); background: var(--primary-light); padding: 4px 10px; border-radius: var(--radius-full); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 24px 0; text-align: left; font-family: var(--font-head); font-size: 1.125rem; font-weight: 600; color: var(--text);
}
.faq-q .icon { width: 24px; height: 24px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--primary); transition: transform 0.3s; }
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-item.open .faq-a { max-height: 300px; }
.faq-a p { padding-bottom: 24px; font-size: 0.9375rem; line-height: 1.7; }

/* ---------- CTA Section ---------- */
.cta-box {
  background: var(--dark-bg); border-radius: var(--radius-xl);
  padding: 80px 48px; text-align: center; position: relative; overflow: hidden;
}
.cta-box::before {
  content: ''; position: absolute; top: -50%; left: -20%; width: 60%; height: 200%;
  background: radial-gradient(ellipse, rgba(13, 148, 136, 0.15), transparent 60%);
}
.cta-box::after {
  content: ''; position: absolute; bottom: -50%; right: -20%; width: 60%; height: 200%;
  background: radial-gradient(ellipse, rgba(245, 158, 11, 0.08), transparent 60%);
}
.cta-box > * { position: relative; z-index: 1; }
.cta-box h2 { color: #fff; margin-bottom: 16px; }
.cta-box p { font-size: 1.125rem; max-width: 540px; margin: 0 auto 32px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Enterprise ---------- */
.enterprise-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.enterprise-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 40px; transition: all var(--duration) var(--ease);
}
.enterprise-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.enterprise-card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.enterprise-card p { margin-bottom: 24px; }
.enterprise-card ul { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.enterprise-card ul li { display: flex; gap: 10px; font-size: 0.9375rem; color: var(--text-secondary); }
.enterprise-card ul li svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--dark-bg); color: #94a3b8; padding: 80px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 64px; }
.footer-brand .nav-logo { color: #fff; margin-bottom: 16px; }
.footer-brand p { font-size: 0.9375rem; line-height: 1.7; max-width: 320px; margin-bottom: 24px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--dark-border);
  display: flex; align-items: center; justify-content: center; color: #94a3b8;
  transition: all 0.2s;
}
.footer-social a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.footer-social svg { width: 18px; height: 18px; }
.footer-col h5 { color: #fff; font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 20px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col ul a { font-size: 0.9375rem; color: #94a3b8; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--teal-400); }
.footer-bottom {
  border-top: 1px solid var(--dark-border); padding-top: 32px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.875rem; color: #64748b; }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: 0.875rem; color: #64748b; transition: color 0.2s; }
.footer-legal a:hover { color: var(--teal-400); }

/* ---------- Page Hero (sub-pages) ---------- */
.page-hero { padding: 140px 0 64px; background: var(--bg-subtle); position: relative; overflow: hidden; }
.page-hero::after {
  content: ''; position: absolute; top: 0; right: 0; width: 50%; height: 100%;
  background: radial-gradient(ellipse at top right, rgba(13, 148, 136, 0.06), transparent 60%);
}
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb { display: flex; gap: 8px; font-size: 0.875rem; color: var(--text-muted); margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--text-muted); }

/* ---------- Contact Form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-info-item { display: flex; gap: 16px; }
.contact-info-item .icon { width: 48px; height: 48px; border-radius: 12px; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info-item .icon svg { width: 22px; height: 22px; }
.contact-info-item h5 { font-size: 1rem; margin-bottom: 4px; }
.contact-info-item p { font-size: 0.9375rem; }
.contact-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 8px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: 0.9375rem; transition: border-color 0.2s;
  background: var(--bg);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--primary); outline: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card { padding: 32px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; transition: all var(--duration) var(--ease); }
.value-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.value-card .icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; margin-bottom: 20px; }
.value-card h4 { font-size: 1.25rem; margin-bottom: 8px; }
.value-card p { font-size: 0.9375rem; }

/* ---------- Animations ---------- */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav-menu { display: none; }
  .nav-toggle { display: flex; }
  .hero-grid, .showcase, .tab-content, .contact-grid, .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .showcase.reverse .showcase-content { order: 0; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-card.large { grid-column: span 2; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .enterprise-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: span 2; }
  .value-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .hero { padding: 120px 0 48px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .hero-stat .num { font-size: 1.5rem; }
  .bento { grid-template-columns: 1fr; }
  .bento-card.large { grid-column: span 1; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .form-row { grid-template-columns: 1fr; }
  .cta-box { padding: 48px 24px; }
  .trusted-logos { gap: 24px; }
  .trusted-logo { font-size: 1.125rem; }
}

/* ---------- Logo Images ---------- */
.nav-logo img { height: 36px; width: auto; display: block; }
.footer-brand .nav-logo img { height: 42px; width: auto; }

/* ---------- Hero Product Cards ---------- */
.hero-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.hero-product-card {
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--duration) var(--ease);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero-product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--teal-300);
}
.hero-product-card .tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--primary);
}
.hero-product-card h3 { font-size: 1.25rem; }
.hero-product-card p { font-size: 0.9375rem; line-height: 1.65; }
.hero-product-card .cta-link {
  margin-top: auto; font-weight: 700; color: var(--primary);
  display: inline-flex; align-items: center; gap: 6px;
}
.hero-product-card .cta-link:hover { color: var(--primary-hover); }
.hero-product-card .cta-link svg { width: 16px; height: 16px; }

.hero-intro {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 880px;
  margin: 24px 0 0;
  padding: 20px 24px;
  background: rgba(255,255,255,0.6);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Coming soon toast */
.coming-soon {
  cursor: pointer;
}
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(100px);
  background: var(--slate-900); color: #fff; padding: 14px 28px; border-radius: var(--radius-full);
  font-weight: 600; box-shadow: var(--shadow-xl); z-index: 9999;
  opacity: 0; transition: all 0.4s var(--ease);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Ecosystem loop */
.ecosystem-loop {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.eco-loop-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; text-align: center; position: relative;
}
.eco-loop-card::after {
  content: '→'; position: absolute; right: -22px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--primary); font-weight: 800;
}
.eco-loop-card:last-child::after { display: none; }
.eco-loop-card .icon {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-light); color: var(--primary);
}
.eco-loop-card h4 { margin-bottom: 10px; }
.eco-loop-card p { font-size: 0.9375rem; }

@media (max-width: 1024px) {
  .hero-product-grid { grid-template-columns: 1fr; }
  .eco-loop-card::after { display: none; }
}
@media (max-width: 768px) {
  .ecosystem-loop { grid-template-columns: 1fr; }
  .hero-intro { font-size: 0.9375rem; padding: 16px 18px; }
  .hero-product-card { padding: 22px; }
}
