:root {
  --brand: #0a2a66;
  --brand-light: #0e3a8a;
  --accent: #c5a572;
  --accent-hover: #b8955f;
  --accent-soft: #e8d5b5;
  --success: #22c55e;
  --font-heading: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --bg: #011733;
  --surface: #012040;
  --surface-alt: #01294d;
  --text: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --border: rgba(161, 161, 170, 0.12);
  --border-strong: rgba(161, 161, 170, 0.25);
  --radius: 16px;
  --max: 72rem;
  --header-h: 4.25rem;
  color-scheme: dark;
}

html.light {
  --bg: #ffffff;
  --surface: #f4f4f5;
  --surface-alt: #e4e4e7;
  --text: #09090b;
  --text-secondary: #52525b;
  --text-muted: #71717a;
  --border: rgba(9, 9, 11, 0.06);
  --border-strong: rgba(9, 9, 11, 0.12);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.5;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0;
}

p {
  margin: 0;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.eyebrow {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.gradient {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
  border-bottom: 1px solid transparent;
}

.header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--border);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo img {
  height: 2.25rem;
}

html:not(.light) .logo-light,
html.light .logo-dark {
  display: none;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.icon-btn {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: var(--surface);
  color: var(--text-muted);
}

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

html:not(.light) .icon-moon,
html.light .icon-sun {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.8rem 1.4rem;
  transition: 0.2s ease;
}

.btn-solid {
  background: var(--text);
  color: var(--bg);
}

.btn-solid:hover {
  opacity: 0.9;
}

.btn-accent {
  background: var(--accent);
  color: #011733;
}

.btn-accent:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 0.75rem;
  padding: 0.55rem 1rem;
}

.btn-ghost:hover {
  background: var(--accent);
  color: #011733;
}

.menu-toggle {
  display: grid;
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 auto;
  z-index: 49;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 1.25rem 1.25rem;
}

.mobile-menu.is-open {
  display: grid;
  gap: 0.85rem;
}

.mobile-menu a {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: calc(var(--header-h) + 2rem) 0 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}

.orb-a {
  width: 28rem;
  height: 28rem;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  background: var(--brand);
  opacity: 0.18;
}

html.light .orb-a {
  opacity: 0.08;
}

.orb-b {
  width: 18rem;
  height: 18rem;
  right: -4rem;
  top: 18%;
  background: var(--accent);
  opacity: 0.08;
}

.grid-fade {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: radial-gradient(circle, var(--accent) 1px, transparent 1px);
  background-size: 28px 28px;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.35;
  animation: drift 7s ease-in-out infinite;
}

.particle:nth-child(1) { width: 6px; height: 6px; top: 18%; left: 12%; }
.particle:nth-child(2) { width: 8px; height: 8px; top: 28%; right: 16%; animation-delay: -2s; }
.particle:nth-child(3) { width: 5px; height: 5px; top: 62%; left: 22%; animation-delay: -4s; }
.particle:nth-child(4) { width: 7px; height: 7px; bottom: 18%; right: 24%; animation-delay: -1s; }

@keyframes drift {
  50% { transform: translate(10px, -16px); opacity: 0.55; }
}

.hero-inner {
  position: relative;
  text-align: center;
  max-width: 44rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.pulse {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 70%, transparent);
  animation: ping 1.8s ease-out infinite;
}

@keyframes ping {
  70% { box-shadow: 0 0 0 8px transparent; }
}

.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.6rem);
}

.hero-lead {
  margin: 1.4rem auto 0;
  max-width: 38rem;
  font-size: 1.08rem;
  color: var(--text-secondary);
}

.lead {
  margin-top: 1rem;
  max-width: 36rem;
  color: var(--text-secondary);
}

.manifesto {
  margin: 0 0 3rem;
  max-width: 46rem;
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 3.4vw, 2rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.03em;
  color: var(--text);
}

.section-head.wide {
  max-width: 40rem;
}

.cards-2 {
  grid-template-columns: 1fr;
}

.shift-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.shift-list li {
  position: relative;
  margin-top: 0.7rem;
  padding-left: 1rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.shift-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--border-strong);
}

.panel-good .shift-list li::before {
  background: var(--accent);
}

.hero-cta {
  margin-top: 2rem;
}

.stats {
  display: inline-flex;
  gap: 1.5rem;
  margin-top: 3.5rem;
  padding: 1.1rem 1.6rem;
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  backdrop-filter: blur(12px);
}

.stat {
  min-width: 4.5rem;
  text-align: center;
}

  .stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.15rem;
}

.stat span {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stat-split {
  width: 1px;
  background: var(--border-strong);
}

.scroll-hint {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--accent);
  animation: bob 3s ease-in-out infinite;
}

@keyframes bob {
  50% { transform: translate(-50%, 6px); opacity: 0.45; }
}

.section {
  position: relative;
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--surface);
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.4rem;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  margin-top: 0.55rem;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}

.section-head p {
  margin-top: 0.85rem;
  color: var(--text-secondary);
}

.cards {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  background: var(--border);
}

.card {
  background: var(--bg);
  padding: 1.15rem 1.2rem;
}

.card-icon {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.card h3 {
  font-size: 1.05rem;
  margin-top: 0.55rem;
}

.card p {
  margin-top: 0.55rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.steps {
  display: grid;
  gap: 1.25rem;
}

.step {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.9rem;
  align-items: start;
}

.step-n {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
}

.step h3 {
  font-size: 0.95rem;
}

.step p {
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.compare {
  display: grid;
  gap: 1rem;
}

.panel {
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  background: var(--bg);
  padding: 1.25rem;
}

.panel-good {
  border-color: color-mix(in srgb, var(--accent) 28%, transparent);
}

.panel-kicker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.panel h3 {
  margin-top: 0.85rem;
  font-size: 1.05rem;
}

.panel p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.bars {
  display: flex;
  gap: 0.35rem;
  margin-top: 1rem;
}

.bar {
  flex: 1;
  height: 0.45rem;
  border-radius: 999px;
}

.bar-bad {
  background: color-mix(in srgb, #ef4444 28%, transparent);
}

.bar-good {
  background: color-mix(in srgb, var(--accent) 65%, transparent);
}

.kpis {
  display: grid;
  gap: 1px;
  margin-top: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background: var(--border);
}

.kpi {
  background: var(--bg);
  padding: 1rem;
  text-align: center;
}

.kpi strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.25rem;
}

.kpi span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.section-ops {
  --ops-bg: #07152c;
  --ops-title: #fafafa;
  --ops-muted: rgba(250, 250, 250, 0.62);
  --ops-note: rgba(250, 250, 250, 0.45);
  --ops-card-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  --ops-card-shadow-hover: 0 14px 28px rgba(0, 0, 0, 0.32);
  background: var(--ops-bg);
  color: var(--ops-title);
}

html.light .section-ops {
  --ops-bg: #f7f5f1;
  --ops-title: #0a2a66;
  --ops-muted: #52525b;
  --ops-note: #71717a;
  --ops-card-shadow: 0 6px 16px rgba(10, 42, 102, 0.07);
  --ops-card-shadow-hover: 0 10px 22px rgba(10, 42, 102, 0.12);
}

.section-ops .section-head {
  max-width: 32rem;
}

.section-ops .section-head h2 {
  color: var(--ops-title);
}

.section-ops .section-head p {
  color: var(--ops-muted);
}

.clients {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.client {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 6.4rem;
  padding: 0.7rem 0.55rem 0.65rem;
  background: #fff;
  border-radius: 0.85rem;
  box-shadow: var(--ops-card-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.client:hover {
  transform: translateY(-3px);
  box-shadow: var(--ops-card-shadow-hover);
}

.client-logo {
  display: grid;
  place-items: center;
  width: 100%;
  height: 2.5rem;
  background: none;
  padding: 0;
}

.client-logo img {
  max-height: 2.15rem;
  max-width: 88%;
  width: auto;
  object-fit: contain;
}

.client--wordmark .client-logo {
  height: 2.7rem;
}

.client--wordmark .client-logo img {
  max-height: 2.35rem;
}

.client-meta {
  margin-top: 0.4rem;
  padding: 0;
  background: none;
  border: 0;
  text-align: center;
}

.client-meta strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: #0a2a66;
}

.client-meta span {
  display: block;
  margin-top: 0.08rem;
  font-size: 0.62rem;
  color: #6b7280;
}

.client--mono .client-logo span {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  color: #0a2a66;
}

.clients-note {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--ops-note);
}

.stack-grid {
  display: grid;
  gap: 1rem;
}

.stack-col h3 {
  margin-bottom: 0.55rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  padding: 0.28rem 0.65rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.contact-grid {
  display: grid;
  gap: 2rem;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.2rem;
  margin-top: 1.4rem;
}

.trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.dot-ok {
  width: 1.15rem;
  height: 1.15rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  font-size: 0.65rem;
}

.contact-cards {
  display: grid;
  gap: 0.8rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  background: var(--surface);
}

.contact-card.primary {
  border-color: color-mix(in srgb, var(--accent) 28%, transparent);
}

.contact-card svg.mark {
  width: 2.6rem;
  height: 2.6rem;
  flex: 0 0 auto;
  padding: 0.65rem;
  border-radius: 0.85rem;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}

.contact-card small {
  display: block;
  color: var(--text-muted);
}

.online {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--success) 12%, transparent);
  padding: 0.15rem 0.55rem;
  font-size: 0.65rem;
  color: #4ade80;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 2.4rem 0 1.4rem;
}

.footer-grid {
  display: grid;
  gap: 1.6rem;
}

.footer p,
.footer a {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer a:hover {
  color: var(--text);
}

.footer-copy {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
}

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

  .menu-toggle {
    display: none;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .cards-2 {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
  }

  .step {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .step-n {
    margin-inline: auto;
  }

  .compare {
    grid-template-columns: 1fr 1fr;
  }

  .kpis,
  .contact-grid,
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .clients {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.65rem;
  }

  .stack-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .card {
    padding: 1.4rem;
  }

  .section {
    padding: 5.5rem 0;
  }
}

@media (min-width: 1080px) {
  .clients {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.7rem;
  }
}
