/* CyMesh Marketing Site — Theme variables (light default, dark via [data-theme="dark"]) */

:root {
  /* LIGHT THEME (default) — Option A: Trust + Modern
     Primary: Deep blue (trust)   Accent: Cyan (modern tech)   AI-only: Violet */
  --bg-deep: #ffffff;
  --bg-mid: #f8fafc;
  --bg-card: #ffffff;
  --bg-glass: rgba(15, 23, 42, 0.025);
  --border: rgba(15, 23, 42, 0.08);
  --border-hover: rgba(30, 64, 175, 0.4);
  --text: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;
  --blue: #1e40af;      /* primary brand */
  --blue-bright: #2563eb;
  --cyan: #0891b2;      /* primary accent */
  --violet: #7c3aed;    /* reserved: AI products only */
  --pink: #db2777;
  --green: #059669;
  --amber: #d97706;
  --red: #dc2626;
  --gradient: linear-gradient(135deg, #1e40af 0%, #0891b2 100%);
  --gradient-ai: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --gradient-soft: linear-gradient(135deg, rgba(30, 64, 175, 0.06) 0%, rgba(8, 145, 178, 0.06) 100%);
  --gradient-radial: radial-gradient(circle at 50% 50%, rgba(30, 64, 175, 0.06) 0%, transparent 50%);
  --shadow-glow: 0 0 40px rgba(30, 64, 175, 0.15);
  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --container: 1280px;
  --nav-bg: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] {
  --bg-deep: #07091a;
  --bg-mid: #0c1024;
  --bg-card: #12172d;
  --bg-glass: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(96, 165, 250, 0.4);
  --text: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --blue: #3b82f6;        /* primary brand (brighter for dark bg) */
  --blue-bright: #60a5fa;
  --cyan: #06b6d4;        /* accent */
  --violet: #8b5cf6;      /* AI products only */
  --pink: #ec4899;
  --green: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;
  --gradient: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  --gradient-ai: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --gradient-soft: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
  --gradient-radial: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
  --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.2);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.2);
  --nav-bg: rgba(7, 9, 26, 0.85);
}

/* Theme transitions */
body, .nav, .product-card, .resource-card, .battle-card, .uc-card, .ft-card, .stat, .usecase-card, .feature, .compare-table-wrap, .table-scroll {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Body text refinement — softer than pure dark on white */
body {
  color: var(--text);
}

/* AI products (CyPilot + CyGuru) — let their hero use violet gradient as a distinguishing accent */
body[data-product="ai"] .gradient-text,
body[data-product="ai"] .logo-mark stop:first-child,
body[data-product="ai"] .product-icon-large {
  /* CSS variables for AI sub-brand */
}

/* Soft-blue contextual decoration on AI product pages */
body[data-product="ai"] .product-page-hero::after {
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.04) 0%, var(--bg-mid) 100%);
}

/* Theme toggle button */
.theme-toggle {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-right: 12px;
}
.theme-toggle:hover {
  border-color: var(--cyan);
  background: var(--gradient-soft);
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: block; }
[data-theme="dark"] .theme-toggle .sun-icon { display: block; }
[data-theme="dark"] .theme-toggle .moon-icon { display: none; }

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Mesh grid background (subtle in light, more present in dark) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(8, 145, 178, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 145, 178, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}
[data-theme="dark"] body::before {
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
}

body::after {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: var(--gradient-radial);
  pointer-events: none;
  z-index: 0;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(-5%, 5%) rotate(120deg); }
  66% { transform: translate(5%, -5%) rotate(240deg); }
}

/* ============================
   NAVIGATION
   ============================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.4));
  transition: transform 0.4s ease;
}

.logo:hover .logo-mark {
  transform: rotate(60deg);
}

.logo-mark svg {
  width: 100%;
  height: 100%;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover {
  color: var(--cyan);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--gradient);
  color: var(--bg-deep);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.5);
}

.btn-ghost {
  background: var(--bg-glass);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  background: rgba(0, 212, 255, 0.08);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
}

/* ============================
   CONTAINER
   ============================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

section {
  padding: 100px 0;
  position: relative;
}

.section-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 24px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
  max-width: 900px;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 48px;
}

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

/* ============================
   HERO
   ============================ */
.hero {
  padding: 180px 0 120px;
  text-align: center;
  position: relative;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--green);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 28px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-trust {
  margin-top: 80px;
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.hero-trust strong {
  color: var(--text);
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Light theme refinements: card hover, gradient text */
.product-card,
.resource-card,
.battle-card,
.uc-card,
.feature,
.ft-card,
.usecase-card,
.stat,
.bundle,
.cta-section,
.carousel,
.compare-table-wrap,
.table-scroll {
  box-shadow: var(--shadow-card);
}

[data-theme="dark"] .product-card,
[data-theme="dark"] .resource-card,
[data-theme="dark"] .battle-card,
[data-theme="dark"] .uc-card,
[data-theme="dark"] .feature,
[data-theme="dark"] .ft-card,
[data-theme="dark"] .usecase-card,
[data-theme="dark"] .stat,
[data-theme="dark"] .bundle,
[data-theme="dark"] .cta-section,
[data-theme="dark"] .carousel,
[data-theme="dark"] .compare-table-wrap,
[data-theme="dark"] .table-scroll {
  box-shadow: none;
}

/* Image overlays on carousel slides need to respect theme */
[data-theme="dark"] .carousel-slide > div[style*="background-image"] + div,
.carousel-slide > div[style*="background-image"] + div { background: var(--bg-card); }

/* ============================
   PRODUCTS GRID
   ============================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(0, 212, 255, 0.05) 100%);
}

.product-card:hover::before {
  transform: scaleX(1);
}

.product-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.product-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.product-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
  margin-bottom: 12px;
}

.product-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cyan);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ============================
   BUNDLE / PLATFORM VIEW
   ============================ */
.bundle {
  background: linear-gradient(135deg, var(--bg-mid) 0%, var(--bg-card) 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 60px;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
}

.bundle::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: var(--gradient-radial);
  opacity: 0.5;
}

.bundle-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.bundle h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.bundle p {
  color: var(--text-muted);
  margin-bottom: 28px;
}

.bundle-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.stat {
  padding: 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.mesh-visual {
  position: relative;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mesh-svg {
  width: 100%;
  height: 100%;
}

/* ============================
   USE CASES
   ============================ */
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.usecase-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.usecase-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.usecase-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 16px;
  background: var(--gradient-soft);
}

.usecase-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.usecase-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.usecase-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.usecase-tag {
  font-size: 0.7rem;
  padding: 4px 10px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-muted);
}

/* ============================
   COMPETITIVE TABLE
   ============================ */
.compare-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow-x: auto;
  padding: 8px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.compare-table th,
.compare-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.compare-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
}

.compare-table .col-us {
  background: var(--gradient-soft);
}

.compare-table .yes { color: var(--green); font-weight: 600; }
.compare-table .partial { color: var(--amber); font-weight: 600; }
.compare-table .no { color: var(--red); font-weight: 600; }

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

/* ============================
   BATTLE CARDS
   ============================ */
.battle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.battle-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  position: relative;
}

.battle-card .vs {
  display: inline-block;
  padding: 4px 12px;
  background: var(--gradient);
  color: var(--bg-deep);
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.battle-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.battle-card .competitor {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.battle-points {
  list-style: none;
  margin-bottom: 20px;
}

.battle-points li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  display: flex;
  gap: 12px;
}

.battle-points li:last-child { border-bottom: none; }

.battle-points li::before {
  content: '→';
  color: var(--cyan);
  font-weight: 700;
}

.battle-winrate {
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.battle-winrate strong { color: var(--green); }

/* ============================
   RESOURCES
   ============================ */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.resource-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.resource-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

.resource-image {
  height: 180px;
  background: var(--gradient-soft);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.resource-image svg {
  width: 60%;
  height: 60%;
  opacity: 0.6;
}

.resource-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.resource-type {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--violet);
  margin-bottom: 12px;
}

.resource-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

.resource-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
  flex: 1;
}

.resource-meta {
  font-size: 0.8rem;
  color: var(--text-dim);
  display: flex;
  gap: 12px;
}

/* ============================
   PRODUCT DETAIL PAGE
   ============================ */
.product-hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
}

.product-hero .product-icon-big {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: var(--gradient-soft);
  border: 1px solid var(--border-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2.5rem;
  box-shadow: var(--shadow-glow);
}

.product-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.product-hero .tagline {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature {
  padding: 24px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.feature h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.feature p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ============================
   CAROUSEL
   ============================ */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  min-width: 100%;
  padding: 48px;
}

.carousel-controls {
  position: absolute;
  bottom: 24px;
  right: 24px;
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.carousel-dot.active {
  background: var(--cyan);
  width: 30px;
  border-radius: 5px;
}

/* ============================
   CTA SECTION
   ============================ */
.cta-section {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
  border: 1px solid var(--border-hover);
  border-radius: 24px;
  padding: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 100px 0;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-radial);
  opacity: 0.5;
}

.cta-section > * {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 36px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================
   FOOTER
   ============================ */
footer {
  background: var(--bg-mid);
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 16px;
  max-width: 280px;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ============================
   PRODUCT-SPECIFIC SECTION (products.html)
   ============================ */
.product-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.product-section:last-child { border-bottom: none; }

.product-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
}

.product-header .product-icon-large {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--gradient-soft);
  border: 1px solid var(--border-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-glow);
}

.product-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.product-header .product-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 32px;
}

.usecase-list {
  display: grid;
  gap: 16px;
}

.usecase-item {
  padding: 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.usecase-item h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--cyan);
}

.usecase-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }

  .nav-links.open {
    display: flex;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-mid);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    gap: 16px;
  }

  section { padding: 60px 0; }
  .hero { padding: 120px 0 60px; }
  .bundle { padding: 32px; }
  .bundle-content { grid-template-columns: 1fr; gap: 40px; }
  .mesh-visual { height: 280px; }
  .cta-section { padding: 40px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-grid .footer-brand { grid-column: 1 / -1; }
  .container { padding: 0 20px; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .product-header { flex-direction: column; align-items: flex-start; }
}

/* ============================
   ANIMATIONS
   ============================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.pulse { animation: pulse 2s infinite; }

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}
