:root {
  --color-primary: #2563EB;
  --color-primary-dark: #1D4ED8;
  --color-secondary: #10B981;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F8FAFC;
  --color-bg-dark: #0F172A;
  --color-text: #1E293B;
  --color-text-muted: #64748B;
  --color-border: #E2E8F0;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.15);
  --max-w: 1200px;
  --space: clamp(1rem, 2vw, 1.5rem);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-primary-dark); }

h1, h2, h3, h4 { line-height: 1.2; color: var(--color-bg-dark); font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: 1.2rem; margin-bottom: .5rem; }
h4 { font-size: 1rem; margin-bottom: 1rem; color: var(--color-bg-dark); }

p { margin-bottom: 1rem; color: var(--color-text); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container.narrow { max-width: 800px; }

/* === HEADER === */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
  transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-bg-dark);
}
.logo-mark { color: var(--color-primary); font-size: 1.4rem; }
.logo-dot { color: var(--color-secondary); }
.logo-light { color: #fff; }
.logo-light .logo-mark { color: #fff; }

.main-nav ul {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  align-items: center;
}
.main-nav a {
  color: var(--color-text);
  font-weight: 500;
  font-size: .95rem;
}
.main-nav a:hover { color: var(--color-primary); }

.hamburger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: .5rem;
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-bg-dark);
  transition: .3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === HERO === */
.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(1000px 400px at 80% -10%, rgba(37, 99, 235, 0.08), transparent 60%),
    radial-gradient(800px 400px at -10% 50%, rgba(16, 185, 129, 0.05), transparent 60%),
    var(--color-bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-subtext {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin: 1.25rem 0 2rem;
  max-width: 540px;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.hero-stats {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  flex-wrap: wrap;
}
.hero-stats strong {
  display: block;
  font-size: 1.75rem;
  color: var(--color-bg-dark);
  font-weight: 800;
}
.hero-stats span {
  font-size: .85rem;
  color: var(--color-text-muted);
}

.hero-visual {
  position: relative;
}
.hero-visual img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3/2;
  object-fit: cover;
}
.hero-floater {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow);
  font-family: var(--font-mono);
  font-size: .85rem;
}
.floater-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .25rem 0;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.dot.ok { background: var(--color-secondary); }
.dot.run { background: var(--color-primary); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse {
  50% { opacity: .4; }
}

/* === TRUST BAR === */
.trust-bar {
  padding: 2.5rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}
.trust-label {
  text-align: center;
  font-size: .8rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}
.trust-list {
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  list-style: none;
  flex-wrap: wrap;
  font-weight: 600;
  color: var(--color-bg-dark);
  opacity: .7;
}

/* === SECTIONS === */
.section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}
.section-alt {
  background: var(--color-bg-alt);
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}
.section-head p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: .75rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.two-col img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* === BEFORE / AFTER === */
.ba-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}
.ba-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  user-select: none;
  height: 380px;
  background: var(--color-bg-dark);
}
.ba-after, .ba-before {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.ba-before {
  width: 50%;
  overflow: hidden;
  background: #1E293B;
}
.ba-panel {
  height: 100%;
  width: 1000px;
  max-width: 100%;
  padding: clamp(1.5rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ba-panel-after {
  background: linear-gradient(135deg, #DBEAFE 0%, #ECFDF5 100%);
  color: var(--color-bg-dark);
}
.ba-panel-before {
  background: linear-gradient(135deg, #1E293B 0%, #334155 100%);
  color: #fff;
  width: 200%;
}
.ba-panel h3 {
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}
.ba-panel-before h3 { color: #fff; }
.ba-panel ul {
  list-style: none;
  font-size: 1.05rem;
  line-height: 2;
}
.ba-panel-before ul { color: #CBD5E1; }
.ba-handle {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: #fff;
  cursor: ew-resize;
}
.ba-handle:focus { outline: none; }
.ba-handle:focus-visible .ba-handle-grip { box-shadow: 0 0 0 3px var(--color-primary); }
.ba-handle-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--color-primary);
  box-shadow: var(--shadow);
  font-size: 1.2rem;
}
.ba-tag {
  position: absolute;
  top: 1rem;
  font-size: .7rem;
  letter-spacing: .15em;
  font-weight: 700;
  padding: .35rem .75rem;
  border-radius: 999px;
  pointer-events: none;
}
.ba-tag-before { left: 1rem; background: rgba(255,255,255,.15); color: #fff; }
.ba-tag-after { right: 1rem; background: var(--color-secondary); color: #fff; }

/* === GRIDS === */
.grid {
  display: grid;
  gap: 1.5rem;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* === SERVICES VISUAL === */
.services-visual {
  margin-top: 3rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.services-visual img { aspect-ratio: 2/1; object-fit: cover; }

/* === WHY === */
.why-item {
  padding: 1.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  transition: transform .2s, box-shadow .2s;
}
.why-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.why-item strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: .5rem;
  font-weight: 700;
}
.why-item h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.why-item p { color: var(--color-text-muted); font-size: .95rem; margin: 0; }

/* === PROCESS === */
.process-list {
  list-style: none;
  margin-top: 1.5rem;
}
.process-list li {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
}
.process-list li:last-child { border-bottom: 0; }
.step-num {
  font-family: var(--font-mono);
  color: var(--color-primary);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .05em;
  flex-shrink: 0;
  padding-top: 2px;
}
.process-list h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.process-list p { color: var(--color-text-muted); margin: 0; }

/* === REFERENCES === */
.ref-visual {
  margin-top: 3rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.ref-visual img { aspect-ratio: 7/3; object-fit: cover; }

/* === FAQ === */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

/* === CTA === */
.cta-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--color-bg-dark);
  color: #fff;
}
.cta-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  align-items: center;
}
.cta-section h2 { color: #fff; }
.cta-section p { color: #CBD5E1; margin: 0; font-size: 1.1rem; }
.cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cta-section .btn-ghost { color: #fff; border-color: rgba(255,255,255,.2); }
.cta-section .btn-ghost:hover { background: rgba(255,255,255,.08); }

/* === PAGE HERO === */
.page-hero {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  background:
    radial-gradient(800px 300px at 70% 0%, rgba(37, 99, 235, 0.08), transparent 60%),
    var(--color-bg);
  text-align: center;
}
.page-hero h1 { margin: 1rem 0; }
.page-hero p {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* === CONTACT === */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.contact-grid h2 { margin-bottom: 1.5rem; }

.contact-side {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--color-border);
}
.contact-info {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.contact-info li { display: flex; flex-direction: column; gap: .25rem; }
.contact-info strong { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--color-text-muted); }
.contact-info .muted { font-size: .85rem; color: var(--color-text-muted); }

.contact-promise {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  border: 1px solid var(--color-border);
}
.contact-promise h3 { font-size: 1rem; margin-bottom: .75rem; }
.contact-promise ol { padding-left: 1.25rem; color: var(--color-text); font-size: .95rem; line-height: 1.8; }

/* === FOOTER === */
.site-footer {
  background: var(--color-bg-dark);
  color: #CBD5E1;
  padding: 4rem 0 2rem;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-about {
  color: #94A3B8;
  margin-top: 1rem;
  font-size: .92rem;
  max-width: 320px;
}
.site-footer h4 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer-links a { color: #CBD5E1; font-size: .92rem; }
.footer-links a:hover { color: #fff; }
.social {
  list-style: none;
  display: flex;
  gap: .75rem;
}
.social a {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
  color: #CBD5E1;
  transition: background .2s, color .2s;
}
.social a:hover { background: var(--color-primary); color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: .85rem;
  color: #94A3B8;
}
.footer-bottom a { color: #CBD5E1; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 600px; }
  .two-col { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-actions { justify-content: flex-start; }
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 1.5rem;
    transform: translateY(-120%);
    transition: transform .3s ease;
    box-shadow: var(--shadow);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 1rem; }
  .hamburger { display: flex; }

  .grid-2 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .ba-wrapper { height: 480px; }
  .hero-stats { gap: 1.25rem; }
  .hero-stats strong { font-size: 1.4rem; }
}

@media (max-width: 480px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .ba-panel { padding: 1.25rem; }
  .ba-panel h3 { font-size: 1.2rem; }
  .ba-panel ul { font-size: .92rem; }
  .ba-wrapper { height: 540px; }
  .hero-floater { left: 0; bottom: -10px; padding: .75rem 1rem; font-size: .75rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* === REVEAL === */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}