/* ============================================================
   DOXA SUPPLY CO – ULTRA-MODERN TECH STUDIO DESIGN SYSTEM
   - Display Typography: Plus Jakarta Sans / Instrument Sans
   - Body Typography: Inter
   - Monospace: JetBrains Mono
   - Sleek Dark / Light Modes with Fluid Transitions
   - Honey Gold (#ffc700) & Electric Cyan (#00e5ff) Accents
   - Glassmorphic Floating Island Navbar & Bento Grids
   - Interactive Project Cost & Scope Estimator
   - Interactive 3D Architecture Canvas Engine
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ---------- THEME VARIABLES ---------- */
:root,
[data-theme="dark"] {
  --theme-mode: dark;
  --bg-base: #08090d;
  --bg-surface: #0e121a;
  --bg-surface-elevated: #151a26;
  --bg-card: rgba(16, 21, 31, 0.72);
  --bg-card-hover: rgba(22, 29, 43, 0.88);
  --bg-card-solid: #121722;
  --bg-glass: rgba(10, 13, 19, 0.78);
  --bg-input: rgba(12, 16, 24, 0.85);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #8492a6;
  --text-dim: #4f5b6e;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-glow: rgba(255, 199, 0, 0.35);
  --border-cyan-glow: rgba(0, 229, 255, 0.35);

  --accent-gold: #ffc700;
  --accent-gold-hover: #ffd633;
  --accent-gold-dim: rgba(255, 199, 0, 0.12);
  --accent-gold-gradient: linear-gradient(135deg, #ffc700 0%, #ff9800 100%);
  --accent-gold-text: #08090d;

  --accent-cyan: #00e5ff;
  --accent-cyan-dim: rgba(0, 229, 255, 0.12);
  --accent-cyan-hover: #38bdf8;

  --accent-green: #10b981;
  --accent-green-dim: rgba(16, 185, 129, 0.14);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 32px -4px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 24px 50px -10px rgba(0, 0, 0, 0.8);
  --shadow-gold: 0 0 32px rgba(255, 199, 0, 0.22);
  --shadow-cyan: 0 0 32px rgba(0, 229, 255, 0.18);

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --font-display: 'Plus Jakarta Sans', 'Instrument Sans', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --theme-mode: light;
  --bg-base: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: #ffffff;
  --bg-card-solid: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-input: #f1f5f9;

  --text-primary: #090d16;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-dim: #94a3b8;

  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-medium: rgba(15, 23, 42, 0.15);
  --border-glow: rgba(217, 119, 6, 0.45);
  --border-cyan-glow: rgba(2, 132, 199, 0.45);

  --accent-gold: #d97706;
  --accent-gold-hover: #b45309;
  --accent-gold-dim: rgba(217, 119, 6, 0.1);
  --accent-gold-gradient: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  --accent-gold-text: #ffffff;

  --accent-cyan: #0284c7;
  --accent-cyan-dim: rgba(2, 132, 199, 0.1);
  --accent-cyan-hover: #0369a1;

  --accent-green: #059669;
  --accent-green-dim: rgba(5, 150, 105, 0.12);

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 32px -4px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 50px -10px rgba(15, 23, 42, 0.12);
  --shadow-gold: 0 0 32px rgba(217, 119, 6, 0.15);
  --shadow-cyan: 0 0 32px rgba(2, 132, 199, 0.15);
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  font-size: 16px;
  background-color: var(--bg-base);
  color-scheme: dark light;
}

body {
  font-family: var(--font-body);
  color: var(--text-secondary);
  background-color: var(--bg-base);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
  position: relative;
}

/* Subtle ambient background glow mesh */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: 
    radial-gradient(circle at 15% 15%, rgba(255, 199, 0, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(0, 229, 255, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 50% 85%, rgba(16, 185, 129, 0.03) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

img, video {
  display: block;
  max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* ---------- LAYOUT UTILITIES ---------- */
.container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.full-width { width: 100%; }

/* Section Header Typography */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-gold);
  background: var(--accent-gold-dim);
  border: 1px solid var(--border-glow);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}

.section-tag.cyan {
  color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
  border-color: var(--border-cyan-glow);
}

.section-heading {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

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

.section-subtitle {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.7;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.btn-gold {
  background: var(--accent-gold-gradient);
  color: var(--accent-gold-text);
  box-shadow: 0 4px 20px rgba(255, 199, 0, 0.28);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 199, 0, 0.42);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--accent-gold);
  border: 1px solid var(--border-glow);
}

.btn-outline:hover {
  background: var(--accent-gold-dim);
  border-color: var(--accent-gold);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}

.btn-arrow-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.btn:hover .btn-arrow-chip {
  transform: translateX(3px);
}

/* Pulsing Dots */
.live-pulse-dot,
.pill-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-green);
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ---------- FLOATING ISLAND NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition-smooth);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 22px;
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

.navbar.scrolled .nav-container {
  border-color: var(--border-medium);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.logo-symbol {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(255, 199, 0, 0.2);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.logo:hover .logo-symbol {
  transform: scale(1.05);
  border-color: var(--accent-gold);
  box-shadow: 0 4px 18px rgba(255, 199, 0, 0.35);
}

.logo-symbol img,
.logo-symbol svg {
  width: 24px;
  height: 24px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  border-radius: var(--radius-full);
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Theme Toggle Pill */
.theme-switch-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 64px;
  height: 32px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  padding: 3px;
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
}

.theme-switch-pill:hover {
  border-color: var(--accent-gold);
}

.theme-icon-moon,
.theme-icon-sun {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  z-index: 2;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.theme-slider-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

[data-theme="dark"] .theme-slider-knob {
  transform: translateX(0);
}

[data-theme="light"] .theme-slider-knob {
  transform: translateX(32px);
}

[data-theme="dark"] .theme-icon-moon {
  color: var(--accent-gold-text);
}

[data-theme="light"] .theme-icon-sun {
  color: var(--accent-gold-text);
}

.nav-drawer-cta {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 6px;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-medium);
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Drawer & Responsive Header */
@media (max-width: 960px) {
  .navbar {
    top: 10px;
    padding: 0 10px;
  }

  .nav-container {
    padding: 8px 12px;
    gap: 8px;
    width: 100%;
    max-width: 100%;
  }

  .logo {
    font-size: 0.98rem;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .logo-symbol {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .logo-symbol img,
  .logo-symbol svg {
    width: 20px;
    height: 20px;
  }

  .nav-right {
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
  }

  .nav-cta-desktop {
    display: none !important;
  }

  .theme-switch-pill {
    width: 50px;
    height: 28px;
    padding: 2px;
  }

  .theme-slider-knob {
    width: 22px;
    height: 22px;
  }

  [data-theme="light"] .theme-slider-knob {
    transform: translateX(22px);
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    width: 100%;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
    flex-direction: column;
    padding: 16px 14px;
    gap: 8px;
    display: none;
    z-index: 1001;
  }

  .nav-links.open {
    display: flex;
    animation: drawerDrop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-links a {
    font-size: 1.05rem;
    font-weight: 600;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    width: 100%;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav-links a:last-of-type {
    border-bottom: none;
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: var(--accent-gold);
    background: var(--accent-gold-dim);
  }

  .nav-drawer-cta {
    display: flex !important;
    width: 100%;
    justify-content: center;
    margin-top: 6px;
    padding: 13px 20px;
    font-size: 0.96rem;
  }
}

@keyframes drawerDrop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 1. HERO SECTION ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 130px;
  padding-bottom: 70px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
  filter: saturate(1.2) contrast(1.1);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 60% 40%, transparent 10%, var(--bg-base) 80%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 50px;
}

.hero-left {
  max-width: 660px;
}

.hero-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glow);
  padding: 7px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.hero h1 {
  font-size: clamp(2.8rem, 5.2vw, 4.3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 22px;
}

.hero-lead {
  font-size: 1.16rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 34px;
}

.hero-lead strong {
  color: var(--text-primary);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* 3D Interactive Stage */
.hero-3d-stage {
  perspective: 1200px;
}

.hero-3d-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-lg), var(--shadow-cyan);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease-out, border-color 0.3s ease;
}

.hero-3d-card:hover {
  border-color: var(--border-cyan-glow);
}

.hero-3d-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
}

.hero-3d-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent-gold);
  background: var(--accent-gold-dim);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glow);
  white-space: nowrap;
}

.hero-3d-chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.hero-3d-canvas-wrap {
  width: 100%;
  height: 310px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
}

.hero-3d-canvas-wrap:active {
  cursor: grabbing;
}

#hero3dCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-3d-telemetry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.tel-item {
  text-align: center;
}

.tel-item strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-primary);
}

.tel-item span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Floating Hero Stats Bar */
.hero-stats-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 24px 36px;
  box-shadow: var(--shadow-md);
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}

.hero-stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -12px;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--border-subtle);
}

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

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

.stat-number.cyan {
  color: var(--accent-cyan);
}

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

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .hero-stat-item:nth-child(2)::after {
    display: none;
  }
}

/* ---------- 2. INFINITE MARQUEE TICKER ---------- */
.marquee-section {
  padding: 28px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  position: relative;
}

.marquee-title {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.marquee-wrapper {
  display: flex;
  overflow: hidden;
  user-select: none;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-track {
  display: flex;
  gap: 20px;
  animation: scroll-marquee 32s linear infinite;
  white-space: nowrap;
}

.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.marquee-badge:hover {
  color: var(--text-primary);
  border-color: var(--accent-gold);
  transform: translateY(-1px);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-gold);
}

@keyframes scroll-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- 3. STUDIO PHILOSOPHY (BENTO GRID) ---------- */
.about {
  padding: 100px 0;
  position: relative;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.bento-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px 30px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.bento-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.bento-card.span-2 {
  grid-column: span 2;
}

.bento-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--accent-gold-dim);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  margin-bottom: 22px;
}

.bento-icon-box.cyan {
  background: var(--accent-cyan-dim);
  border-color: var(--border-cyan-glow);
  color: var(--accent-cyan);
}

.bento-card h3 {
  font-size: 1.45rem;
  margin-bottom: 12px;
}

.bento-card p {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

.bento-metrics-strip {
  display: flex;
  gap: 24px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.bento-metric-col strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.bento-metric-col span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

@media (max-width: 960px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-card.span-2 {
    grid-column: span 1;
  }
}

/* ---------- 4. INTERACTIVE PROJECT COST & SCOPE ESTIMATOR ---------- */
.estimator-section {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-surface) 50%, var(--bg-base) 100%);
  position: relative;
}

.estimator-wrapper {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 36px;
  margin-top: 48px;
  align-items: flex-start;
}

.estimator-controls {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.estimator-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.estimator-group-title h3 {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-num-pill {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-gold);
  color: var(--accent-gold-text);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Platform Base Selector Cards */
.base-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.base-option-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.base-option-card:hover {
  border-color: var(--border-medium);
  background: var(--bg-card-hover);
}

.base-option-card.selected {
  border-color: var(--accent-gold);
  background: rgba(255, 199, 0, 0.05);
  box-shadow: 0 0 20px rgba(255, 199, 0, 0.15);
}

.base-option-card .select-radio-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-medium);
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.base-option-card.selected .select-radio-circle {
  border-color: var(--accent-gold);
}

.base-option-card.selected .select-radio-circle::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-gold);
}

.base-option-card h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  padding-right: 28px;
}

.base-option-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.base-price-tag {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-gold);
}

/* Add-On Feature Checklist */
.addon-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.addon-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: var(--transition-fast);
}

.addon-card:hover {
  border-color: var(--border-medium);
}

.addon-card.selected {
  border-color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.05);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.12);
}

.addon-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 1.5px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: var(--transition-fast);
}

.addon-card.selected .addon-checkbox {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: #08090d;
}

.addon-info {
  flex-grow: 1;
}

.addon-info h5 {
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.addon-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 6px;
}

.addon-price {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

/* Estimator Live Summary Card (Sticky) */
.estimator-summary-card {
  position: sticky;
  top: 110px;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  box-shadow: var(--shadow-lg), var(--shadow-gold);
}

.summary-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.summary-header h4 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.summary-header p {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.price-display-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  margin-bottom: 24px;
}

.price-display-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-bottom: 4px;
}

.price-display-amount {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1;
  margin-bottom: 8px;
}

.price-display-sla {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-green);
  background: var(--accent-green-dim);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.summary-breakdown {
  margin-bottom: 24px;
}

.summary-breakdown h5 {
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
  margin-bottom: 12px;
}

.breakdown-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 160px;
  overflow-y: auto;
}

.breakdown-pill {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breakdown-pill .remove-icon {
  cursor: pointer;
  color: var(--text-muted);
}

.breakdown-pill .remove-icon:hover {
  color: #ef4444;
}

@media (max-width: 960px) {
  .estimator-wrapper {
    grid-template-columns: 1fr;
  }
  .base-options-grid,
  .addon-options-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- 5. FEATURED PLATFORMS & LIVE CASE STUDIES ---------- */
.projects {
  padding: 100px 0;
  position: relative;
}

.portfolio-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 36px 0 48px;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.filter-btn.active {
  background: var(--accent-gold);
  color: var(--accent-gold-text);
  border-color: var(--accent-gold);
  box-shadow: 0 4px 16px rgba(255, 199, 0, 0.28);
}

/* Case Study Showcase List */
/* ============================================================
   PORTFOLIO 2-COLUMN GRID (SPACE-SAVING & ULTRA-MODERN)
   ============================================================ */
.projects-case-studies {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.case-study {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 24px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.case-study:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  transform: translateY(-4px);
}

.case-study-image-col {
  width: 100%;
  margin-bottom: 18px;
}

/* Browser Window Preview */
.case-platform-preview {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}

.platform-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-subtle);
  gap: 8px;
}

.window-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.window-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

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

.window-url-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--bg-base);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 180px;
}

.window-status-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-green);
  text-transform: uppercase;
  flex-shrink: 0;
}

.case-image-wrap {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
  background: #000;
}

.case-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-study:hover .case-image {
  transform: scale(1.04);
}

/* Telemetry Strip below preview */
.ui-telemetry-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 10px 14px;
  background: var(--bg-surface-elevated);
  border-top: 1px solid var(--border-subtle);
  gap: 6px;
}

.ui-tel-item {
  text-align: center;
}

.ui-tel-item strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-primary);
}

.ui-tel-item span {
  font-size: 0.68rem;
  color: var(--text-muted);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Case Study Content */
.case-study-info-col {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.case-study-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-green);
  background: var(--accent-green-dim);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.case-url {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.case-study h3 {
  font-size: 1.45rem;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.case-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.case-detail-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.case-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  gap: 8px;
}

.case-detail-label {
  color: var(--text-muted);
}

.case-detail-val {
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-align: right;
  word-break: break-word;
}

.case-detail-val.live-text {
  color: var(--accent-green);
}

.btn-card-visit {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

.btn-text-short {
  display: none;
}

.btn-text-full {
  display: inline;
}

/* ---------- 6. SOUTH AFRICAN FINTECH & LOGISTICS ECOSYSTEM ---------- */
.ecosystem-section {
  padding: 80px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.ecosystem-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
  transition: var(--transition-fast);
}

.ecosystem-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.ecosystem-card h5 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.ecosystem-card span {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

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

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

/* ---------- 7. PACKAGES & TRANSPARENT PRICING ---------- */
.services {
  padding: 100px 0;
  position: relative;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.package-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-smooth);
}

.package-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.package-card.popular {
  border-color: var(--accent-gold);
  background: var(--bg-card-solid);
  box-shadow: var(--shadow-gold);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 28px;
  background: var(--accent-gold);
  color: var(--accent-gold-text);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: var(--radius-full);
}

.package-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.package-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
}

.package-sla-pill {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.package-card h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.package-summary {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 22px;
}

.package-pricing-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.package-price-val {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.package-price-type {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.package-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
  flex-grow: 1;
}

.package-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.check-icon {
  color: var(--accent-green);
  flex-shrink: 0;
  margin-top: 2px;
}

.btn-package {
  width: 100%;
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  padding: 12px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.92rem;
  text-align: center;
  transition: var(--transition-fast);
}

.btn-package:hover,
.package-card.popular .btn-package {
  background: var(--accent-gold-gradient);
  color: var(--accent-gold-text);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(255, 199, 0, 0.28);
}

/* Custom platform quote banner */
.custom-quote-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  margin-top: 48px;
}

.custom-quote-banner h4 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.custom-quote-banner p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 24px;
}

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

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

/* ---------- 8. ACCORDION FAQ ---------- */
.faq-section {
  padding: 100px 0;
  position: relative;
}

.faq-container {
  max-width: 820px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-card:hover {
  border-color: var(--border-medium);
}

.faq-card.open {
  border-color: var(--border-glow);
  background: var(--bg-surface);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

.faq-chevron {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--accent-gold);
  transition: transform 0.25s ease;
}

.faq-card.open .faq-chevron {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
  padding: 0 24px;
}

.faq-card.open .faq-answer {
  max-height: 300px;
  padding: 0 24px 22px 24px;
}

.faq-answer p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ---------- 9. CONTACT & QUOTATION ---------- */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-surface) 100%);
  position: relative;
}

.cta-wrapper {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: flex-start;
}

.cta-text-side h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 18px;
}

.cta-text-side p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 32px;
}

.cta-contact-points {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cta-point {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  transition: var(--transition-fast);
}

.cta-point:hover {
  border-color: var(--accent-gold);
}

.cta-point-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-gold-dim);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  flex-shrink: 0;
}

.cta-point strong {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-bottom: 2px;
}

.cta-point a,
.cta-point div {
  font-size: 0.96rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* Quote Form Card */
.cta-form-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group.full {
  margin-bottom: 20px;
}

.form-group label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-display);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 12px rgba(255, 199, 0, 0.2);
}

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

@media (max-width: 960px) {
  .cta-wrapper {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- 10. FOOTER ---------- */
.footer {
  background: var(--bg-surface-elevated);
  border-top: 1px solid var(--border-subtle);
  padding: 70px 0 30px;
  position: relative;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 14px;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-family: var(--font-display);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.88rem;
  color: var(--text-muted);
}

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

.footer-contact-item {
  margin-bottom: 12px;
  font-size: 0.86rem;
}

.footer-contact-item strong {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.footer-contact-item a,
.footer-contact-item span {
  color: var(--text-secondary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 960px) {
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

/* ---------- 11. FLOATING WHATSAPP PILL ---------- */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.floating-whatsapp:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55);
}

/* Animations */
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- 12. COMPREHENSIVE MOBILE LAYOUT REFINEMENTS ---------- */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
    width: 100%;
    max-width: 100%;
  }

  .nav-container {
    overflow: visible !important;
  }

  /* Hero Section */
  .hero {
    min-height: auto;
    padding-top: 88px;
    padding-bottom: 40px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 36px;
  }

  .hero-left {
    max-width: 100%;
  }

  .hero-eyebrow-pill {
    font-size: 0.74rem;
    padding: 6px 12px;
    white-space: normal;
    text-align: left;
    line-height: 1.35;
    margin-bottom: 16px;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 7.8vw, 2.75rem);
    letter-spacing: -0.035em;
    line-height: 1.12;
    margin-bottom: 16px;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .hero-lead {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 24px;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 0.98rem;
  }

  /* 3D Canvas Card */
  .hero-3d-card {
    padding: 16px 14px;
    border-radius: var(--radius-lg);
  }

  .hero-3d-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .hero-3d-canvas-wrap {
    height: 230px;
  }

  .hero-3d-telemetry {
    gap: 6px;
  }

  .tel-item strong {
    font-size: 0.8rem;
  }

  .tel-item span {
    font-size: 0.68rem;
  }

  /* Stats Card */
  .hero-stats-card {
    padding: 18px 16px;
    border-radius: var(--radius-lg);
  }

  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .hero-stat-item:nth-child(1)::after,
  .hero-stat-item:nth-child(2)::after,
  .hero-stat-item:nth-child(3)::after {
    display: none;
  }

  .stat-number {
    font-size: 1.85rem;
  }

  .stat-label {
    font-size: 0.78rem;
  }

  /* Global Section Headings */
  .section-heading {
    font-size: clamp(1.8rem, 6.5vw, 2.3rem);
    line-height: 1.15;
    word-break: break-word;
  }

  .section-subtitle {
    font-size: 0.98rem;
    line-height: 1.6;
  }

  /* Floating WhatsApp */
  .floating-whatsapp {
    bottom: 16px;
    right: 14px;
    padding: 9px 15px;
    font-size: 0.82rem;
  }

  /* Portfolio Filter Touch Scroll */
  .portfolio-filter-bar {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 4px 2px 14px;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 20px 0 24px;
  }
  .portfolio-filter-bar::-webkit-scrollbar {
    display: none;
  }
  .filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 7px 14px;
    font-size: 0.78rem;
  }

  /* 2 CARDS PER ROW MOBILE AS REQUESTED */
  .projects-case-studies {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .case-study {
    padding: 10px !important;
    border-radius: var(--radius-md) !important;
    height: 100%;
  }

  .case-study-image-col {
    margin-bottom: 8px !important;
  }

  .platform-window-bar {
    padding: 5px 8px !important;
  }

  .window-dots {
    gap: 3px !important;
  }

  .window-dots .dot {
    width: 6px !important;
    height: 6px !important;
  }

  .window-url-pill {
    font-size: 0.62rem !important;
    padding: 2px 6px !important;
    max-width: 90px !important;
  }

  .window-url-pill svg {
    width: 9px !important;
    height: 9px !important;
  }

  .window-status-tag {
    display: none !important;
  }

  .case-image-wrap {
    height: 110px !important;
  }

  .ui-telemetry-strip {
    display: none !important;
  }

  .case-study-header {
    gap: 4px !important;
    margin-bottom: 4px !important;
  }

  .live-badge {
    font-size: 0.62rem !important;
    padding: 2px 6px !important;
  }

  .live-badge .live-pulse-dot {
    width: 5px !important;
    height: 5px !important;
  }

  .case-url {
    display: none !important;
  }

  .case-study h3 {
    font-size: 0.95rem !important;
    margin-bottom: 4px !important;
    line-height: 1.15 !important;
  }

  .case-desc {
    font-size: 0.72rem !important;
    line-height: 1.35 !important;
    margin-bottom: 8px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .case-detail-rows {
    display: none !important;
  }

  .btn-text-full {
    display: none !important;
  }

  .btn-text-short {
    display: inline !important;
  }

  .btn-card-visit {
    padding: 8px 8px !important;
    font-size: 0.75rem !important;
    gap: 4px !important;
  }

  .btn-card-visit .btn-arrow-chip {
    width: 16px !important;
    height: 16px !important;
  }

  /* 5th card spans 2 columns as a wide featured card */
  .case-study:nth-child(5) {
    grid-column: span 2;
  }

  .case-study:nth-child(5) .case-image-wrap {
    height: 130px !important;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.15rem;
  }

  .stat-number {
    font-size: 1.65rem;
  }

  .hero-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}
