@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #0d0f12;
  --surface: #1f2124;
  --text: #f8fafc;
  --muted: #b8c0cc;
  --accent: #00f0ff;
  --line: #343a44;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 400 1rem/1.6 "Space Grotesk", system-ui, sans-serif;
}

h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.12; overflow-wrap: break-word; }
h1 { font-size: clamp(2.75rem, 6.3vw, 5.25rem); letter-spacing: -.055em; }
h2 { font-size: clamp(2rem, 4.3vw, 3.6rem); letter-spacing: -.045em; }
h3 { font-size: clamp(1.2rem, 2.3vw, 1.55rem); letter-spacing: -.025em; }
a { color: inherit; text-underline-offset: .25em; }
button, input, textarea { font: inherit; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  z-index: 3;
  top: .75rem;
  left: .75rem;
  padding: .7rem 1rem;
  color: #031317;
  background: var(--accent);
  transform: translateY(-200%);
}

.skip-link:focus { transform: none; }

.container { width: min(100% - 3rem, 74rem); margin-inline: auto; }
.site-header { border-bottom: 1px solid #242c39; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 6rem; }
.brand img { width: 150px; }

#main-nav ul, .site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#main-nav ul { display: flex; align-items: center; gap: clamp(1.25rem, 3.2vw, 2.5rem); }
#main-nav a { display: block; padding-block: .5rem; text-decoration: none; }
#main-nav a:hover, #main-nav a[aria-current="page"], .site-footer a:hover { color: var(--accent); }
.menu-toggle { display: none; }

.hero { padding-block: clamp(3.5rem, 8vw, 7rem); }
.hero--home { min-height: 38rem; background: linear-gradient(150deg, #0d0f12 8%, #072d7c 100%); }
.hero--ai { background: linear-gradient(180deg, #0d0f12, #072d7c); }
.hero--ai .hero-copy { margin-inline: auto; text-align: center; }
.hero-copy { max-width: 45rem; }
.lead, .section-intro { margin-top: 1.25rem; max-width: 42rem; color: var(--muted); }
.lead { font-size: clamp(1.05rem, 1.7vw, 1.25rem); }
.hero--ai .lead { margin-inline: auto; }
.hero .button { margin-top: 1.8rem; }
.hero .eyebrow { margin-bottom: 1.15rem; }
.hero .split h1 { font-size: clamp(2.65rem, 5vw, 4.65rem); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 3rem;
  padding: .7rem 1.3rem;
  border: 0;
  border-radius: .5rem;
  background: var(--accent);
  color: #061519;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button:hover { background: #80f7ff; }
.button--light { background: #f1f5f9; }
.button--light:hover { background: #cfeaff; }
.section--blue :focus-visible, .cta--home :focus-visible { outline-color: white; }

.section { padding-block: clamp(3.2rem, 7vw, 6rem); }
.section--slate { background: var(--surface); }
.section--blue, .cta--home { background: #0052ff; }

.eyebrow {
  margin-bottom: .8rem;
  color: var(--accent);
  font-size: .83rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.section--blue .eyebrow, .section--blue .section-intro { color: white; }

.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 6vw, 5rem); }
.section-split, .card-grid, .steps, .stats { margin-top: 2.2rem; }
.section-image { width: 100%; aspect-ratio: 1.21; object-fit: cover; border: 1px solid #314361; border-radius: .75rem; }
.article-stack p, .card p, .steps p, .cta p { margin-top: .75rem; }
.article-stack p, .steps p { color: var(--muted); }
.article-stack article + article { margin-top: 1.75rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }

.stats { display: flex; flex-wrap: wrap; gap: 1.5rem clamp(2rem, 6vw, 5rem); }
.stats svg, .card svg { display: block; width: 2rem; height: 2rem; margin-bottom: .75rem; color: var(--accent); }
.stats dt { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 700; line-height: 1.15; letter-spacing: -.04em; }
.stats dd { margin-top: .35rem; }

.card-grid, .steps { display: grid; gap: 1.25rem; }
.card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { padding: clamp(1.2rem, 2.4vw, 2rem); background: #102765; border: 1px solid #5b85ff; border-radius: .75rem; }
.card p { color: #e3ecff; }

.steps { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid #67717e; padding-top: 1rem; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: .65rem; color: var(--accent); font-weight: 700; }

.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.8rem; }
.cta h2 { font-size: clamp(1.9rem, 4vw, 3.25rem); }
.cta p { max-width: 42rem; }
.cta .button { flex: 0 0 auto; }
.cta--ai { background: linear-gradient(160deg, #072d7c, #07656c); }

.split--audit { align-items: start; }
.contact-form { display: grid; gap: 1rem; padding: clamp(1.15rem, 2.7vw, 2rem); border: 1px solid var(--line); border-radius: .75rem; background: var(--background); }
.contact-form label { display: block; margin-bottom: .35rem; }
.contact-form label span { color: var(--accent); }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: .65rem .8rem;
  border: 1px solid #636c7a;
  border-radius: .35rem;
  background: #161a20;
  color: var(--text);
}

.contact-form textarea { resize: vertical; }
.contact-form .button:disabled { opacity: .65; cursor: wait; }
.form-status:empty { display: none; }
.form-status[data-state="error"] { color: #ffb3b9; }
.form-status[data-state="success"] { color: #78f5c7; }

.site-footer { padding-block: 3rem 1.5rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
.footer-grid h2 { margin-bottom: .65rem; color: var(--accent); font-size: 1.05rem; letter-spacing: 0; }
.footer-grid p, .footer-grid li, .copyright { color: var(--muted); }
.footer-grid a { text-decoration: none; }
.footer-grid li + li { margin-top: .3rem; }
.copyright { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .875rem; }

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .container { width: calc(100% - 2rem); }
  .header-inner { min-height: 4.7rem; flex-wrap: wrap; padding-block: .75rem; }
  .brand img { width: 120px; }
  #main-nav { width: 100%; padding-bottom: .4rem; }
  #main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  #main-nav a { padding: .7rem .35rem; }
  .menu-toggle { display: inline-flex; align-items: center; gap: .55rem; padding: .45rem .65rem; color: var(--text); background: transparent; border: 1px solid #5c6676; border-radius: .35rem; cursor: pointer; }
  .menu-toggle span { width: .45rem; height: .45rem; border-right: 1px solid; border-bottom: 1px solid; transform: translateY(-.12rem) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span { transform: translateY(.12rem) rotate(225deg); }
  .hero--home { min-height: 0; }
  .split, .card-grid { grid-template-columns: minmax(0, 1fr); }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 410px) {
  .steps, .footer-grid { grid-template-columns: minmax(0, 1fr); }
}
