:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #f7f8fb;
  --bg-soft: #eef1f6;
  --bg-elev: #ffffff;
  --border: rgba(9, 37, 78, 0.14);
  --border-strong: rgba(9, 37, 78, 0.24);
  --text: #082653;
  --text-soft: #395779;
  --text-muted: #667b96;
  --accent: #0b2d5c;
  --accent-soft: rgba(11, 45, 92, 0.12);
  --blue: #315f99;
  --blue-soft: rgba(49, 95, 153, 0.12);
  --purple: #55769f;
  --purple-soft: rgba(85, 118, 159, 0.12);
  --yellow: #8a9bb2;
  --red: #a6414c;
  background: var(--bg);
  color: var(--text);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Ambient background ---------- */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(9, 37, 78, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9, 37, 78, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, black 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, black 25%, transparent 75%);
  animation: gridPan 60s linear infinite;
}

body::after {
  content: "";
  position: fixed;
  inset: -25%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 20% 25%, rgba(11, 45, 92, 0.15), transparent 42%),
    radial-gradient(circle at 80% 15%, rgba(49, 95, 153, 0.14), transparent 42%),
    radial-gradient(circle at 60% 85%, rgba(11, 45, 92, 0.09), transparent 38%);
  filter: blur(52px);
  animation: aurora 10s ease-in-out infinite alternate;
}

@keyframes gridPan {
  to {
    background-position: 56px 56px, 56px 56px;
  }
}

@keyframes aurora {
  0% {
    transform: translate3d(-8%, -5%, 0) scale(1) rotate(-2deg);
    opacity: 0.75;
  }
  50% {
    transform: translate3d(7%, 5%, 0) scale(1.18) rotate(2deg);
    opacity: 1;
  }
  100% {
    transform: translate3d(-5%, 8%, 0) scale(1.05) rotate(-1deg);
    opacity: 0.85;
  }
}

/* floating particles */

.page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(2.5px 2.5px at 30px 40px, rgba(11, 45, 92, 0.55), transparent 100%),
    radial-gradient(1.5px 1.5px at 150px 110px, rgba(49, 95, 153, 0.38), transparent 100%),
    radial-gradient(2px 2px at 80px 200px, rgba(11, 45, 92, 0.38), transparent 100%),
    radial-gradient(1.5px 1.5px at 230px 60px, rgba(49, 95, 153, 0.28), transparent 100%),
    radial-gradient(2px 2px at 190px 230px, rgba(11, 45, 92, 0.46), transparent 100%);
  background-size: 280px 280px;
  animation: particlesDrift 26s linear infinite;
}

@keyframes particlesDrift {
  to {
    background-position: -60px -280px, 40px -560px, -30px -420px, 60px -340px, -50px -500px;
  }
}

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

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

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

/* ---------- Nav ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  padding: 24px;
  gap: 32px;
}

.brand,
.nav-links,
.actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  width: 34px;
  height: 34px;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand:hover img {
  transform: rotate(180deg) scale(1.08);
}

.brand span {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav-links {
  color: var(--text-soft);
  font-size: 14px;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 6px 10px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav-links a.active {
  color: var(--accent);
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 48px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  padding: 64px 24px 48px;
}

.hero.compact {
  grid-template-columns: minmax(0, 760px);
}

.hero.fullbleed {
  grid-template-columns: 1fr;
  padding: 0;
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 100px rgba(0, 0, 0, 0.46);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-weight: 700;
  background: linear-gradient(100deg, var(--text) 0%, var(--text) 35%, #6c8db8 50%, var(--text) 65%, var(--text) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--text);
  animation: shimmer 7s linear infinite;
}

@keyframes shimmer {
  from {
    background-position: 125% 0;
  }
  to {
    background-position: -125% 0;
  }
}

h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}

h3 {
  font-size: 20px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.lead {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--text-soft);
  font-size: 19px;
  line-height: 1.6;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.12s ease, background 0.15s, border-color 0.15s, color 0.15s;
}

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

.primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 0 22px rgba(11, 45, 92, 0.22);
}

.primary:hover {
  background: #17457e;
  box-shadow: 0 0 42px rgba(11, 45, 92, 0.32);
}

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

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

/* ---------- Website account flow ---------- */

.account-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 15%, rgba(11, 45, 92, 0.09), transparent 31rem),
    var(--bg);
}

.web-auth-shell {
  width: min(100% - 32px, 520px);
  margin: 0 auto;
  padding: 36px 0 64px;
}

.web-auth-brand {
  width: max-content;
  margin: 0 auto 32px;
}

.web-auth-card {
  padding: clamp(28px, 6vw, 48px);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
}

.web-auth-card h1 {
  font-size: clamp(36px, 8vw, 54px);
}

.web-auth-lead,
.web-auth-note,
.web-auth-switch {
  color: var(--text-soft);
  line-height: 1.55;
}

.web-auth-form {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.web-auth-form label {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
}

.web-auth-form input[type="email"],
.password-control input {
  min-height: 48px;
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 0 14px;
  background: #f2f4f8;
  color: var(--text);
  font: inherit;
}

.password-control {
  position: relative;
}

.password-control input {
  padding-right: 52px !important;
}

.password-visibility {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
}

.password-visibility:hover,
.password-visibility:focus-visible {
  background: var(--accent-soft);
}

.password-visibility:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.password-visibility svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.web-auth-form input:focus {
  outline: 2px solid rgba(11, 45, 92, 0.45);
  outline-offset: 1px;
}

.web-auth-form .button {
  width: 100%;
  margin-top: 12px;
  border: 0;
  cursor: pointer;
}

.web-auth-form .button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.web-auth-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-soft);
  font-weight: 400 !important;
  line-height: 1.45;
}

.web-auth-consent input {
  margin-top: 3px;
}

.web-auth-message {
  margin: 8px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 111, 111, 0.4);
  border-radius: 8px;
  color: #ffb4b4;
  background: rgba(130, 25, 25, 0.16);
  line-height: 1.45;
}

.web-auth-message.is-success {
  border-color: rgba(11, 45, 92, 0.35);
  color: #0b2d5c;
  background: rgba(11, 45, 92, 0.08);
}

.web-auth-switch {
  margin: 24px 0 0;
  text-align: center;
}

.web-auth-switch a,
.web-auth-note a,
.web-auth-consent a {
  color: var(--accent);
}

.web-auth-note {
  margin: 18px 0 0;
  font-size: 12px;
  text-align: center;
}

/* ---------- Sections ---------- */

.section {
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  padding: 56px 24px;
}

.section-head {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-head .lead {
  margin-top: 14px;
  font-size: 17px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elev);
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.feature:hover,
.stat:hover,
.step:hover {
  border-color: rgba(11, 45, 92, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.stat,
.step,
.price-card {
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.price-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.feature h3 {
  margin: 0 0 10px;
}

.feature p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 14.5px;
}

.feature .num {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 12px;
}

.features .feature:nth-child(2) .num {
  color: var(--blue);
}

.features .feature:nth-child(3) .num {
  color: var(--purple);
}

/* ---------- Cards / grids ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elev);
  padding: 26px;
  transition: border-color 0.15s, transform 0.15s;
}

a.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.card .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.card h3 {
  margin: 0 0 10px;
}

.card p {
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 14.5px;
  margin: 0 0 18px;
}

.card .arrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
}

.grid .card:nth-child(2) .tag,
.grid .card:nth-child(2) .arrow {
  color: var(--blue);
}

/* ---------- Terminal preview ---------- */

.terminal {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elev);
  box-shadow: 0 24px 100px rgba(0, 0, 0, 0.46);
  overflow: hidden;
}

.window-dots {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.window-dots span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--accent);
}

.window-dots span:first-child {
  background: #6f829d;
}

.window-dots span:nth-child(2) {
  background: #aab7c8;
}

.terminal pre {
  margin: 0;
  padding: 22px;
  color: #d9dde3;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.75;
  overflow-x: auto;
}

.terminal pre::after {
  content: "▋";
  color: var(--accent);
  margin-left: 2px;
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ---------- Pricing ---------- */

.pricing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.price-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-soft);
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 24px 100px rgba(11, 45, 92, 0.08);
}

.price-card:first-child {
  border-top-color: var(--blue);
}

.price-card:last-child {
  border-top-color: var(--red);
}

.price-card:last-child .name,
.price-card:last-child .amount {
  color: var(--red);
}

.price-card .name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.price-card .amount {
  margin-top: 12px;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.price-card .amount span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 4px;
}

.price-card ul {
  list-style: none;
  margin: 22px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-soft);
  flex: 1;
}

.price-card li::before {
  content: "✓";
  color: var(--accent);
  margin-right: 10px;
  font-weight: 700;
}

.price-card .button {
  width: 100%;
  margin-top: auto;
}

/* ---------- Footer ---------- */

.footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
  background: var(--bg-soft);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer h4 {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 0 0 14px;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer a {
  color: var(--text-muted);
  font-size: 14px;
}

.footer a:hover {
  color: var(--text);
}

.footer .brand-block p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 12px 0 0;
  max-width: 320px;
}

.footer-bottom {
  max-width: 1180px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
  gap: 16px;
  flex-wrap: wrap;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.legal-links a {
  font-size: 13px;
}

/* ---------- Legal pages ---------- */

.legal-shell {
  width: min(920px, calc(100% - 48px));
  margin: 0 auto;
  padding: 56px 0 88px;
}

.legal-header {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
}

.legal-header h1 {
  margin: 8px 0 14px;
  font-size: clamp(38px, 6vw, 64px);
  letter-spacing: -0.045em;
}

.legal-header .lead {
  max-width: 760px;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 13px;
}

.legal-summary,
.legal-contact {
  margin: 28px 0;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-soft);
}

.legal-toc {
  margin: 28px 0 38px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 28px;
  list-style-position: inside;
}

.legal-section {
  scroll-margin-top: 24px;
  padding: 30px 0;
  border-top: 1px solid var(--border);
}

.legal-section h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 4vw, 32px);
  letter-spacing: -0.025em;
}

.legal-section h3 {
  margin: 24px 0 10px;
  font-size: 18px;
}

.legal-section p,
.legal-section li,
.legal-summary p,
.legal-contact p {
  color: var(--text-soft);
  line-height: 1.75;
}

.legal-section li + li {
  margin-top: 8px;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 18px 0;
}

.legal-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.legal-table th,
.legal-table td {
  padding: 14px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  color: var(--text-soft);
  line-height: 1.55;
}

.legal-table th {
  color: var(--text);
  background: var(--bg-soft);
}

@media (max-width: 640px) {
  .legal-shell {
    width: min(100% - 32px, 920px);
    padding-top: 38px;
  }

  .legal-toc {
    grid-template-columns: 1fr;
  }
}

/* ---------- Banner (intro band) ---------- */

.banner {
  background: linear-gradient(180deg, transparent, rgba(11, 45, 92, 0.04));
  border-bottom: 1px solid var(--border);
  text-align: center;
  font-size: 13px;
  color: var(--text-soft);
  padding: 10px 16px;
}

.banner strong {
  color: var(--accent);
  margin-right: 8px;
}

/* ---------- Page-title section (sub-pages) ---------- */

.page-title {
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  padding: 48px 24px 0;
}

.page-title .eyebrow {
  margin-bottom: 14px;
}

.page-title h1 {
  font-size: clamp(36px, 5vw, 56px);
}

.page-title .lead {
  margin-top: 18px;
  max-width: 680px;
  font-size: 18px;
}

/* ---------- Roadmap ---------- */

.roadmap-hero {
  padding-bottom: 32px;
}

.roadmap-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  padding: 9px 13px;
  border: 1px solid rgba(11, 45, 92, 0.3);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text-soft);
  font-size: 13px;
}

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

.roadmap-section {
  padding-top: 28px;
  padding-bottom: 88px;
}

.roadmap {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

.roadmap::before {
  content: "";
  position: absolute;
  top: 42px;
  bottom: 42px;
  left: 25px;
  width: 1px;
  background: linear-gradient(var(--accent), var(--blue) 52%, var(--purple));
  opacity: 0.6;
}

.roadmap-item {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 24px;
  padding-bottom: 24px;
}

.roadmap-item:last-child {
  padding-bottom: 0;
}

.roadmap-marker {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  align-self: start;
  width: 52px;
  height: 52px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--bg-elev);
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
}

.roadmap-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(232, 237, 245, 0.72));
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.roadmap-card::after {
  content: "";
  position: absolute;
  top: -90px;
  right: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--milestone-glow, var(--accent-soft));
  filter: blur(20px);
  opacity: 0.45;
  pointer-events: none;
}

.roadmap-card:hover {
  border-color: var(--milestone-color, var(--accent));
  transform: translateY(-3px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
}

.roadmap-item.current {
  --milestone-color: var(--accent);
  --milestone-glow: var(--accent-soft);
}

.roadmap-item.next {
  --milestone-color: var(--blue);
  --milestone-glow: var(--blue-soft);
}

.roadmap-item.future {
  --milestone-color: var(--purple);
  --milestone-glow: var(--purple-soft);
}

.roadmap-item.current .roadmap-marker {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 0 0 7px rgba(11, 45, 92, 0.08), 0 0 28px rgba(11, 45, 92, 0.24);
}

.roadmap-item.next .roadmap-marker {
  border-color: rgba(49, 95, 153, 0.5);
  color: var(--blue);
}

.roadmap-item.future .roadmap-marker {
  border-color: rgba(85, 118, 159, 0.5);
  color: var(--purple);
}

.roadmap-meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.roadmap-status {
  padding: 6px 10px;
  border: 1px solid color-mix(in srgb, var(--milestone-color) 45%, transparent);
  border-radius: 999px;
  color: var(--milestone-color);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.roadmap-order {
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.roadmap-card h2,
.roadmap-card p {
  position: relative;
  z-index: 1;
}

.roadmap-card h2 {
  margin-bottom: 12px;
  font-size: clamp(26px, 3vw, 36px);
}

.roadmap-card p {
  max-width: 760px;
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
}

/* ---------- Misc ---------- */

.cta-band {
  background: radial-gradient(circle at 50% 0%, var(--accent-soft), transparent 60%), var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 64px 24px;
}

.cta-band h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  margin: 0 0 12px;
}

.cta-band p {
  color: var(--text-soft);
  font-size: 17px;
  margin: 0 auto 24px;
  max-width: 540px;
}

.cta-band .actions {
  justify-content: center;
  margin-top: 0;
}

.divider {
  height: 1px;
  background: var(--border);
  border: 0;
  margin: 0;
}

/* ---------- Animations ---------- */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes flow {
  to {
    stroke-dashoffset: -60;
  }
}

@keyframes hubPulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.06);
  }
}

.hero > div:first-child {
  animation: fadeUp 0.7s ease both;
}

.hero-image {
  animation: fadeUp 0.7s 0.15s ease both, float 6s ease-in-out 1.2s infinite;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ---------- Routing diagram ---------- */

.routing-panel {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: radial-gradient(circle at 50% 0%, rgba(11, 45, 92, 0.07), transparent 55%), var(--bg-elev);
  box-shadow: 0 24px 100px rgba(0, 0, 0, 0.46);
  padding: 18px;
  animation: fadeUp 0.7s 0.15s ease both;
}

.routing-svg {
  width: 100%;
  height: auto;
  display: block;
}

.routing-svg text {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.routing-svg .pill {
  fill: rgba(9, 37, 78, 0.045);
  stroke: rgba(9, 37, 78, 0.18);
}

.routing-svg .pill-label {
  fill: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.routing-svg .pill-sub {
  fill: var(--text-muted);
  font-size: 10.5px;
}

.routing-svg .caption {
  fill: var(--text-muted);
  font-size: 12px;
}

.routing-svg .flow {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 4 8;
  animation: flow 1.4s linear infinite;
}

.routing-svg .flow.easy {
  stroke: #0b2d5c;
}

.routing-svg .flow.mid {
  stroke: #8a9bb2;
  animation-duration: 1.8s;
}

.routing-svg .flow.hard {
  stroke: #315f99;
  animation-duration: 2.4s;
}

.routing-svg .hub-core {
  fill: #0b2d5c;
  stroke: rgba(11, 45, 92, 0.35);
  stroke-width: 1.5;
}

.routing-svg .hub-x {
  stroke: #eaf6ff;
  stroke-width: 5;
  stroke-linecap: round;
}

.routing-svg .hub-ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-dasharray: 5 7;
  transform-origin: 280px 220px;
  animation: hubPulse 2.4s ease-in-out infinite;
}

.routing-svg .flow.in {
  stroke: rgba(255, 255, 255, 0.45);
}

.routing-svg .bar-track {
  fill: rgba(9, 37, 78, 0.05);
  stroke: rgba(9, 37, 78, 0.16);
}

.routing-svg .bar-fill {
  transform-box: fill-box;
  transform-origin: left center;
}

.routing-svg .bar-fill.green {
  fill: var(--accent);
  opacity: 0.85;
  animation: barGrow 7s ease-in-out infinite alternate;
}

.routing-svg .bar-fill.red {
  fill: #315f99;
  opacity: 0.8;
  animation: barMax 6s ease-in infinite;
}

.routing-svg .limit-line {
  stroke: #315f99;
  stroke-width: 2;
  stroke-dasharray: 4 4;
}

.routing-svg .limit-label {
  fill: #315f99;
  font-size: 10.5px;
}

.routing-svg .limit-hit {
  fill: #315f99;
  font-size: 12.5px;
  font-weight: 700;
  animation: limitHit 6s linear infinite;
}

@keyframes barGrow {
  from {
    transform: scaleX(0.12);
  }
  to {
    transform: scaleX(0.8);
  }
}

@keyframes barMax {
  0% {
    transform: scaleX(0);
  }
  65% {
    transform: scaleX(1);
  }
  100% {
    transform: scaleX(1);
  }
}

@keyframes limitHit {
  0%,
  60% {
    opacity: 0;
  }
  70%,
  80% {
    opacity: 1;
  }
  85% {
    opacity: 0.3;
  }
  90%,
  100% {
    opacity: 1;
  }
}

/* ---------- Modes ---------- */

.mode-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(11, 45, 92, 0.4);
  margin-bottom: 16px;
}

.mode-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.features .feature:nth-child(2) .mode-icon {
  background: var(--blue-soft);
  border-color: rgba(49, 95, 153, 0.4);
}

.features .feature:nth-child(3) .mode-icon {
  background: var(--purple-soft);
  border-color: rgba(85, 118, 159, 0.4);
}

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  text-align: center;
}

.stat {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elev);
  padding: 32px 24px;
}

.stat .value {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.stats .stat:nth-child(2) .value {
  color: var(--yellow);
}

.stats .stat:nth-child(3) .value {
  color: var(--blue);
}

.stat p {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.6;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  counter-reset: step;
}

.step {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elev);
  padding: 26px 24px 24px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 14px;
}

.step p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 14.5px;
}

/* ---------- Comparison table ---------- */

.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-soft);
}

.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 560px;
}

.compare th,
.compare td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare thead th {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.compare thead th:last-child {
  color: var(--accent);
}

.compare tbody tr:last-child td {
  border-bottom: 0;
}

.compare td {
  color: var(--text-muted);
}

.compare td:first-child {
  color: var(--text);
  font-weight: 600;
}

.compare td:last-child {
  color: var(--text);
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 760px;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elev);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.15s;
}

.faq details[open],
.faq details:hover {
  border-color: var(--border-strong);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 15.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 20px;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 14.5px;
}

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

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

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .nav,
  .hero {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 36px 24px;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .features,
  .grid,
  .pricing,
  .stats,
  .steps {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .roadmap-item {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 14px;
  }

  .roadmap::before {
    left: 19px;
  }

  .roadmap-marker {
    width: 40px;
    height: 40px;
    font-size: 11px;
  }

  .roadmap-card {
    min-height: 0;
    padding: 22px;
  }

  .roadmap-meta {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 22px;
  }
}
