/* ========================================
   GENLIX — Main Website Styles
   Minimal, professional, playful
   ======================================== */

/* ---- CSS Custom Properties ---- */
:root {
  /* Brand Colors - CMS Red Theme */
  --brand-indigo: #ef4444;
  --brand-purple: #860a0a;
  --brand-green: #10b981;
  --brand-orange: #f59e0b;
  --brand-blue: #3b82f6;
  --brand-red: #6366f1;
  --brand-gold: #c9a227;

  /* Gradient */
  --gradient-brand: linear-gradient(135deg, var(--brand-indigo), var(--brand-purple));
  --gradient-brand-h: linear-gradient(135deg, var(--brand-purple), var(--brand-indigo));

  /* Typography */
  --font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
  --shadow-glow: 0 0 40px rgba(239, 68, 68, 0.25);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 400ms ease;

  /* Layout */
  --container-max: 1200px;
  --container-pad: clamp(1rem, 4vw, 2rem);
  --nav-height: 68px;
}

/* ---- DARK THEME (default) ---- */
[data-theme="dark"] {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;
  --bg-nav: rgba(10, 10, 15, 0.85);
  --bg-glass: rgba(22, 22, 31, 0.8);
  --bg-pill: rgba(239, 68, 68, 0.1);
  --bg-pill-hover: rgba(239, 68, 68, 0.2);

  --text-primary: #f4f4f8;
  --text-secondary: #a1a1b5;
  --text-muted: #6b6b80;
  --text-accent: var(--brand-indigo);

  --border-color: rgba(255, 255, 255, 0.06);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(239, 68, 68, 0.3);

  --card-border: 1px solid rgba(255,255,255,0.06);

  --orb-color-1: rgba(239, 68, 68, 0.15);
  --orb-color-2: rgba(134, 10, 10, 0.12);
  --orb-color-3: rgba(16, 185, 129, 0.08);
}

/* ---- LIGHT THEME ---- */
[data-theme="light"] {
  --bg-primary: #fafafa;
  --bg-secondary: #f0f0f5;
  --bg-card: #ffffff;
  --bg-card-hover: #f8f8fc;
  --bg-nav: rgba(250, 250, 250, 0.92);
  --bg-glass: rgba(255, 255, 255, 0.9);
  --bg-pill: rgba(239, 68, 68, 0.08);
  --bg-pill-hover: rgba(239, 68, 68, 0.15);

  --text-primary: #0f0f18;
  --text-secondary: #4a4a60;
  --text-muted: #8080a0;
  --text-accent: var(--brand-indigo);

  --border-color: rgba(0, 0, 0, 0.08);
  --border-subtle: rgba(15, 23, 42, 0.1);
  --border-accent: rgba(239, 68, 68, 0.3);

  --card-border: 1px solid rgba(0,0,0,0.08);

  --orb-color-1: rgba(239, 68, 68, 0.1);
  --orb-color-2: rgba(134, 10, 10, 0.08);
  --orb-color-3: rgba(16, 185, 129, 0.06);
}

/* ========================================
   BASE RESET & TYPOGRAPHY
   ======================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}
html { overflow-x: hidden; }

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-slow), color var(--transition-slow);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* Global heading scale (desktop + mobile) */
h1 { font-size: clamp(2rem, 3.1vw, 2.9rem) !important; }
h2 { font-size: clamp(1.65rem, 2.5vw, 2.35rem) !important; }
h3 { font-size: clamp(1.4rem, 2vw, 1.95rem) !important; }
h4 { font-size: clamp(1.2rem, 1.5vw, 1.6rem) !important; }
h5 { font-size: clamp(1.05rem, 1.2vw, 1.35rem) !important; }
h6 { font-size: clamp(.95rem, 1vw, 1.15rem) !important; }

@media (max-width: 768px) {
  h1 { font-size: 1.85rem !important; }
  h2 { font-size: 1.5rem !important; }
  h3 { font-size: 1.28rem !important; }
  h4 { font-size: 1.12rem !important; }
  h5 { font-size: 1rem !important; }
  h6 { font-size: .92rem !important; }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.5);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}
.btn-ghost:hover {
  background: var(--bg-pill);
  color: var(--text-primary);
  border-color: var(--border-accent);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

/* ========================================
   SECTION LAYOUT
   ======================================== */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--bg-pill);
  color: var(--brand-indigo);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  border: 1px solid var(--border-accent);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-logo img {
   min-height: 50px;
  max-height: 60px;
  height: 100%;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
}

.nav-links a {
  padding: 8px 14px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: var(--bg-pill);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Theme Toggle Button */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-pill);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  color: var(--brand-indigo);
  border-color: var(--border-accent);
  background: var(--bg-pill-hover);
  transform: rotate(15deg) scale(1.05);
}

.theme-icon {
  position: absolute;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] .sun-icon { opacity: 1; transform: scale(1) rotate(0deg); }
[data-theme="dark"] .moon-icon { opacity: 0; transform: scale(0.5) rotate(90deg); }

[data-theme="light"] .sun-icon { opacity: 0; transform: scale(0.5) rotate(-90deg); }
[data-theme="light"] .moon-icon { opacity: 1; transform: scale(1) rotate(0deg); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-pill);
  border: 1px solid var(--border-color);
  align-items: center;
  justify-content: center;
}
.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all var(--transition-normal);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-links-cta {
  display: none;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  padding-top: calc(var(--nav-height) + 5rem);
  padding-bottom: 6rem;
  overflow: hidden;
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.orb-1 {
  width: 600px; height: 600px;
  top: -200px; left: -100px;
  background: var(--orb-color-1);
  animation: orb-float 8s ease-in-out infinite;
}
.orb-2 {
  width: 400px; height: 400px;
  top: -100px; right: -50px;
  background: var(--orb-color-2);
  animation: orb-float 6s ease-in-out infinite reverse;
}
.orb-3 {
  width: 300px; height: 300px;
  bottom: 100px; left: 50%;
  background: var(--orb-color-3);
  animation: orb-float 10s ease-in-out infinite;
}

@keyframes orb-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--bg-pill);
  border: 1px solid var(--border-accent);
  color: var(--brand-indigo);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  animation: pulse-border 3s ease infinite;
}

@keyframes pulse-border {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
  50% { box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15); }
}

.hero-headline {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-size: 2.2rem;
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-plus {
  font-size: 1.5rem;
  font-weight: 600;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-color);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.scroll-indicator {
  width: 20px;
  height: 32px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-dot {
  width: 4px;
  height: 8px;
  background: var(--text-muted);
  border-radius: 2px;
  animation: scroll-bounce 1.5s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.3; }
}

/* ========================================
   ABOUT PREVIEW SECTION
   ======================================== */
.about-preview-section {
  padding: 6rem 0;
  background: var(--bg-secondary);
}

.about-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-preview-content .section-tag {
  margin-bottom: 1rem;
}

.about-preview-content .section-title {
  text-align: left;
  margin-bottom: 1.5rem;
}

.about-preview-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.about-preview-content .btn {
  margin-top: 1rem;
}

.about-preview-visual {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: var(--card-border);
  transition: all var(--transition-normal);
}

.about-card:hover {
  background: var(--bg-card-hover);
  transform: translateX(8px);
}

.about-card-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--bg-pill);
  color: var(--brand-indigo);
}

.about-card-icon.purple { color: var(--brand-purple); background: rgba(139, 92, 246, 0.1); }
.about-card-icon.green { color: var(--brand-green); background: rgba(16, 185, 129, 0.1); }

.about-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.about-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ========================================
   PRODUCTS SECTION
   ======================================== */
.products-section {
  padding: 6rem 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: var(--card-border);
  padding: 2rem;
  transition: all var(--transition-normal);
}

.product-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.product-icon {
  width: 60px;
  height: 60px;
}

.product-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-badge {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-pill);
  color: var(--brand-indigo);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-badge.gold {
  background: rgba(201, 162, 39, 0.15);
  color: var(--brand-gold);
}

.product-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.product-card > p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.product-features {
  margin-bottom: 2rem;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.product-features li svg {
  flex-shrink: 0;
  color: var(--brand-green);
}

.product-actions {
  display: flex;
  gap: 1rem;
}

/* ========================================
   FEATURES SECTION
   ======================================== */
.features-section {
  padding: 6rem 0;
  background: var(--bg-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: var(--card-border);
  padding: 2rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* border-radius: var(--radius-md);
  background: var(--bg-pill);
  color: var(--brand-indigo); */
  margin-bottom: 1.25rem;
}

.feature-icon.product-svg {
  width: 100%;
  height: 136px;
  padding: 14px;
  border-radius: var(--radius-lg);
  /* border: 1px solid var(--border-color);
  background:
    radial-gradient(circle at 12% 8%, rgba(239, 68, 68, 0.2), transparent 60%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.06)); */
  margin-bottom: 1rem;
}

.feature-icon.product-svg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--transition-slow);
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.2));
}

.feature-card:hover .feature-icon.product-svg img {
  transform: scale(1.04);
}

.feature-icon.purple { color: var(--brand-purple); background: rgba(139, 92, 246, 0.1); }
.feature-icon.green { color: var(--brand-green); background: rgba(16, 185, 129, 0.1); }
.feature-icon.orange { color: var(--brand-orange); background: rgba(245, 158, 11, 0.1); }

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.feature-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

[data-theme="light"] .feature-icon.product-svg {
  /* background:
    radial-gradient(circle at 12% 8%, rgba(239, 68, 68, 0.12), transparent 60%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(239, 68, 68, 0.04)); */
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
  padding: 6rem 0;
}

.cta-card {
  position: relative;
  background: var(--gradient-brand);
  border-radius: var(--radius-xl);
  padding: 4rem;
  overflow: hidden;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.cta-content h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-card .btn-primary {
  background: #fff;
  color: var(--brand-indigo);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.cta-card .btn-primary:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.cta-card .btn-ghost {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.cta-card .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
}

.cta-visual {
  position: absolute;
  right: -100px;
  top: -100px;
  width: 400px;
  height: 400px;
  pointer-events: none;
}

.cta-orb {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  filter: blur(60px);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  position: relative;
  padding: 2rem 0 2rem;
  background: linear-gradient(180deg, var(--bg-secondary), var(--bg-primary));
  border-top: 1px solid var(--border-color);
}

.footer-shell {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: calc(var(--radius-xl) + 4px);
  background:
    radial-gradient(circle at top right, rgba(239, 68, 68, 0.12), transparent 28%),
    linear-gradient(180deg, var(--bg-card), var(--bg-card-hover));
  border: var(--card-border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.footer-shell::before {
  content: "";
  position: absolute;
  inset: auto auto -80px -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.08);
  filter: blur(30px);
  pointer-events: none;
}

.footer-spotlight {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  gap: 1.5rem;
  align-items: center;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-brand {
  position: relative;
  max-width: 560px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-logo img {
  min-height: 50px;
  max-height: 60px;
  height: 100%;
  width: auto;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0;
}

.footer-tagline {
  max-width: 48ch;
}

.footer-status,
.footer-social {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.footer-chip,
.footer-meta-chip,
.footer-social a {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius-pill);
  background: var(--bg-pill);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: all var(--transition-normal);
}

.footer-chip {
  font-size: 0.82rem;
  font-weight: 500;
}

.footer-social a:hover {
  background: var(--bg-pill-hover);
  color: var(--text-primary);
  border-color: var(--border-accent);
}

.footer-cta-panel {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(239, 68, 68, 0.12), rgba(134, 10, 10, 0.05));
  border: 1px solid var(--border-accent);
}

.footer-kicker {
  display: inline-block;
  margin-bottom: 0.85rem;
  color: var(--brand-indigo);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-cta-panel p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.footer-cta-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-links h4,
.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links ul,
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links li,
.footer-col li {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links li svg {
  flex-shrink: 0;
  color: var(--text-muted);
}

.footer-links a,
.footer-col a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-links a:hover,
.footer-col a:hover {
  color: var(--brand-indigo);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.footer-legal {
  display: grid;
  gap: 0.25rem;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-end;
}

.footer-meta-chip {
  font-size: 0.85rem;
  line-height: 1;
}

a.footer-meta-chip:hover {
  color: var(--text-primary);
  border-color: var(--border-accent);
  background: var(--bg-pill-hover);
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ========================================
   BACK TO TOP
   ======================================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-normal);
  z-index: 100;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
}

/* ========================================
   REVEAL ANIMATIONS
   ======================================== */
.reveal-up,
.reveal-fade,
.reveal-left,
.reveal-right,
.reveal-scale {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-up { transform: translateY(30px); }
.reveal-fade { transform: none; }
.reveal-left { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }
.reveal-scale { transform: scale(0.95); }

.reveal-up.revealed,
.reveal-fade.revealed,
.reveal-left.revealed,
.reveal-right.revealed,
.reveal-scale.revealed {
  opacity: 1;
  transform: none;
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ========================================
   PAGE SPECIFIC STYLES
   ======================================== */
.page-hero {
  padding-top: calc(var(--nav-height) + 4rem);
  padding-bottom: 4rem;
  text-align: center;
  background: var(--bg-secondary);
}

.page-hero .section-tag {
  margin-bottom: 1rem;
}

.page-content {
  padding: 4rem 0;
}

.page-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.page-content h4 {
  color: var(--text-primary);
  margin: 2rem 0 1rem;
  font-weight: 600;
}

/* Framework Detail Styles */
.frameworks-overview {
  padding: 0 0 2rem;
  background: var(--bg-secondary);
}

.frameworks-overview-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.95fr);
  gap: 2rem;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: var(--card-border);
  box-shadow: var(--shadow-md);
}

.frameworks-overview-copy p {
  color: var(--text-secondary);
  max-width: 54ch;
  line-height: 1.75;
}

.framework-jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-content: flex-start;
  justify-content: flex-end;
}

.framework-jump-link {
  display: inline-flex;
  align-items: center;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-weight: 600;
  transition: all var(--transition-normal);
}

.framework-jump-link:hover {
  color: var(--text-primary);
  border-color: var(--border-accent);
  background: var(--bg-pill);
  transform: translateY(-2px);
}

.framework-showcase {
  padding: 3rem 0;
}

.framework-showcase.alt {
  background: var(--bg-secondary);
}

.framework-detail {
  max-width: 1140px;
  margin: 0 auto;
}

.framework-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.framework-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--brand-indigo), var(--brand-purple));
  color: white;
}

.framework-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  background: var(--bg-card);
  border: var(--card-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.framework-panel-media {
  display: grid;
  gap: 1rem;
}

.framework-visual {
  min-height: 280px;
  padding: 1.5rem;
  /* border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  background:
    radial-gradient(circle at top left, rgba(239, 68, 68, 0.14), transparent 35%),
    linear-gradient(180deg, var(--bg-secondary), rgba(255, 255, 255, 0.02)); */
}

.framework-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.18));
}

.framework-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.framework-stat {
  padding: 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.framework-stat strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
  font-size: 1.05rem;
}

.framework-stat span {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
}

.framework-panel-content p {
  color: var(--text-secondary);
  line-height: 1.75;
}

.framework-icon.purple {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.framework-icon.green {
  background: linear-gradient(135deg, var(--brand-green), #059669);
}

.framework-icon.orange {
  background: linear-gradient(135deg, #f97316, #ea580c);
}

.framework-title-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.framework-title-block h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.framework-badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-pill);
  background: var(--bg-pill);
  color: var(--brand-indigo);
}

.framework-badge.green {
  color: var(--brand-green);
}

.framework-badge.orange {
  color: #f97316;
}

.framework-badge.purple {
  color: #8b5cf6;
}

.framework-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.framework-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.25rem 0 1.5rem;
}

.framework-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--bg-pill);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.83rem;
  font-weight: 500;
}

.framework-features {
  margin-top: 0;
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

.framework-features h4 {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--text-primary);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.25rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.feature-list li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--brand-indigo);
}

.feature-list li strong {
  color: var(--text-primary);
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-item-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--bg-pill);
  color: var(--brand-indigo);
}

.contact-item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 4px;
}

.contact-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}

.contact-form {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: var(--card-border);
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-indigo);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Legal/Privacy Page */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-intro {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.legal-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 2.5rem 0 1rem;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-content ul {
  margin: 1rem 0 1.5rem 1.5rem;
}

.legal-content ul li {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.legal-content a {
  color: var(--brand-indigo);
  transition: color var(--transition-fast);
}

.legal-content a:hover {
  color: var(--brand-purple);
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-spotlight,
  .frameworks-overview-card,
  .framework-panel {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
  }
  :root { --nav-height: 60px; }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    display: block;
    padding: 12px 16px;
  }

  .nav-links-cta {
    display: block;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
  }

  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .about-preview-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-list,
  .framework-stat-grid {
    grid-template-columns: 1fr;
  }

  .framework-jump-nav {
    justify-content: flex-start;
  }

  .framework-title-block {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-meta {
    justify-content: center;
  }

  .cta-card {
    padding: 2.5rem;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .stat-divider {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .product-actions {
    flex-direction: column;
  }

  .cta-actions {
    flex-direction: column;
  }

  .feature-icon.product-svg {
    height: 112px;
    padding: 12px;
  }

  .footer-cta-actions,
  .footer-meta {
    width: 100%;
  }

  .footer-meta-chip,
  .footer-cta-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
