:root {
  --bg: #ffffff;
  --bg-soft: #f4f7fe;
  --surface: #ffffff;
  --text: #0b1233;
  --muted: #535c79;
  --border: #e1e7f3;
  --accent: #004efe;
  --accent-hover: #003fd1;
  --accent-soft: #e9f0ff;
  --navy: #09103d;
  --glow-1: rgba(0, 78, 254, 0.16);
  --glow-2: rgba(9, 16, 61, 0.07);
  --grid-line: rgba(9, 16, 61, 0.055);
  --shadow: 0 1px 2px rgba(9, 16, 61, 0.05), 0 10px 30px rgba(9, 16, 61, 0.06);
  --shadow-lg: 0 2px 6px rgba(9, 16, 61, 0.08), 0 30px 60px rgba(9, 16, 61, 0.18);
  --radius: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #060a21;
    --bg-soft: #0a102e;
    --surface: #0d1437;
    --text: #eef1fb;
    --muted: #a3abc8;
    --border: #1c2654;
    --accent: #6e9cff;
    --accent-hover: #8fb2ff;
    --accent-soft: rgba(61, 123, 255, 0.15);
    --glow-1: rgba(0, 78, 254, 0.28);
    --glow-2: rgba(110, 156, 255, 0.08);
    --grid-line: rgba(255, 255, 255, 0.045);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.4), 0 30px 70px rgba(0, 40, 160, 0.35);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #060a21;
  --bg-soft: #0a102e;
  --surface: #0d1437;
  --text: #eef1fb;
  --muted: #a3abc8;
  --border: #1c2654;
  --accent: #6e9cff;
  --accent-hover: #8fb2ff;
  --accent-soft: rgba(61, 123, 255, 0.15);
  --glow-1: rgba(0, 78, 254, 0.28);
  --glow-2: rgba(110, 156, 255, 0.08);
  --grid-line: rgba(255, 255, 255, 0.045);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.4), 0 30px 70px rgba(0, 40, 160, 0.35);
  color-scheme: dark;
}

/* Base */

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .wrap {
    padding: 0 32px;
  }
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

h1,
h2,
h3 {
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

p,
ul,
ol {
  margin: 0 0 16px;
}

li {
  margin-bottom: 6px;
}

ul li::marker {
  color: var(--accent);
}

/* Header */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

@media (min-width: 640px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
  }
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: block;
  line-height: 0;
}

.brand img {
  height: 30px;
  width: auto;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 -10px;
  font-size: 0.95rem;
}

.site-header nav a {
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
}

.site-header nav a:hover {
  color: var(--text);
  background: var(--bg-soft);
}

.site-header nav a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
}

/* Shared hero background */

.hero,
.page-head {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(56rem 28rem at 88% -12%, var(--glow-1), transparent 62%),
    radial-gradient(40rem 22rem at -8% 112%, var(--glow-2), transparent 60%),
    var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.hero::before,
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 75% 30%, #000 15%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 75% 30%, #000 15%, transparent 75%);
  pointer-events: none;
}

.hero .wrap,
.page-head .wrap {
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 5px 12px 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 36rem;
}

/* Home hero */

.hero .wrap {
  display: grid;
  align-items: center;
  gap: 40px;
  padding-top: 64px;
  padding-bottom: 72px;
}

@media (min-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1.25fr 0.75fr;
    padding-top: 96px;
    padding-bottom: 104px;
  }
}

.gradient-text {
  background: linear-gradient(92deg, var(--accent) 10%, #5b8dff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-art {
  display: none;
  position: relative;
  width: 300px;
  height: 300px;
  justify-self: center;
}

@media (min-width: 860px) {
  .hero-art {
    display: block;
  }
}

.tile {
  position: absolute;
  border-radius: 28%;
}

.tile-main {
  inset: 42px;
  z-index: 1;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #16216a 0%, #09103d 55%, #050925 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tile-main svg {
  width: 64%;
  height: auto;
}

.tile-a {
  top: 4px;
  right: 0;
  width: 118px;
  height: 118px;
  background: linear-gradient(140deg, #5b8dff, #004efe);
  transform: rotate(14deg);
  box-shadow: 0 18px 40px rgba(0, 78, 254, 0.3);
}

.tile-b {
  bottom: 8px;
  left: 4px;
  width: 92px;
  height: 92px;
  background: var(--surface);
  border: 1px solid var(--border);
  transform: rotate(-12deg);
  box-shadow: var(--shadow);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn-primary {
  background: #004efe;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 78, 254, 0.28);
}

.btn-primary:hover {
  background: #003fd1;
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  color: var(--text);
  border-color: var(--accent);
}

.btn-light {
  background: #ffffff;
  color: #09103d;
}

.btn-light:hover {
  background: #e9f0ff;
  color: #09103d;
  transform: translateY(-1px);
}

/* Sections */

.section {
  padding: 56px 0;
}

@media (min-width: 640px) {
  .section {
    padding: 80px 0;
  }
}

.section + .section {
  padding-top: 0;
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 0 6px;
}

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

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

@media (min-width: 760px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.cards li {
  margin: 0;
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.card:hover {
  color: var(--text);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.icon svg {
  width: 24px;
  height: 24px;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card-text {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.98rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 20px;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
}

.card-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.15s;
}

.card:hover .card-link svg {
  transform: translateX(3px);
}

/* Call to action band */

.cta {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 24px;
  border-radius: 20px;
  background:
    radial-gradient(30rem 16rem at 100% 0%, rgba(91, 141, 255, 0.55), transparent 70%),
    linear-gradient(135deg, #09103d 0%, #0d1f78 55%, #004efe 120%);
  color: #ffffff;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 640px) {
  .cta {
    padding: 44px 48px;
  }
}

.cta h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 6px;
}

.cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  max-width: 30rem;
}

/* Inner pages */

.page-head .wrap {
  padding-top: 56px;
  padding-bottom: 48px;
}

@media (min-width: 640px) {
  .page-head .wrap {
    padding-top: 72px;
    padding-bottom: 60px;
  }
}

.page-head h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 12px;
}

.page-head .lead {
  margin: 0;
}

.page-head::after {
  content: "";
  position: absolute;
  right: -60px;
  top: 50%;
  width: 360px;
  height: 214px;
  transform: translateY(-50%);
  background: url("logo-mark.svg") no-repeat center / contain;
  opacity: 0.07;
  pointer-events: none;
}

@media (max-width: 759px) {
  .page-head::after {
    display: none;
  }
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.page-body {
  display: grid;
  gap: 40px;
  padding-top: 48px;
  padding-bottom: 72px;
}

@media (min-width: 900px) {
  .page-body {
    grid-template-columns: minmax(0, 1fr) 18rem;
    gap: 64px;
    padding-top: 56px;
    padding-bottom: 96px;
  }
}

.prose {
  max-width: 44rem;
}

.prose > :first-child {
  margin-top: 0;
}

.prose h2 {
  font-size: 1.35rem;
  font-weight: 750;
  margin: 44px 0 10px;
}

.prose h2::before {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  margin-bottom: 14px;
  border-radius: 2px;
  background: var(--accent);
}

.prose h3 {
  font-size: 1.05rem;
  margin: 24px 0 6px;
}

.split {
  display: grid;
  gap: 16px;
  margin: 16px 0;
}

@media (min-width: 560px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

.mini-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-soft);
}

.mini-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.mini-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

ol.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 20px 0;
}

ol.steps li {
  counter-increment: step;
  position: relative;
  margin: 0 0 18px;
  padding-left: 52px;
  min-height: 36px;
}

ol.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
}

.side-card {
  position: sticky;
  top: 96px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.side-card .icon {
  margin-bottom: 14px;
}

.side-card h2 {
  font-size: 1.1rem;
  margin: 0 0 6px;
}

.side-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.side-card .btn {
  width: 100%;
  justify-content: center;
  font-size: 0.95rem;
}

.side-links {
  list-style: none;
  padding: 16px 0 0;
  margin: 20px 0 0;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
}

.side-links li {
  margin: 0 0 6px;
}

.side-links a {
  text-decoration: none;
}

.side-links a:hover {
  text-decoration: underline;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.93rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-top: 40px;
  padding-bottom: 32px;
}

.foot-brand img {
  display: block;
  height: 24px;
  width: auto;
  margin-bottom: 10px;
}

.foot-brand p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.site-footer nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--text);
  text-decoration: underline;
}

.copy {
  flex-basis: 100%;
  margin: 8px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
}

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