:root {
  --cyan: #00C8FF;
  --blue: #1688FF;
  --indigo: #3A2FF0;
  --navy: #1B1464;
  --ink: #2A2A4A;
  --muted: #5B5F7E;
  --paper: #FFFFFF;
  --mist: #F1F4FB;
  --line: #DDE3F0;
  --grad: linear-gradient(90deg, var(--cyan), var(--blue) 55%, var(--indigo));
  --wrap: 1160px;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-optical-sizing: auto;
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { color: var(--navy); margin: 0; line-height: 1.08; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 1.375rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0; }

a { color: var(--indigo); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand img { width: 168px; }
nav { display: flex; align-items: center; gap: 28px; font-size: 1rem; }
nav a { color: var(--ink); text-decoration: none; }
nav a:hover { color: var(--indigo); }
.nav-cta { background: var(--navy); color: #fff !important; padding: 9px 18px; border-radius: 999px; }
.nav-cta:hover { background: var(--indigo); }
@media (max-width: 760px) {
  nav a:not(.nav-cta) { display: none; }
  .brand img { width: 140px; }
}

/* Buttons: pill shape echoes the logo's rounded strokes */
.btn { display: inline-block; text-decoration: none; font-weight: 600; font-size: 1.0625rem; padding: 14px 26px; border-radius: 999px; transition: background-color .15s, color .15s; }
.btn-primary { background: var(--indigo); color: #fff; }
.btn-primary:hover { background: var(--navy); }
.btn-quiet { color: var(--navy); padding-left: 6px; padding-right: 6px; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; text-decoration-color: var(--cyan); }
.btn-quiet:hover { color: var(--indigo); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--mist); }

/* Hero: the logo's rising stroke, redrawn as a growth line */
.hero { position: relative; overflow: hidden; padding: clamp(72px, 11vw, 140px) 0 clamp(220px, 26vw, 340px); background: var(--paper); }
.hero-inner { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.75rem, 7.6vw, 6rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1; max-width: 12ch; }
.lede { margin-top: 28px; max-width: 34em; font-size: clamp(1.125rem, 1.6vw, 1.3125rem); color: var(--muted); }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }

.growth { position: absolute; right: 0; bottom: 0; width: min(100%, 1200px); height: auto; pointer-events: none; }
.growth-line { fill: none; stroke: url(#g); stroke-width: 34; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.8s cubic-bezier(.6,.05,.25,1) .2s forwards; }
.growth-dot { fill: var(--indigo); opacity: 0; transform-origin: 1160px 30px; animation: pop .4s ease-out 1.9s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .growth-line { animation: none; stroke-dashoffset: 0; }
  .growth-dot { animation: none; opacity: 1; }
}
@media (max-width: 600px) { .growth-line { stroke-width: 44; } }

/* Sections */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-intro { margin-top: 18px; max-width: 36em; color: var(--muted); }

.services { margin: 48px 0 0; border-top: 2px solid var(--navy); }
.service { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px 48px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.service dt { font-size: 1.5rem; font-weight: 650; color: var(--navy); letter-spacing: -0.01em; line-height: 1.25; }
.service dd { margin: 0; color: var(--muted); max-width: 38em; }
@media (max-width: 760px) { .service { grid-template-columns: 1fr; } }

.proof { background: var(--navy); color: #D9DCF5; }
.proof h2 { color: #fff; max-width: 11ch; }
.proof-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 48px; align-items: start; }
.proof-copy { display: grid; gap: 20px; font-size: 1.25rem; max-width: 34em; }
.proof-copy p:first-child { color: #fff; }
.proof h2::after { content: ""; display: block; width: 120px; height: 12px; margin-top: 28px; border-radius: 999px; background: var(--grad); }
.portfolio { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.portfolio a { display: flex; flex-direction: column; height: 100%; padding: 26px 24px 28px; border-radius: 20px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: #D9DCF5; text-decoration: none; transition: background-color .15s, border-color .15s; }
.portfolio li:nth-child(1) a { border-top: 6px solid var(--cyan); }
.portfolio li:nth-child(2) a { border-top: 6px solid var(--blue); }
.portfolio li:nth-child(3) a { border-top: 6px solid #2A5CF8; }
.portfolio li:nth-child(4) a { border-top: 6px solid var(--indigo); }
.portfolio a:hover { background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.3); }
.site-name { color: #fff; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
.site-domain { margin-top: 4px; color: var(--cyan); font-size: 1rem; font-weight: 500; }
.site-desc { margin-top: 16px; font-size: 1.0625rem; line-height: 1.55; }
.portfolio a:hover .site-name { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
@media (max-width: 1100px) { .portfolio { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .portfolio { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .proof-inner { grid-template-columns: 1fr; } }

.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 64px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--blue); }
.steps li:nth-child(1)::before { background: var(--cyan); color: var(--navy); }
.steps li:nth-child(3)::before { background: #2A5CF8; }
.steps li:nth-child(4)::before { background: var(--indigo); }
.steps li::after { content: ""; position: absolute; top: 21px; left: 56px; right: -20px; height: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps p { margin-top: 10px; color: var(--muted); font-size: 1.0625rem; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li::after { display: none; }
}
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.fit { background: var(--mist); }
.fit-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.fit h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.sectors, .models { list-style: none; margin: 28px 0 0; padding: 0; }
.sectors li, .models li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.sectors li { font-size: 1.25rem; color: var(--navy); font-weight: 500; }
.models strong { color: var(--navy); font-weight: 650; }
@media (max-width: 760px) { .fit-inner { grid-template-columns: 1fr; gap: 48px; } }

.contact { background: linear-gradient(125deg, var(--indigo), var(--navy) 70%); color: #fff; padding: clamp(80px, 10vw, 128px) 0; }
.contact h2 { color: #fff; max-width: 14ch; font-size: clamp(2.25rem, 5.4vw, 4rem); letter-spacing: -0.03em; }
.contact p { margin: 22px 0 34px; max-width: 32em; font-size: 1.1875rem; color: rgba(255,255,255,.92); }
.contact .btn-light { word-break: break-word; }

.site-footer { padding: 56px 0 40px; border-top: 1px solid var(--line); font-size: 0.9375rem; color: var(--muted); line-height: 1.7; }
.footer-inner { display: grid; grid-template-columns: 1.1fr 1.6fr 1fr; gap: 32px 48px; align-items: start; }
.footer-brand img { width: 132px; margin-bottom: 10px; }
.footer-legal { font-style: normal; }
.footer-legal strong { color: var(--navy); font-weight: 650; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--indigo); text-decoration: underline; }
.footer-inner .copy { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.875rem; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }

