/* ═══════════════════════════════════════════════════════════
   APPLAUDE WEBSITE — MAIN STYLESHEET
   Brand: #F04438 (coral red) · Dark tech theme
═══════════════════════════════════════════════════════════ */

/* ── Custom Properties ─────────────────────────────────── */
:root {
  /* Brand */
  --brand:        #F04438;
  --brand-dark:   #C0392B;
  --brand-light:  #F97066;
  --brand-glow:   rgba(240, 68, 56, 0.25);

  /* Backgrounds — warm dark palette respecting brand red */
  --bg-0:  #0D0807;   /* page background  – deep warm charcoal */
  --bg-1:  #140C0B;   /* card / surface   – dark warm brown-black */
  --bg-2:  #1C1110;   /* elevated / hover – warm dark surface */
  --bg-3:  #241615;   /* subtle raised    – slightly lighter warm */

  /* Text */
  --text-1: #F0F4FF;   /* headings */
  --text-2: #94A3B8;   /* body / secondary */
  --text-3: #64748B;   /* muted / labels */

  /* Borders */
  --border:       rgba(148, 163, 184, 0.10);
  --border-hover: rgba(148, 163, 184, 0.20);

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Spacing base = 8px */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Radii */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.4), 0 2px 8px rgba(0,0,0,0.2);
  --shadow-lg:  0 10px 40px rgba(0,0,0,0.5), 0 4px 16px rgba(0,0,0,0.3);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 150ms;
  --dur-base: 250ms;
  --dur-slow: 400ms;

  /* Theme-adaptive surface values */
  --nav-scrolled-bg:  rgba(13, 8, 7, 0.90);
  --marquee-bg:       rgba(13, 8, 7, 0.65);
}

/* ── Light Mode ─────────────────────────────────────────── */
[data-theme="light"] {
  /* Warm whites — complement the brand red */
  --bg-0:  #FAFAF9;
  --bg-1:  #F5F5F4;
  --bg-2:  #E7E5E4;
  --bg-3:  #D6D3D1;

  /* Text */
  --text-1: #1C1917;
  --text-2: #44403C;
  --text-3: #78716C;

  /* Borders */
  --border:       rgba(28, 25, 23, 0.10);
  --border-hover: rgba(28, 25, 23, 0.22);

  /* Shadows (lighter) */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-lg:  0 10px 40px rgba(0,0,0,0.10), 0 4px 16px rgba(0,0,0,0.06);

  /* Theme-adaptive surfaces */
  --nav-scrolled-bg:  rgba(250, 250, 249, 0.92);
  --marquee-bg:       rgba(250, 250, 249, 0.80);
  --brand-glow:       rgba(240, 68, 56, 0.18);
}

/* ═══════════════════════════════════════════════════════════
   AMBIENT BACKGROUND ANIMATIONS
═══════════════════════════════════════════════════════════ */

/* Fixed behind all content */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Ensure page content renders above ambient layer */
header, main, footer { position: relative; z-index: 1; }

/* ── Floating Orbs ──────────────────────────────────────── */
.orb {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

/* Large brand-red orb — top-left, drifts slowly */
.orb-1 {
  width: 800px; height: 800px;
  top: -20%; left: -15%;
  background: radial-gradient(circle at 50% 50%,
    rgba(240, 68, 56, 0.14) 0%,
    rgba(240, 68, 56, 0.06) 40%,
    transparent 70%);
  filter: blur(40px);
  animation: orbDrift1 26s ease-in-out infinite alternate;
}

/* Medium warm-red orb — bottom-right */
.orb-2 {
  width: 600px; height: 600px;
  bottom: -15%; right: -10%;
  background: radial-gradient(circle at 50% 50%,
    rgba(192, 57, 43, 0.12) 0%,
    rgba(240, 68, 56, 0.05) 45%,
    transparent 70%);
  filter: blur(50px);
  animation: orbDrift2 32s ease-in-out infinite alternate;
}

/* Accent orb — indigo/violet, centre-right, adds depth */
.orb-3 {
  width: 500px; height: 500px;
  top: 35%; right: 5%;
  background: radial-gradient(circle at 50% 50%,
    rgba(99, 102, 241, 0.09) 0%,
    rgba(139, 92, 246, 0.04) 50%,
    transparent 70%);
  filter: blur(60px);
  animation: orbDrift3 40s ease-in-out infinite alternate;
}

/* Small hot orb — bottom-left, fast pulse */
.orb-4 {
  width: 320px; height: 320px;
  bottom: 25%; left: 5%;
  background: radial-gradient(circle at 50% 50%,
    rgba(249, 112, 102, 0.10) 0%,
    transparent 70%);
  filter: blur(35px);
  animation: orbDrift4 18s ease-in-out infinite alternate;
}

@keyframes orbDrift1 {
  from { transform: translate(0,    0)    scale(1);    }
  to   { transform: translate(160px, 120px) scale(1.18); }
}
@keyframes orbDrift2 {
  from { transform: translate(0,    0)    scale(1);    }
  to   { transform: translate(-120px, -100px) scale(0.82); }
}
@keyframes orbDrift3 {
  0%   { transform: translate(0,   0)   scale(1);    }
  50%  { transform: translate(-60px, 80px) scale(1.12); }
  100% { transform: translate(80px,-60px) scale(0.92); }
}
@keyframes orbDrift4 {
  from { transform: translate(0, 0) scale(1);    }
  to   { transform: translate(70px,-90px) scale(1.2); }
}

/* ── Animated Grid Lines ────────────────────────────────── */
.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(240, 68, 56, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 68, 56, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 85% 85% at 50% 50%,
    black 20%, transparent 80%);
  animation: gridPulse 8s ease-in-out infinite;
}

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

/* ── Hero Aurora ────────────────────────────────────────── */
/* Adds a slow sweeping glow behind the particle canvas */
.hero::before {
  animation: auroraShift 14s ease-in-out infinite alternate;
}

@keyframes auroraShift {
  0%   { background: radial-gradient(ellipse 80% 60% at 50% 40%,
           rgba(240,68,56,0.08) 0%, transparent 55%, var(--bg-0) 100%); }
  33%  { background: radial-gradient(ellipse 80% 60% at 40% 50%,
           rgba(240,68,56,0.10) 0%, transparent 55%, var(--bg-0) 100%); }
  66%  { background: radial-gradient(ellipse 80% 60% at 60% 35%,
           rgba(192,57,43,0.09) 0%, transparent 55%, var(--bg-0) 100%); }
  100% { background: radial-gradient(ellipse 80% 60% at 50% 45%,
           rgba(249,112,102,0.07) 0%, transparent 55%, var(--bg-0) 100%); }
}

/* ── Products Section: animated scan glow ──────────────── */
.products-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent          0%,
    rgba(240,68,56,0.04) 40%,
    rgba(240,68,56,0.06) 50%,
    rgba(240,68,56,0.04) 60%,
    transparent          100%
  );
  background-size: 100% 300%;
  animation: sectionScan 12s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

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

/* ── Card shimmer on hover ──────────────────────────────── */
.product-card,
.service-card,
.why-card {
  overflow: hidden;
}

.product-card::after,
.service-card::after,
.why-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(255, 255, 255, 0.04) 40%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.04) 60%,
    transparent 80%
  );
  background-size: 200% 100%;
  background-position: 200% 0;
  transition: background-position 0.6s ease;
  pointer-events: none;
  border-radius: inherit;
  z-index: 1;
}

.product-card:hover::after,
.service-card:hover::after,
.why-card:hover::after {
  background-position: -200% 0;
}

/* ── Floating ring shapes ───────────────────────────────── */
/* Ellipses so spinning is visually apparent */
.about-section::before {
  content: '';
  position: absolute;
  width: 420px; height: 200px;     /* ellipse — rotation is clearly visible */
  border: 2px solid rgba(240, 68, 56, 0.28);
  border-radius: 50%;
  top: 8%; right: -60px;
  pointer-events: none;
  box-shadow: 0 0 28px rgba(240,68,56,0.12),
              inset 0 0 20px rgba(240,68,56,0.06);
  animation: spinSlow 40s linear infinite;
}

.about-section::after {
  content: '';
  position: absolute;
  width: 200px; height: 100px;     /* smaller ellipse, opposite direction */
  border: 2px solid rgba(240, 68, 56, 0.22);
  border-radius: 50%;
  bottom: 12%; left: -30px;
  pointer-events: none;
  box-shadow: 0 0 20px rgba(240,68,56,0.10);
  animation: spinSlow 28s linear infinite reverse;
}

.why-section::after {
  content: '';
  position: absolute;
  width: 300px; height: 150px;     /* indigo accent ellipse */
  border: 2px solid rgba(99, 102, 241, 0.22);
  border-radius: 50%;
  top: 18%; right: 4%;
  pointer-events: none;
  box-shadow: 0 0 24px rgba(99,102,241,0.10);
  animation: spinSlow 36s linear infinite;
}

@keyframes spinSlow {
  from { transform: rotate(0deg);   }
  to   { transform: rotate(360deg); }
}

/* ── Services glow breathe ──────────────────────────────── */
.services-bg-gradient {
  animation: serviceGlow 8s ease-in-out infinite alternate;
}

@keyframes serviceGlow {
  from {
    opacity: 1;
    background: radial-gradient(ellipse 90% 70% at 50% 0%,
      rgba(240, 68, 56, 0.12) 0%,
      rgba(240, 68, 56, 0.04) 50%,
      transparent 70%);
  }
  to {
    opacity: 1;
    background: radial-gradient(ellipse 130% 110% at 50% 0%,
      rgba(240, 68, 56, 0.22) 0%,
      rgba(240, 68, 56, 0.08) 45%,
      transparent 70%);
  }
}

/* ── Light-mode orb adjustments ─────────────────────────── */
[data-theme="light"] .orb-1 {
  background: radial-gradient(circle at 50% 50%,
    rgba(240,68,56,0.07) 0%, transparent 70%);
}
[data-theme="light"] .orb-2 {
  background: radial-gradient(circle at 50% 50%,
    rgba(192,57,43,0.06) 0%, transparent 70%);
}
[data-theme="light"] .orb-3 {
  background: radial-gradient(circle at 50% 50%,
    rgba(99,102,241,0.05) 0%, transparent 70%);
}
[data-theme="light"] .orb-4 {
  background: radial-gradient(circle at 50% 50%,
    rgba(249,112,102,0.06) 0%, transparent 70%);
}
[data-theme="light"] .grid-lines {
  background-image:
    linear-gradient(rgba(28,25,23,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28,25,23,0.04) 1px, transparent 1px);
  background-size: 72px 72px;
}
[data-theme="light"] .product-card::after,
[data-theme="light"] .service-card::after,
[data-theme="light"] .why-card::after {
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(0,0,0,0.02) 40%,
    rgba(0,0,0,0.04) 50%,
    rgba(0,0,0,0.02) 60%,
    transparent 80%
  );
  background-size: 200% 100%;
  background-position: 200% 0;
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .orb, .grid-lines, .services-bg-gradient,
  .about-section::before, .about-section::after, .why-section::after,
  .products-section::after { animation: none; }
  .hero::before { animation: none; }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-2);
  background-color: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
svg { display: block; }

/* ── Focus Ring ────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── Container ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 3rem);
}

/* ── Utility ───────────────────────────────────────────── */
.text-center { text-align: center; }

.gradient-text {
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand) 60%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: var(--space-3);
  display: block;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-1);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.section-body {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-2);
  margin-bottom: var(--space-4);
}

/* ── Section Spacing ───────────────────────────────────── */
.section {
  padding-block: var(--space-24);
  position: relative;
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.625rem 1.375rem;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  transition: all var(--dur-base) var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 0 0 0 var(--brand-glow);
}

.btn-primary:hover {
  background: var(--brand-dark);
  box-shadow: 0 0 20px var(--brand-glow), 0 4px 12px rgba(240,68,56,0.3);
  transform: translateY(-1px);
}

.btn-primary:active { transform: translateY(0); }

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

.btn-ghost:hover {
  background: var(--bg-2);
  border-color: rgba(148,163,184,0.35);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-full { width: 100%; justify-content: center; }

/* ═══════════════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════════════ */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease);
  border-bottom: 1px solid transparent;
}

.nav-header.scrolled {
  background: var(--nav-scrolled-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 68px;
  gap: var(--space-8);
}

.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  /* Precisely tuned to render logo at #FF4743 */
  filter: brightness(0) saturate(100%) invert(35%) sepia(90%) saturate(2600%) hue-rotate(338deg) brightness(110%);
  transition: filter var(--dur-base) var(--ease), opacity var(--dur-base) var(--ease);
}

.logo-img:hover {
  filter: brightness(0) saturate(100%) invert(35%) sepia(90%) saturate(2600%) hue-rotate(338deg) brightness(130%);
}

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-1);
  margin-left: auto;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-1);
  background: var(--bg-2);
}

.nav-link.active { color: var(--brand-light); }

.nav-cta {
  margin-left: auto;
  display: none;
}

/* Hamburger */
.hamburger {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--text-1);
  border-radius: 2px;
  transition: all var(--dur-base) var(--ease);
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer */
.nav-drawer {
  position: fixed;
  top: 68px;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: var(--bg-1);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease);
  padding: var(--space-6);
  z-index: 99;
  overflow-y: auto;
}

.nav-drawer.open {
  transform: translateX(0);
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.drawer-link {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text-2);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  transition: color var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
}

.drawer-link:hover {
  color: var(--text-1);
  background: var(--bg-2);
}

/* Drawer overlay */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 98;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-slow) var(--ease);
}
.drawer-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ── Theme Toggle Button ────────────────────────────────── */
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--bg-1);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  cursor: pointer;
  transition: background var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease),
              color var(--dur-base) var(--ease),
              transform var(--dur-fast) var(--ease);
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--bg-2);
  border-color: var(--border-hover);
  color: var(--text-1);
  transform: rotate(15deg);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  transition: opacity var(--dur-fast) var(--ease),
              transform var(--dur-base) var(--ease);
}

/* Dark mode: show sun, hide moon */
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Light mode: show moon, hide sun */
[data-theme="light"] .theme-toggle .icon-sun  { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-cta   { display: inline-flex; }
  .hamburger { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 68px;
  overflow: hidden;
}

/* Particle Canvas */
#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.5;
}

/* Radial gradient vignette over canvas */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, transparent 30%, var(--bg-0) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Bottom fade */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg-0));
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding-block: var(--space-20);
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(240, 68, 56, 0.10);
  border: 1px solid rgba(240, 68, 56, 0.25);
  color: var(--brand-light);
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: var(--font-mono);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
  letter-spacing: 0.04em;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 8px var(--brand);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--brand); }
  50%       { opacity: 0.6; box-shadow: 0 0 16px var(--brand); }
}

.hero-headline {
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-1);
  margin-bottom: var(--space-6);
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.1875rem);
  line-height: 1.7;
  color: var(--text-2);
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Marquee Strip */
.marquee-strip {
  position: relative;
  z-index: 3;
  margin-top: auto;
  padding-block: var(--space-4);
  border-top: 1px solid var(--border);
  background: var(--marquee-bg);
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 2rem;
  white-space: nowrap;
  animation: marquee-left 28s linear infinite;
  width: max-content;
}

.marquee-track span {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.marquee-dot {
  color: var(--brand) !important;
  font-size: 0.4rem !important;
}

@keyframes marquee-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
═══════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease),
              transform var(--dur-slow) var(--ease);
  transition-delay: var(--delay, 0ms);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════════════════ */
.about-section {
  background: var(--bg-0);
}

.about-grid {
  display: grid;
  gap: var(--space-16);
  align-items: center;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
}

.about-content .section-title { margin-bottom: var(--space-6); }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.stat-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-6);
  text-align: center;
  transition: border-color var(--dur-base) var(--ease),
              transform var(--dur-base) var(--ease);
}

.stat-card:hover {
  border-color: rgba(240,68,56,0.3);
  transform: translateY(-3px);
}

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

.stat-suffix {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-3);
  margin-top: var(--space-2);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════
   PRODUCTS
═══════════════════════════════════════════════════════════ */
.products-section {
  background: var(--bg-0);
  position: relative;
}

/* Faint grid background */
.products-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, black 30%, transparent 80%);
  pointer-events: none;
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  position: relative;
}

@media (min-width: 640px) {
  .products-grid { grid-template-columns: 1fr 1fr; }
}

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

.product-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: transform var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease);
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-glow), transparent);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease);
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(240,68,56,0.2);
  box-shadow: 0 0 40px var(--card-glow, var(--brand-glow)),
              0 12px 40px rgba(0,0,0,0.5);
}

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

.product-icon-wrap {
  width: 52px;
  height: 52px;
  background: var(--icon-bg, rgba(240,68,56,0.1));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--icon-color, var(--brand));
  flex-shrink: 0;
}

.product-icon-wrap svg {
  width: 26px;
  height: 26px;
}

.product-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tag-color, var(--brand));
  background: color-mix(in srgb, var(--tag-color, var(--brand)) 12%, transparent);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  width: fit-content;
}

.product-name {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.product-desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-2);
  flex-grow: 1;
}

.product-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.product-features li {
  font-size: 0.875rem;
  color: var(--text-3);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.5;
}

.product-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.6;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-light);
  margin-top: auto;
  transition: gap var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease);
}

.product-link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--dur-fast) var(--ease);
}

.product-link:hover {
  color: var(--brand);
}

.product-link:hover svg {
  transform: translateX(4px);
}

/* ═══════════════════════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════════════════════ */
.services-section {
  position: relative;
  overflow: hidden;
}

.services-bg-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 80% at 50% 0%, rgba(240,68,56,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}

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

.service-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: border-color var(--dur-base) var(--ease),
              transform var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.service-card:hover {
  border-color: rgba(240,68,56,0.25);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 24px rgba(240,68,56,0.08);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: rgba(240, 68, 56, 0.10);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  margin-bottom: var(--space-2);
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.6;
  flex-grow: 1;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.service-list li {
  font-size: 0.875rem;
  color: var(--text-3);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.5;
}

.service-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--brand);
  opacity: 0.7;
  font-size: 0.75rem;
  top: 0.05em;
}

/* ═══════════════════════════════════════════════════════════
   WHY US
═══════════════════════════════════════════════════════════ */
.why-section {
  background: var(--bg-0);
  position: relative;
}

/* Diagonal line accent */
.why-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, rgba(240,68,56,0.4), transparent);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-12);
}

@media (min-width: 640px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
}

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

.why-card {
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  background: var(--bg-1);
  border: 1px solid var(--border);
  transition: border-color var(--dur-base) var(--ease),
              transform var(--dur-base) var(--ease);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.why-card:hover {
  border-color: rgba(240,68,56,0.25);
  transform: translateY(-3px);
}

.why-icon {
  width: 44px;
  height: 44px;
  background: rgba(240,68,56,0.10);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
}

.why-icon svg {
  width: 22px;
  height: 22px;
}

.why-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.01em;
}

.why-card p {
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════════════ */
.contact-section {
  background: var(--bg-0);
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(240,68,56,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  gap: var(--space-12);
  align-items: start;
}

@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 380px; }
}

/* Form */
.contact-form-wrap {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-8);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form-row {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 600px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-2);
}

.form-group label span {
  color: var(--brand);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text-1);
  transition: border-color var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease);
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2364748B'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 20px;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-group select option {
  background: var(--bg-2);
  color: var(--text-1);
}

.form-group textarea { resize: vertical; min-height: 110px; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(240,68,56,0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-3);
}

/* Validation */
.form-group input.error,
.form-group textarea.error {
  border-color: var(--brand);
  animation: shake 0.4s var(--ease);
}

.field-error {
  font-size: 0.8125rem;
  color: var(--brand-light);
  min-height: 1em;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60%  { transform: translateX(-6px); }
  40%, 80%  { transform: translateX(6px); }
}

.form-submit-error {
  font-size: 0.875rem;
  color: #ef4444;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  text-align: center;
  line-height: 1.5;
}

.form-note {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-3);
  margin-top: var(--space-2);
}

/* Success */
.form-success {
  text-align: center;
  padding: var(--space-12) var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.success-icon {
  width: 64px;
  height: 64px;
  background: rgba(240,68,56,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
}

.success-icon svg { width: 32px; height: 32px; }

.form-success h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-1);
}

.form-success p {
  color: var(--text-2);
  max-width: 400px;
  line-height: 1.6;
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  transition: border-color var(--dur-base) var(--ease);
}

.info-card:hover {
  border-color: rgba(240,68,56,0.25);
}

.info-icon {
  width: 40px;
  height: 40px;
  background: rgba(240,68,56,0.10);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  flex-shrink: 0;
}

.info-icon svg { width: 20px; height: 20px; }

.info-card h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
  margin-bottom: var(--space-1);
}

.info-card p,
.info-card a {
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.5;
}

.info-card a:hover { color: var(--brand-light); }

.social-links {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.social-link {
  width: 40px;
  height: 40px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  transition: color var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease),
              background var(--dur-base) var(--ease);
}

.social-link svg { width: 18px; height: 18px; }

.social-link:hover {
  color: var(--text-1);
  border-color: rgba(240,68,56,0.3);
  background: var(--bg-2);
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.footer {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  padding-top: var(--space-16);
  padding-bottom: var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-brand .nav-logo {
  display: inline-flex;
  margin-bottom: var(--space-4);
}

.footer-logo-img {
  height: 48px !important;
  filter: brightness(0) saturate(100%) invert(35%) sepia(90%) saturate(2600%) hue-rotate(338deg) brightness(110%);
}

.footer-brand p {
  font-size: 0.9375rem;
  color: var(--text-3);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: var(--space-3);
}

.footer-location {
  display: flex !important;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8125rem !important;
  color: var(--text-3) !important;
  font-family: var(--font-mono);
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-1);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
  margin-bottom: var(--space-4);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col a {
  font-size: 0.9375rem;
  color: var(--text-3);
  transition: color var(--dur-fast) var(--ease);
}

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

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

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

.footer-bottom a {
  color: var(--brand-light);
  transition: color var(--dur-fast) var(--ease);
}

.footer-bottom a:hover { color: var(--brand); }

.footer-legal {
  display: flex;
  gap: var(--space-6);
}

.footer-legal a {
  font-size: 0.875rem;
  color: var(--text-3);
  transition: color var(--dur-fast) var(--ease);
}

.footer-legal a:hover { color: var(--text-2); }

/* ═══════════════════════════════════════════════════════════
   SCROLL TO TOP BUTTON
═══════════════════════════════════════════════════════════ */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  transition: all var(--dur-base) var(--ease);
  z-index: 50;
  box-shadow: var(--shadow-md);
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.scroll-top svg { width: 18px; height: 18px; }

/* ═══════════════════════════════════════════════════════════
   THEME TRANSITION
   Smooth color shift when switching light ↔ dark
═══════════════════════════════════════════════════════════ */
body,
.nav-header,
.nav-drawer,
.product-card,
.service-card,
.why-card,
.stat-card,
.info-card,
.contact-form-wrap,
.footer,
.scroll-top,
.theme-toggle {
  transition: background-color var(--dur-slow) var(--ease),
              border-color var(--dur-slow) var(--ease),
              color var(--dur-slow) var(--ease);
}

/* ── Light Mode: card depth via subtle shadows ──────────── */
[data-theme="light"] .product-card,
[data-theme="light"] .service-card,
[data-theme="light"] .why-card,
[data-theme="light"] .stat-card {
  box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.04);
}

[data-theme="light"] .product-card:hover,
[data-theme="light"] .service-card:hover,
[data-theme="light"] .why-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.10), 0 0 0 1px rgba(240,68,56,0.15);
}

[data-theme="light"] .contact-form-wrap,
[data-theme="light"] .info-card {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Particle canvas opacity in light mode */
[data-theme="light"] #particle-canvas {
  opacity: 0.3;
}

/* Hero gradient adapts via --bg-0 but needs border tweak */
[data-theme="light"] .marquee-strip {
  border-top-color: var(--border);
}

/* Select dropdown caret in light mode */
[data-theme="light"] .form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2344403C'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E");
}

/* Footer brand text color in light mode */
[data-theme="light"] .footer-brand p { color: var(--text-2); }
