:root {
  --bg: #f3f8ff;
  --surface: #ffffff;
  --surface-soft: #f9fbff;
  --text: #0d182b;
  --muted: #4c5c76;
  --line: #dbe5f4;
  --accent: #0c7ff2;
  --accent-strong: #0356c6;
  --accent-soft: #d8eaff;
  --warm: #ffd39a;
  --ok: #068058;
  --radius: 18px;
  --max: 1080px;
  --pad: 22px;
  --font: "Instrument Sans", "Avenir Next", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  background:
    radial-gradient(1200px 560px at 88% -10%, var(--warm) 0%, transparent 55%),
    radial-gradient(900px 520px at -10% 15%, var(--accent-soft) 0%, transparent 58%),
    linear-gradient(180deg, #f6faff 0%, #f1f7ff 42%, #eef5ff 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.skip-link:focus {
  left: 10px;
  z-index: 10;
}

header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: color-mix(in oklab, var(--surface) 84%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--line) 72%, transparent);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #fff;
  font-size: 12px;
  font-family: var(--mono);
  box-shadow: 0 8px 20px rgba(12, 127, 242, 0.34);
}

.brand small {
  display: block;
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
  margin-top: 1px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--muted);
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.nav-links a:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
  background: var(--accent-soft);
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 28px 0 46px;
}

.home-layout {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.home-stack {
  margin-block: auto;
}

.hero-panel {
  position: relative;
  border-radius: 30px;
  border: 1px solid var(--line);
  background:
    linear-gradient(140deg, #ffffff 0%, #f7fbff 52%, #eff7ff 100%);
  padding: clamp(28px, 6vw, 56px);
  overflow: hidden;
  box-shadow: 0 24px 45px rgba(12, 42, 88, 0.08);
}

.hero-panel::after {
  content: "";
  position: absolute;
  width: clamp(200px, 34vw, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  top: -18%;
  right: -9%;
  background: radial-gradient(circle, rgba(12, 127, 242, 0.22) 0%, rgba(12, 127, 242, 0) 65%);
  pointer-events: none;
}

.kicker {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-strong);
}

h1 {
  margin: 10px 0 0;
  max-width: 18ch;
  font-size: clamp(34px, 7vw, 76px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.lede {
  margin: 16px 0 0;
  max-width: 62ch;
  font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.45;
  color: var(--muted);
}

.lede-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 650;
  font-size: 14px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  box-shadow: 0 12px 24px rgba(12, 127, 242, 0.34);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--muted);
  background: color-mix(in oklab, var(--surface) 86%, transparent);
}

.metrics {
  margin-top: 24px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(12, 1fr);
}

.metric {
  grid-column: span 12;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: color-mix(in oklab, #fff 78%, #e9f3ff 22%);
  padding: 14px 16px;
}

.metric-value {
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.metric p {
  margin: 7px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.section {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in oklab, var(--surface) 88%, #eff5ff 12%);
  padding: clamp(20px, 4vw, 30px);
}

h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.section p {
  margin: 12px 0 0;
  color: var(--muted);
  max-width: 66ch;
}

.grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.card {
  grid-column: span 12;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  padding: 16px;
}

.card h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.card p {
  margin: 7px 0 0;
}

.loop-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.loop-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  font-weight: 560;
}

.loop-list span {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-family: var(--mono);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

form {
  margin-top: 16px;
  max-width: 720px;
}

.field {
  margin-bottom: 14px;
}

label {
  display: block;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  font: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  color: var(--text);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(12, 127, 242, 0.16);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

button {
  border: none;
  border-radius: 999px;
  min-height: 44px;
  padding: 10px 18px;
  font: inherit;
  font-weight: 650;
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  cursor: pointer;
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.help {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.status {
  margin-top: 12px;
  border: 1px solid color-mix(in oklab, var(--ok) 34%, #d8ecdf 66%);
  background: #edf9f3;
  color: #0a5b3f;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
}

footer {
  border-top: 1px solid var(--line);
  padding: 20px 0 30px;
  color: var(--muted);
  font-size: 14px;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a:hover {
  color: var(--accent-strong);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal 560ms ease forwards;
}

.reveal:nth-of-type(1) {
  animation-delay: 70ms;
}

.reveal:nth-of-type(2) {
  animation-delay: 140ms;
}

.reveal:nth-of-type(3) {
  animation-delay: 210ms;
}

.reveal:nth-of-type(4) {
  animation-delay: 280ms;
}

.reveal:nth-of-type(5) {
  animation-delay: 350ms;
}

.reveal:nth-of-type(6) {
  animation-delay: 420ms;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 740px) {
  .metric {
    grid-column: span 4;
  }

  .card.half {
    grid-column: span 6;
  }

  .card.third {
    grid-column: span 4;
  }
}

@media (max-width: 900px) {
  .brand small {
    display: none;
  }
}

@media (max-width: 680px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }

  h1 {
    max-width: 100%;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .btn {
    transition: none;
  }
}
