/* ── OptiForge Web Studios — Design System ──── */
:root {
  --bg:         #09090b;
  --bg-alt:     #0c0c10;
  --bg-card:    #131317;
  --bg-card-hv: #18181d;
  --border:     #232329;
  --border-hv:  #313145;
  --accent:     #f0a531;
  --accent-soft:#d98a1f;
  --accent-dim: rgba(240,165,49,0.10);
  --accent-ink: #1a1206;
  --text:       #fafafa;
  --text-muted: #71717a;
  --text-dim:   #52525b;
  --white:      #fff;
  --amber:      #f59e0b;
  --green:      #22c55e;
  --blue:       #3b82f6;
  --yellow:     #eab308;
  --red:        #ef4444;
  --red-dim:    rgba(239,68,68,0.06);
  --green-dim:  rgba(34,197,94,0.06);
  --max:        1160px;
  --radius:     10px;
  --radius-sm:  8px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: Manrope, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.section-inner {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
}

/* ── Background dot grid ─────────────── */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: radial-gradient(circle, #3b3b50 0.7px, transparent 0.7px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

/* ── Buttons ──────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.15px;
  transition: background 0.18s, border-color 0.18s, box-shadow 0.18s, transform 0.15s;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { background: var(--accent-soft); box-shadow: 0 4px 14px rgba(240,165,49,0.28); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--border-hv); background: rgba(255,255,255,0.02); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-outline-light:hover { border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.04); }

.btn-lg { padding: 14px 26px; font-size: 14.5px; border-radius: var(--radius); }

/* ── Header ───────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9,9,11,0.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  transition: border-color 0.3s;
}
.header.scrolled { border-bottom-color: var(--border-hv); }

.header-inner {
  display: flex;
  align-items: center;
  height: 66px;
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-right: auto;
  z-index: 51;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-hv);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  background: rgba(240,165,49,0.04);
  transition: border-color 0.2s, background 0.2s;
}
.logo:hover .logo-mark { border-color: var(--accent); background: var(--accent-dim); }

.logo-mark--sm {
  width: 32px;
  height: 32px;
  font-size: 11px;
}

.logo-text {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
  white-space: nowrap;
}

.logo-accent { color: var(--accent); }

.logo-word {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-sub {
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--text-dim);
  margin-top: 1px;
}

/* Nav */
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta {
  color: var(--accent);
  font-weight: 600;
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px 4px;
  cursor: pointer;
  z-index: 51;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ─────────────────────────────── */
.hero {
  position: relative;
  padding: 90px 0 110px;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(to top, var(--bg) 0%, transparent 20%),
    linear-gradient(rgba(9,9,11,0.82), rgba(9,9,11,0.62) 50%, rgba(9,9,11,0.88) 100%),
    url('assets/hero.webp') center/cover no-repeat;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 64px;
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-content { flex: 1; max-width: 550px; }

.hero-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-content h1 {
  font-size: clamp(38px, 5.5vw, 62px);
  line-height: 1.07;
  letter-spacing: -2.2px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}

.hero-content h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-content p {
  font-size: 17px;
  color: #d4d4dd;
  max-width: 490px;
  margin-bottom: 30px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Hero: geometric decorations ─────── */
.hero-geo {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.hero-geo--a {
  width: 520px; height: 520px;
  border: 1px solid rgba(255,255,255,0.04);
  top: -240px; right: -180px;
}
.hero-geo--b {
  width: 340px; height: 340px;
  border: 1px dashed rgba(255,255,255,0.05);
  top: -120px; right: 60px;
}
.hero-geo--c {
  width: 180px; height: 180px;
  border: 1px solid rgba(240,165,49,0.08);
  bottom: -40px; left: 15%;
}

/* ── Hero: terminal/browser window ────── */
.hero-visual {
  flex-shrink: 0;
  position: relative;
}

.hero-browser {
  width: 440px;
  background: #0e0e14;
  border: 1px solid var(--border-hv);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03);
}

.browser-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 16px;
  background: #111118;
  border-bottom: 1px solid var(--border);
}

.browser-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.browser-dot:nth-child(1) { background: #4a4a5a; }
.browser-dot:nth-child(2) { background: #4a4a5a; }
.browser-dot:nth-child(3) { background: #4a4a5a; }

.browser-body {
  padding: 24px 26px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  line-height: 2.1;
  min-height: 250px;
}

.code-lines { display: flex; flex-direction: column; }
.code-line { color: #636372; }
.code-line b { color: #a5b4fc; font-weight: 400; }
.code-line i { color: #94a3b8; font-style: normal; }
.code-line em { color: #6ee7b7; font-style: normal; }
.code-indent { padding-left: 16px; }
.code-indent2 { padding-left: 32px; }

.code-cursor {
  color: var(--accent);
  animation: blink 1s step-end infinite;
}

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

/* ── Trust Strip ──────────────────────── */
.trust-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  position: relative;
  z-index: 2;
}

.trust-strip-inner {
  display: flex;
  justify-content: center;
  gap: 28px;
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 20px 0;
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim);
  flex-shrink: 0;
}

.trust-item svg {
  color: var(--text-muted);
  flex-shrink: 0;
  opacity: 0.7;
}

/* Dot indicators — hidden on desktop */
.trust-dots {
  display: none;
  justify-content: center;
  gap: 7px;
  padding: 0 0 14px;
}

.trust-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, width 0.3s;
}

.trust-dot.is-active {
  background: var(--accent);
  width: 18px;
  border-radius: 3px;
}

/* ── Sections ─────────────────────────── */
.section { padding: 100px 0; position: relative; z-index: 1; }
.section-alt { background: var(--bg-alt); }

.section-head {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 700;
  letter-spacing: -1.3px;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 12px;
}

.section-head p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Portfolio ────────────────────────── */
.portfolio-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.portfolio-featured-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.portfolio-featured-card:hover {
  border-color: var(--border-hv);
  box-shadow: 0 6px 28px rgba(0,0,0,0.3);
}

.portfolio-featured-card--placeholder {
  border-style: dashed;
  opacity: 0.7;
}
.portfolio-featured-card--placeholder:hover {
  opacity: 1;
  border-color: var(--accent);
}

.portfolio-featured-img {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.portfolio-featured-img img {
  width: 100%;
  height: auto;
  display: block;
}

.portfolio-featured-img--placeholder {
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.placeholder-icon {
  font-size: 48px;
  font-weight: 700;
  color: var(--border-hv);
  font-family: 'JetBrains Mono', monospace;
}

.portfolio-featured-info {
  padding: 22px 24px 24px;
}

.portfolio-featured-info h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin-bottom: 8px;
}

.portfolio-featured-info > p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 14px;
}

.portfolio-featured-info .portfolio-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.portfolio-featured-info .portfolio-tags span {
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(255,255,255,0.03);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.portfolio-featured-card--placeholder .portfolio-featured-info {
  text-align: center;
  padding-top: 28px;
}
.portfolio-featured-card--placeholder .portfolio-featured-info > p {
  margin-bottom: 18px;
}

/* Portfolio testimonial */
.portfolio-testimonial {
  margin: 14px 0 18px;
  padding: 14px 16px;
  border-left: 2px solid var(--amber);
  background: rgba(245,158,11,0.04);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.portfolio-stars {
  color: var(--amber);
  letter-spacing: 2px;
  font-size: 12px;
  margin-bottom: 4px;
}
.portfolio-testimonial p {
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
  font-style: italic;
  margin: 0 0 4px;
}
.portfolio-author {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
}

/* ── Services ─────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.service-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(240,165,49,0.06);
}

.service-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  margin-bottom: 18px;
  transition: border-color 0.2s, color 0.2s;
}
.service-card:hover .service-icon { border-color: var(--accent); color: var(--accent); }

.service-card h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}

.service-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Process ──────────────────────────── */
.process-timeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
  max-width: 880px;
  margin: 0 auto;
}

.process-step {
  flex: 1;
  text-align: center;
  position: relative;
}

.process-num {
  width: 50px; height: 50px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  color: var(--text-dim);
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  margin: 0 auto 16px;
  background: var(--bg-card);
  transition: border-color 0.3s, color 0.3s;
  position: relative;
  z-index: 1;
}
.process-step:hover .process-num { border-color: var(--accent); color: var(--accent); }

.process-step h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}

.process-step p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 170px;
  margin: 0 auto;
}

.process-connector {
  width: 36px;
  height: 1px;
  background: var(--border);
  margin-top: 25px;
  flex-shrink: 0;
}

/* ── Niche Showcases ──────────────────── */
.niche-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.niche-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--card-color, var(--border));
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}
.niche-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.3);
}

.niche-card--green { --card-color: var(--green); }
.niche-card--blue   { --card-color: var(--blue); }
.niche-card--yellow { --card-color: var(--yellow); }

.niche-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--card-color);
  margin-bottom: 18px;
}

.niche-card h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}

.niche-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

/* ── Comparison ───────────────────────── */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 780px;
  margin: 0 auto;
}

.compare-card {
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.compare-card--bad { background: var(--red-dim); border-color: rgba(239,68,68,0.12); }
.compare-card--good { background: var(--green-dim); border-color: rgba(34,197,94,0.12); }

.compare-header { margin-bottom: 18px; }

.compare-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}
.compare-card--bad .compare-label { color: var(--red); }
.compare-card--good .compare-label { color: var(--green); }

.compare-list {
  list-style: none;
  display: grid;
  gap: 11px;
}

.compare-list li {
  font-size: 13.5px;
  color: var(--text-muted);
  padding-left: 22px;
  position: relative;
  line-height: 1.5;
}
.compare-list li::before {
  position: absolute;
  left: 0;
  font-weight: 700;
  font-size: 13px;
}

.compare-card--bad .compare-list li::before {
  content: '—';
  color: var(--red);
}
.compare-card--good .compare-list li::before {
  content: '→';
  color: var(--green);
}

/* ── Tech credibility ─────────────────── */
.tech-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  position: relative;
  z-index: 1;
}
.tech-items {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 28px 0;
}
.tech-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
}
.tech-icon {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ── CTA Section ──────────────────────── */
.cta-section {
  background:
    linear-gradient(rgba(9,9,11,0.85), rgba(9,9,11,0.8)),
    url('assets/cta-bg.webp') center/cover no-repeat;
  padding: 96px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 700;
  letter-spacing: -1.3px;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.15;
}

.cta-section > .section-inner > p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.cta-details {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.cta-detail {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 500;
}

.cta-detail-icon { font-size: 16px; }

/* ── Quote Modal ──────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-hv);
  border-radius: var(--radius);
  padding: 40px 36px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}
.modal-close:hover { color: var(--text); }

.modal h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 8px 0 6px;
}

.modal > p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Form */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.modal label {
  display: block;
}
.modal label span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal input,
.modal select,
.modal textarea {
  width: 100%;
  padding: 10px 13px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s;
  outline: none;
}
.modal input:focus,
.modal select:focus,
.modal textarea:focus {
  border-color: var(--accent);
}
.modal textarea {
  resize: vertical;
  margin-bottom: 20px;
}

.modal .btn { width: 100%; }

.form-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 12px;
}

/* Success state */
.modal-success {
  text-align: center;
  padding: 24px 0;
}
.modal-success-icon {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--green);
  color: var(--green);
  font-size: 22px;
  margin-bottom: 16px;
}
.modal-success h3 {
  margin-top: 0;
}

/* ── Footer ───────────────────────────── */
.footer {
  background: #060609;
  padding: 48px 0 30px;
  font-size: 13px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand strong {
  display: block;
  font-size: 14px;
  color: var(--text);
}

.footer-brand > div > span {
  font-size: 11px;
  color: var(--text-dim);
}

.footer-info p {
  margin-bottom: 3px;
  color: var(--text-dim);
}

.footer-info a { color: var(--accent); font-weight: 500; }
.footer-info a:hover { text-decoration: underline; }

.footer-phone {
  margin-bottom: 6px !important;
}
.footer-phone a {
  font-size: 15px;
  font-weight: 700;
  color: var(--text) !important;
}

.footer-rating {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: right;
  font-weight: 600;
  font-size: 12px;
  color: var(--text-dim);
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}
.footer-bottom a { color: var(--text-dim); }
.footer-bottom a:hover { color: var(--text-muted); }

/* ── Demo Template Pages ──────────────── */
.demo-banner {
  position: relative;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 24px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-dim);
  text-align: center;
}
.demo-banner strong { color: var(--text-muted); }
.demo-banner-link {
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}
.demo-banner-link:hover { text-decoration: underline; }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  padding: 20px 0;
}

.demo-final-cta {
  text-align: center;
  padding: 90px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.demo-final-cta h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  letter-spacing: -1.1px;
  margin-bottom: 10px;
}
.demo-final-cta p {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 460px;
  margin: 0 auto 26px;
}

.demo-footer {
  padding: 28px 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-dim);
}
.demo-footer a { color: var(--accent); font-weight: 600; }
.demo-footer a:hover { text-decoration: underline; }

/* ── Legal Pages ──────────────────────── */
.legal-page {
  padding: 60px 0 72px;
  min-height: 60vh;
  position: relative;
  z-index: 1;
}

.legal-page h1 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  letter-spacing: -1.2px;
  margin-bottom: 8px;
}

.legal-page .last-updated {
  color: var(--text-dim);
  font-size: 12px;
  margin-bottom: 30px;
}

.legal-page .legal-content {
  max-width: 700px;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.75;
}

.legal-page .legal-content h2 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin: 34px 0 10px;
  letter-spacing: -0.3px;
}

.legal-page .legal-content p { margin-bottom: 12px; }
.legal-page .legal-content ul { padding-left: 20px; margin-bottom: 12px; }
.legal-page .legal-content li { margin-bottom: 5px; }
.legal-page .legal-content a { color: var(--accent); text-decoration: underline; }

/* ── Mobile ───────────────────────────── */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .niche-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-browser { width: 360px; }
  .process-timeline { flex-wrap: wrap; gap: 18px; }
  .process-connector { display: none; }
  .process-step { flex: 1 1 42%; }
  .trust-strip-inner { gap: 24px; flex-wrap: wrap; }
}

@media (max-width: 760px) {
  .section-inner { width: min(calc(100% - 32px), var(--max)); }

  .header-inner { height: 58px; width: min(calc(100% - 32px), var(--max)); }
  .menu-toggle { display: flex; }

  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: fixed;
    top: 58px;
    left: 0; right: 0;
    background: rgba(12,12,16,0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
    z-index: 49;
    padding: 6px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(14px);
  }

  .nav-links.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-links a {
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    color: var(--text);
  }
  .nav-links a:last-child { border-bottom: none; }

  /* Hero */
  .hero { padding: 56px 0 64px; }
  .hero-inner { flex-direction: column; gap: 36px; }
  .hero-content { max-width: 100%; text-align: center; }
  .hero-content p { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-visual { order: -1; display: none; }
  .hero-browser { width: 310px; margin: 0 auto; }
  .hero-geo { display: none; }

  /* Trust strip — carousel on mobile */
  .trust-strip {
    overflow: hidden;
  }
  .trust-strip-inner {
    gap: 0;
    justify-content: flex-start;
    flex-wrap: nowrap;
    padding: 18px 0;
    width: 100%;
  }
  .trust-item {
    min-width: 50%;
    justify-content: center;
    font-size: 12px;
    padding: 0 8px;
  }
  .trust-dots {
    display: flex;
  }

  /* Sections */
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 36px; }

  .services-grid { grid-template-columns: 1fr; gap: 10px; }
  .service-card { padding: 22px 20px; }

  .niche-grid { grid-template-columns: 1fr; gap: 10px; }
  .niche-card { padding: 22px 20px; }

  .portfolio-featured {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .process-timeline { flex-direction: column; align-items: center; gap: 0; }
  .process-step { max-width: 260px; margin-bottom: 24px; }
  .process-step p { max-width: 100%; }
  .process-connector { display: block; width: 1px; height: 24px; margin: -8px auto; }

  .reviews-grid { grid-template-columns: 1fr; gap: 10px; }
  .review-card { padding: 20px; }

  .compare-grid { grid-template-columns: 1fr; gap: 12px; }
  .compare-card { padding: 22px 20px; }

  .cta-section { padding: 60px 0; }
  .demo-final-cta { padding: 56px 0; }
  .cta-details { flex-direction: column; align-items: center; gap: 10px; }

  .tech-items {
    gap: 20px;
    flex-wrap: wrap;
  }
  .tech-item {
    font-size: 11px;
    gap: 6px;
  }
  .tech-icon {
    width: 28px; height: 28px;
    font-size: 12px;
  }

  .footer-grid { flex-direction: column; gap: 18px; }
  .footer-rating { text-align: left; }
  .footer { padding-bottom: 28px; }
}

@media (max-width: 480px) {
  .hero { padding: 42px 0 48px; }
  .hero-content h1 { font-size: 28px; letter-spacing: -1px; }
  .hero-content p { font-size: 14px; }
  .hero-browser { width: 260px; }
  .browser-body { padding: 16px 18px; font-size: 11px; min-height: 200px; }

  .section-head h2 { font-size: 23px; letter-spacing: -0.8px; }
  .section-head p { font-size: 14px; }

  .services-grid { gap: 8px; }
  .service-card { padding: 18px 16px; }

  .cta-section h2 { font-size: 22px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
