/* ============================================================
   SACKS SOFTWARE LABS — SITE V2 DESIGN SYSTEM
   A professional, modern CSS foundation with dark mode support
   ============================================================ */

/* ---------- DESIGN TOKENS (CSS Custom Properties) ---------- */
:root {
  /* Brand Colors */
  --brand-blue: #00A9E0;
  --brand-blue-light: #33BFEA;
  --brand-blue-dark: #0087B3;
  --brand-green: #93D900;
  --brand-green-light: #A8E333;
  --brand-green-dark: #76AD00;
  --brand-teal: #0d9488;
  --brand-teal-dark: #115e59;

  /* Neutral Palette */
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;
  --gray-950: #020617;

  /* Semantic Colors */
  --color-text: var(--gray-900);
  --color-text-secondary: var(--gray-600);
  --color-text-muted: var(--gray-400);
  --color-bg: #FFFFFF;
  --color-bg-alt: var(--gray-50);
  --color-bg-elevated: #FFFFFF;
  --color-border: var(--gray-200);
  --color-border-hover: var(--gray-300);
  --color-accent: var(--brand-blue);
  --color-accent-hover: var(--brand-blue-dark);
  --color-success: var(--brand-green);

  /* Glass Effect */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);

  /* Typography */
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-display: 'DM Sans', sans-serif;

  /* Type Scale (fluid) */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: clamp(1.5rem, 3vw, 1.875rem);
  --text-4xl: clamp(1.875rem, 4vw, 2.25rem);
  --text-5xl: clamp(2rem, 5vw, 3rem);
  --text-6xl: clamp(2.25rem, 6vw, 3.75rem);

  /* Spacing (8px grid) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  --shadow-glow-blue: 0 0 20px rgba(0, 169, 224, 0.15);
  --shadow-glow-green: 0 0 20px rgba(147, 217, 0, 0.15);

  /* Borders */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;
  --duration-slower: 600ms;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 800px;
  --header-height: 72px;
}

/* ---------- DARK MODE ---------- */
[data-theme="dark"] {
  --color-text: var(--gray-100);
  --color-text-secondary: var(--gray-400);
  --color-text-muted: var(--gray-500);
  --color-bg: var(--gray-950);
  --color-bg-alt: var(--gray-900);
  --color-bg-elevated: var(--gray-800);
  --color-border: var(--gray-700);
  --color-border-hover: var(--gray-600);
  --glass-bg: rgba(15, 23, 42, 0.8);
  --glass-border: rgba(51, 65, 85, 0.5);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
  --shadow-glow-blue: 0 0 30px rgba(0, 169, 224, 0.2);
  --shadow-glow-green: 0 0 30px rgba(147, 217, 0, 0.2);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color var(--duration-slow) var(--ease-out), color var(--duration-slow) var(--ease-out);
  max-width: 100vw;
}

img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--color-accent); text-decoration: none; transition: color var(--duration-fast); }
a:hover { color: var(--color-accent-hover); }

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

p { max-width: 65ch; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- CONTAINER ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-narrow {
  max-width: var(--container-narrow);
}

/* ---------- SECTION ---------- */
.section {
  padding: var(--space-20) 0;
  position: relative;
}

.section-alt {
  background-color: var(--color-bg-alt);
}

.section-title {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-green));
  border-radius: var(--radius-full);
  margin-top: var(--space-3);
}

.section-title-center {
  text-align: center;
}

.section-title-center::after {
  margin-left: auto;
  margin-right: auto;
}

.section-intro {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 60ch;
  margin-bottom: var(--space-12);
}

.section-intro-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- HEADER ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--glass-border);
  transition: all var(--duration-base) var(--ease-out);
  width: 100%;
  box-sizing: border-box;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: var(--space-4) 0;
  gap: var(--space-8);
}

.site-header .container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 
    0 0 30px rgba(0, 169, 224, 0.3),
    0 0 60px rgba(147, 217, 0, 0.2),
    var(--shadow-lg);
}

.logo-video,
.logo-img {
  width: 280px;
  height: 116px;
  display: block;
  border-radius: 0;
  object-fit: cover;
  object-position: center 50%;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav a {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast);
  white-space: nowrap;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--color-text);
  background: var(--color-bg-alt);
}

.nav a[aria-current="page"] {
  color: var(--brand-blue);
  font-weight: 600;
}

/* Theme Toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text-secondary);
  transition: all var(--duration-fast);
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  background: var(--color-bg-alt);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .icon-moon,
[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}

/* Mobile Nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--duration-base) var(--ease-out);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  .site-header .container {
    padding: 0;
  }
  
  .header-inner {
    padding: var(--space-2) var(--space-3);
    justify-content: center;
    gap: var(--space-3);
    min-height: auto;
  }
  
  .theme-toggle {
    position: absolute;
    left: var(--space-3);
    order: 1;
  }
  
  .nav-toggle {
    position: absolute;
    right: var(--space-3);
    order: 3;
  }
  
  .logo {
    height: auto;
    order: 2;
    margin: 0;
  }
  
  .logo-video, .logo-img {
    width: 450px;
    height: 80px;
    max-width: 80vw;
  }
  
  .about-image { max-width: 100%; width: 100%; }
  
  .nav-toggle { 
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    max-width: 280px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    flex-direction: column;
    gap: 0;
    margin-top: var(--space-2);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: var(--space-3) var(--space-4);
    color: var(--color-text);
    text-decoration: none;
    font-size: var(--text-base);
    display: block;
    border-bottom: 1px solid var(--color-border);
    transition: all var(--duration-fast);
    font-weight: 500;
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .nav a:hover {
    background: var(--color-bg-alt);
    color: var(--brand-blue);
    padding-left: calc(var(--space-4) + var(--space-2));
  }

  .nav-overlay {
    display: none !important;
  }

  .nav-overlay.is-visible {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.2) !important;
    z-index: 999 !important;
    pointer-events: auto !important;
  }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.4;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  text-decoration: none;
  transition: all var(--duration-base) var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  color: #fff;
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-md), var(--shadow-glow-blue);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-blue-light), var(--brand-blue));
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg), var(--shadow-glow-blue);
  color: #fff;
}

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

.btn-secondary {
  background: var(--color-bg);
  color: var(--color-text);
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  background: var(--color-bg-alt);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
  border-color: transparent;
}

.btn-ghost:hover {
  color: var(--color-text);
  background: var(--color-bg-alt);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

/* ---------- CARDS ---------- */
.card {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: all var(--duration-base) var(--ease-out);
  position: relative;
}

.card:hover {
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-lg), var(--shadow-glow-blue);
  transform: translateY(-2px);
}

.card-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
}

.card-glass:hover {
  border-color: rgba(0, 169, 224, 0.3);
  box-shadow: var(--shadow-xl), var(--shadow-glow-blue);
}

.card-gradient-border {
  border: none;
  background: var(--color-bg-elevated);
  position: relative;
}

.card-gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-green));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-out);
}

.card-gradient-border:hover::before {
  opacity: 1;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-height) + var(--space-16)) 0 var(--space-20);
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-bg::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 169, 224, 0.12) 0%, transparent 70%);
  top: -100px;
  right: -150px;
  animation: float-slow 20s ease-in-out infinite;
}

.hero-bg::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(147, 217, 0, 0.08) 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
  animation: float-slow 25s ease-in-out infinite reverse;
}

@keyframes float-slow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}

@media (min-width: 768px) {
  .nav {
    position: static;
    width: auto;
    transform: none;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    overflow: visible;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--space-1);
    z-index: auto;
  }
  
  .nav-toggle {
    display: none !important;
  }
  
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-16);
  }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--brand-blue);
  background: rgba(0, 169, 224, 0.08);
  border: 1px solid rgba(0, 169, 224, 0.2);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
  letter-spacing: 0.03em;
}

.hero-title {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-6);
  max-width: 18ch;
  background: linear-gradient(135deg, var(--color-text) 0%, var(--color-text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
  max-width: 52ch;
  line-height: 1.8;
}

.hero-usps {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.hero-usps li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  font-weight: 500;
}

.hero-usps li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-green));
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.hero-image-wrap {
  position: relative;
}

.hero-image {
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  border: 1px solid var(--color-border);
}

.hero-image-wrap::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-2xl) + 2px);
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-green));
  z-index: -1;
  opacity: 0.5;
  filter: blur(20px);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: scroll-bounce 2s ease-in-out infinite;
}

.hero-scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--color-text-muted), transparent);
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 0.5; }
}

/* ---------- SERVICES ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
}

.service-card {
  padding: var(--space-8);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(0, 169, 224, 0.1), rgba(147, 217, 0, 0.1));
  margin-bottom: var(--space-5);
  font-size: 1.2rem;
}

.service-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.service-card p {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* ---------- WHY US ---------- */
.usps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.usp-card {
  padding: var(--space-6);
}

.usp-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.usp-card p {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

/* ---------- HOW WE WORK ---------- */
.process-list {
  display: grid;
  gap: var(--space-8);
  counter-reset: process;
  max-width: var(--container-narrow);
}

.process-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--space-6);
  align-items: start;
  counter-increment: process;
}

.process-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-green));
  color: #fff;
  font-size: var(--text-xl);
  font-weight: 700;
  box-shadow: var(--shadow-md), var(--shadow-glow-blue);
  flex-shrink: 0;
}

.process-step h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.process-step p {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

/* ---------- ABOUT ---------- */
.about-inner {
  max-width: var(--container-narrow);
  text-align: center;
  margin: 0 auto;
}

.about-lead {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-6);
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
}

.about-inner p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
  margin-left: auto;
  margin-right: auto;
}

.about-image {
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  margin-bottom: var(--space-10);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- PORTFOLIO ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-8);
}

.portfolio-card {
  overflow: hidden;
  padding: 0;
}

.portfolio-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-bg-alt);
}

.portfolio-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.portfolio-card:hover .portfolio-card-image img {
  transform: scale(1.03);
}

.portfolio-card-body {
  padding: var(--space-6);
}

.portfolio-card-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.portfolio-card-desc {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  line-height: 1.6;
}

.portfolio-card-meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.portfolio-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* Portfolio filter tabs */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.portfolio-filter {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration-fast);
}

.portfolio-filter:hover,
.portfolio-filter.is-active {
  color: var(--brand-blue);
  border-color: var(--brand-blue);
  background: rgba(0, 169, 224, 0.06);
}

/* ---------- TESTIMONIALS ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-8);
}

.testimonial-card {
  padding: var(--space-8);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: var(--space-4);
  left: var(--space-6);
  font-size: 4rem;
  line-height: 1;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.3;
  font-family: Georgia, serif;
}

.testimonial-quote {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-6);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-green));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: var(--text-sm);
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 600;
  font-size: var(--text-sm);
}

.testimonial-role {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ---------- PRICING ---------- */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-6);
}

.pricing-card {
  padding: var(--space-6);
}

.pricing-card-title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.pricing-card-desc {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

.pricing-card-range {
  font-size: var(--text-2xl);
  font-weight: 700;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-disclaimer {
  background: rgba(0, 169, 224, 0.06);
  border: 1px solid rgba(0, 169, 224, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-10);
}

.pricing-disclaimer p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  max-width: none;
}

/* Pricing table */
.pricing-table-wrap {
  overflow-x: auto;
  margin-bottom: var(--space-8);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.pricing-table th,
.pricing-table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.pricing-table th {
  background: var(--color-bg-alt);
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

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

.pricing-table tbody tr:hover {
  background: var(--color-bg-alt);
}

.pricing-notes-list {
  display: grid;
  gap: var(--space-4);
}

.pricing-notes-list li {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  padding-left: var(--space-6);
  position: relative;
}

.pricing-notes-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--brand-blue);
}

/* ---------- CONTACT ---------- */
.contact-inner {
  max-width: var(--container-narrow);
  text-align: center;
  margin: 0 auto;
}

.contact-lead {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
}

.contact-email,
.contact-phone {
  display: block;
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.contact-note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  margin-left: auto;
  margin-right: auto;
}

/* Client portal block — below contact CTAs */
.client-portal-block {
  margin-top: var(--space-10);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.client-portal-divider {
  width: 40px;
  height: 2px;
  background: var(--color-border);
  margin: 0 auto var(--space-6);
  border-radius: 9999px;
}

.client-portal-content {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-8);
  text-align: center;
  transition: border-color var(--duration-base), box-shadow var(--duration-base);
}

.client-portal-content:hover {
  border-color: var(--brand-blue);
  box-shadow: 0 0 20px rgba(0, 169, 224, 0.1);
}

.client-portal-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-blue);
  margin-bottom: var(--space-2);
  font-family: var(--font-mono, monospace);
}

.client-portal-text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-5);
  line-height: 1.6;
}

.client-portal-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
}

/* Quote form */
.quote-form {
  text-align: left;
  max-width: 560px;
  margin: var(--space-10) auto 0;
  display: grid;
  gap: var(--space-5);
}

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

.quote-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.quote-label .required {
  color: var(--brand-blue);
}

.quote-input {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: var(--text-base);
  transition: all var(--duration-fast);
  outline: none;
}

.quote-input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(0, 169, 224, 0.1);
}

.quote-input::placeholder {
  color: var(--color-text-muted);
}

.quote-textarea {
  min-height: 120px;
  resize: vertical;
}

.quote-select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394A3B8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.quote-form-actions {
  padding-top: var(--space-2);
}

/* Form validation states */
.quote-input.is-valid {
  border-color: var(--brand-green);
}

.quote-input.is-invalid {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.field-error {
  font-size: var(--text-xs);
  color: #EF4444;
  margin-top: var(--space-1);
}

/* ---------- CASE STUDY ---------- */
.case-study-hero {
  padding: calc(var(--header-height) + var(--space-16)) 0 var(--space-12);
  background: var(--color-bg-alt);
}

.case-study-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.case-study-tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--brand-blue);
  background: rgba(0, 169, 224, 0.08);
  border-radius: var(--radius-full);
}

.case-study-content {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.case-study-content h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}

.case-study-content p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

.case-study-content ul {
  margin-bottom: var(--space-4);
}

.case-study-content ul li {
  padding-left: var(--space-5);
  position: relative;
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
}

.case-study-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--brand-blue);
}

/* ---------- STATS ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-8);
  text-align: center;
}

.stat-item h3 {
  font-size: var(--text-4xl);
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-2);
}

.stat-item p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin: 0 auto;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: var(--space-12) 0 var(--space-8);
}

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

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-12);
  }
}

.footer-brand .logo {
  display: inline-flex;
  height: auto !important;
}

.footer-brand .logo-img {
  width: auto !important;
  height: auto !important;
  max-width: 180px !important;
  object-fit: contain !important;
  border-radius: var(--radius-lg);
  box-shadow: 
    0 0 30px rgba(0, 169, 224, 0.3),
    0 0 60px rgba(147, 217, 0, 0.2),
    var(--shadow-lg);
}

.footer-brand p {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  margin-top: var(--space-4);
  max-width: 40ch;
}

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

.footer-col h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.footer-col a {
  display: block;
  padding: var(--space-1) 0;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  transition: color var(--duration-fast);
}

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

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

.footer-copy {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  max-width: none;
}

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

.footer-legal a {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

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

/* ---------- LEGAL PAGES ---------- */
.legal-content {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding-top: calc(var(--header-height) + var(--space-12));
}

.legal-content h2 {
  font-size: var(--text-xl);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.legal-content h3 {
  font-size: var(--text-lg);
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
}

.legal-content p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

.legal-content ul {
  margin-bottom: var(--space-4);
}

.legal-content ul li {
  padding-left: var(--space-5);
  position: relative;
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
}

.legal-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--brand-blue);
}

.legal-updated {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

/* ---------- 404 PAGE ---------- */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.error-inner {
  max-width: 480px;
  margin: 0 auto;
}

.error-logo-wrap {
  margin-bottom: var(--space-8);
}

.error-logo-video {
  max-width: 280px;
  margin: 0 auto;
}

.error-title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

.error-title::after { display: none; }

.error-intro {
  color: var(--color-text-secondary);
  margin: 0 auto var(--space-4);
}

.error-copy {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin: 0 auto var(--space-8);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

/* ---------- GALLERY ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-3);
}

.gallery-grid img {
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform var(--duration-fast), box-shadow var(--duration-fast);
  border: 1px solid var(--color-border);
}

.gallery-grid img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.gallery-back {
  margin-bottom: var(--space-4);
}

.gallery-back a {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.gallery-back a:hover {
  color: var(--brand-blue);
}

/* Gallery popup */
.gallery-popup {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.gallery-popup-inner {
  position: relative;
  z-index: 1;
  width: 95vw;
  max-width: 1200px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

.gallery-popup-close {
  position: sticky;
  top: 0;
  float: right;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.gallery-popup-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
}

.gallery-popup-img {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

/* ---------- DEMO BANNER ---------- */
/* ---------- SPLASH SCREEN ---------- */
.splash-screen {
  position: fixed;
  inset: 0;
  background: var(--gray-950);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.splash-screen.splash-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  animation: splashFadeIn 0.8s ease forwards;
}

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

.splash-logo .logo-video,
.splash-logo .logo-img {
  width: auto;
  height: 15rem;
  max-width: 90vw;
  border-radius: var(--radius-lg);
  box-shadow:
    0 0 40px rgba(0, 169, 224, 0.5),
    0 0 80px rgba(147, 217, 0, 0.3);
}

.splash-tagline {
  color: var(--gray-400);
  font-size: var(--text-lg);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
  max-width: 40ch;
}

.splash-loader {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  margin-top: var(--space-4);
}

.splash-loader span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-blue);
  animation: splashDot 1.2s ease-in-out infinite;
}

.splash-loader span:nth-child(2) {
  background: var(--brand-teal);
  animation-delay: 0.2s;
}

.splash-loader span:nth-child(3) {
  background: var(--brand-green);
  animation-delay: 0.4s;
}

@keyframes splashDot {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* ---------- DEMO BANNER ---------- */
.demo-banner {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--glass-border);
  color: var(--color-text);
  padding: var(--space-2) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  width: 100%;
  transition: top var(--duration-base) var(--ease-out);
}

.demo-banner.hidden {
  display: none;
}

.demo-banner span {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.demo-banner span::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-green);
  box-shadow: 0 0 6px var(--brand-green);
  animation: pulse 2s infinite;
}

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

.demo-banner a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--color-bg);
  background: var(--brand-blue);
  padding: 2px var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--duration-fast);
}

.demo-banner a:hover {
  background: var(--brand-blue-dark);
  color: #fff;
}

.demo-banner-close {
  position: absolute;
  right: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: var(--text-base);
  cursor: pointer;
  padding: var(--space-1) var(--space-2);
  line-height: 1;
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast);
}

.demo-banner-close:hover {
  color: var(--color-text);
}

/* ---------- DEV CHAT POPUP ---------- */
.dev-chat {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-3);
}

.dev-chat-toggle {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-teal) 100%);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 169, 224, 0.4);
  transition: transform var(--duration-fast), box-shadow var(--duration-fast);
  position: relative;
}

.dev-chat-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0, 169, 224, 0.5);
}

.dev-chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  background: var(--brand-green);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dev-chat-panel {
  display: none;
  flex-direction: column;
  width: 300px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  overflow: hidden;
  animation: chatSlideIn 0.25s ease;
}

.dev-chat-panel.is-open {
  display: flex;
}

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

.dev-chat-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-teal) 100%);
  color: #fff;
}

.dev-chat-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 700;
  flex-shrink: 0;
}

.dev-chat-name {
  font-weight: 600;
  font-size: var(--text-sm);
}

.dev-chat-status {
  font-size: var(--text-xs);
  opacity: 0.85;
}

.dev-chat-close {
  margin-left: auto;
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  font-size: var(--text-base);
  padding: var(--space-1);
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast);
  flex-shrink: 0;
}

.dev-chat-close:hover {
  color: #fff;
}

.dev-chat-body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.dev-chat-bubble {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  border-top-left-radius: 4px;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.6;
}

.dev-chat-bubble p { max-width: none; }

.dev-chat-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  background: var(--color-bg-alt);
}

.dev-chat-contact a {
  color: var(--brand-blue);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
}

.dev-chat-contact a:hover {
  text-decoration: underline;
}

/* ---------- STATUS INDICATOR ---------- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  opacity: 0.3;
}

.status-dot--green { background: #22C55E; }
.status-dot--amber { background: #F59E0B; }
.status-dot--red { background: #EF4444; }
.status-dot--active { opacity: 1; animation: status-pulse 2s ease-in-out infinite; }

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

.status-label--green { color: #22C55E; }
.status-label--amber { color: #F59E0B; }
.status-label--red { color: #EF4444; }

/* ---------- APP STORE BADGES ---------- */
.store-badges {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.store-badge {
  display: block;
  height: 40px;
}

.store-badge img {
  height: 100%;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity var(--duration-fast);
}

.store-badge:hover img {
  opacity: 1;
}

/* ---------- MODAL ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  cursor: pointer;
}

.modal-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 38rem;
  max-height: 90vh;
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-2xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  flex-shrink: 0;
}

.modal-title {
  font-size: var(--text-xl);
  font-weight: 700;
}

.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text-secondary);
  font-size: 1.1rem;
  transition: all var(--duration-fast);
}

.modal-close:hover {
  background: var(--color-bg-alt);
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-6);
}

.modal-body h3 {
  font-size: var(--text-base);
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
}

.modal-body p {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
}

/* Video modal */
.video-modal .modal-inner {
  max-width: 900px;
  background: #000;
}

.video-modal .modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  z-index: 2;
  background: rgba(0,0,0,0.7);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}

.video-modal video {
  width: 100%;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

/* ---------- CTA SECTION ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
  color: #fff;
  text-align: center;
  padding: var(--space-20) 0;
}

[data-theme="dark"] .cta-section {
  background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%);
  border-top: 1px solid var(--gray-700);
  border-bottom: 1px solid var(--gray-700);
}

.cta-section .section-title {
  color: #fff;
}

.cta-section .section-title::after {
  margin-left: auto;
  margin-right: auto;
}

.cta-section .section-intro {
  color: var(--gray-400);
  margin-left: auto;
  margin-right: auto;
}

/* ---------- COOKIE BANNER ---------- */
.cookie-banner {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 9999;
  max-width: 420px;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  padding: var(--space-6);
  display: flex;
  gap: var(--space-4);
}

.cookie-banner-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.cookie-banner-title {
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-2);
  max-width: none;
}

.cookie-banner-text {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
  max-width: none;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.cookie-btn {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--duration-fast);
}

.cookie-btn-primary {
  background: var(--brand-blue);
  color: #fff;
}

.cookie-btn-primary:hover {
  background: var(--brand-blue-dark);
}

.cookie-btn-secondary {
  background: var(--color-bg);
  color: var(--color-text-secondary);
  border-color: var(--color-border);
}

.cookie-btn-secondary:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.cookie-banner-settings {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  text-decoration: underline;
  cursor: pointer;
  padding: var(--space-2) 0;
}

/* ---------- SCROLL ANIMATIONS ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-slower) var(--ease-out), transform var(--duration-slower) var(--ease-out);
}

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

.stagger-1 { transition-delay: 0ms; }
.stagger-2 { transition-delay: 100ms; }
.stagger-3 { transition-delay: 200ms; }
.stagger-4 { transition-delay: 300ms; }
.stagger-5 { transition-delay: 400ms; }
.stagger-6 { transition-delay: 500ms; }

/* ---------- BADGE ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  background: rgba(0, 169, 224, 0.08);
  color: var(--brand-blue);
  border: 1px solid rgba(0, 169, 224, 0.15);
}

.badge-green {
  background: rgba(147, 217, 0, 0.08);
  color: var(--brand-green-dark);
  border-color: rgba(147, 217, 0, 0.15);
}

.badge-amber {
  background: rgba(245, 158, 11, 0.08);
  color: #D97706;
  border-color: rgba(245, 158, 11, 0.15);
}

/* ---------- RESPONSIVE UTILITIES ---------- */
@media (max-width: 640px) {
  .logo-video, .logo-img { max-width: 160px; }
  .about-image { max-width: 100%; width: 100%; }
  .section { padding: var(--space-12) 0; }
  .hero { min-height: auto; padding-top: calc(var(--header-height) + var(--space-10)); }
  .hero-title { font-size: var(--text-4xl); }
  .hero-scroll { display: none; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .usps-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-cards { grid-template-columns: 1fr; }
  .process-step { grid-template-columns: 48px 1fr; gap: var(--space-4); }
  .process-num { width: 48px; height: 48px; font-size: var(--text-base); }
  .cookie-banner { bottom: 0; right: 0; left: 0; max-width: none; border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
}

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

/* Print */
@media print {
  .site-header, .site-footer, .demo-banner, .cookie-banner, .hero-bg,
  .theme-toggle, .nav-toggle, .nav-overlay { display: none !important; }
  body { color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
}
