/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --bg-0:        #05060A;
  --bg-1:        #090B13;
  --bg-2:        #10131D;
  --bg-card:     #12151F;

  --blue:        #00C8FF;
  --magenta:     #FF2D78;
  --purple:      #7B3FE4;
  --orange:      #FF6B35;
  --cyan-soft:   #00E5FF;

  --text-0:      #F0F0F8;
  --text-1:      #A8A8C0;
  --text-2:      #5E6080;

  --border:      rgba(255,255,255,0.06);
  --border-glow: rgba(0,200,255,0.2);

  --grad-primary: linear-gradient(135deg, #00C8FF 0%, #7B3FE4 50%, #FF2D78 100%);
  --grad-subtle:  linear-gradient(135deg, rgba(0,200,255,0.15), rgba(123,63,228,0.10), rgba(255,45,120,0.08));

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --font-display: 'Syne', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg-0);
  color: var(--text-0);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}
.section {
  position: relative;
  padding: 120px 0;
}
.section--tight { padding: 80px 0; }
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

/* ============================================================
   TYPOGRAPHY SYSTEM
   ============================================================ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--blue);
  flex-shrink: 0;
}

.display-xl {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 88px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
}
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.display-md {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.body-lg {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-1);
  font-weight: 400;
}
.body-md {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-1);
}

.grad-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s var(--ease-out), padding 0.4s var(--ease-out), border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5,6,10,0.85);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  padding: 14px 40px;
  border-bottom-color: var(--border);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}
.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--text-0);
}
.nav-logo-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--text-2);
  text-transform: uppercase;
  line-height: 1;
  margin-top: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-1);
  letter-spacing: 0.01em;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--blue);
  transition: width 0.25s var(--ease-out);
}
.nav-links a:hover { color: var(--text-0); }
.nav-links a:hover::after { width: 100%; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.25s;
}
.btn-primary:hover::before { background: rgba(255,255,255,0.1); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 32px rgba(0,200,255,0.3); }

.btn-ghost {
  background: transparent;
  color: var(--text-0);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--border-glow);
  color: var(--blue);
  background: rgba(0,200,255,0.04);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 15px;
  border-radius: var(--radius-md);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 160px 0 100px;
}

/* Animated gradient mesh — the signature element */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  mix-blend-mode: screen;
  animation: orb-drift 12s ease-in-out infinite alternate;
}
.hero-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,200,255,0.22) 0%, transparent 70%);
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}
.hero-orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(123,63,228,0.20) 0%, transparent 70%);
  top: 100px;
  right: 100px;
  animation-delay: -4s;
  animation-duration: 15s;
}
.hero-orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,45,120,0.15) 0%, transparent 70%);
  bottom: 0;
  left: 40%;
  animation-delay: -8s;
  animation-duration: 18s;
}
@keyframes orb-drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(30px, -40px) scale(1.08); }
  100% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Bridge silhouette — pure CSS atmospheric effect */
.hero-bridge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  background:
    linear-gradient(to top, rgba(0,200,255,0.03) 0%, transparent 100%);
  z-index: 1;
}
.hero-bridge::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  background:
    linear-gradient(to top, var(--bg-0) 0%, rgba(5,6,10,0.6) 40%, transparent 100%);
}
/* Grid overlay for retro-futurist texture */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,200,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 0%, transparent 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}
.hero-eyebrow {
  margin-bottom: 28px;
}
.hero-headline {
  margin-bottom: 28px;
  max-width: 800px;
}
.hero-sub {
  max-width: 540px;
  margin-bottom: 48px;
}
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}
.hero-proof {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-proof-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-proof-value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--text-0);
  line-height: 1;
}
.hero-proof-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
  line-height: 1.3;
}
.hero-proof-sep {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* ============================================================
   LOGOS SECTION
   ============================================================ */
.logos {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-1);
}
.logos-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 28px;
  text-align: center;
}
.logos-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}
.logo-pill {
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 40px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-2);
  background: var(--bg-card);
  transition: all 0.25s;
}
.logo-pill:hover {
  border-color: var(--border-glow);
  color: var(--blue);
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 64px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all 0.35s var(--ease-out);
  position: relative;
  overflow: hidden;
  cursor: default;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: var(--grad-subtle);
  opacity: 0;
  transition: opacity 0.35s;
}
.service-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: var(--grad-primary);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.35s;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover::after { opacity: 0.5; }

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 24px;
  position: relative;
}
.service-icon-bg-blue   { background: rgba(0,200,255,0.12); }
.service-icon-bg-purple { background: rgba(123,63,228,0.12); }
.service-icon-bg-pink   { background: rgba(255,45,120,0.12); }
.service-icon-bg-orange { background: rgba(255,107,53,0.12); }

.service-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--text-0);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.service-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-2);
  margin-bottom: 24px;
}
.service-outcomes {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.service-outcome {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.service-outcome::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

/* ============================================================
   WHY SECTION
   ============================================================ */
.why { background: var(--bg-1); }
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 64px;
}
.why-pillars {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.why-pillar {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: padding-left 0.3s var(--ease-out);
  cursor: default;
}
.why-pillar:first-child { border-top: 1px solid var(--border); }
.why-pillar:hover { padding-left: 8px; }
.why-pillar-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--blue);
  letter-spacing: 0.08em;
  padding-top: 2px;
  flex-shrink: 0;
  width: 28px;
}
.why-pillar-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-0);
  margin-bottom: 6px;
}
.why-pillar-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-2);
}
.why-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.why-visual::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle at center, rgba(0,200,255,0.1) 0%, transparent 70%);
}
.why-metric {
  margin-bottom: 32px;
}
.why-metric-value {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 4px;
}
.why-metric-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
}
.why-bar-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.why-bar-item {}
.why-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 6px;
}
.why-bar-track {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.why-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--grad-primary);
  animation: bar-grow 1.5s var(--ease-out) forwards;
  transform-origin: left;
}
@keyframes bar-grow {
  from { width: 0 !important; }
}

/* ============================================================
   PROCESS SECTION
   ============================================================ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 64px;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glow), var(--purple), var(--border-glow), transparent);
}
.process-step {
  padding: 0 16px;
  text-align: center;
}
.process-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--blue);
  background: var(--bg-card);
  position: relative;
  z-index: 1;
}
.process-step-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-0);
  margin-bottom: 8px;
}
.process-step-desc {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-2);
}

/* ============================================================
   CASE STUDIES SECTION
   ============================================================ */
.cases { background: var(--bg-1); }
.cases-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  margin-top: 64px;
}
.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  overflow: hidden;
  position: relative;
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}
.case-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
}
.case-card-featured {
  grid-row: span 2;
}
.case-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 40px;
  border: 1px solid rgba(0,200,255,0.25);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 20px;
}
.case-title {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 700;
  color: var(--text-0);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.case-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-2);
  margin-bottom: 32px;
}
.case-metrics {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.case-metric {}
.case-metric-val {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 2px;
}
.case-metric-label {
  font-size: 11px;
  color: var(--text-2);
  letter-spacing: 0.04em;
}
.case-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.2s;
}
.case-link:hover { gap: 14px; }

/* ============================================================
   INDUSTRIES SECTION
   ============================================================ */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 64px;
}
.industry-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: all 0.25s var(--ease-out);
  cursor: default;
}
.industry-card:hover {
  border-color: var(--border-glow);
  background: rgba(0,200,255,0.03);
  transform: translateY(-2px);
}
.industry-icon { font-size: 28px; margin-bottom: 14px; }
.industry-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-0);
  margin-bottom: 6px;
}
.industry-note {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.5;
}

/* ============================================================
   TECH STACK SECTION
   ============================================================ */
.stack { background: var(--bg-1); }
.stack-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 64px;
}
.stack-cat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
}
.stack-cat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}
.stack-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.stack-tag {
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-1);
  background: rgba(255,255,255,0.02);
  transition: all 0.2s;
}
.stack-tag:hover {
  border-color: rgba(123,63,228,0.35);
  color: var(--purple);
  background: rgba(123,63,228,0.06);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 64px;
}
.testi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.25s;
}
.testi-card:hover { border-color: var(--border-glow); }
.testi-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}
.testi-star { color: var(--orange); font-size: 14px; }
.testi-text {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-1);
  margin-bottom: 24px;
  font-style: italic;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testi-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.testi-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-0);
}
.testi-role {
  font-size: 12px;
  color: var(--text-2);
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq { background: var(--bg-1); }
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 64px;
  align-items: start;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-q {
  padding: 24px 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-0);
  transition: color 0.2s;
}
.faq-q:hover { color: var(--blue); }
.faq-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-2);
  flex-shrink: 0;
  transition: all 0.25s;
}
.faq-item.open .faq-icon {
  border-color: var(--blue);
  color: var(--blue);
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
}
.faq-item.open .faq-a { max-height: 300px; }
.faq-a-inner {
  padding: 0 28px 24px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-2);
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin: 0 28px 24px;
}

/* ============================================================
   LEAD MAGNET / CTA
   ============================================================ */
.lead-cta {
  position: relative;
  overflow: hidden;
}
.lead-cta-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.lead-cta-inner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(123,63,228,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.lead-cta-inner::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: var(--grad-primary);
  z-index: -1;
  opacity: 0.35;
}
.lead-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 36px auto 0;
}
.lead-input {
  flex: 1;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-0);
  outline: none;
  transition: border-color 0.2s;
}
.lead-input::placeholder { color: var(--text-2); }
.lead-input:focus { border-color: var(--border-glow); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-0);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.footer-brand-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 16px;
}
.footer-brand-desc {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 300px;
  margin-bottom: 24px;
}
.footer-location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-2);
  letter-spacing: 0.06em;
}
.footer-col-title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-0);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 13.5px;
  color: var(--text-2);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-0); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy {
  font-size: 12px;
  color: var(--text-2);
}
.footer-legal {
  display: flex;
  gap: 24px;
}
.footer-legal a {
  font-size: 12px;
  color: var(--text-2);
  transition: color 0.2s;
}
.footer-legal a:hover { color: var(--text-0); }

/* ============================================================
   SECTION HEADERS (reusable)
   ============================================================ */
.section-header { margin-bottom: 0; }
.section-header .eyebrow { margin-bottom: 16px; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================================
   DIVIDER
   ============================================================ */
.section-div {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(3, 1fr); }
  .process-steps::before { display: none; }
}
@media (max-width: 860px) {
  .container { padding: 0 24px; }
  .section { padding: 80px 0; }
  .nav { padding: 16px 24px; }
  .nav.scrolled { padding: 12px 24px; }
  .nav-links { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .cases-grid { grid-template-columns: 1fr; }
  .case-card-featured { grid-row: auto; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .stack-categories { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .lead-cta-inner { padding: 48px 32px; }
  .lead-form { flex-direction: column; }
  .hero-proof { gap: 20px; }
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 560px) {
  .industries-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-legal { flex-wrap: wrap; justify-content: center; gap: 16px; }
}

/* ============================================================
   MOBILE NAV TOGGLE
   ============================================================ */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 4px;
}
.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-0);
  border-radius: 2px;
  transition: all 0.3s;
}
@media (max-width: 860px) {
  .nav-mobile-toggle { display: flex; }
}
.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(5,6,10,0.97);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-nav.open { opacity: 1; pointer-events: all; }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-0);
  letter-spacing: -0.02em;
  transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--blue); }
.mobile-nav-close {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 28px;
  color: var(--text-1);
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-nav-close:hover { color: var(--text-0); }



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


/* ============================================================
   BÓSFORO LAB BRAND ASSETS & HERO BACKGROUND
   ============================================================ */
.hero-bg {
  background:
    linear-gradient(90deg, rgba(5,6,10,.82) 0%, rgba(5,6,10,.57) 40%, rgba(5,6,10,.12) 72%, rgba(5,6,10,.08) 100%),
    url("assets/hero-bosforo.webp") center center / cover no-repeat;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,6,10,.18), transparent 42%, rgba(5,6,10,.58));
  pointer-events: none;
}
.hero-orb { opacity: .36; }
.hero-grid { opacity: .5; }
.hero-bridge { opacity: .36; }

.nav-logo {
  width: 174px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 174px;
}
.brand-logo {
  width: 164px;
  height: 68px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 0 16px rgba(255,45,120,.18));
}
.nav.scrolled .nav-logo { height: 58px; }
.nav.scrolled .brand-logo { height: 56px; }
.mobile-menu-logo {
  width: 190px;
  max-height: 170px;
  object-fit: contain;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 20px rgba(0,200,255,.15));
}
.footer-logo {
  width: 188px;
  max-height: 168px;
  object-fit: contain;
  object-position: left center;
  margin: -26px 0 -18px;
  filter: drop-shadow(0 0 14px rgba(255,45,120,.13));
}

/* Floating social buttons */
.floating-social {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2400;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.floating-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px 0 14px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  box-shadow: 0 18px 44px rgba(0,0,0,.42);
  backdrop-filter: blur(16px) saturate(145%);
  -webkit-backdrop-filter: blur(16px) saturate(145%);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s;
}
.floating-button svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}
.floating-button svg .solid { fill: currentColor; stroke: none; }
.floating-button.instagram {
  background: linear-gradient(135deg, rgba(123,63,228,.94), rgba(255,45,120,.92));
  border-color: rgba(255,45,120,.52);
}
.floating-button.whatsapp {
  background: linear-gradient(135deg, rgba(0,185,155,.95), rgba(0,200,255,.9));
  border-color: rgba(0,229,255,.52);
}
.floating-button:hover,
.floating-button:focus-visible {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 22px 54px rgba(0,0,0,.5), 0 0 28px rgba(0,200,255,.18);
}

@media (max-width: 860px) {
  .nav-logo { width: 132px; height: 58px; flex-basis: 132px; }
  .brand-logo { width: 128px; height: 56px; }
  .hero-bg { background-position: 64% center; }
  .floating-social { right: 12px; bottom: 12px; }
  .floating-button { width: 52px; min-height: 52px; padding: 0; justify-content: center; }
  .floating-button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}


/* ============================================================
   REALITY-ALIGNED CONTENT UPDATE
   ============================================================ */
.nav {
  justify-content: flex-start;
  padding: 10px 32px;
  min-height: 88px;
}
.nav.scrolled {
  padding: 8px 32px;
}
.nav-logo {
  width: 142px;
  height: 68px;
  flex: 0 0 142px;
  justify-content: center;
  margin-right: 34px;
}
.brand-logo {
  width: 112px;
  height: 64px;
  object-fit: contain;
  object-position: center;
}
.nav-links {
  margin-right: auto;
  gap: clamp(22px, 2.2vw, 38px);
}
#navCta {
  margin-left: 28px;
}
.nav.scrolled .nav-logo,
.nav.scrolled .brand-logo {
  height: 58px;
}

.why-commitments {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.commitment-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}
.commitment-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.018);
}
.commitment-item > span {
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 11px;
}
.commitment-item strong {
  display: block;
  color: var(--text-0);
  font-family: var(--font-display);
  font-size: 15px;
}
.commitment-item p {
  margin-top: 5px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.55;
}
.stack-disclaimer {
  max-width: 760px;
  margin-top: 24px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.65;
}
.capability-categories .stack-tag {
  cursor: default;
}

.footer-legal-button {
  padding: 0;
  color: var(--text-2);
  font: inherit;
  font-size: 11px;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: color .2s ease;
}
.footer-legal-button:hover,
.footer-legal-button:focus-visible {
  color: var(--blue);
}

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: none;
  place-items: center;
  padding: 20px;
}
.legal-modal.open {
  display: grid;
}
.legal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2,3,8,.84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.legal-modal-panel {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  padding: 36px;
  border: 1px solid rgba(0,200,255,.28);
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 8%, rgba(255,45,120,.09), transparent 26%),
    #090b13;
  box-shadow: 0 34px 100px rgba(0,0,0,.7), 0 0 42px rgba(0,200,255,.08);
}
.legal-modal-panel h2 {
  margin: 12px 0 18px;
  color: var(--text-0);
  font-family: var(--font-display);
  font-size: clamp(27px, 4vw, 42px);
  line-height: 1.05;
}
.legal-modal-panel p {
  margin-top: 13px;
  color: var(--text-1);
  font-size: 14px;
  line-height: 1.75;
}
.legal-modal-panel a {
  color: var(--blue);
}
.legal-note {
  padding-top: 15px;
  border-top: 1px solid var(--border);
  color: var(--text-2) !important;
  font-size: 12px !important;
}
.legal-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  color: var(--pink);
  font-size: 26px;
  line-height: 1;
  border: 1px solid rgba(255,45,120,.3);
  border-radius: 10px;
  background: rgba(255,45,120,.04);
  cursor: pointer;
}
body.modal-open {
  overflow: hidden;
}

@media (max-width: 860px) {
  .nav { padding: 8px 18px; min-height: 78px; }
  .nav.scrolled { padding: 7px 18px; }
  .nav-logo { width: 126px; flex-basis: 126px; height: 62px; margin-right: auto; }
  .brand-logo { width: 98px; height: 58px; }
  #navCta { display: none !important; }
  .legal-modal-panel { padding: 32px 22px 24px; }
}


/* ============================================================
   RESPONSIVE REFINEMENT — TABLETS & SMARTPHONES
   ============================================================ */

/* Footer brand spacing */
.footer-brand-name {
  margin-bottom: 0;
}

.footer-logo {
  width: 188px;
  max-height: 168px;
  margin: 0 0 28px;
  object-fit: contain;
  object-position: left center;
}

.footer-brand-tag {
  margin-top: 0;
  margin-bottom: 15px;
}

.footer-brand-desc {
  max-width: 330px;
}

/* Prevent long content from forcing horizontal overflow */
.hero-content,
.service-card,
.why-grid > *,
.process-step,
.industry-card,
.stack-cat,
.faq-item,
.lead-cta-inner,
.footer-grid > * {
  min-width: 0;
}

.body-lg,
.body-md,
.service-desc,
.why-pillar-desc,
.commitment-item p,
.process-step-desc,
.industry-note,
.stack-disclaimer,
.faq-a-inner,
.footer-brand-desc,
.footer-links a {
  overflow-wrap: anywhere;
}

/* Tablet landscape / compact desktop */
@media (min-width: 861px) and (max-width: 1180px) {
  .container {
    max-width: 1080px;
    padding-inline: 30px;
  }

  .nav {
    padding-inline: 26px;
  }

  .nav.scrolled {
    padding-inline: 26px;
  }

  .nav-logo {
    width: 122px;
    flex-basis: 122px;
    margin-right: 22px;
  }

  .brand-logo {
    width: 100px;
    height: 60px;
  }

  .nav-links {
    gap: clamp(16px, 1.7vw, 25px);
  }

  .nav-links a {
    font-size: 12.5px;
  }

  #navCta {
    margin-left: 20px;
    padding-inline: 17px;
    font-size: 12.5px;
  }

  .hero {
    min-height: 780px;
    padding: 145px 0 90px;
  }

  .hero-headline {
    max-width: 720px;
  }

  .display-xl {
    font-size: clamp(52px, 6vw, 72px);
  }

  .section {
    padding: 96px 0;
  }

  .why-grid {
    gap: 44px;
  }

  .why-visual {
    padding: 30px;
  }

  .stack-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1.35fr 1fr 1fr;
    gap: 34px;
  }

  .footer-grid > div:last-child {
    grid-column: 2 / 4;
  }

  .lead-cta-inner {
    padding: 64px 50px;
  }
}

/* Tablets */
@media (max-width: 860px) {
  html {
    scroll-padding-top: 84px;
  }

  .container {
    padding-inline: 24px;
  }

  .nav {
    min-height: 80px;
    padding: 8px 20px;
  }

  .nav.scrolled {
    min-height: 72px;
    padding: 6px 20px;
  }

  .nav-logo {
    width: 116px;
    height: 62px;
    flex-basis: 116px;
    margin-right: auto;
    justify-content: flex-start;
  }

  .brand-logo,
  .nav.scrolled .brand-logo {
    width: 86px;
    height: 58px;
  }

  .nav-mobile-toggle {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 10px;
    background: rgba(9,11,19,.74);
  }

  .nav-mobile-toggle span {
    width: 23px;
  }

  .mobile-nav {
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 104px 28px 38px;
    overflow-y: auto;
  }

  .mobile-menu-logo {
    width: 150px;
    max-height: 132px;
    margin: 0 auto 24px;
  }

  .mobile-nav a {
    width: 100%;
    padding: 15px 0;
    font-size: clamp(20px, 5vw, 26px);
    text-align: center;
    border-bottom: 1px solid var(--border);
  }

  .mobile-nav .btn {
    width: 100%;
    justify-content: center;
    margin-top: 22px;
    border-bottom: 0;
  }

  .hero {
    min-height: auto;
    padding: 132px 0 88px;
  }

  .hero-bg {
    background-position: 67% center;
  }

  .hero-bg::after {
    background:
      linear-gradient(90deg, rgba(5,6,10,.88), rgba(5,6,10,.48)),
      linear-gradient(180deg, rgba(5,6,10,.15), transparent 40%, rgba(5,6,10,.72));
  }

  .hero-content {
    max-width: 690px;
  }

  .hero-eyebrow {
    margin-bottom: 22px;
  }

  .display-xl {
    font-size: clamp(43px, 8vw, 62px);
    line-height: 1.03;
  }

  .display-lg {
    font-size: clamp(31px, 6.5vw, 46px);
  }

  .hero-headline {
    max-width: 680px;
    margin-bottom: 23px;
  }

  .hero-sub {
    max-width: 630px;
    margin-bottom: 34px;
  }

  .body-lg {
    font-size: 16px;
    line-height: 1.68;
  }

  .hero-ctas {
    margin-bottom: 36px;
  }

  .section {
    padding: 76px 0;
  }

  .section-header,
  .services-grid,
  .why-grid,
  .process-steps,
  .industries-grid,
  .stack-categories,
  .faq-grid {
    margin-top: 44px;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .service-card {
    padding: 28px 24px;
    border-radius: 18px;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .why-visual {
    padding: 28px;
  }

  .process-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .process-steps::before {
    display: none;
  }

  .process-step {
    padding: 24px 20px;
    text-align: left;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--bg-card);
  }

  .process-num {
    margin: 0 0 18px;
  }

  .process-step-title {
    font-size: 16px;
  }

  .industries-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .stack-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .faq-q {
    padding: 20px 22px;
  }

  .faq-a-inner {
    margin: 0 22px 20px;
    padding: 16px 0 0;
  }

  .lead-cta-inner {
    padding: 50px 30px;
  }

  .lead-form {
    max-width: 560px;
  }

  .footer {
    padding: 54px 0 30px;
  }

  .footer-grid {
    grid-template-columns: 1.3fr 1fr;
    gap: 34px 28px;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }

  .footer-logo {
    width: 174px;
    margin-bottom: 26px;
  }

  .footer-brand-desc {
    max-width: 560px;
  }

  .floating-social {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
  }

  .footer {
    padding-bottom: 110px;
  }

  .legal-modal {
    padding: 14px;
  }

  .legal-modal-panel {
    width: min(650px, 100%);
    max-height: 90dvh;
  }
}

/* Smartphones */
@media (max-width: 600px) {
  .container {
    padding-inline: 18px;
  }

  .nav {
    min-height: 74px;
    padding-inline: 15px;
  }

  .nav.scrolled {
    min-height: 68px;
    padding-inline: 15px;
  }

  .nav-logo {
    width: 98px;
    height: 56px;
    flex-basis: 98px;
  }

  .brand-logo,
  .nav.scrolled .brand-logo {
    width: 76px;
    height: 52px;
  }

  .mobile-nav {
    padding: 94px 20px 28px;
  }

  .mobile-menu-logo {
    width: 126px;
    max-height: 112px;
    margin-bottom: 18px;
  }

  .hero {
    padding: 112px 0 70px;
  }

  .hero-bg {
    background-position: 72% center;
  }

  .hero-bg::after {
    background:
      linear-gradient(90deg, rgba(5,6,10,.94), rgba(5,6,10,.72)),
      linear-gradient(180deg, rgba(5,6,10,.22), rgba(5,6,10,.34) 50%, rgba(5,6,10,.82));
  }

  .hero-eyebrow {
    margin-bottom: 17px;
  }

  .eyebrow {
    font-size: 9.5px;
    letter-spacing: .14em;
  }

  .eyebrow::before {
    width: 18px;
  }

  .display-xl {
    font-size: clamp(35px, 11.7vw, 48px);
    line-height: 1.02;
    letter-spacing: -.035em;
  }

  .display-lg {
    font-size: clamp(29px, 9vw, 39px);
  }

  .display-md {
    font-size: clamp(22px, 7vw, 30px);
  }

  .hero-headline br,
  .section h2 br,
  .lead-cta h2 br {
    display: none;
  }

  .hero-sub {
    margin-bottom: 28px;
    font-size: 15px;
  }

  .hero-ctas {
    display: grid;
    grid-template-columns: 1fr;
    gap: 11px;
    margin-bottom: 28px;
  }

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

  .btn-lg {
    min-height: 50px;
    padding: 12px 20px;
  }

  .section {
    padding: 62px 0;
  }

  .services-grid,
  .process-steps,
  .industries-grid,
  .stack-categories,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .why-grid,
  .process-steps,
  .industries-grid,
  .stack-categories,
  .faq-grid {
    margin-top: 34px;
  }

  .service-card {
    padding: 25px 22px;
  }

  .service-icon {
    margin-bottom: 19px;
  }

  .service-title {
    font-size: 18px;
  }

  .why-pillar {
    gap: 14px;
    padding: 22px 0;
  }

  .why-visual {
    padding: 22px 18px;
  }

  .commitment-item {
    grid-template-columns: 30px 1fr;
    gap: 10px;
    padding: 14px;
  }

  .process-step {
    padding: 22px 18px;
  }

  .industry-card,
  .stack-cat {
    padding: 23px 20px;
  }

  .stack-items {
    gap: 7px;
  }

  .stack-tag {
    font-size: 11px;
  }

  .faq-q {
    padding: 18px;
    font-size: 14px;
    line-height: 1.45;
  }

  .faq-a-inner {
    margin: 0 18px 18px;
    font-size: 13.5px;
  }

  .lead-cta-inner {
    padding: 38px 18px;
    border-radius: 18px;
  }

  .lead-form {
    width: 100%;
    margin-top: 26px;
  }

  .lead-input,
  .lead-form .btn {
    width: 100%;
    min-height: 50px;
  }

  .footer-grid {
    gap: 32px;
    text-align: left;
  }

  .footer-grid > div:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-logo {
    width: 158px;
    margin: 0 auto 30px;
    object-position: center;
  }

  .footer-brand-tag {
    margin-bottom: 14px;
  }

  .footer-brand-desc {
    max-width: 360px;
  }

  .footer-location {
    justify-content: center;
  }

  .footer-col-title {
    margin-bottom: 14px;
  }

  .footer-bottom {
    align-items: center;
    gap: 15px;
    text-align: center;
  }

  .footer-legal {
    width: 100%;
    gap: 13px 18px;
  }

  .footer-legal-button {
    min-height: 38px;
  }

  .floating-button {
    width: 50px;
    min-height: 50px;
  }

  .legal-modal-panel {
    padding: 31px 19px 23px;
  }

  .legal-modal-panel h2 {
    padding-right: 35px;
  }
}

/* Very small phones */
@media (max-width: 390px) {
  .container {
    padding-inline: 15px;
  }

  .display-xl {
    font-size: clamp(32px, 10.8vw, 40px);
  }

  .display-lg {
    font-size: clamp(27px, 8.5vw, 34px);
  }

  .service-card,
  .why-visual,
  .process-step,
  .industry-card,
  .stack-cat {
    border-radius: 14px;
  }

  .footer-legal {
    flex-direction: column;
    align-items: center;
  }
}

/* Safe spacing for devices with notches and home indicators */
@supports (padding: max(0px)) {
  .nav {
    padding-left: max(15px, env(safe-area-inset-left));
    padding-right: max(15px, env(safe-area-inset-right));
  }

  .mobile-nav {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
    padding-bottom: max(28px, env(safe-area-inset-bottom));
  }
}
