/* ============================================================
   Sterling IT — style.css (v2 — redesign)
   Pure CSS with custom property theming.
   Light/dark via [data-theme] on <html>.
   ============================================================ */

/* ===================== THEME VARIABLES ===================== */

:root {
  /* Backgrounds */
  --bg-primary:        #FFFFFF;
  --bg-secondary:      #F4F7FB;
  --bg-tertiary:       #EAF1FA;
  --bg-dark-band:      #0B1220;

  /* Surfaces */
  --surface:           #FFFFFF;
  --surface-hover:     #F0F5FC;
  --surface-border:    #E2E8F2;
  --surface-strong:    #FFFFFF;

  /* Text */
  --text-primary:      #0F1923;
  --text-secondary:    #3D4F66;
  --text-muted:        #6B7FA3;
  --text-inverse:      #FFFFFF;

  /* Accent — primary brand */
  --accent:            #2563EB;
  --accent-hover:      #1D4ED8;
  --accent-light:      rgba(37, 99, 235, 0.08);
  --accent-glow:       rgba(37, 99, 235, 0.25);

  /* Gradients */
  --gradient-primary:  linear-gradient(135deg, #2563EB 0%, #9333EA 100%);
  --gradient-primary-h:linear-gradient(135deg, #1D4ED8 0%, #7E22CE 100%);
  --gradient-cyan:     linear-gradient(135deg, #3B82F6 0%, #06B6D4 100%);
  --gradient-pink:     linear-gradient(135deg, #A855F7 0%, #EC4899 100%);
  --gradient-teal:     linear-gradient(135deg, #10B981 0%, #14B8A6 100%);
  --gradient-text:     linear-gradient(90deg, #2563EB 0%, #9333EA 50%, #2563EB 100%);
  --gradient-hero-overlay: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.12) 100%);

  /* Semantic */
  --success:           #16A34A;
  --success-bg:        rgba(22, 163, 74, 0.10);
  --error:             #DC2626;
  --error-bg:          rgba(220, 38, 38, 0.08);
  --info-bg:           rgba(37, 99, 235, 0.10);

  /* Navbar */
  --nav-bg:            rgba(255, 255, 255, 0);
  --nav-bg-scrolled:   rgba(255, 255, 255, 0.88);
  --nav-shadow:        0 1px 24px rgba(15, 25, 35, 0.08);

  /* Shadows */
  --shadow-xs:         0 1px 2px rgba(15, 25, 35, 0.04);
  --shadow-sm:         0 2px 8px rgba(15, 25, 35, 0.06);
  --shadow-md:         0 6px 20px rgba(15, 25, 35, 0.08);
  --shadow-lg:         0 14px 44px rgba(15, 25, 35, 0.12);
  --shadow-xl:         0 24px 60px rgba(15, 25, 35, 0.16);
  --shadow-card-hover: 0 24px 56px rgba(37, 99, 235, 0.16);
  --shadow-glow:       0 0 36px rgba(37, 99, 235, 0.18);

  /* Border radii */
  --radius-xs:  4px;
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-pill:999px;

  /* Transitions */
  --t-fast:   140ms cubic-bezier(.4, 0, .2, 1);
  --t-base:   260ms cubic-bezier(.4, 0, .2, 1);
  --t-slow:   420ms cubic-bezier(.4, 0, .2, 1);

  /* Typography */
  --font:      'Geist', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --lh-base:   1.6;
  --lh-tight:  1.15;

  /* Spacing */
  --sp-2:   2px;
  --sp-4:   4px;
  --sp-8:   8px;
  --sp-12:  12px;
  --sp-16:  16px;
  --sp-20:  20px;
  --sp-24:  24px;
  --sp-32:  32px;
  --sp-40:  40px;
  --sp-48:  48px;
  --sp-64:  64px;
  --sp-96:  96px;
  --sp-128: 128px;

  /* Layout */
  --container: 1200px;
  --nav-h:     104px;
}

[data-theme="dark"] {
  --bg-primary:        #07090F;
  --bg-secondary:      #0E1320;
  --bg-tertiary:       #131A2B;
  --bg-dark-band:      #05080F;

  --surface:           #131A2B;
  --surface-hover:     #1A2237;
  --surface-border:    #243049;
  --surface-strong:    #1F2942;

  --text-primary:      #E6EDF3;
  --text-secondary:    #94A3B8;
  --text-muted:        #64748B;
  --text-inverse:      #07090F;

  --accent:            #60A5FA;
  --accent-hover:      #93C5FD;
  --accent-light:      rgba(96, 165, 250, 0.10);
  --accent-glow:       rgba(96, 165, 250, 0.25);

  --gradient-primary:  linear-gradient(135deg, #3B82F6 0%, #A855F7 100%);
  --gradient-primary-h:linear-gradient(135deg, #60A5FA 0%, #C084FC 100%);
  --gradient-text:     linear-gradient(90deg, #60A5FA 0%, #C084FC 50%, #60A5FA 100%);
  --gradient-hero-overlay: linear-gradient(180deg, rgba(7,9,15,0.55) 0%, rgba(14,19,32,0.92) 100%);

  --info-bg:           rgba(96, 165, 250, 0.12);

  --nav-bg:            rgba(7, 9, 15, 0);
  --nav-bg-scrolled:   rgba(7, 9, 15, 0.88);
  --nav-shadow:        0 1px 24px rgba(0, 0, 0, 0.50);

  --shadow-xs:         0 1px 2px rgba(0, 0, 0, 0.30);
  --shadow-sm:         0 2px 8px rgba(0, 0, 0, 0.40);
  --shadow-md:         0 6px 20px rgba(0, 0, 0, 0.45);
  --shadow-lg:         0 14px 44px rgba(0, 0, 0, 0.55);
  --shadow-xl:         0 24px 60px rgba(0, 0, 0, 0.65);
  --shadow-card-hover: 0 24px 56px rgba(96, 165, 250, 0.18);
  --shadow-glow:       0 0 36px rgba(96, 165, 250, 0.22);
}

/* ===================== RESET ===================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: var(--lh-base);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 360ms ease, color 360ms ease;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: var(--font); }

/* ===================== TYPOGRAPHY ===================== */

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 6.5vw, 4.5rem); font-weight: 800; }
h2 { font-size: clamp(1.85rem, 4vw, 3rem); }
h3 { font-size: 1.4rem; font-weight: 700; }
h4 { font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }

p { color: var(--text-secondary); }
strong { color: var(--text-primary); font-weight: 600; }

/* Gradient text utility */
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: gradient-pan 8s linear infinite;
  display: inline-block;
}
@keyframes gradient-pan {
  to { background-position: 200% center; }
}
@media (prefers-reduced-motion: reduce) {
  .gradient-text { animation: none; }
}

/* ===================== LAYOUT ===================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 32px);
}

section {
  padding: clamp(64px, 10vw, 120px) 0;
  position: relative;
  overflow: hidden;
}

/* Alternating section backgrounds */
#why { background: var(--bg-secondary); }
#services { background: var(--bg-tertiary); }
#stats { background: var(--bg-dark-band); position: relative; overflow: hidden; }
#contact { background: var(--bg-secondary); }

/* Section headers */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--sp-64);
}
.section-header h2 { margin-bottom: var(--sp-16); }
.section-header p { font-size: 1.05rem; color: var(--text-secondary); }

.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--info-bg);
  color: var(--accent);
  margin-bottom: var(--sp-16);
}

#stats .section-header h2 { color: #FFFFFF; }
#stats .section-header p  { color: rgba(255, 255, 255, 0.72); }

/* ===================== SCROLL REVEAL ===================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(.4,0,.2,1), transform 0.65s cubic-bezier(.4,0,.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(.4,0,.2,1), transform 0.6s cubic-bezier(.4,0,.2,1);
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 90ms; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 180ms; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 270ms; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 360ms; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 450ms; }
.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ===================== SCROLL PROGRESS BAR ===================== */

#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--gradient-primary);
  z-index: 1100;
  pointer-events: none;
  transition: width 80ms linear;
}

/* ===================== PARALLAX BLOBS ===================== */

.parallax-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  width: 480px;
  height: 480px;
  top: -120px;
  right: -120px;
  will-change: transform;
}
.parallax-blob--cyan   { background: var(--gradient-cyan);  opacity: 0.20; }
.parallax-blob--pink   { background: var(--gradient-pink);  opacity: 0.18; }
.parallax-blob--purple { background: var(--gradient-primary); opacity: 0.16; right: auto; left: -100px; top: auto; bottom: -100px; }
.parallax-blob--blue   { background: var(--gradient-cyan);  opacity: 0.18; left: -120px; top: 30%; right: auto; }
.parallax-blob--small  { width: 320px; height: 320px; opacity: 0.22; }

[data-theme="dark"] .parallax-blob { opacity: 0.30; }
[data-theme="dark"] .parallax-blob--purple { opacity: 0.22; }

@media (prefers-reduced-motion: reduce) {
  .parallax-blob { display: none; }
}

/* ===================== BUTTONS ===================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 0.975rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: background var(--t-base), color var(--t-base),
              border-color var(--t-base), transform var(--t-base),
              box-shadow var(--t-base);
  white-space: nowrap;
  user-select: none;
  position: relative;
  will-change: transform;
}
.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  box-shadow: 0 8px 24px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--gradient-primary-h);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--accent-glow);
}

.btn-secondary {
  background: var(--surface);
  color: var(--accent);
  border-color: var(--surface-border);
}
.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--surface-border);
}
.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-on-featured {
  background: rgba(255, 255, 255, 0.95);
  color: var(--accent);
  border: none;
}
.btn-on-featured:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.btn-sm  { padding: 9px 20px; font-size: 0.875rem; }
.btn-lg  { padding: 16px 32px; font-size: 1rem; }
.btn-full { width: 100%; }

/* Submit button loading */
.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  flex-shrink: 0;
}
.btn.loading .btn-text { display: none; }
.btn.loading .btn-spinner { display: block; }
.btn.loading { opacity: 0.85; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }

@keyframes nav-item-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .nav-links.open .nav-link { animation: none; }
}

/* ===================== NAVBAR ===================== */

#navbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}
#navbar.scrolled {
  background: var(--nav-bg-scrolled);
  box-shadow: var(--nav-shadow);
}
#navbar.nav-hidden {
  transform: translateY(-100%);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: var(--sp-32);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  flex-shrink: 0;
  text-decoration: none;
  padding: var(--sp-4) var(--sp-8) var(--sp-4) 0;
  transition: transform var(--t-fast);
}
.nav-logo:hover { transform: scale(1.03); }

.logo-img {
  height: 78px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}
.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--t-fast), background var(--t-fast);
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active-link {
  color: var(--accent);
  background: var(--accent-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-12);
  margin-left: auto;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1.5px solid var(--surface-border);
  color: var(--text-secondary);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: var(--accent-light);
  color: var(--accent);
  border-color: var(--accent);
}
.theme-toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.theme-icon { display: none; }
[data-theme="light"] .theme-icon-light { display: flex; }
[data-theme="dark"]  .theme-icon-dark  { display: flex; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1.5px solid var(--surface-border);
  padding: 0 9px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-base);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== HERO ===================== */

#hero {
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  /* Light mode: invert + preserve original hue so the dark video becomes a bright
     animated backdrop with the same neon-blue/cyan wave colors. Dark text reads
     crisply on top with no halo needed. */
  filter: invert(1) hue-rotate(180deg);
}
[data-theme="dark"] .hero-video {
  filter: none;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero-overlay);
  z-index: 1;
  pointer-events: none;
}
[data-theme="dark"] .hero-overlay {
  background: linear-gradient(180deg, rgba(7,9,15,0.50) 0%, rgba(7,9,15,0.90) 100%);
}

.hero-cursor-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.20) 0%, rgba(37,99,235,0) 60%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 300ms ease;
  opacity: 0;
  mix-blend-mode: screen;
}
[data-theme="dark"] .hero-cursor-glow {
  background: radial-gradient(circle, rgba(96,165,250,0.18) 0%, rgba(96,165,250,0) 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  will-change: transform;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: rgba(37, 99, 235, 0.12);
  color: var(--accent);
  margin-bottom: var(--sp-24);
  border: 1px solid rgba(37, 99, 235, 0.20);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
[data-theme="dark"] .hero-eyebrow {
  background: rgba(96, 165, 250, 0.14);
  color: var(--accent);
  border-color: rgba(96, 165, 250, 0.30);
}

.hero-headline {
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: var(--sp-24);
}

.hero-subtext {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 620px;
  margin-bottom: var(--sp-32);
}

.hero-ctas {
  display: flex;
  gap: var(--sp-16);
  flex-wrap: wrap;
  margin-bottom: var(--sp-48);
}

.hero-scroll-hint {
  position: absolute;
  bottom: var(--sp-32);
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  z-index: 2;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-hint { animation: none; }
}

/* ===================== WHY (3-CARD GRID) ===================== */

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-24);
  position: relative;
  z-index: 1;
}

.why-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-32);
  overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.why-card-border {
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 60px;
  border-radius: 0 0 6px 6px;
  transition: width var(--t-slow);
}
.why-card:hover .why-card-border { width: 100%; }

.why-card--cyan .why-card-border { background: var(--gradient-cyan); }
.why-card--pink .why-card-border { background: var(--gradient-pink); }
.why-card--teal .why-card-border { background: var(--gradient-teal); }

.why-card-icon {
  display: inline-flex;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-20);
  color: #fff;
}
.why-card--cyan .why-card-icon { background: var(--gradient-cyan); }
.why-card--pink .why-card-icon { background: var(--gradient-pink); }
.why-card--teal .why-card-icon { background: var(--gradient-teal); }

.why-card h3 { margin-bottom: var(--sp-12); }
.why-card > p {
  color: var(--text-secondary);
  margin-bottom: var(--sp-20);
}

.why-card-points {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
  border-top: 1px solid var(--surface-border);
  padding-top: var(--sp-16);
}
.why-card-points li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding-left: var(--sp-20);
  position: relative;
}
.why-card-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 2px;
  background: currentColor;
  opacity: 0.5;
  border-radius: 1px;
}

/* ===================== RECENT WORK ===================== */

.work-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--sp-32);
}

.work-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  text-decoration: none;
  color: inherit;
}
.work-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow-card-hover);
}

.work-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-tertiary);
}
.work-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(.4,0,.2,1);
}
.work-card:hover .work-card-media img {
  transform: scale(1.04);
}

.work-card-body {
  padding: var(--sp-32);
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
}

.work-badges {
  display: flex;
  gap: var(--sp-8);
  flex-wrap: wrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}
.badge--blue { background: var(--info-bg); color: var(--accent); }
.badge--green { background: var(--success-bg); color: var(--success); }

.work-card h3 { font-size: 1.5rem; }
.work-card p { color: var(--text-secondary); line-height: 1.65; }

.work-card-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-8);
  font-weight: 600;
  color: var(--accent);
  margin-top: var(--sp-8);
  transition: gap var(--t-base);
}
.work-card:hover .work-card-cta { gap: var(--sp-12); }

/* Placeholder card variant */
.work-card--placeholder {
  border: 2px dashed var(--surface-border);
  background: transparent;
  align-items: stretch;
  justify-content: center;
}
.work-card--placeholder:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}
.work-card-body--placeholder {
  align-items: center;
  text-align: center;
  height: 100%;
  justify-content: center;
  gap: var(--sp-16);
}
.placeholder-icon {
  width: 112px;
  height: 112px;
  border-radius: var(--radius-lg);
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-8);
  box-shadow: 0 16px 36px var(--accent-glow);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.work-card--placeholder:hover .placeholder-icon {
  transform: scale(1.05) rotate(8deg);
  box-shadow: 0 24px 44px var(--accent-glow);
}

/* ===================== PROCESS / HOW IT WORKS ===================== */

.process-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-24);
  position: relative;
  z-index: 1;
}

/* Connector line behind step numbers on desktop */
.process-steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--accent) 12%,
    #9333EA 50%,
    var(--accent) 88%,
    transparent 100%);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}

.process-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-16);
  z-index: 1;
}

.process-step-num {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: 0 12px 28px var(--accent-glow);
  position: relative;
  flex-shrink: 0;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.process-step-num::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0.25;
  transition: opacity var(--t-base);
}
.process-step:hover .process-step-num {
  transform: scale(1.06);
  box-shadow: 0 18px 36px var(--accent-glow);
}
.process-step:hover .process-step-num::before { opacity: 0.5; }

.process-step-body {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: var(--sp-20) var(--sp-20) var(--sp-24);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-12);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.process-step:hover .process-step-body {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-card-hover);
}

.process-step-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.process-step h3 {
  font-size: 1.1rem;
  margin: 0;
}
.process-step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* ===================== SERVICES / PRICING TIERS ===================== */

.tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-24);
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.tier-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-40) var(--sp-32);
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.tier-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

/* Featured tier (Pro Hosting) — gradient bg, white text, slightly bigger, animated rainbow outline */

/* Animatable custom angle property for the rotating conic gradient. */
@property --tier-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: true;
}

.tier-card--featured {
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  transform: scale(1.04);
  box-shadow: var(--shadow-xl);
  isolation: isolate;
  /* Drive --tier-angle on the parent so both ::before (outline) and ::after (glow)
     stay in sync naturally — they share the same custom property value. */
  animation: tier-rotate 6s linear infinite;
}
.tier-card--featured::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2.5px;                 /* outline thickness */
  background: conic-gradient(
    from var(--tier-angle),
    #2563EB, #9333EA, #EC4899, #06B6D4, #2563EB
  );
  /* Mask out the interior so only a thin ring on the border is visible */
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
          mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}
/* Gentle blurred aura behind the card — same gradient/angle as the outline,
   so the colors cycle together. Only visible in the area extending beyond the
   card edges since the card's own background covers the interior. */
.tier-card--featured::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--tier-angle),
    #2563EB, #9333EA, #EC4899, #06B6D4, #2563EB
  );
  filter: blur(18px);
  opacity: 0.32;
  z-index: -1;
  pointer-events: none;
}
@keyframes tier-rotate {
  to { --tier-angle: 360deg; }
}
@media (prefers-reduced-motion: reduce) {
  .tier-card--featured { animation: none; }
}
.tier-card--featured:hover {
  transform: scale(1.04) translateY(-6px);
  box-shadow: 0 30px 70px rgba(37, 99, 235, 0.30);
}
.tier-card--featured:hover::before {
  padding: 3.5px;
}
.tier-card--featured:hover::after {
  inset: -14px;
  opacity: 0.45;
}
.tier-card--featured .tier-name,
.tier-card--featured .tier-tagline,
.tier-card--featured .tier-features li {
  color: #fff;
}
.tier-card--featured .check {
  color: rgba(255, 255, 255, 0.95);
}
.tier-card--featured .tier-num {
  color: rgba(255, 255, 255, 0.45);
}

.tier-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #fff;
  color: var(--accent);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  z-index: 2;  /* sits above the rotating outline (::before z-index 1) */
}

.tier-num {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.tier-name { font-size: 1.6rem; font-weight: 700; }
.tier-tagline { color: var(--text-secondary); font-size: 0.95rem; }

.tier-features {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
  flex: 1;
  margin: var(--sp-8) 0 var(--sp-16);
}
.tier-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-12);
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.tier-features .check {
  flex-shrink: 0;
  color: var(--success);
  margin-top: 2px;
}

/* ===================== SERVICES — DESIGN INTRO ===================== */

.design-intro {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-40);
  margin-bottom: var(--sp-48);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-32);
  align-items: center;
  overflow: hidden;
  z-index: 1;
}
.design-intro::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-primary);
}
.design-intro-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 12px 30px var(--accent-glow);
}
.design-intro-body .section-eyebrow {
  display: inline-block;
  margin-bottom: var(--sp-8);
}
.design-intro-body h3 {
  font-size: 1.6rem;
  margin-bottom: var(--sp-12);
}
.design-intro-body p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
  font-size: 1rem;
}

/* Step subheaders between blocks */
.services-subhead {
  text-align: center;
  max-width: 720px;
  margin: var(--sp-64) auto var(--sp-32);
  position: relative;
  z-index: 1;
}
.services-subhead .section-eyebrow {
  margin-bottom: var(--sp-12);
}
.services-subhead h3 {
  font-size: 1.5rem;
  margin-bottom: var(--sp-8);
}
.services-subhead p {
  color: var(--text-secondary);
  font-size: 0.975rem;
}

/* ===================== SERVICES — ADD-ONS GRID ===================== */

.addons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-20);
  position: relative;
  z-index: 1;
}

.addon-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: var(--sp-24);
  text-decoration: none;
  color: inherit;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.addon-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-card-hover);
}

.addon-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--t-base), color var(--t-base);
}
.addon-card:hover .addon-card-icon {
  background: var(--gradient-primary);
  color: #fff;
}

.addon-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--text-primary);
  margin: 0;
}
.addon-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.addon-card-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--t-base);
}

/* ===================== STATS BAND ===================== */

#stats { color: var(--text-inverse); }

.stats-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.stats-cursor-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96,165,250,0.22) 0%, rgba(96,165,250,0) 60%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 300ms ease;
  opacity: 0;
  mix-blend-mode: screen;
}

#stats > .container { position: relative; z-index: 2; }

.stats-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-48);
  text-align: center;
  position: relative;
  z-index: 2;
}

.stat-big {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
  align-items: center;
}
.stat-big-number {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.stat-big-label {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}
.stat-big-source {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ===================== ABOUT ===================== */

.about-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: var(--sp-96);
  align-items: center;
}

.about-photo {
  position: relative;
}
.about-photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-photo-frame::before {
  content: '';
  position: absolute;
  inset: -3px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  z-index: 0;
  opacity: 0.7;
}
.about-photo-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 2px);
  display: block;
  transition: transform 600ms cubic-bezier(.4,0,.2,1);
}
.about-photo:hover .about-photo-frame img {
  transform: scale(1.02);
}

.about-content .section-eyebrow {
  display: inline-block;
  margin-bottom: var(--sp-16);
}
.about-content h2 { margin-bottom: var(--sp-24); }
.about-content p {
  margin-bottom: var(--sp-16);
  font-size: 1rem;
  line-height: 1.75;
}
.about-content p:last-of-type { margin-bottom: var(--sp-32); }

.certifications h4 { margin-bottom: var(--sp-16); }
.cert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-8);
}
.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--info-bg);
  color: var(--accent);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
[data-theme="dark"] .cert-badge {
  border-color: rgba(96, 165, 250, 0.30);
}
.cert-badge:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 12px var(--accent-glow);
}

/* ===================== CONTACT ===================== */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--sp-48);
  align-items: start;
  position: relative;
  z-index: 1;
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-20);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-48);
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-20);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.required { color: var(--accent); margin-left: 2px; }
.optional  { color: var(--text-muted); font-weight: 400; font-size: 0.8rem; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1.5px solid var(--surface-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.975rem;
  line-height: 1.5;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  appearance: none;
  -webkit-appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7FA3' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: var(--surface);
}
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: var(--error);
  box-shadow: 0 0 0 3px var(--error-bg);
}

.field-error {
  font-size: 0.78rem;
  color: var(--error);
  min-height: 1em;
  line-height: 1.3;
}

/* Conditional reveal */
.form-group.conditional {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0;
  margin: 0;
  gap: 0;
  transition: max-height 360ms cubic-bezier(.4,0,.2,1),
              opacity 240ms ease,
              margin 240ms ease;
}
.form-group.conditional.is-visible {
  max-height: 200px;
  opacity: 1;
  gap: var(--sp-4);
  margin-top: 0;
}

/* Honeypot */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-feedback {
  padding: var(--sp-12) var(--sp-16);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
}
.form-feedback.visible { display: block; }
.form-feedback.success { background: var(--success-bg); color: var(--success); }
.form-feedback.error   { background: var(--error-bg); color: var(--error); }

/* Contact aside */
.contact-aside {
  display: flex;
  flex-direction: column;
  gap: var(--sp-24);
}
.contact-info-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: var(--sp-24);
  box-shadow: var(--shadow-sm);
}
.contact-info-card h3 {
  font-size: 1rem;
  margin-bottom: var(--sp-16);
}
.contact-email {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  transition: opacity var(--t-fast);
}
.contact-email:hover { opacity: 0.8; }

.contact-promise {
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
}
.promise-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-12);
  color: var(--accent);
}
.promise-item > div { display: flex; flex-direction: column; gap: 2px; }
.promise-item strong { font-size: 0.9rem; color: var(--text-primary); }
.promise-item span { font-size: 0.82rem; color: var(--text-muted); }

/* ===================== FOOTER ===================== */

#footer {
  background: var(--bg-tertiary);
  border-top: 1px solid var(--surface-border);
  padding: var(--sp-48) 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-16);
  text-align: center;
}
.footer-brand { display: flex; align-items: center; }
#footer .logo-img { height: 90px; }
.footer-tagline { font-size: 0.95rem; color: var(--text-muted); font-style: italic; }
.footer-links {
  display: flex;
  gap: var(--sp-24);
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--t-fast);
}
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-size: 0.8rem; color: var(--text-muted); }
.footer-copy a { color: var(--accent); }
.footer-copy a:hover { text-decoration: underline; }

/* ===================== STICKY MOBILE CTA ===================== */

.sticky-cta {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 999;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 12px 32px var(--accent-glow);
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 300ms ease, transform 300ms ease;
}
.sticky-cta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ===================== RESPONSIVE ===================== */

@media (max-width: 1024px) {
  .why-grid    { grid-template-columns: repeat(3, 1fr); gap: var(--sp-16); }
  .tiers-grid  { grid-template-columns: 1fr; gap: var(--sp-32); }
  .tier-card--featured { transform: none; }
  .tier-card--featured:hover { transform: translateY(-6px); }
  .addons-grid { grid-template-columns: repeat(2, 1fr); }
  .about-layout { grid-template-columns: 320px 1fr; gap: var(--sp-48); }
  .contact-layout { grid-template-columns: 1fr 300px; gap: var(--sp-32); }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: var(--sp-32); }
  .process-steps::before { display: none; }
}

@media (max-width: 900px) {
  .work-grid   { grid-template-columns: 1fr; }
  .why-grid    { grid-template-columns: 1fr 1fr; }
  .why-grid > *:nth-child(3) { grid-column: 1 / -1; }
  .stats-band  { grid-template-columns: repeat(3, 1fr); gap: var(--sp-24); }
  .about-layout { grid-template-columns: 1fr; gap: var(--sp-32); }
  .about-photo { max-width: 320px; margin: 0 auto; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-aside {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--sp-16);
  }
  .contact-info-card, .contact-promise { flex: 1; min-width: 240px; }
  .contact-promise { flex-direction: row; flex-wrap: wrap; }
  .promise-item { flex: 1; min-width: 140px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 96px; }

  /* Mobile navbar — logo absolutely centered, buttons grouped on the right */
  .nav-inner { position: relative; }
  .nav-logo {
    position: absolute;
    left: calc(50% - 48px);
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 0;
    margin: 0;
    pointer-events: auto;
  }
  .nav-actions { gap: var(--sp-8); }
  .hamburger { display: flex; }
  .nav-cta { display: none; }
  .logo-img { height: 72px; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--surface-border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--sp-12) var(--sp-20) var(--sp-20);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--t-slow), opacity var(--t-slow);
  }
  [data-theme="dark"] .nav-links {
    background: var(--bg-secondary);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 8px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    background: none;
    border: none;
    border-radius: 0;
    transition: color var(--t-fast), background var(--t-fast);
  }
  .nav-link:hover,
  .nav-link:active { color: var(--accent); }
  .nav-link.active-link {
    color: var(--accent);
    background: rgba(37, 99, 235, 0.06);
    border-radius: var(--radius-sm);
  }
  [data-theme="dark"] .nav-link.active-link {
    background: rgba(96, 165, 250, 0.10);
  }
  .nav-links > li:not(:last-child)::after {
    content: '';
    display: block;
    height: 1px;
    width: 16.67%;
    margin: 0 auto;
    background: var(--surface-border);
  }
  .nav-links > li:last-child {
    margin-top: var(--sp-12);
    padding-top: var(--sp-12);
    border-top: 1px solid var(--surface-border);
  }
  .nav-links > li:last-child .nav-link {
    background: var(--gradient-primary);
    color: #fff;
    border-radius: var(--radius-pill);
    justify-content: center;
    padding: 14px 20px;
  }

  .nav-links.open .nav-link {
    animation: nav-item-in 0.35s cubic-bezier(.4,0,.2,1) backwards;
  }
  .nav-links.open li:nth-child(1) .nav-link { animation-delay: 0.04s; }
  .nav-links.open li:nth-child(2) .nav-link { animation-delay: 0.08s; }
  .nav-links.open li:nth-child(3) .nav-link { animation-delay: 0.12s; }
  .nav-links.open li:nth-child(4) .nav-link { animation-delay: 0.16s; }
  .nav-links.open li:nth-child(5) .nav-link { animation-delay: 0.20s; }
  .nav-links.open li:nth-child(6) .nav-link { animation-delay: 0.24s; }
  .nav-links.open li:nth-child(7) .nav-link { animation-delay: 0.28s; }

  /* Hero on mobile — video plays; object-fit: cover already zoom-crops to portrait */
  #hero {
    justify-content: flex-start;
    padding-top: calc(var(--nav-h) + var(--sp-24));
    min-height: auto;
    padding-bottom: var(--sp-64);
  }
  .hero-cursor-glow  { display: none; }
  .stats-cursor-glow { display: none; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-headline { font-size: clamp(2.2rem, 9vw, 3rem); }
  .hero-subtext { font-size: 1rem; }

  /* Process — vertical timeline on mobile */
  .process-steps {
    grid-template-columns: 1fr;
    gap: var(--sp-24);
    max-width: 480px;
    margin: 0 auto;
  }
  .process-steps::before {
    display: block;
    top: 36px;
    bottom: 36px;
    left: 35px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg,
      transparent 0%,
      var(--accent) 8%,
      #9333EA 50%,
      var(--accent) 92%,
      transparent 100%);
  }
  .process-step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: var(--sp-16);
  }
  .process-step-num {
    width: 56px;
    height: 56px;
    font-size: 1.1rem;
  }
  .process-step-body {
    flex: 1;
    align-items: flex-start;
    text-align: left;
  }

  /* Why grid — 1 column on mobile */
  .why-grid { grid-template-columns: 1fr; }
  .why-grid > *:nth-child(3) { grid-column: auto; }

  /* Stats band — 2-up first then 1 to keep impact */
  .stats-band { grid-template-columns: 1fr; gap: var(--sp-32); }
  .stat-big-number { font-size: clamp(2.6rem, 12vw, 4rem); }

  /* Cert badges — keep 2-column-ish via wrap */
  .cert-badges { gap: var(--sp-8); }
  .cert-badge { font-size: 0.75rem; padding: 6px 12px; }

  /* Tiers — Featured card no longer scaled */
  .tier-card { padding: var(--sp-32) var(--sp-24); }
  .tier-card--featured { transform: none; }

  /* Design intro stacks vertically */
  .design-intro {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--sp-20);
    padding: var(--sp-32) var(--sp-24);
  }
  .design-intro-icon { margin: 0 auto; width: 64px; height: 64px; }
  .design-intro-body h3 { font-size: 1.35rem; }

  /* Add-ons stack to 1 column */
  .addons-grid { grid-template-columns: 1fr; }

  /* Form */
  #contact-form { padding: var(--sp-24); }
  .form-row { grid-template-columns: 1fr; }

  /* Show sticky CTA on mobile */
  .sticky-cta { display: inline-flex; }
  .sticky-cta span { display: none; }
  .sticky-cta { padding: 14px; width: 52px; height: 52px; justify-content: center; }
}

@media (max-width: 480px) {
  section { padding: var(--sp-48) 0; }

  .work-card-body { padding: var(--sp-24); }
  .tier-card { padding: var(--sp-24) var(--sp-20); }
  #contact-form { padding: var(--sp-16); }
  .section-header { margin-bottom: var(--sp-40); }
}

/* ===================== FORM SUBMIT CELEBRATION ===================== */

.confetti {
  position: fixed;
  width: 8px;
  height: 14px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 9999;
  will-change: transform, opacity;
  animation: confetti-burst 1.4s cubic-bezier(.2, .7, .4, 1) forwards;
}
@keyframes confetti-burst {
  0%   { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  100% { transform: translate(var(--dx), calc(var(--dy) + 140px)) rotate(var(--rot)); opacity: 0; }
}

/* Animated check in the success message */
.success-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  vertical-align: -5px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  flex-shrink: 0;
}
.success-check svg {
  width: 14px;
  height: 14px;
}
.success-check svg polyline {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: check-draw 380ms ease-out 80ms forwards;
}
@keyframes check-draw {
  to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .confetti { display: none; }
  .success-check svg polyline { stroke-dashoffset: 0; animation: none; }
}

/* ===================== MAGNETIC + TILT (DESKTOP ONLY) ===================== */

@media (hover: hover) and (pointer: fine) {
  .magnetic { transition: transform 200ms cubic-bezier(.4,0,.2,1); }
  .tilt { transition: transform 400ms cubic-bezier(.4,0,.2,1), box-shadow var(--t-base); }
}
