/* Print Geek Static Site - Refined Styles */
/* Closely matches the original Next.js site styling */

:root {
  /* Print Geek Brand Colors */
  --coral: #f6486f;
  --coral-dark: #d93a5c;
  --coral-light: #f87a94;
  --navy: #263b65;
  --navy-light: #3a5280;
  --navy-dark: #1a2940;
  --cyan: #79f9f9;
  --teal: #45cec6;
  --orange: #f9b200;
  --yellow: #ffe600;
  --dark-bg: #0F0F1A;
  --dark-bg-secondary: #1A1A2E;
  --charcoal-light: #252540;

  
  /* Light theme neutrals */
  --off-white: #F8F7F5;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  --radius: 0.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--off-white);
  min-height: 100vh;
}

body.dark {
  background-color: var(--dark-bg);
  color: var(--gray-100);
}

/* Custom Utility Classes */
.text-coral { color: var(--coral); }
.bg-coral { background-color: var(--coral); }
.border-coral { border-color: var(--coral); }

.gradient-coral {
  background: linear-gradient(to right, var(--coral), #ec4899);
}

.gradient-text {
  background: linear-gradient(135deg, #f6486f 0%, #ec4899 40%, #f472b6 70%, #f6486f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: brightness(1.1);
}

/* ================================
   NOTEBOOKLM-INSPIRED UI EFFECTS
   ================================ */

/* Gradient Headline Accent - Multi-color brand gradient */
.gradient-accent {
  background: linear-gradient(
    135deg,
    #f6486f 0%,
    #ec4899 20%,
    #f472b6 40%,
    #45cec6 60%,
    #ec4899 80%,
    #f6486f 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 7.5s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Static version for less prominent headlines */
.gradient-accent-static {
  background: linear-gradient(135deg, #45cec6 0%, #79f9f9 50%, #45cec6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* CTA Sweep Effect — glowing highlight sweeps around button border only */
.cta-container {
  position: relative;
  display: inline-flex;
  border-radius: 9999px;
}

/* subtle ambient glow behind button */
.cta-container::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(121,249,249,.25), transparent 70%);
  filter: blur(22px);
  opacity: .5;
  pointer-events: none;
}

/* sweep border ring — masked so only a thin edge ring is visible */
.cta-sweep {
  position: absolute;
  inset: -1.5px;
  border-radius: 9999px;
  pointer-events: none;
  overflow: hidden;
  padding: 1.5px;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

.cta-sweep::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 0;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    90deg,
    rgba(246,72,111,0) 0%,
    rgba(246,72,111,.9) 25%,
    rgba(121,249,249,1) 55%,
    rgba(69,206,198,.8) 75%,
    rgba(69,206,198,0) 100%
  );
  filter: blur(1px);
  opacity: 0;
  will-change: transform, opacity;
  animation: ctaSweep 10s ease-in-out infinite;
}

@keyframes ctaSweep {
  /* — forward: left to right — */
  0%   { transform: translateX(-100%); opacity: 0; }
  4%   { opacity: 1; }
  25%  { transform: translateX(250%); opacity: 1; }
  30%  { transform: translateX(275%); opacity: 0; }
  /* — pause — */
  50%  { transform: translateX(275%); opacity: 0; }
  /* — return: right to left — */
  51%  { transform: translateX(275%); opacity: 0; }
  55%  { transform: translateX(250%); opacity: 1; }
  75%  { transform: translateX(-100%); opacity: 1; }
  80%  { transform: translateX(-125%); opacity: 0; }
  /* — pause — */
  100% { transform: translateX(-125%); opacity: 0; }
}

/* ================================
   HEADER STYLES
   ================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.5s ease, box-shadow 0.5s ease;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
}

/* Scrolled header accent line — 2px bottom border with a sweeping shimmer */
.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    rgba(255,255,255,0.25) 0%,
    rgba(249,168,184,0.7) 40%,
    rgba(255,255,255,0.5) 60%,
    rgba(249,168,184,0.7) 80%,
    rgba(255,255,255,0.25) 100%);
  background-size: 200% 100%;
  animation: headerLineSweep 4s ease-in-out infinite;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.header.scrolled::after {
  opacity: 1;
}

@keyframes headerLineSweep {
  0%   { background-position: 100% 0; }
  50%  { background-position: 0% 0; }
  100% { background-position: 100% 0; }
}

.header.scrolled {
  background: var(--coral);
  box-shadow: 0 4px 20px rgba(246, 72, 111, 0.2);
}

.header.scrolled .nav-link {
  color: white;
}

.header.scrolled .nav-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.25);
}

.header.scrolled .logo {
  filter: brightness(0) invert(1);
}

body.dark .header:not(.scrolled) {
  background: rgba(15, 15, 26, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Navigation Links */
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  transition: all 0.2s ease;
  color: var(--gray-700);
  text-decoration: none;
}

.nav-link:hover {
  color: var(--coral);
  background: rgba(229, 231, 235, 0.7);
}

.nav-link-trigger {
  cursor: default;
  user-select: none;
}

body.dark .nav-link {
  color: rgba(255, 255, 255, 0.8);
}

body.dark .nav-link:hover {
  color: var(--coral);
  background: rgba(255, 255, 255, 0.1);
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 10;
  min-width: 288px;
  padding: 0.5rem;
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--gray-200);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  margin-top: 0.5rem;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
}

body.dark .dropdown-menu {
  background: var(--dark-bg);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.header.scrolled .dropdown-menu {
  background: white;
  border-color: var(--gray-200);
}

/* Dark mode + scrolled: dropdown must keep dark background with light text */
body.dark .header.scrolled .dropdown-menu {
  background: var(--dark-bg);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

body.dark .header.scrolled .dropdown-item {
  color: white;
}

body.dark .header.scrolled .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

body.dark .header.scrolled .dropdown-item-desc {
  color: rgba(255, 255, 255, 0.65);
}

body.dark .header.scrolled .dropdown-item-title {
  color: white;
}

body.dark .header.scrolled .dropdown-item:hover .dropdown-item-title {
  color: var(--coral);
}

.dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  text-decoration: none;
  color: var(--gray-900);
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background: var(--gray-50);
}

.dropdown-item:hover .dropdown-item-title {
  color: var(--coral);
}

body.dark .dropdown-item {
  color: white;
}

body.dark .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Dropdown icon - matches original with coral/10 background */
.dropdown-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: rgba(246, 72, 111, 0.1);
  color: var(--coral);
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.dropdown-item:hover .dropdown-icon {
  background: rgba(246, 72, 111, 0.2);
}

.dropdown-item-title {
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.dropdown-item-desc {
  font-size: 0.75rem;
  color: var(--gray-500);
}

body.dark .dropdown-item-desc {
  color: rgba(255, 255, 255, 0.65);
}

/* CTA Button — glossy chrome face */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 9999px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.30) 0%,
      rgba(255, 255, 255, 0.08) 35%,
      transparent 50%,
      rgba(0, 0, 0, 0.06) 75%,
      rgba(0, 0, 0, 0.12) 100%
    ),
    var(--coral);
  color: white;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
}

.btn-cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(246, 72, 111, 0.3);
}

/* Arrow nudge on hover */
.btn-cta .cta-arrow {
  transition: transform 0.3s ease;
}

.btn-cta:hover .cta-arrow {
  animation: arrowNudge 0.6s ease forwards;
}

@keyframes arrowNudge {
  0%   { transform: translateX(0); }
  50%  { transform: translateX(5px); }
  100% { transform: translateX(3px); }
}

.header.scrolled .btn-cta {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.50) 0%,
      rgba(255, 255, 255, 0.10) 40%,
      transparent 55%,
      rgba(0, 0, 0, 0.03) 80%,
      rgba(0, 0, 0, 0.06) 100%
    ),
    white;
  color: var(--coral);
  border: none;
}

.header.scrolled .btn-cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Theme Toggle */
.theme-toggle {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 2px solid var(--coral);
  background: var(--gray-100);
  color: var(--coral);
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  background: var(--coral);
  color: white;
}

body.dark .theme-toggle {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
}

body.dark .theme-toggle:hover {
  background: var(--coral);
  border-color: var(--coral);
}

.header.scrolled .theme-toggle {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
}

.header.scrolled .theme-toggle:hover {
  background: white;
  border-color: white;
  color: var(--coral);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  padding: 0.5rem;
  color: var(--gray-700);
  cursor: pointer;
  background: none;
  border: none;
}

body.dark .mobile-menu-btn {
  color: white;
}

.header.scrolled .mobile-menu-btn {
  color: white;
}

@media (max-width: 1023px) {
  .mobile-menu-btn {
    display: block;
  }
  
  .desktop-nav {
    display: none;
  }
  
  .desktop-cta {
    display: none;
  }
}

/* Mobile Menu */
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(15, 15, 26, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  max-height: 80vh;
  overflow-y: auto;
  display: none;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.mobile-menu a:hover {
  color: var(--coral);
}

.mobile-menu-section {
  padding: 0.5rem 1rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ================================
   HERO SECTION
   ================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, 
    rgba(15, 15, 26, 0.5),
    rgba(15, 15, 26, 0.6),
    rgba(15, 15, 26, 0.75)
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem;
  padding-top: 110px; /* 60px header + ~50px (cap-height of 'M' at hero font size) */
  max-width: 72rem;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 700;
  color: white;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-title .gradient-text {
  text-shadow: none !important;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 48rem;
  margin: 0 auto 2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ================================
   PROOF BAR / STATS SECTION
   ================================ */
.proof-bar {
  background: linear-gradient(to bottom, var(--gray-50), white);
  padding: 5rem 1rem;
}

body.dark .proof-bar {
  background: linear-gradient(to bottom, #12121f, #1c1c32);
}

.stat-card {
  position: relative;
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 1.25rem;
  border: 2px solid #d1d5db;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: #f6486f;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.10),
    0 0 30px rgba(246, 72, 111, 0.08);
}

body.dark .stat-card {
  background: rgba(30, 30, 46, 0.69);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

body.dark .stat-card:hover {
  border-color: #f6486f;
  background: rgba(30, 30, 46, 0.72);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.30),
    0 0 40px rgba(246, 72, 111, 0.10);
}

.stat-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: rgba(246, 72, 111, 0.1);
  color: var(--coral);
}

body.dark .stat-icon {
  background: rgba(246, 72, 111, 0.15);
}

.stat-value {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--coral);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--coral);
  margin-top: 0.5rem;
}

.stat-description {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
}

body.dark .stat-description {
  color: rgba(255, 255, 255, 0.65);
}

/* ================================
   SECTION STYLES
   ================================ */
.section {
  padding: 5rem 1rem;
  position: relative;
}
/* Pure white section (light) / pure dark (dark) */
.section-light {
  background: white;
}

body.dark .section-light {
  background: var(--dark-bg);
}

/* Section that adapts to theme — white light / dark gradient */
.section-adaptive {
  background: white;
}

body.dark .section-adaptive {
  background: linear-gradient(to bottom, var(--dark-bg), #141425);
}

/* Always dark section — charcoal grey in light mode, deep navy in dark mode */
.section-dark {
  background: linear-gradient(to bottom, #2E2E3E, #3A3A4E);
  color: white;
}
body.dark .section-dark {
  background: linear-gradient(to bottom, #10101e, #1a1a30);
}

/* Light gray band — distinct from white sections */
.section-gray {
  background: var(--gray-50);
}

body.dark .section-gray {
  background: #1e1e34;
}

/* Warm off-white band — alternate to section-gray for visual variety */
.section-warm {
  background: #fdf8f6;
}

body.dark .section-warm {
  background: #191930;
}

/* Soft tinted section — subtle blue-gray for extra variation */
.section-tinted {
  background: #f5f7fa;
}

body.dark .section-tinted {
  background: #16162a;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--coral);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--dark-bg);
  margin-bottom: 1rem;
}

body.dark .section-title {
  color: #f1f1f5;
}

.section-dark .section-title {
  color: white;
}

.section-description {
  font-size: 1.125rem;
  color: var(--gray-600);
  max-width: 48rem;
}

body.dark .section-description {
  color: rgba(255, 255, 255, 0.75);
}

.section-dark .section-description {
  color: rgba(255, 255, 255, 0.75);
}

/* ================================================================
   GLASS SEPARATOR — Aurora / Northern-Lights effect
   Colour bands travel, flicker, and shift along each line.
   Three layers: sharp line, soft bloom, and flicker mask.
   ================================================================ */

/* --- Layer 1: Travelling aurora line (background-position sweep) --- */
@keyframes auroraSweep {
  0%   { background-position: 0%   50%; }
  100% { background-position: 400% 50%; }
}

/* --- Layer 2: Bloom drift (slower, opposite direction) --- */
@keyframes auroraBloom {
  0%   { background-position: 200% 50%; }
  100% { background-position: -200% 50%; }
}

/* --- Layer 3: Opacity flicker — organic brightness variation --- */
@keyframes auroraFlicker {
  0%   { opacity: 0.65; }
  8%   { opacity: 0.90; }
  16%  { opacity: 0.55; }
  24%  { opacity: 0.95; }
  33%  { opacity: 0.60; }
  42%  { opacity: 0.85; }
  51%  { opacity: 0.50; }
  60%  { opacity: 1;    }
  68%  { opacity: 0.70; }
  77%  { opacity: 0.92; }
  85%  { opacity: 0.58; }
  93%  { opacity: 0.80; }
  100% { opacity: 0.65; }
}

.glass-separator {
  position: relative;
  height: 0;
  overflow: visible;
  z-index: 3;
  pointer-events: none;
  margin: 0;
}

/* --- ::before  = sharp aurora line (1px) --- */
.glass-separator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  transform: translateY(-50%);
  background: linear-gradient(90deg,
    transparent        0%,
    rgba(246,72,111,.25)  4%,
    rgba(246,72,111,.70)  8%,
    rgba(180,80,120,.30)  13%,
    transparent           18%,
    rgba(69,206,198,.65)  24%,
    rgba(69,206,198,.75)  28%,
    transparent           34%,
    rgba(246,72,111,.60)  40%,
    rgba(180,80,120,.35)  46%,
    transparent           52%,
    rgba(69,206,198,.70)  58%,
    rgba(246,72,111,.55)  64%,
    transparent           70%,
    rgba(180,80,120,.25)  76%,
    rgba(69,206,198,.65)  82%,
    transparent           88%,
    rgba(246,72,111,.50)  94%,
    transparent           100%);
  background-size: 400% 100%;
  animation:
    auroraSweep   36s linear infinite,
    auroraFlicker  14s ease-in-out infinite;
}

/* --- ::after  = soft diffused bloom (blurred, masks section boundary) --- */
.glass-separator::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  right: 0;
  height: 8px;
  pointer-events: none;
  background: linear-gradient(90deg,
    transparent           0%,
    rgba(246,72,111,.10)   5%,
    rgba(246,72,111,.18)   10%,
    transparent            18%,
    rgba(69,206,198,.15)   25%,
    rgba(69,206,198,.22)   30%,
    transparent            38%,
    rgba(246,72,111,.12)   44%,
    rgba(180,80,120,.08)   50%,
    transparent            56%,
    rgba(69,206,198,.18)   62%,
    transparent            70%,
    rgba(246,72,111,.14)   78%,
    rgba(69,206,198,.12)   86%,
    transparent            100%);
  background-size: 350% 100%;
  filter: blur(4px);
  animation:
    auroraBloom   48s linear infinite,
    auroraFlicker  22s ease-in-out infinite;
}

/* ---- Stagger each separator (negative delays = random start points) ---- */
.glass-separator:nth-child(2n)::before  { animation-delay: -7s, -3s; }
.glass-separator:nth-child(2n)::after   { animation-delay: -14s, -6s; }
.glass-separator:nth-child(3n)::before  { animation-delay: -3s, -5.5s; }
.glass-separator:nth-child(3n)::after   { animation-delay: -9s, -2s; }
.glass-separator:nth-child(4n)::before  { animation-delay: -12s, -1s; }
.glass-separator:nth-child(4n)::after   { animation-delay: -5s, -8s; }
.glass-separator:nth-child(5n)::before  { animation-delay: -1s, -4s; }
.glass-separator:nth-child(5n)::after   { animation-delay: -18s, -9s; }
.glass-separator:nth-child(6n)::before  { animation-delay: -15s, -6.5s; }
.glass-separator:nth-child(6n)::after   { animation-delay: -2s, -10s; }
.glass-separator:nth-child(7n)::before  { animation-delay: -10s, -2.5s; }
.glass-separator:nth-child(7n)::after   { animation-delay: -20s, -7s; }

/* ---- Dark mode / after dark sections — boosted intensity ---- */
body.dark .glass-separator::before,
.section-dark + .glass-separator::before {
  background: linear-gradient(90deg,
    transparent           0%,
    rgba(246,72,111,.15)   4%,
    rgba(246,72,111,.65)   8%,
    rgba(255,255,255,.25)  13%,
    transparent            18%,
    rgba(69,206,198,.60)   24%,
    rgba(69,206,198,.70)   28%,
    transparent            34%,
    rgba(246,72,111,.55)   40%,
    rgba(255,255,255,.28)  46%,
    transparent            52%,
    rgba(69,206,198,.65)   58%,
    rgba(246,72,111,.50)   64%,
    transparent            70%,
    rgba(255,255,255,.20)  76%,
    rgba(69,206,198,.60)   82%,
    transparent            88%,
    rgba(246,72,111,.40)   94%,
    transparent            100%);
  background-size: 400% 100%;
}
body.dark .glass-separator::after,
.section-dark + .glass-separator::after {
  background: linear-gradient(90deg,
    transparent            0%,
    rgba(246,72,111,.05)    5%,
    rgba(246,72,111,.12)    10%,
    transparent             18%,
    rgba(69,206,198,.10)    25%,
    rgba(69,206,198,.15)    30%,
    transparent             38%,
    rgba(246,72,111,.08)    44%,
    rgba(255,255,255,.05)   50%,
    transparent             56%,
    rgba(69,206,198,.13)    62%,
    transparent             70%,
    rgba(246,72,111,.10)    78%,
    rgba(69,206,198,.08)    86%,
    transparent             100%);
  background-size: 350% 100%;
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .glass-separator::before,
  .glass-separator::after {
    animation: none !important;
  }
}

/* ================================
   BRAND PATTERN BACKGROUND
   Repeatable SVG icon pattern used as a subtle depth layer.
   Applied via .has-pattern on selected sections.
   Uses a JS-injected .pattern-layer div so it doesn't conflict
   with ::before/::after used by .has-glow.
   Parallax achieved with background-attachment: fixed.
   ================================ */
.has-pattern {
  position: relative;
}
.pattern-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('../images/pg-pattern.png');
  background-repeat: repeat;
  background-size: 260px auto;
  background-attachment: fixed;
  opacity: 0.07;
  pointer-events: none;
}
/* Ensure section content sits above the pattern */
.has-pattern > .container {
  position: relative;
  z-index: 2;
}
/* Glow pseudo-elements sit between pattern and content */
.has-pattern.has-glow::before,
.has-pattern.has-glow::after {
  z-index: 1;
}

/* Dark mode: swap to white-stroke variant */
body.dark .pattern-layer {
  background-image: url('../images/pg-pattern-dark.png');
  opacity: 0.02;
}

/* Mobile: disable background-attachment:fixed (iOS doesn't support it) */
@media (max-width: 768px) {
  .pattern-layer {
    background-attachment: scroll;
    background-size: 200px auto;
  }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .pattern-layer {
    background-attachment: scroll;
  }
}

/* ================================
   CARDS
   ================================ */
/* ===== Cards -- Glassmorphism ===== */
.card {
  position: relative;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 1.25rem;
  padding: 1.5rem;
  border: 2px solid #d1d5db;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: #f6486f;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.10),
    0 0 30px rgba(246, 72, 111, 0.08);
}

/* Dark mode cards */
body.dark .card {
  background: rgba(30, 30, 46, 0.69);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

body.dark .card:hover {
  border-color: #f6486f;
  background: rgba(30, 30, 46, 0.72);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.30),
    0 0 40px rgba(246, 72, 111, 0.10);
}

/* Cards inside always-dark sections */
.section-dark .card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.22);
}

.section-dark .card:hover {
  border-color: #f6486f;
  background: rgba(255, 255, 255, 0.06);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.30),
    0 0 40px rgba(246, 72, 111, 0.10);
}

/* section-gray / section-warm cards in dark mode */
body.dark .section-gray .card,
body.dark .section-warm .card {
  background: rgba(30, 30, 46, 0.69);
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

body.dark .section-gray .card:hover,
body.dark .section-warm .card:hover {
  border-color: #f6486f;
  background: rgba(30, 30, 46, 0.72);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.30),
    0 0 40px rgba(246, 72, 111, 0.10);
}

/* Card for dark sections (legacy class) */
.card-dark {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.22);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.card-dark:hover {
  transform: translateY(-5px);
  border-color: #f6486f;
  background: rgba(255, 255, 255, 0.06);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.30),
    0 0 40px rgba(246, 72, 111, 0.10);
}

.card-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #f6486f, #ec4899);
  color: white;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

body.dark .card-title {
  color: white;
}

.section-dark .card-title {
  color: white;
}
body.dark .section-gray .card-title,
body.dark .section-warm .card-title {
  color: white;
}

.card-description {
  color: var(--gray-600);
  font-size: 0.9375rem;
}

body.dark .card-description {
  color: rgba(255, 255, 255, 0.6);
}

.section-dark .card-description {
  color: rgba(255, 255, 255, 0.6);
}
body.dark .section-gray .card-description,
body.dark .section-warm .card-description {
  color: rgba(255, 255, 255, 0.6);
}

/* ================================
   TERMINAL ANIMATION
   ================================ */
.terminal {
  background: #1e1e1e;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #2d2d2d;
}

.terminal-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-title {
  margin-left: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.75rem;
  font-family: monospace;
}

.terminal-content {
  padding: 0.5rem 0.625rem;
  font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
  font-size: 0.6875rem;
  line-height: 1.6;
  height: 400px;
  max-height: 400px;
  overflow: hidden;
  color: #d4d4d4;
}

.terminal-line {
  margin-bottom: 0.125rem;
  opacity: 0;
  animation: terminalFadeIn 0.3s ease forwards;
}

@keyframes terminalFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.terminal-line.command { color: #67d4f1; }
.terminal-line.success { color: #98c379; }
.terminal-line.processing { color: #facc15; }
.terminal-line.info { color: #61afef; }
.terminal-line.complete { color: var(--coral); }
.terminal-line.json { color: #d19a66; }
.terminal-line.webhook { color: #c678dd; }
.terminal-line.spacer { margin-bottom: 0.0625rem; }

/* Tech terminal: fixed height with scroll */
#tech-terminal-content {
  height: 380px;
  min-height: 380px;
  max-height: 380px;
  overflow-y: auto;
}
#tech-terminal-content::-webkit-scrollbar { width: 4px; }
#tech-terminal-content::-webkit-scrollbar-track { background: transparent; }
#tech-terminal-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

.terminal-cursor {
  display: inline-block;
  opacity: 1;
}
.terminal-cursor.blink {
  animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Status indicators */
.status-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.status-dot.pending { background: var(--gray-400); }
.status-dot.active { background: var(--yellow); }
.status-dot.complete { background: #27c93f; }

/* ================================
   FOOTER
   ================================ */
.footer {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  color: var(--gray-900);
  padding: 2.5rem 1rem 1.5rem;
}

body.dark .footer {
  background: #0a0a14;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: white;
}

.footer-description {
  color: var(--gray-600);
}

body.dark .footer-description {
  color: rgba(255, 255, 255, 0.6);
}

.footer-heading {
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

body.dark .footer-heading {
  color: white;
}

.footer-link {
  color: var(--gray-600);
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-block;
  padding: 0.25rem 0.5rem;
  margin-left: -0.5rem;
  border-radius: 0.25rem;
}

.footer-link:hover {
  color: var(--coral);
}

body.dark .footer-link {
  color: rgba(255, 255, 255, 0.6);
}

body.dark .footer-link:hover {
  color: var(--coral);
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav-list li {
  line-height: 1;
}

.footer-link-parent {
  font-weight: 600;
  color: var(--gray-700);
  font-size: 0.9rem;
}

.footer .footer-link-parent {
  color: var(--gray-700);
}

body.dark .footer-link-parent,
body.dark .footer .footer-link-parent {
  color: rgba(255, 255, 255, 0.9);
}

.footer-link-hoverable {
  transition: color 0.2s ease;
}

.footer-link-hoverable:hover {
  color: var(--coral) !important;
}

.footer-link-child {
  padding-left: 0.75rem;
  font-size: 0.84rem;
}

.footer-nav-spacer {
  height: 0.6rem;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gray-600);
}

body.dark .footer-contact {
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact-icon {
  color: var(--coral);
  flex-shrink: 0;
}

.footer-cert {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-cert-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: rgba(246, 72, 111, 0.1);
  color: var(--coral);
}

body.dark .footer-cert-icon {
  background: rgba(255, 255, 255, 0.05);
}

.footer-cert-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-900);
}

body.dark .footer-cert-title {
  color: white;
}

.footer-cert-desc {
  font-size: 0.75rem;
  color: var(--gray-500);
}

body.dark .footer-cert-desc {
  color: rgba(255, 255, 255, 0.65);
}

.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

body.dark .footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.footer-copyright {
  font-size: 0.875rem;
  color: var(--gray-500);
}

body.dark .footer-copyright {
  color: rgba(255, 255, 255, 0.65);
}

.footer-privacy-link {
  color: var(--gray-500);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.footer-privacy-link:hover {
  color: var(--coral);
}

body.dark .footer-privacy-link {
  color: rgba(255, 255, 255, 0.65);
}

body.dark .footer-privacy-link:hover {
  color: var(--coral);
}

/* ================================
   PRODUCT CARDS
   ================================ */
.product-card {
  position: relative;
  display: block;
  overflow: visible !important;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 1.25rem;
  text-decoration: none;
  color: inherit;
  border: 2px solid #d1d5db;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.product-card:hover {
  border-color: #f6486f;
  transform: translateY(-4px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.10),
    0 0 30px rgba(246, 72, 111, 0.08);
}

body.dark .product-card {
  background: rgba(30, 30, 46, 0.69);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

/* Product cards in lighter sections */
body.dark .section-gray .product-card,
body.dark .section-warm .product-card {
  background: rgba(30, 30, 46, 0.69);
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

body.dark .product-card:hover {
  border-color: #f6486f;
  background: rgba(30, 30, 46, 0.72);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.30),
    0 0 40px rgba(246, 72, 111, 0.10);
}

.product-card-image {
  position: relative;
  padding-top: 75%;
  background: var(--gray-100);
  overflow: hidden;
  border-radius: 1.15rem 1.15rem 0 0;
}

body.dark .product-card-image {
  background: transparent;
}

.product-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-card-image img {
  transform: scale(1.05);
}

.product-card-content {
  padding: 1.25rem;
}

.product-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

body.dark .product-card-title {
  color: white;
}

.product-card-description {
  font-size: 0.875rem;
  color: var(--gray-500);
}

body.dark .product-card-description {
  color: rgba(255, 255, 255, 0.6);
}

/* ================================
   FAQ ACCORDION
   ================================ */
.faq-item {
  border-bottom: 1px solid var(--gray-200);
}

body.dark .faq-item {
  border-color: rgba(255, 255, 255, 0.1);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem 0;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
  cursor: pointer;
  transition: color 0.2s ease;
}

body.dark .faq-question {
  color: white;
}

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

.faq-icon {
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--coral);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

body.dark .faq-icon {
  background: rgba(255, 255, 255, 0.1);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-content {
  padding-bottom: 1.25rem;
  color: var(--gray-600);
}

body.dark .faq-answer-content {
  color: rgba(255, 255, 255, 0.7);
}

/* ================================
   FORMS
   ================================ */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.2s ease;
  background: white;
  color: var(--gray-900);
}

.form-input:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(246, 72, 111, 0.1);
}

body.dark .form-input {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: white;
}

body.dark .form-input:focus {
  border-color: var(--coral);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--gray-700);
}

body.dark .form-label {
  color: rgba(255, 255, 255, 0.9);
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-weight: 600;
  border-radius: 0.5rem;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.30) 0%,
      rgba(255, 255, 255, 0.08) 35%,
      transparent 50%,
      rgba(0, 0, 0, 0.06) 75%,
      rgba(0, 0, 0, 0.12) 100%
    ),
    var(--coral);
  color: white;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-submit:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(246, 72, 111, 0.3);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Secondary/outline button */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 9999px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: white;
  background: transparent;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.1);
}

/* ================================
   CTA BANNER
   ================================ */
.cta-banner {
  background: linear-gradient(to bottom, #2E2E3E, #3A3A4E);
  position: relative;
  overflow: hidden;
}
body.dark .cta-banner {
  background: linear-gradient(to bottom, var(--dark-bg), var(--dark-bg-secondary));
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 70%;
  height: 220%;
  background: radial-gradient(ellipse at center, rgba(246, 72, 111, 0.14) 0%, rgba(246, 72, 111, 0.10) 20%, rgba(246, 72, 111, 0.05) 40%, rgba(246, 72, 111, 0.02) 60%, transparent 80%);
  pointer-events: none;
  animation: glowDrift1 18s ease-in-out infinite;
  z-index: 0;
  filter: blur(40px);
}
.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -15%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(69, 206, 198, 0.09) 0%, rgba(69, 206, 198, 0.06) 20%, rgba(69, 206, 198, 0.03) 40%, rgba(69, 206, 198, 0.01) 60%, transparent 80%);
  pointer-events: none;
  animation: glowDrift2 22s ease-in-out infinite;
  z-index: 0;
  filter: blur(40px);
}
.cta-banner > * {
  position: relative;
  z-index: 1;
}

/* ================================
   FLOATING GLOW EFFECT
   ================================ */
@keyframes glowDrift1 {
  0%   { transform: translate(0%, 0%) scale(1); }
  25%  { transform: translate(10%, -15%) scale(1.1); }
  50%  { transform: translate(-5%, -25%) scale(0.95); }
  75%  { transform: translate(-15%, -10%) scale(1.05); }
  100% { transform: translate(0%, 0%) scale(1); }
}
@keyframes glowDrift2 {
  0%   { transform: translate(0%, 0%) scale(1); }
  25%  { transform: translate(-12%, 10%) scale(1.08); }
  50%  { transform: translate(8%, 20%) scale(0.92); }
  75%  { transform: translate(15%, 5%) scale(1.04); }
  100% { transform: translate(0%, 0%) scale(1); }
}

/* --------------------------------
   .has-glow — opt-in floating glow
   Add to any section for the effect.
   Colour adapts: subtle on light bg,
   vivid raspberry+cyan on dark bg.
   -------------------------------- */
.has-glow {
  position: relative;
  overflow: hidden;
}
.has-glow::before,
.has-glow::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
}
/* Raspberry orb — top-right, drifts on path 1 */
.has-glow::before {
  width: 55%;
  height: 200%;
  top: -50%;
  right: -18%;
  background: radial-gradient(ellipse at center,
    rgba(246, 72, 111, 0.06) 0%,
    rgba(246, 72, 111, 0.04) 25%,
    rgba(246, 72, 111, 0.02) 45%,
    rgba(246, 72, 111, 0.005) 65%,
    transparent 85%);
  animation: glowDrift1 18s ease-in-out infinite;
}
/* Cyan orb — bottom-left, drifts on path 2 */
.has-glow::after {
  width: 50%;
  height: 180%;
  bottom: -45%;
  left: -12%;
  background: radial-gradient(ellipse at center,
    rgba(69, 206, 198, 0.05) 0%,
    rgba(69, 206, 198, 0.03) 25%,
    rgba(69, 206, 198, 0.015) 45%,
    rgba(69, 206, 198, 0.005) 65%,
    transparent 85%);
  animation: glowDrift2 22s ease-in-out infinite;
}
/* Content sits above the glow */
.has-glow > .container,
.has-glow > div:not(.pattern-layer) {
  position: relative;
  z-index: 1;
}

/* Dark-background glow — stronger raspberry + cyan
   Applies to .section-dark (always dark) and any
   .has-glow section when body is in dark mode */
body.dark .has-glow::before,
.section-dark.has-glow::before {
  background: radial-gradient(ellipse at center,
    rgba(246, 72, 111, 0.12) 0%,
    rgba(246, 72, 111, 0.08) 25%,
    rgba(246, 72, 111, 0.04) 45%,
    rgba(246, 72, 111, 0.01) 65%,
    transparent 85%);
}
body.dark .has-glow::after,
.section-dark.has-glow::after {
  background: radial-gradient(ellipse at center,
    rgba(69, 206, 198, 0.09) 0%,
    rgba(69, 206, 198, 0.06) 25%,
    rgba(69, 206, 198, 0.025) 45%,
    rgba(69, 206, 198, 0.008) 65%,
    transparent 85%);
}

/* ================================
   ANIMATIONS
   ================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }

@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================================
   UTILITIES & LAYOUT
   ================================ */
.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

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

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

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

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

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

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

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

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

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

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

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

.mx-auto { margin-left: auto; margin-right: auto; }

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-col { flex-direction: column; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }

.hidden { display: none; }

@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
}

@media (min-width: 1024px) {
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none; }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .lg\:col-span-2 { grid-column: span 2; }
  .lg\:whitespace-nowrap { white-space: nowrap; }
  .lg\:block { display: block; }
}

/* Scrollbar hide */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* ================================
   KPI DASHBOARD - GLASS MORPHISM
   ================================ */
.kpi-dashboard {
  position: relative;
  margin-top: 3rem;
  padding: 0.875rem 1rem 0.7rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.22);
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.625rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

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

.kpi-icon-box {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, var(--coral) 0%, #ec4899 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.kpi-title {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  margin: 0;
}

.kpi-subtitle {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.kpi-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.kpi-status-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  flex-shrink: 0;
  background-color: #4ade80;
  animation: kpi-pulse 2s infinite;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
}

@keyframes kpi-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.2); }
}

.kpi-status-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: #4ade80;
  white-space: nowrap;
  /* Fixed width so dot never shifts between Connecting... ↔ API Connected */
  display: inline-block;
  width: 6.5rem;
  text-align: left;
}

/* Connecting state — yellow pulse */
.kpi-status-dot.connecting {
  background-color: #fbbf24;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.6);
  animation: kpi-pulse-yellow 1.5s infinite;
}

@keyframes kpi-pulse-yellow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.kpi-status-text.connecting {
  color: #fbbf24;
}

/* KPI flip-board perspective */
.kpi-tile {
  perspective: 300px;
}

.kpi-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  overflow: hidden;
  border-radius: 0.75rem;
}

/* KPI grid gleam effects removed — clean flat style */

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

.kpi-tile {
  position: relative;
  padding: 0.5rem 0.75rem 1rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}

.kpi-tile:hover {
  background: rgba(255, 255, 255, 0.18);
}

.kpi-tile-header {
  position: relative;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  white-space: nowrap;
}

.kpi-tile-header span {
  display: inline;
}

.kpi-tile-header svg {
  display: inline-block;
  vertical-align: -0.1em;
  margin-right: 0.3em;
  margin-left: -1.3em;
  width: 1em;
  height: 1em;
}

.kpi-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin: 0;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.kpi-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  text-align: center;
}

/* ── Odometer digit system ─────────────────────────────── */
.odo-digit {
  display: inline-block;
  position: relative;
  min-width: 0.65em;
  height: 1.3em;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.15);
  text-align: center;
  margin: 0 1px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  vertical-align: baseline;
}

/* The vertical strip of 0-9 digits */
.odo-strip {
  display: flex;
  flex-direction: column;
  transition: transform 0.6s cubic-bezier(0, 0.7, 0.3, 1);
  will-change: transform;
}

.odo-strip span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1.3em;
  width: 100%;
  flex-shrink: 0;
}

/* Spinning state — faster, linear for the rolling feel */
.odo-digit.spinning .odo-strip {
  transition: transform 0.15s linear;
}

/* Settling state — ease out into the final position */
.odo-digit.settling .odo-strip {
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.3, 1);
}

/* Punctuation chars (. , % — space) get no tile background */
.odo-digit.odo-punct {
  min-width: 0;
  background: none;
  box-shadow: none;
  margin: 0;
  overflow: visible;
  height: auto;
}

.odo-digit.odo-punct .odo-strip {
  transition: none;
}

/* Subtle gradient overlay for depth */
.odo-digit:not(.odo-punct)::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 30%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), transparent);
  pointer-events: none;
  z-index: 1;
  border-radius: 3px 3px 0 0;
}

.odo-digit:not(.odo-punct)::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 30%;
  background: linear-gradient(to top, rgba(0,0,0,0.1), transparent);
  pointer-events: none;
  z-index: 1;
  border-radius: 0 0 3px 3px;
}

/* Production Status Banner */
.kpi-production-status {
  margin-top: 0.75rem;
  padding: 0.4rem 0.75rem 0.5rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.kpi-production-status-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.kpi-production-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: #4ade80;
  flex-shrink: 0;
  transition: background-color 0.3s ease;
}

.kpi-production-dot.offline {
  background-color: #ef4444;
  animation: none;
}

.kpi-production-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s ease;
}

.kpi-production-label.offline {
  color: #fbbf24;
}

.kpi-production-hours {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.02em;
}

@media (max-width: 640px) {
  .kpi-production-status-inner {
    flex-direction: column;
    gap: 0.25rem;
  }
  .kpi-production-hours {
    text-align: center;
  }
}

.kpi-footer {
  margin-top: 0.2rem;
  padding-top: 0.65rem;
  padding-bottom: 0;
  border-top: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.kpi-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Text color utilities for KPI icons */
.text-green-400 { color: #4ade80; }
.text-blue-400 { color: #60a5fa; }
.text-purple-400 { color: #c084fc; }
.text-cyan-400 { color: #22d3ee; }

/* ===== Brand Ribbon / Marquee ===== */
@keyframes brandScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.brand-ribbon {
  overflow: hidden;
  padding: 2.5rem 0;
  background: #0F0F1A;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
}

.brand-ribbon-heading {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.brand-ribbon-track {
  display: flex;
  align-items: center;
  gap: 4.5rem;
  width: max-content;
  animation: brandScroll 45s linear infinite;
}

.brand-ribbon-track img {
  height: 44px;
  width: auto;
  flex-shrink: 0;
  transition: opacity 0.35s ease, filter 0.35s ease;
  /* Default (dark ribbon bg): white silhouettes */
  filter: brightness(0) invert(1);
  opacity: 0.5;
}

.brand-ribbon-track img:hover {
  opacity: 1;
  filter: brightness(0) invert(1);
}

.brand-ribbon:hover .brand-ribbon-track {
  animation-play-state: paused;
}

/* ===== Product Category Cards ===== */
/* ===== Category Cards v3 -- Glassmorphism ===== */
.category-card {
  position: relative;
  background: rgba(255,255,255,0.04);
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 1.25rem;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.22);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  border-color: #f6486f;
  box-shadow:
    0 12px 48px rgba(0,0,0,0.30),
    0 0 40px rgba(246,72,111,0.10);
}

.category-card-inner {
  padding: 2rem 1.75rem 1.75rem;
}

.category-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.cat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.15);
}

.cat-icon svg {
  width: 22px;
  height: 22px;
  stroke: #f6486f;
  stroke-width: 1.8;
  fill: none;
}

.category-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: -0.01em;
}

.category-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.category-card ul li {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.50);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.025);
  cursor: default;
}

/* --- Category cards on LIGHT backgrounds --- */
.section-light .category-card,
.section-gray .category-card,
.section-warm .category-card {
  background: rgba(255,255,255,0.55);
  border-color: #d1d5db;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.section-light .category-card:hover,
.section-gray .category-card:hover,
.section-warm .category-card:hover {
  box-shadow:
    0 12px 40px rgba(0,0,0,0.10),
    0 0 30px rgba(246,72,111,0.08);
}
.section-light .cat-icon,
.section-gray .cat-icon,
.section-warm .cat-icon {
  background: rgba(246,72,111,0.08);
  border-color: #d1d5db;
}
.section-light .category-card h3,
.section-gray .category-card h3,
.section-warm .category-card h3 {
  color: var(--gray-900);
}
.section-light .category-card ul li,
.section-gray .category-card ul li,
.section-warm .category-card ul li {
  color: var(--gray-600);
  border-color: #d1d5db;
  background: rgba(0,0,0,0.03);
}

/* Dark mode overrides for light-section category cards */
body.dark .section-light .category-card,
body.dark .section-gray .category-card,
body.dark .section-warm .category-card {
  background: rgba(30, 30, 46, 0.69);
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 4px 24px rgba(0,0,0,0.20);
}
body.dark .section-light .category-card:hover,
body.dark .section-gray .category-card:hover,
body.dark .section-warm .category-card:hover {
  background: rgba(30, 30, 46, 0.72);
  box-shadow:
    0 12px 48px rgba(0,0,0,0.30),
    0 0 40px rgba(246,72,111,0.10);
}
body.dark .section-light .cat-icon,
body.dark .section-gray .cat-icon,
body.dark .section-warm .cat-icon {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.15);
}
body.dark .section-light .category-card h3,
body.dark .section-gray .category-card h3,
body.dark .section-warm .category-card h3 {
  color: #fff;
}
body.dark .section-light .category-card ul li,
body.dark .section-gray .category-card ul li,
body.dark .section-warm .category-card ul li {
  color: rgba(255,255,255,0.50);
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.025);
}

/* --- Brand Ribbon light-mode variant --- */
.section-light + .brand-ribbon,
.section-gray + .brand-ribbon,
.section-warm + .brand-ribbon {
  background: var(--gray-50);
  border-top-color: rgba(0,0,0,0.06);
  border-bottom-color: rgba(0,0,0,0.06);
}
.section-light + .brand-ribbon .brand-ribbon-heading,
.section-gray + .brand-ribbon .brand-ribbon-heading,
.section-warm + .brand-ribbon .brand-ribbon-heading {
  color: var(--gray-500);
}
/*
 * Light-theme ribbon (after light/gray/warm section):
 * Logos are black source → show as mid-grey, hover → midnight blue (#0F0F1A)
 */
.section-light + .brand-ribbon .brand-ribbon-track img,
.section-gray + .brand-ribbon .brand-ribbon-track img,
.section-warm + .brand-ribbon .brand-ribbon-track img {
  filter: brightness(0);
  opacity: 0.35;
}
.section-light + .brand-ribbon .brand-ribbon-track img:hover,
.section-gray + .brand-ribbon .brand-ribbon-track img:hover,
.section-warm + .brand-ribbon .brand-ribbon-track img:hover {
  filter: brightness(0);
  opacity: 0.85;
}

/*
 * Dark-mode: restores dark ribbon bg regardless of preceding section
 * Logos: light grey (inverted), hover → raspberry pink
 */
body.dark .brand-ribbon {
  background: #0F0F1A;
  border-top-color: rgba(255,255,255,0.06);
  border-bottom-color: rgba(255,255,255,0.06);
}
body.dark .brand-ribbon .brand-ribbon-heading {
  color: rgba(255,255,255,0.45);
}
body.dark .brand-ribbon .brand-ribbon-track img {
  filter: brightness(0) invert(1);
  opacity: 0.5;
}
body.dark .brand-ribbon .brand-ribbon-track img:hover {
  filter: brightness(0) invert(48%) sepia(100%) saturate(600%) hue-rotate(315deg) brightness(1.1);
  opacity: 1;
}

.deco-card {
  position: relative;
  background: rgba(255,255,255,0.04);
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 1.25rem;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.22);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.deco-card:hover {
  transform: translateY(-5px);
  border-color: #f6486f;
  box-shadow:
    0 12px 40px rgba(0,0,0,0.30),
    0 0 40px rgba(246,72,111,0.10);
}

.deco-card .deco-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.15);
}

.deco-card .deco-icon svg {
  width: 28px;
  height: 28px;
  color: #45cec6;
}

.deco-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.deco-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  margin: 0;
}

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

@media (max-width: 768px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ===== Cyan hover variant -- add .hover-cyan to a section ===== */
/* Extra specificity via section element to beat body.dark and .section-X rules */
section.hover-cyan .card:hover,
section.hover-cyan .card-dark:hover,
body.dark section.hover-cyan .card:hover,
body.dark section.hover-cyan .card-dark:hover,
.section-dark.hover-cyan .card:hover,
.section-gray.hover-cyan .card:hover,
.section-warm.hover-cyan .card:hover {
  border-color: #45cec6;
  box-shadow:
    0 12px 40px rgba(0,0,0,0.30),
    0 0 40px rgba(69,206,198,0.12);
}

section.hover-cyan .category-card:hover {
  border-color: #45cec6;
  box-shadow:
    0 12px 48px rgba(0,0,0,0.30),
    0 0 40px rgba(69,206,198,0.12);
}

section.hover-cyan .deco-card:hover {
  border-color: #45cec6;
  box-shadow:
    0 12px 40px rgba(0,0,0,0.30),
    0 0 40px rgba(69,206,198,0.12);
}