:root {
  --white: #ffffff;
  --mist: #f1f6fe;
  --sky: #dbe8fc;
  --blue: #1456c8;
  --blue-dark: #0e419c;
  --navy: #0a2554;
  --text: #24395c;
  --muted: #52658a;
  --line: #d5e1f3;
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 40px);
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

h1, h2, h3 { color: var(--navy); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.35rem, 5.5vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 20;
  background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; color: var(--white); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--navy); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.03em; text-decoration: none;
}
.logo:hover { color: var(--navy); }
.logo img { width: 28px; height: 28px; display: block; }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 30px); }
.site-nav a { color: var(--text); font-size: 0.975rem; font-weight: 550; text-decoration: none; padding-block: 8px; }
.site-nav a:hover { color: var(--blue); }
.site-nav a[aria-current="page"] { color: var(--blue); box-shadow: 0 2px 0 var(--blue); }
.site-nav .btn { color: var(--white); padding: 9px 18px; }
.site-nav .btn:hover { color: var(--white); }

/* Buttons */
.btn {
  display: inline-block; border-radius: 9px; padding: 13px 24px;
  background: var(--blue); color: var(--white); font-weight: 600; text-decoration: none;
  transition: background-color 0.15s ease;
}
.btn:hover { background: var(--blue-dark); color: var(--white); }
.btn-ghost { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); }
.btn-ghost:hover { background: var(--mist); color: var(--blue-dark); }
.btn-white { background: var(--white); color: var(--blue); }
.btn-white:hover { background: var(--sky); color: var(--blue-dark); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
section { padding-block: clamp(56px, 8vw, 104px); }
.tint { background: var(--mist); }
.eyebrow { color: var(--blue); font-size: 0.9rem; font-weight: 650; margin-bottom: 12px; }
.section-head { max-width: 640px; margin-bottom: clamp(32px, 4.5vw, 52px); }
.section-head p:last-child:not(.eyebrow) { margin-top: 14px; color: var(--muted); }

/* Hero */
.hero { padding-block: clamp(48px, 7vw, 92px) clamp(56px, 8vw, 104px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 6vw, 72px); align-items: center; }
.lede { font-size: clamp(1.1rem, 1.7vw, 1.25rem); color: var(--muted); margin: 22px 0 30px; max-width: 34em; }

.browser {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 24px 56px -22px rgba(14, 65, 156, 0.35);
}
.browser-bar {
  display: flex; align-items: center; gap: 6px; padding: 12px 14px;
  background: var(--mist); border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0;
}
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #a9c3ea; }
.browser-bar span {
  flex: 1; margin-left: 8px; padding: 2px 12px; background: var(--white); border: 1px solid var(--line);
  border-radius: 99px; color: var(--muted); font-size: 0.8rem;
}
.browser-body { padding: 16px; display: grid; gap: 12px; }
.mock-banner { background: var(--blue); border-radius: 9px; padding: 26px 20px; display: grid; gap: 9px; }
.mock-banner b, .mock-line { display: block; height: 9px; border-radius: 5px; }
.mock-banner b { background: var(--white); width: 62%; height: 13px; }
.mock-banner em { display: block; height: 8px; border-radius: 5px; background: #8fb4ee; width: 82%; }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-cards div { background: var(--mist); border-radius: 9px; padding: 13px; display: grid; gap: 7px; }
.mock-line { background: var(--sky); }
.mock-line.short { width: 58%; }
.mock-line.dark { background: #8fb4ee; }
.chip {
  position: absolute; right: -10px; bottom: -16px;
  background: var(--navy); color: var(--white); border-radius: 9px; padding: 8px 14px;
  font-size: 0.85rem; font-weight: 600;
}

/* Services */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.service { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3.5vw, 38px); }
.service h3 { font-size: 1.45rem; }
.service > p { margin-top: 10px; color: var(--muted); }
.checks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 11px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.3em; width: 19px; height: 19px; border-radius: 50%;
  background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.6L12 5.4' fill='none' stroke='%231456c8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* Portfolio */
.work { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.work li { border-bottom: 1px solid var(--line); }
.work a {
  display: grid; grid-template-columns: 150px 1fr auto; gap: 8px 28px; align-items: baseline;
  padding: 26px 12px; color: inherit; text-decoration: none; transition: background-color 0.15s ease;
}
.work a:hover { background: var(--mist); color: inherit; }
.work a:hover .domain { color: var(--blue-dark); text-decoration: underline; }
.work .kind { color: var(--blue); font-size: 0.9rem; font-weight: 600; }
.work h3 { margin-bottom: 5px; }
.work p { color: var(--muted); font-size: 1rem; max-width: 40em; }
.work .domain { color: var(--blue); font-weight: 600; font-size: 0.975rem; white-space: nowrap; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--blue); padding-top: 18px; }
.steps li::before { content: counter(step); display: block; color: var(--blue); font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.steps p { margin-top: 8px; color: var(--muted); font-size: 1rem; }

/* Contact band */
.cta { background: var(--blue); color: #e4eefd; }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta h2 { color: var(--white); }
.cta p { margin-top: 12px; max-width: 34em; }
.cta .btn-ghost { color: var(--white); box-shadow: inset 0 0 0 1.5px var(--white); }
.cta .btn-ghost:hover { background: var(--blue-dark); color: var(--white); }

/* Inner pages */
.page-head { background: var(--mist); padding-block: clamp(48px, 7vw, 84px); }
.page-head p:last-child:not(.eyebrow) { margin-top: 16px; color: var(--muted); font-size: 1.15rem; max-width: 36em; }

.two-col { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(24px, 5vw, 64px); }
.prose p + p { margin-top: 16px; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.value p { margin-top: 8px; color: var(--muted); font-size: 1rem; }

.legal h2 { font-size: 1.4rem; margin-top: 40px; margin-bottom: 10px; }
.legal h2:first-child { margin-top: 0; }
.legal p + p, .legal p + ul, .legal ul + p { margin-top: 12px; }
.legal ul { margin-bottom: 0; padding-left: 22px; }
.legal li + li { margin-top: 6px; }

/* Footer */
.site-footer { background: var(--navy); color: #bfd0ec; padding-block: 44px; font-size: 0.975rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer .logo { color: var(--white); margin-bottom: 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: flex-start; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .services { grid-template-columns: 1fr; }
  .work a { grid-template-columns: 1fr; padding: 22px 4px; }
  .site-nav .btn { display: none; }
  .chip { right: 8px; }
}

@media (max-width: 460px) {
  .steps { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
