/**
 * MyLocalDev Web Design - Core Stylesheet (Clean Rewrite v2)
 * Port St. Lucie, FL • Handcrafted, High-Performance Web Design
 * 
 * Architecture:
 * 1. Design Tokens & Theme Engine (:root, [data-theme])
 * 2. Modern Reset & Base Rules
 * 3. Layout Primitives (.container, .section-*, grids)
 * 4. UI Components (Badges, Buttons, Cards, Inputs)
 * 5. Site Header & Navigation (Desktop & Mobile Drawer)
 * 6. Section 1: Hero
 * 7. Section 2: Live Client Showcase
 * 8. Section 3: Interactive Demo Websites & Sandbox Modal
 * 9. Demo Renderers Internal Components (6 Demos)
 * 10. Section 4: Rapid 3-Day Turnaround
 * 11. Section 5: Services & Capabilities
 * 12. Section 6: Transparent Pricing & Project Calculator
 * 13. Section 7: Maintenance & Care Plan
 * 14. Section 8: Comparison Table
 * 15. Section 9: FAQ Accordion
 * 16. Section 10: Contact Form & Inquiry Modal
 * 17. Site Footer
 * 18. Utilities & Motion Preferences
 */

/* ==========================================================================
   1. DESIGN TOKENS & THEME ENGINE
   ========================================================================== */
:root,
[data-theme="cyberpunk"] {
  --theme-name: "cyberpunk";

  /* Backgrounds */
  --bg-main: #050509;
  --bg-card: #090912;
  --bg-card-subtle: #0d0d1a;
  --bg-card-hover: #121124;
  --bg-elevated: #16142c;
  --surface-2: rgba(255, 255, 255, 0.08);
  --bg-header: rgba(5, 5, 9, 0.88);

  /* Borders */
  --border-subtle: rgba(244, 63, 94, 0.22);
  --border-card: rgba(244, 63, 94, 0.35);
  --border-color: rgba(244, 63, 94, 0.35);
  --border-strong: #f43f5e;
  --border-focus: #06b6d4;

  /* Typography */
  --text-primary: #ffffff;
  --text-secondary: #e2e8f0;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --text-inverse: #050509;

  /* Accents */
  --accent-primary: #f43f5e;       /* Neon Magenta */
  --accent-cyan: #06b6d4;          /* Cyber Cyan */
  --accent-cyan-light: #67e8f9;
  --accent-yellow: #facc15;        /* Cyber Yellow */
  --accent-teal: #facc15;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-glow: rgba(244, 63, 94, 0.45);
  --accent-cyan-glow: rgba(6, 182, 212, 0.45);

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #f43f5e 0%, #06b6d4 100%);
  --gradient-btn: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  --gradient-card: linear-gradient(180deg, rgba(14, 165, 233, 0.04) 0%, rgba(244, 63, 94, 0.04) 100%);

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Fonts */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Orbitron', 'Inter', system-ui, sans-serif;
  --font-mono: 'Share Tech Mono', ui-monospace, 'SFMono-Regular', Menlo, Monaco, Consolas, monospace;

  /* Shadows */
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.7);
  --shadow-neon: 0 0 20px rgba(244, 63, 94, 0.35);

  /* Background Grid */
  --body-bg-pattern: 
    linear-gradient(rgba(244, 63, 94, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.06) 1px, transparent 1px);
  --body-bg-size: 36px 36px;
}

/* Theme 2: Executive Clean (Light Mode) */
[data-theme="clean"] {
  --theme-name: "clean";

  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f9;
  --bg-card-hover: #ffffff;
  --bg-elevated: #e2e8f0;
  --surface-2: rgba(15, 23, 42, 0.06);
  --bg-header: rgba(248, 250, 252, 0.92);

  --border-subtle: #e2e8f0;
  --border-card: #cbd5e1;
  --border-color: #cbd5e1;
  --border-strong: #2563eb;
  --border-focus: #2563eb;

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #475569;
  --text-subtle: #64748b;
  --text-inverse: #ffffff;

  --accent-primary: #1d4ed8;       /* Swiss Royal Cobalt Blue - 5.5:1 Contrast */
  --accent-cyan: #1d4ed8;
  --accent-cyan-light: #3b82f6;
  --accent-yellow: #059669;
  --accent-teal: #059669;
  --accent-amber: #d97706;
  --accent-rose: #dc2626;
  --accent-glow: rgba(37, 99, 235, 0.18);
  --accent-cyan-glow: rgba(37, 99, 235, 0.18);

  --gradient-brand: linear-gradient(135deg, #2563eb 0%, #0284c7 100%);
  --gradient-btn: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  --gradient-card: none;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-full: 9999px;

  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Inter', system-ui, sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', Menlo, Monaco, Consolas, monospace;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 28px rgba(15, 23, 42, 0.12);
  --shadow-neon: 0 4px 18px rgba(37, 99, 235, 0.15);

  --body-bg-pattern: 
    linear-gradient(#e2e8f0 1px, transparent 1px),
    linear-gradient(90deg, #e2e8f0 1px, transparent 1px);
  --body-bg-size: 40px 40px;
}

/* Theme 3: Midnight Velvet & 24K Gold */
[data-theme="gold"] {
  --theme-name: "gold";

  --bg-main: #07050d;
  --bg-card: #120e24;
  --bg-card-subtle: #191433;
  --bg-card-hover: #1e183d;
  --bg-elevated: #261e4c;
  --surface-2: rgba(212, 175, 55, 0.12);
  --bg-header: rgba(7, 5, 13, 0.9);

  --border-subtle: rgba(212, 175, 55, 0.28);
  --border-card: rgba(212, 175, 55, 0.45);
  --border-color: rgba(212, 175, 55, 0.45);
  --border-strong: #d4af37;
  --border-focus: #fef08a;

  --text-primary: #fffbeb;
  --text-secondary: #fef3c7;
  --text-muted: #d4af37;
  --text-subtle: #997b1a;
  --text-inverse: #07050d;

  --accent-primary: #d4af37;       /* 24K Imperial Gold */
  --accent-cyan: #d4af37;
  --accent-cyan-light: #fef08a;
  --accent-yellow: #f59e0b;
  --accent-teal: #a855f7;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-glow: rgba(212, 175, 55, 0.45);
  --accent-cyan-glow: rgba(212, 175, 55, 0.4);

  --gradient-brand: linear-gradient(135deg, #d4af37 0%, #fef08a 50%, #997b1a 100%);
  --gradient-btn: linear-gradient(135deg, #d4af37 0%, #997b1a 100%);
  --gradient-card: linear-gradient(180deg, rgba(212, 175, 55, 0.05) 0%, rgba(18, 14, 36, 0.8) 100%);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Cinzel', Georgia, serif;
  --font-mono: ui-monospace, 'SFMono-Regular', Menlo, Monaco, Consolas, monospace;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.85);
  --shadow-neon: 0 0 22px rgba(212, 175, 55, 0.35);

  --body-bg-pattern: 
    linear-gradient(rgba(212, 175, 55, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.05) 1px, transparent 1px);
  --body-bg-size: 48px 48px;
}

/* ==========================================================================
   2. MODERN RESET & BASE RULES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  background-color: var(--bg-main);
  background-image: var(--body-bg-pattern);
  background-size: var(--body-bg-size);
  background-attachment: fixed;
  color: var(--text-primary);
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.25s ease, color 0.25s ease;
}

body.drawer-open {
  overflow: hidden;
}

img, svg, picture, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
}

button {
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  overflow-wrap: break-word;
}

[data-theme="cyberpunk"] h1,
[data-theme="cyberpunk"] h2,
[data-theme="cyberpunk"] h3,
[data-theme="cyberpunk"] h4 {
  letter-spacing: 0.03em;
}

[data-theme="gold"] h1,
[data-theme="gold"] h2,
[data-theme="gold"] h3,
[data-theme="gold"] h4 {
  letter-spacing: 0.05em;
  font-weight: 700;
}

p {
  overflow-wrap: break-word;
}

/* ==========================================================================
   3. LAYOUT PRIMITIVES
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  min-width: 0;
}

@media (min-width: 480px) {
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

@media (min-width: 768px) {
  .container {
    padding-left: 1.75rem;
    padding-right: 1.75rem;
  }
}

.section-padding {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

.section-alt {
  background-color: var(--bg-card-subtle);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.75rem;
}

.section-title {
  font-size: clamp(1.6rem, 3.8vw, 2.35rem);
  margin-top: 0.75rem;
  margin-bottom: 0.85rem;
}

.section-desc {
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Utilities */
.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

[data-theme="clean"] .text-gradient {
  background: none;
  -webkit-text-fill-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* ==========================================================================
   4. UI COMPONENTS (BADGES, BUTTONS, CARDS)
   ========================================================================== */
/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-full);
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan-light);
  border: 1px solid rgba(6, 182, 212, 0.3);
  line-height: 1.2;
  white-space: normal;
  max-width: 100%;
}

#hero-architecture-badge {
  max-width: 100%;
  flex-wrap: wrap;
  line-height: 1.4;
}

@media (max-width: 480px) {
  #hero-architecture-badge {
    border-radius: var(--radius-md);
    padding: 0.45rem 0.75rem;
  }
  #hero-architecture-badge .badge-theme-sub {
    border-left: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    display: block;
    width: 100%;
    margin-top: 2px;
  }
}

[data-theme="clean"] .badge {
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent-primary);
  border-color: rgba(37, 99, 235, 0.25);
}

[data-theme="gold"] .badge {
  background: rgba(212, 175, 55, 0.12);
  color: var(--accent-cyan-light);
  border-color: rgba(212, 175, 55, 0.4);
}

.badge-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-primary);
  animation: pulse-dot 2s infinite ease-in-out;
  flex-shrink: 0;
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}

[data-theme="clean"] .badge-emerald {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

.badge-pulse-emerald {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.hero-live-badge {
  font-size: 0.65rem;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

[data-theme="clean"] .hero-live-badge {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--radius-md);
  background-color: var(--accent-primary);
  background-image: var(--gradient-btn);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-neon);
  filter: brightness(1.1);
}

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

[data-theme="gold"] .btn-primary,
[data-theme="gold"] .filter-btn.active,
[data-theme="gold"] .viewport-btn.active {
  color: #07050d;
  font-weight: 800;
}

[data-theme="gold"] .brand-mark {
  color: #07050d;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.3rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-card);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
}

.btn-secondary:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.btn-phone-quick {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan);
  border: 1px solid var(--border-card);
  transition: background 0.2s ease;
}

.btn-phone-quick:hover {
  background: rgba(6, 182, 212, 0.2);
}

/* ==========================================================================
   5. SITE HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-header);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  height: 4.25rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  min-height: 40px;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
  height: 30px;
  border-radius: var(--radius-sm);
  background-color: var(--accent-primary);
  background-image: var(--gradient-btn);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-indent: 0.08em;
  line-height: 1;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.brand-text-col {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  line-height: 1.1;
  margin-top: 2px;
}

.brand-clock-divider {
  opacity: 0.5;
}

.live-clock {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent-cyan);
}

@media (max-width: 360px) {
  .brand-sub .brand-clock-divider,
  .brand-sub .live-clock {
    display: none;
  }
}

/* Nav links - Desktop */
.nav-links {
  display: none;
  align-items: center;
  gap: 1.15rem;
}

@media (min-width: 1081px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.15s ease;
  position: relative;
  padding: 0.25rem 0;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-primary);
}

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.header-theme-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 0 0.5rem;
  height: 34px;
}

.header-theme-icon {
  font-size: 0.85rem;
  margin-right: 0.3rem;
  pointer-events: none;
}

.header-theme-select {
  appearance: none;
  -webkit-appearance: none;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  background: transparent;
  padding-right: 1rem;
  cursor: pointer;
  outline: none;
}

.header-theme-chevron {
  position: absolute;
  right: 0.45rem;
  font-size: 0.55rem;
  color: var(--text-muted);
  pointer-events: none;
}

.btn-audio-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 34px;
  padding: 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-card);
  transition: all 0.2s ease;
}

.btn-audio-toggle:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.site-header .btn-primary {
  display: none;
  padding: 0.5rem 0.95rem;
  font-size: 0.8rem;
  height: 34px;
}

@media (min-width: 1081px) {
  .site-header .btn-primary {
    display: inline-flex;
  }
}

@media (max-width: 1080px) {
  .site-header .header-theme-select-wrap,
  .site-header .btn-audio-toggle,
  .site-header #btn-xray-mode {
    display: none !important;
  }
}

.btn-mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 1081px) {
  .btn-mobile-toggle {
    display: none;
  }
}

.btn-mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-mobile-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.btn-mobile-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.btn-mobile-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-main);
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  z-index: 1000;
}

.mobile-nav-drawer.active {
  display: flex;
  flex-direction: column;
}

.mobile-drawer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.btn-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-drawer-close:hover {
  border-color: var(--border-strong);
  color: #f43f5e;
}

.mobile-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 1.25rem;
}

.mobile-nav-link {
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.15s ease;
}

.mobile-nav-link:hover {
  color: var(--accent-cyan);
}

.mobile-nav-link span {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  opacity: 0.85;
}

.mobile-drawer-footer {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-drawer-tools {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.mobile-theme-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.theme-select-input {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 0.5rem 0.75rem;
  font-size: 16px;
  min-height: 44px;
  cursor: pointer;
  outline: none;
  width: 100%;
}

.mobile-actions-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}

.mobile-actions-row .btn-secondary {
  padding: 0.45rem 0.25rem;
  font-size: 0.72rem;
  min-height: 44px;
  justify-content: center;
  text-align: center;
  white-space: normal;
  line-height: 1.2;
  word-break: break-word;
}

.mobile-drawer-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* Top Scroll Progress Bar */
#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--gradient-brand);
  z-index: 1000;
  transition: width 0.1s linear;
}

/* ==========================================================================
   6. SECTION 1: HERO
   ========================================================================== */
.hero-section {
  padding-top: 3rem;
  padding-bottom: 4rem;
  position: relative;
}

@media (min-width: 900px) {
  .hero-section {
    padding-top: 4.5rem;
    padding-bottom: 5.5rem;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 3rem;
  }
}

.hero-content,
.hero-mockup-wrapper {
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.hero-title {
  font-size: clamp(1.75rem, 5.5vw, 3.4rem);
  line-height: 1.15;
  margin-top: 1rem;
  margin-bottom: 1.25rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.75rem;
  max-width: 620px;
  overflow-wrap: break-word;
}

.hero-pills {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
  max-width: 100%;
}

.hero-pill-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  width: fit-content;
  max-width: 100%;
  white-space: normal;
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  max-width: 100%;
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary,
  .hero-actions .btn-phone-quick {
    width: 100%;
    justify-content: center;
  }
}

.hero-guarantee,
.hero-location-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

/* Hero Interactive Mockup Browser Card */
.hero-card-browser {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.browser-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  background: var(--bg-card-subtle);
  border-bottom: 1px solid var(--border-subtle);
  gap: 0.75rem;
  min-width: 0;
  overflow: hidden;
}

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

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.browser-address {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-main);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.browser-status-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.browser-viewports {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  flex-shrink: 0;
}

.hero-browser-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-card);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.hero-mini-tabs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.hero-mini-tabs::-webkit-scrollbar {
  display: none;
}

.hero-mini-tab {
  padding: 0.4rem 0.75rem;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.725rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: var(--bg-card-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
  transition: all 0.2s ease;
  cursor: pointer;
}

.hero-mini-tab:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-card);
}

.hero-mini-tab.active {
  background: var(--accent-cyan);
  color: #020617;
  font-weight: 700;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

[data-theme="clean"] .hero-mini-tab.active {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

[data-theme="gold"] .hero-mini-tab.active {
  background: var(--accent-primary);
  color: #07050d;
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.hero-preview-display {
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.hero-preview-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.hero-preview-industry {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--accent-cyan);
  font-weight: 600;
}

.hero-preview-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  min-width: 0;
}

.hero-metric-box {
  background: var(--bg-card-subtle);
  padding: 0.45rem 0.25rem;
  border-radius: var(--radius-sm);
  text-align: center;
  border: 1px solid var(--border-subtle);
  min-width: 0;
  overflow: hidden;
}

.hero-metric-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-teal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-metric-label {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 480px) {
  .hero-browser-body {
    padding: 1rem 0.75rem;
  }
  .hero-preview-display {
    padding: 0.75rem 0.5rem;
  }
}

.hero-launch-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: 0.5rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hero-launch-btn {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 38px;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hero-launch-btn:hover {
  text-decoration: none;
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   7. SECTION 2: LIVE CLIENT SHOWCASE (#clients)
   ========================================================================== */
.live-clients-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

.live-client-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.live-client-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.live-client-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-card-subtle);
  overflow: hidden;
}

.live-client-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.live-client-card:hover .live-client-media img {
  transform: scale(1.03);
}

.live-badge-production,
.live-client-status {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(5, 5, 9, 0.85);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
  z-index: 2;
}

.status-indicator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  box-shadow: 0 0 6px #10b981;
}

.live-client-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.live-client-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  min-width: 0;
  max-width: 100%;
}

.live-client-tag,
.client-industry {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
}

.live-client-url,
.client-url-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 38px;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  word-break: break-all;
  transition: color 0.2s ease, background 0.2s ease;
}

.live-client-url:hover,
.client-url-pill:hover {
  color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.06);
}

.live-client-title {
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
}

.live-client-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.live-client-tags-row,
.live-client-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.live-pill,
.highlight-tag {
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.live-client-footer {
  margin-top: auto;
}

/* ==========================================================================
   8. SECTION 3: INTERACTIVE DEMOS (#work) & SANDBOX MODAL
   ========================================================================== */
.portfolio-filters,
.portfolio-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.45rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

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

.filter-btn.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

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

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

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  overflow: hidden;
}

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

.project-thumbnail-wrapper,
.project-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--bg-card-subtle);
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.project-thumbnail-img,
.project-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.project-card:hover .project-thumbnail-img,
.project-card:hover .project-thumb-wrap img {
  transform: scale(1.04);
}

.project-overlay-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(5, 5, 9, 0.85);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
  z-index: 2;
}

[data-theme="clean"] .project-overlay-badge {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-primary);
  border-color: var(--border-card);
}

[data-theme="gold"] .project-overlay-badge {
  background: rgba(11, 9, 20, 0.9);
  color: #fef08a;
  border-color: var(--accent-primary);
}

.project-hover-cta {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 9, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 3;
}

[data-theme="clean"] .project-hover-cta {
  background: rgba(15, 23, 42, 0.5);
}

[data-theme="gold"] .project-hover-cta {
  background: rgba(7, 5, 13, 0.75);
}

.project-card:hover .project-hover-cta,
.project-card:focus-visible .project-hover-cta {
  opacity: 1;
}

.hover-cta-pill {
  background: var(--accent-cyan);
  color: #020617;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transform: translateY(8px);
  transition: transform 0.2s ease;
}

[data-theme="clean"] .hover-cta-pill {
  background: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

[data-theme="gold"] .hover-cta-pill {
  background: var(--accent-primary);
  color: #07050d;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.project-card:hover .hover-cta-pill,
.project-card:focus-visible .hover-cta-pill {
  transform: translateY(0);
}

.project-body,
.project-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-header-meta,
.project-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.project-industry {
  font-size: 0.72rem;
  color: var(--accent-cyan);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.project-demo-label {
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

.project-name {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.project-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
}

.project-tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

/* Sandbox Modal */
.sandbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 5, 9, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  flex-direction: column;
}

.sandbox-modal.active {
  display: flex;
}

.sandbox-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.25rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-card);
  gap: 1rem;
  flex-shrink: 0;
}

.sandbox-left-controls,
.sandbox-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex-wrap: wrap;
}

.sandbox-window-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.sandbox-window-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.sandbox-window-dots span:nth-child(1) { background: #ef4444; }
.sandbox-window-dots span:nth-child(2) { background: #f59e0b; }
.sandbox-window-dots span:nth-child(3) { background: #10b981; }

.sandbox-nav-arrows {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.btn-sandbox-nav-arrow {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-sandbox-nav-arrow:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.sandbox-site-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

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

@media (max-width: 600px) {
  .sandbox-url-pill {
    max-width: 130px;
    font-size: 0.68rem;
  }
}

.sandbox-center-viewports {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.viewport-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.viewport-btn.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
}

.sandbox-dim-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 0.25rem 0.5rem;
  background: var(--bg-main);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.sandbox-right-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-sandbox-action,
.btn-sandbox-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  height: 38px;
  min-height: 38px;
  padding: 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.btn-sandbox-close {
  font-size: 1.25rem;
  min-width: 38px;
  padding: 0 0.65rem;
  line-height: 1;
}

.sandbox-stage {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow: auto;
  position: relative;
}

.sandbox-device-frame {
  background: var(--bg-main);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  height: 100%;
  max-height: 850px;
  max-width: 100%;
  transition: width 0.3s ease;
}

.sandbox-device-frame.viewport-desktop { width: 1200px; }
.sandbox-device-frame.viewport-tablet  { width: 768px; }
.sandbox-device-frame.viewport-mobile  { width: 390px; }

@media (max-width: 900px) {
  .sandbox-chrome {
    flex-wrap: wrap;
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
  }
  .sandbox-center-viewports {
    display: none !important;
  }
  .sandbox-stage {
    padding: 0.5rem;
  }
  .sandbox-device-frame,
  .sandbox-device-frame.viewport-desktop,
  .sandbox-device-frame.viewport-tablet,
  .sandbox-device-frame.viewport-mobile {
    width: 100% !important;
    max-width: 100% !important;
  }
  .btn-sandbox-close {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }
}

/* Sandbox Drawer */
.sandbox-info-drawer {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 360px;
  max-width: 100%;
  background: var(--bg-card);
  border-left: 1px solid var(--border-card);
  padding: 1.5rem;
  z-index: 10;
  overflow-y: auto;
  flex-direction: column;
  gap: 1.25rem;
}

.sandbox-info-drawer.active {
  display: flex;
}

/* ==========================================================================
   9. DEMO RENDERERS INTERNAL COMPONENT STYLES (6 DEMOS)
   ========================================================================== */
.before-after-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-md);
  user-select: none;
  -webkit-user-select: none;
}

.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-after {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.ba-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #ffffff;
  cursor: ew-resize;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.ba-handle-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Contractor Remodel Demo styles */
.c-calc-card,
.c-minigame-card,
.realty-mortgage-box,
.realty-minigame-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1.25rem;
}

.c-calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.form-group-demo {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group-demo label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.form-input-demo {
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.65rem;
  font-size: 0.85rem;
  color: var(--text-primary);
  width: 100%;
}

.c-calc-result-box {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  text-align: center;
}

.c-calc-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-amber);
  margin: 0.35rem 0;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  max-width: 320px;
  margin: 0.75rem auto;
}

.tile-block {
  aspect-ratio: 1;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tile-block.placed,
.tile-block.aligned {
  background: #10b981 !important;
  border-color: #059669 !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

/* Restaurant: Truffle Plater */
.r-garnish-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1.25rem;
}

.tasting-plate-area {
  position: relative;
  width: 100%;
  height: 180px;
  background: radial-gradient(circle, #2d241e 0%, #17120e 100%);
  border: 2px dashed #c28e5d;
  border-radius: var(--radius-md);
  margin: 0.75rem 0;
  overflow: hidden;
  cursor: crosshair;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

/* Automotive: Swirl Smasher */
.swirl-smash-canvas-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1.25rem;
}

.swirl-pad-area {
  position: relative;
  width: 100%;
  height: 180px;
  background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: var(--radius-md);
  margin: 0.75rem 0;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.swirl-spot {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.8) 0%, rgba(6, 182, 212, 0) 70%);
  border: 1px dashed rgba(6, 182, 212, 0.9);
  animation: swirl-spin 4s linear infinite;
  transition: opacity 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.swirl-spot.buffed {
  opacity: 0 !important;
  pointer-events: none;
  transform: scale(1.5);
}

@keyframes swirl-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Legal: Redline Sifter */
.legal-sifter-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1.25rem;
}

.redline-clause {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  touch-action: manipulation;
}

.redline-clause:hover {
  border-color: #d4af37;
  color: var(--text-primary);
}

.redline-clause.struck {
  text-decoration: line-through;
  opacity: 0.55;
  background: rgba(239, 68, 68, 0.1) !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
  color: #f87171 !important;
}

/* Marine: Sailfish Reel-In */
.marine-fishing-minigame {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1.25rem;
}

.reel-gauge-wrap {
  width: 100%;
  height: 20px;
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 0.75rem 0;
  position: relative;
}

.reel-gauge-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #f59e0b 60%, #ef4444 100%);
  border-radius: var(--radius-full);
  transition: width 0.15s ease-out;
}

/* ==========================================================================
   10. SECTION 4: RAPID 3-DAY TURNAROUND (#speed)
   ========================================================================== */
.sprint-compact-card {
  background: var(--bg-card);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s ease;
}

@media (min-width: 768px) {
  .sprint-compact-card {
    padding: 2rem 2.25rem;
  }
}

.sprint-compact-card:hover {
  border-color: rgba(16, 185, 129, 0.5);
}

.sprint-compact-header {
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   11. SECTION 5: SERVICES & CAPABILITIES (#services)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

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

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.35rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.service-icon-box {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.service-title {
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
}

.service-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.service-deliverables {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.service-deliverables li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.service-deliverables li svg {
  color: var(--accent-cyan);
  flex-shrink: 0;
}

/* ==========================================================================
   12. SECTION 6: PRICING & PROJECT CALCULATOR (#pricing)
   ========================================================================== */
.pricing-overview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3.5rem;
  padding-top: 1rem;
}

@media (min-width: 820px) {
  .pricing-overview-grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: stretch;
  }
}

/* CRITICAL: overflow: visible so the floating badge is never clipped! */
.pricing-tier-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible;
  box-shadow: var(--shadow-md);
}

.pricing-tier-card.featured {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-neon);
}

/* Floating "Starting Point" Badge */
.pricing-badge-top {
  position: absolute;
  top: -14px;
  left: 1.5rem;
  z-index: 15;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
  line-height: 1;
  white-space: nowrap;
  background: var(--gradient-btn);
  color: #ffffff;
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 0 16px var(--accent-glow);
}

[data-theme="clean"] .pricing-badge-top {
  background: #2563eb;
  color: #ffffff;
  border-color: #1d4ed8;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

[data-theme="gold"] .pricing-badge-top {
  background: #0b0914;
  color: #fef08a;
  border-color: #d4af37;
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.45);
}

.tier-header {
  margin-bottom: 1.5rem;
}

.tier-name {
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
}

.tier-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.tier-amount {
  font-size: 2.35rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
}

.tier-period {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.tier-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.feature-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.feature-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.feature-checklist li svg {
  color: var(--accent-cyan);
  margin-top: 3px;
  flex-shrink: 0;
}

.tier-addon-icon {
  color: var(--accent-primary);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Interactive Project Cost Calculator Component */
.estimator-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-lg);
  margin-top: 2.5rem;
}

.estimator-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
}

@media (max-width: 900px) {
  .estimator-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  #calculator,
  .estimator-card {
    display: none !important;
  }
}

.estimator-options {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.option-group-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.range-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.range-slider-wrap input[type="range"] {
  width: 100%;
  accent-color: var(--accent-cyan);
  cursor: pointer;
}

.estimator-checkboxes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

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

.calc-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.calc-checkbox-label:hover {
  border-color: var(--accent-cyan);
}

.calc-checkbox-label input[type="checkbox"] {
  accent-color: var(--accent-primary);
  width: 16px;
  height: 16px;
}

.estimator-summary-panel {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.summary-headline {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.summary-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0;
  border-bottom: 1px dashed var(--border-subtle);
}

.summary-total-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
}

.summary-total-amount {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--accent-cyan);
  margin: 0.35rem 0;
  font-family: var(--font-heading);
}

.summary-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   13. SECTION 7: MAINTENANCE & CARE PLAN (#maintenance)
   ========================================================================== */
.maintenance-section {
  position: relative;
}

/* Featured Maintenance Hero Banner Card */
.maintenance-hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-neon);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
  align-items: center;
}

@media (min-width: 820px) {
  .maintenance-hero-card {
    grid-template-columns: 1.35fr 0.9fr;
    gap: 3rem;
  }
}

.maintenance-hero-left h3 {
  font-size: 1.5rem;
  margin: 0.5rem 0 1rem;
  line-height: 1.25;
}

.maintenance-hero-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.maintenance-pill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.maintenance-pill-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

[data-theme="clean"] .maintenance-pill-tag {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.maintenance-hero-right {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-align: center;
  align-items: center;
}

.maintenance-price-tag {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem;
}

.maintenance-price-num {
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--accent-primary);
  line-height: 1;
}

.maintenance-price-period {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
}

.maintenance-price-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* 6 Pillars Maintenance Grid */
.maintenance-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

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

.maintenance-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.maintenance-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-focus);
}

.maintenance-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.maintenance-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.maintenance-card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   14. SECTION 8: COMPARISON TABLE (#why-me)
   ========================================================================== */
.comparison-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.comparison-table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--bg-card-subtle);
  color: var(--text-primary);
}

.comparison-table th.col-mld,
.comparison-table td.col-mld,
.comparison-table th.col-mylocaldev,
.comparison-table td.col-mylocaldev,
.comparison-table th.col-frederick,
.comparison-table td.col-frederick {
  background: rgba(6, 182, 212, 0.08);
  font-weight: 700;
  color: var(--accent-cyan);
  border-left: 1px solid rgba(6, 182, 212, 0.2);
  border-right: 1px solid rgba(6, 182, 212, 0.2);
}

[data-theme="clean"] .comparison-table th.col-mld,
[data-theme="clean"] .comparison-table td.col-mld,
[data-theme="clean"] .comparison-table th.col-mylocaldev,
[data-theme="clean"] .comparison-table td.col-mylocaldev,
[data-theme="clean"] .comparison-table th.col-frederick,
[data-theme="clean"] .comparison-table td.col-frederick {
  background: rgba(37, 99, 235, 0.06);
  color: var(--accent-primary);
  border-left: 1px solid rgba(37, 99, 235, 0.2);
  border-right: 1px solid rgba(37, 99, 235, 0.2);
}

.table-mobile-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.75rem;
}

@media (min-width: 768px) {
  .table-mobile-hint {
    display: none;
  }
}

/* ==========================================================================
   15. SECTION 9: FAQ ACCORDION (#faq)
   ========================================================================== */
.faq-list,
.faq-accordion-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.open {
  border-color: var(--border-strong);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: left;
  gap: 1rem;
}

.faq-icon,
.faq-icon-arrow {
  transition: transform 0.25s ease;
  flex-shrink: 0;
  color: var(--accent-cyan);
}

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

.faq-item.open .faq-icon-arrow {
  transform: rotate(180deg);
}

.faq-content {
  display: none;
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.faq-item.open .faq-content {
  display: block;
}

/* ==========================================================================
   16. SECTION 10: CONTACT FORM & INQUIRY MODAL (#contact)
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

.contact-info-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-direct-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.contact-direct-card:hover {
  border-color: var(--border-focus);
  transform: translateY(-2px);
}

.contact-icon-box {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-sm);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

[data-theme="clean"] .contact-icon-box {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.2);
}

.contact-card-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.contact-card-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-bottom: 0.45rem;
  transition: color 0.15s ease;
}

.contact-card-value:hover {
  color: var(--accent-cyan);
}

.contact-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  min-height: 38px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.contact-copy-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

@media (max-width: 480px) {
  .contact-form-card {
    padding: 1.25rem 1rem;
  }
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-label .required {
  color: var(--accent-primary);
}

.form-input,
.form-select,
.form-textarea {
  background: var(--bg-main);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.95rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  width: 100%;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

@media (max-width: 768px) {
  .form-input,
  .form-select,
  .form-textarea {
    font-size: 16px;
  }
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

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

.char-counter {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: 0.25rem;
}

.btn-contact-submit {
  width: 100%;
  padding: 0.95rem 1rem;
  font-size: 0.95rem;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
}

/* Contact Success Modal */
#contact-success-modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(5, 5, 9, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

#contact-success-modal.active {
  display: flex;
}

.contact-modal-box {
  background: var(--bg-card);
  border: 1px solid #10b981;
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.contact-modal-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  display: grid;
  place-items: center;
  margin: 0 auto 1.25rem;
  font-size: 1.75rem;
  font-weight: 900;
}

.contact-modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

@media (max-width: 540px) {
  .contact-modal-actions {
    flex-direction: column;
  }
}

/* ==========================================================================
   17. SITE FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  padding-top: 4rem;
  padding-bottom: 2.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

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

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

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer-links-list,
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links-list a,
.footer-links a {
  transition: color 0.15s ease;
  color: var(--text-secondary);
}

.footer-links-list a:hover,
.footer-links a:hover {
  color: var(--accent-cyan);
}

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

.footer-col-brand {
  display: flex;
  flex-direction: column;
}

.footer-brand-logo {
  margin-bottom: 0.75rem;
}

.btn-submit-icon {
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.btn-submit-text {
  display: inline-block;
}

.copy-email-btn,
.copy-phone-btn {
  cursor: pointer;
}

.live-client-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.speed-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ==========================================================================
   18. UTILITIES & REDUCED MOTION
   ========================================================================== */

#toast-notice {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.85rem;
  z-index: 500;
  display: none;
  max-width: 380px;
  line-height: 1.4;
  animation: slide-up 0.2s ease;
}

#toast-notice.show {
  display: block;
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ==========================================================================
   MOBILE VIEWPORT ENGINE (Compact, Natural Scale & Containment)
   ========================================================================== */
@media (max-width: 900px) {
      html {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        overflow-x: clip !important;
        box-sizing: border-box !important;
      }
      body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        overflow-x: clip !important;
        position: relative !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
      }
      section, header, footer, main, .site-header, .hero-section, .section-padding {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
      }
      .section-padding {
        padding-top: 2.25rem !important;
        padding-bottom: 2.25rem !important;
      }
      .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0.85rem !important;
        padding-right: 0.85rem !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
      }

      /* Header & Navigation Containment */
      .site-header {
        min-height: 3.85rem !important;
        height: 3.85rem !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        box-sizing: border-box !important;
      }
      .nav-container {
        min-height: 3.85rem !important;
        height: 3.85rem !important;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        gap: 0.5rem !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
      }
      .nav-links {
        display: none !important;
      }
      .nav-actions {
        margin: 0 !important;
        margin-left: auto !important;
        padding: 0 !important;
        border: none !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
      }
      .header-theme-select-wrap,
      #btn-audio-toggle,
      #btn-xray-mode,
      .site-header .btn-primary,
      .site-header .btn-phone-quick {
        display: none !important;
      }
      .btn-mobile-toggle {
        display: flex !important;
        flex-shrink: 0 !important;
        width: 44px !important;
        height: 44px !important;
        margin: 0 !important;
      }
      .site-header .brand-logo {
        max-width: calc(100% - 56px) !important;
        min-width: 0 !important;
        flex-shrink: 1 !important;
        overflow: hidden !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
      }
      .site-footer .brand-logo {
        max-width: 100% !important;
        overflow: visible !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 0.75rem !important;
        margin-bottom: 0.85rem !important;
        text-decoration: none !important;
      }
      .brand-mark {
        width: auto !important;
        min-width: 52px !important;
        height: 28px !important;
        padding: 0 0.65rem !important;
        font-size: 0.72rem !important;
        letter-spacing: 0.06em !important;
        text-indent: 0.06em !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        border-radius: 5px !important;
        box-sizing: border-box !important;
        flex-shrink: 0 !important;
      }
      .brand-text-col {
        min-width: 0 !important;
        flex-shrink: 1 !important;
        overflow: hidden !important;
      }
      .brand-name {
        font-size: clamp(0.72rem, 3.2vw, 0.86rem) !important;
        letter-spacing: 0.02em !important;
        word-spacing: 0.1em !important;
        line-height: 1.15 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
      }
      .brand-sub {
        font-size: clamp(0.5rem, 2.2vw, 0.6rem) !important;
        letter-spacing: 0.02em !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
      }

      /* Hero Section Mobile Proportions - Natural, unzoomed scale */
      .hero-section {
        padding-top: 1.75rem !important;
        padding-bottom: 2.25rem !important;
      }
      .hero-title {
        font-size: clamp(1.55rem, 6.2vw, 2.2rem) !important;
        line-height: 1.2 !important;
        text-align: left !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 0.75rem !important;
        margin-bottom: 1rem !important;
      }
      .hero-subtitle {
        font-size: 0.9rem !important;
        line-height: 1.55 !important;
        text-align: left !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 1.25rem !important;
      }
      .hero-pills {
        gap: 0.4rem !important;
        margin-bottom: 1.5rem !important;
      }
      .hero-pill-item {
        padding: 0.45rem 0.75rem !important;
        min-height: 38px !important;
        font-size: 0.72rem !important;
        line-height: 1.3 !important;
      }
      .hero-guarantee {
        font-size: 0.78rem !important;
        color: var(--text-muted) !important;
        margin-top: 1rem !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.35rem !important;
        flex-wrap: wrap !important;
        line-height: 1.35 !important;
      }

      /* Master Card & Box Containment - Cards with full-bleed media or headers */
      .hero-card-browser,
      .live-client-card,
      .project-card,
      .faq-item,
      .sandbox-device-frame,
      .sandbox-stage {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
      }

      /* Content-only cards - Bounded padding */
      .service-card,
      .contact-direct-card,
      .contact-form-card,
      .sprint-compact-card,
      .maintenance-hero-card,
      .maintenance-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 1.15rem 0.85rem !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
      }

      /* Pricing Tier Cards - Unclipped Containment for Floating Starting Point Badge */
      .pricing-tier-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 2.25rem 1.15rem 1.5rem !important;
        box-sizing: border-box !important;
        overflow: visible !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        position: relative !important;
      }
      .pricing-badge-top {
        position: absolute !important;
        top: -14px !important;
        left: 1.25rem !important;
        z-index: 15 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        font-size: 0.72rem !important;
        font-weight: 800 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.06em !important;
        padding: 0.35rem 0.85rem !important;
        border-radius: 999px !important;
        box-shadow: 0 4px 14px rgba(14, 165, 233, 0.45) !important;
        box-sizing: border-box !important;
      }

      /* Single Column Grid Collapse for Small Screens */
      @media (max-width: 640px) {
        .services-grid,
        .pricing-tiers-grid,
        .pricing-overview-grid,
        .form-row,
        .footer-grid,
        .live-clients-grid,
        .portfolio-grid,
        .hero-grid,
        .contact-grid,
        .maintenance-grid {
          display: grid !important;
          grid-template-columns: minmax(0, 1fr) !important;
          width: 100% !important;
          max-width: 100% !important;
          min-width: 0 !important;
          gap: 1.15rem !important;
          box-sizing: border-box !important;
        }
      }

      /* Buttons & Action Items */
      .hero-actions {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.65rem !important;
        width: 100% !important;
      }
      .hero-actions .btn-primary,
      .hero-actions .btn-secondary,
      .hero-actions .btn-phone-quick,
      .live-client-footer .btn-primary,
      .pricing-tier-card .btn-primary,
      .btn-contact-submit {
        width: 100% !important;
        max-width: 100% !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        min-height: 48px !important;
        display: flex !important;
        align-items: center !important;
        text-align: center !important;
        white-space: normal !important;
        line-height: 1.35 !important;
        padding: 0.75rem 1rem !important;
        font-size: clamp(0.78rem, 3.2vw, 0.9rem) !important;
        letter-spacing: 0.03em !important;
      }

      /* Form Inputs - Clean 16px to Prevent iOS Safari Auto-Zoom */
      input, select, textarea, .form-input, .form-select, .form-textarea {
        font-size: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 44px !important;
        box-sizing: border-box !important;
      }

      /* Section Typography Proportions */
      .section-title {
        font-size: clamp(1.35rem, 5.5vw, 1.95rem) !important;
        line-height: 1.25 !important;
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100% !important;
        max-width: 100% !important;
      }
      .section-desc {
        font-size: 0.88rem !important;
        line-height: 1.5 !important;
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100% !important;
        max-width: 100% !important;
      }

      /* Hero Mini Tabs - Horizontal Scroll */
      .hero-mini-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 0.35rem !important;
        padding-bottom: 0.35rem !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
      }
      .hero-mini-tab {
        flex-shrink: 0 !important;
        font-size: 0.72rem !important;
        padding: 0.35rem 0.6rem !important;
      }

      /* Hide Desktop/Tablet Viewport Switchers on Mobile */
      .sandbox-center-viewports {
        display: none !important;
      }
      .sandbox-device-frame {
        width: 100% !important;
        max-width: 100% !important;
      }

      /* Hide Floating Arcade Button on Mobile so it never obstructs screen content */
      .floating-arcade-trigger {
        display: none !important;
      }

      /* Comparison Table Scrollable Wrap */
      .comparison-table-wrap {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        display: block !important;
        box-sizing: border-box !important;
        border-radius: var(--radius-md) !important;
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
      }
      .comparison-table {
        min-width: 500px !important;
        width: 100% !important;
      }

      /* Media Containment */
      img, video, canvas, svg {
        max-width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
      }

      /* Toast Notice - Bounded on Small Screens */
      #toast-notice,
      .toast-notice {
        left: 1rem !important;
        right: 1rem !important;
        max-width: calc(100% - 2rem) !important;
        bottom: 1rem !important;
        text-align: center !important;
        justify-content: center !important;
      }
    }
