:root {
  --bg: #050914;
  --bg2: #0b1328;
  --panel: rgba(255, 255, 255, 0.05);
  --text: #eaf0ff;
  --muted: rgba(234, 240, 255, 0.72);
  --primary: #2563eb;
  --secondary: #1cc9c1;
  --highlight: #8ee9e2;
  --border: rgba(170, 194, 255, 0.14);
  --shadow: 0 28px 60px rgba(2, 7, 23, 0.46);
  --radius: 22px;
  --container: 1200px;
  --section-gap: clamp(1.15rem, 3vw, 1.8rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(1200px 700px at 8% -10%, rgba(28, 201, 193, 0.22), transparent 55%),
    radial-gradient(980px 620px at 92% 8%, rgba(37, 99, 235, 0.18), transparent 62%),
    radial-gradient(780px 500px at 52% 100%, rgba(15, 74, 176, 0.16), transparent 66%),
    linear-gradient(160deg, var(--bg) 0%, var(--bg2) 100%);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 0.75px, transparent 0.75px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, #000 30%, transparent 95%);
  opacity: 0.14;
}

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 999;
  border-radius: 0 0 10px 10px;
}

.skip-link:focus-visible {
  left: 1rem;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

main {
  display: grid;
  gap: clamp(0.45rem, 1.5vw, 0.9rem);
}

.section {
  padding: clamp(3.25rem, 8vw, 6rem) 0;
  position: relative;
}

main > section.section.container:not(.hero) {
  padding-inline: clamp(1rem, 2.4vw, 2rem);
  border: 1px solid rgba(128, 154, 214, 0.12);
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(180deg, rgba(10, 16, 32, 0.38), rgba(8, 12, 24, 0.18));
}

.section-head {
  margin-bottom: clamp(1rem, 2.4vw, 1.7rem);
  max-width: 760px;
}

.section-head h2 {
  margin: 0.42rem 0 0;
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.eyebrow {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: color-mix(in oklab, var(--secondary) 78%, #fff 22%);
  font-weight: 700;
}

.bg-effects {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -2;
}

.blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(52px);
  opacity: 0.42;
  animation: drift 20s ease-in-out infinite alternate;
}

.blob-1 {
  width: 360px;
  height: 360px;
  top: -120px;
  left: -80px;
  background: rgba(22, 199, 189, 0.48);
}

.blob-2 {
  width: 290px;
  height: 290px;
  top: 12%;
  right: -80px;
  background: rgba(37, 99, 235, 0.26);
  animation-delay: -4s;
}

.blob-3 {
  width: 300px;
  height: 300px;
  bottom: -100px;
  left: 42%;
  background: rgba(18, 84, 197, 0.24);
  animation-delay: -8s;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(18px, -24px, 0) scale(1.08);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(6, 10, 20, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
  background: rgba(7, 11, 21, 0.92);
  border-bottom-color: rgba(28, 201, 193, 0.22);
  box-shadow: 0 10px 30px rgba(3, 9, 25, 0.38);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
}

.brand-logo {
  width: 146px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(37, 99, 235, 0.12));
}

.footer-logo {
  width: 138px;
}

.brand-footer {
  margin-bottom: 0.46rem;
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.52rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.menu-toggle span {
  width: 1.25rem;
  height: 2px;
  border-radius: 3px;
  background: currentColor;
}

.menu {
  margin: 0;
  list-style: none;
  position: absolute;
  top: calc(100% + 0.65rem);
  left: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  background: rgba(10, 14, 28, 0.95);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(0.99);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.menu a {
  color: var(--muted);
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  font-weight: 500;
}

.menu a:hover,
.menu a.active {
  color: var(--text);
  background: rgba(28, 201, 193, 0.16);
}

.desktop-cta {
  display: none !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 650;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(125deg, #10399a 0%, var(--primary) 48%, var(--secondary) 100%);
  box-shadow: 0 14px 30px rgba(24, 118, 255, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 16px 32px rgba(24, 118, 255, 0.36);
}

.btn-ghost {
  border-color: rgba(147, 176, 245, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(28, 201, 193, 0.42);
  box-shadow: 0 10px 24px rgba(28, 201, 193, 0.14);
}

.hero {
  min-height: clamp(560px, 82svh, 760px);
  padding-top: clamp(3.8rem, 7vw, 6.25rem);
  padding-bottom: clamp(2.6rem, 5vw, 4rem);
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(28, 201, 193, 0.28);
  background: rgba(28, 201, 193, 0.09);
}

.hero .eyebrow::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 0 6px rgba(28, 201, 193, 0.12);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: fade-up 0.85s cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
}

.hero-stats.reveal {
  animation-delay: 0.17s;
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1 {
  margin: 0.55rem 0 0;
  font-size: clamp(2.2rem, 5.4vw, 4.15rem);
  line-height: 1.05;
  letter-spacing: -0.028em;
  max-width: 12.5ch;
  text-wrap: balance;
}

.hero h1 {
  background: linear-gradient(110deg, #ffffff 0%, #d8e5ff 44%, #8fb8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin: 1rem 0 0;
  color: var(--muted);
  max-width: 58ch;
  font-size: clamp(1.02rem, 2vw, 1.12rem);
}

.hero-actions {
  margin-top: 1.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-stats {
  margin-top: 1.8rem;
  display: grid;
  gap: 1rem;
}

.glass {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.09) 48%, transparent 78%);
  transform: translateX(-120%);
  transition: transform 0.9s ease;
}

.glass:hover::before {
  transform: translateX(120%);
}

.stat-card,
.card,
.timeline-item,
.checklist,
.callout,
.code-block {
  padding: 1.18rem;
}

.stat-card,
.card,
.timeline-item,
.code-block {
  height: 100%;
}

.stat-card,
.card,
.timeline-item,
.callout,
.cta-band {
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover,
.card:hover,
.timeline-item:hover,
.callout:hover,
.cta-band:hover {
  transform: translateY(-5px);
  border-color: rgba(28, 201, 193, 0.28);
  box-shadow: 0 24px 42px rgba(8, 14, 34, 0.62);
}

.stat-card {
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
    radial-gradient(220px 120px at 0% 0%, rgba(28, 201, 193, 0.08), transparent 70%);
}

.stat-card:first-child {
  border-color: rgba(28, 201, 193, 0.26);
  box-shadow: 0 24px 42px rgba(7, 18, 42, 0.58);
}

.stat-card h2,
.card h3,
.timeline-item h3,
.callout h3,
.code-block h3 {
  margin: 0;
  font-size: 1.04rem;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.stat-card p,
.card p,
.timeline-item p,
.callout p,
.code-block p,
.cta-band p,
.footer-grid p,
.checklist li,
.benefits li {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.stat-card p {
  color: rgba(234, 240, 255, 0.8);
}

.grid {
  display: grid;
  gap: var(--section-gap);
}

.cards-4,
.cards-2 {
  grid-template-columns: 1fr;
}

.icon {
  width: 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 0.7rem;
  background: rgba(28, 201, 193, 0.14);
  border: 1px solid rgba(28, 201, 193, 0.22);
}

.icon svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: #8ec0ff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.divider {
  height: 1px;
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
  background: linear-gradient(90deg, transparent 0%, rgba(28, 201, 193, 0.48) 30%, rgba(37, 99, 235, 0.4) 68%, transparent 100%);
  background-size: 220% 100%;
  opacity: 0.64;
  animation: flow-line 6s ease-in-out infinite;
}

@keyframes flow-line {
  0%,
  100% {
    background-position: 0% 50%;
    opacity: 0.42;
  }
  50% {
    background-position: 100% 50%;
    opacity: 0.96;
  }
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--section-gap);
}

.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "step title"
    "step text";
  column-gap: 0.85rem;
  row-gap: 0.2rem;
  align-items: start;
}

.step {
  grid-area: step;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  margin: 0.14rem 0 0;
  color: #d9f5ff;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(37, 99, 235, 0.26);
}

.timeline-item h3 {
  grid-area: title;
}

.timeline-item p {
  grid-area: text;
  margin-top: 0.18rem;
}

.security-wrap,
.partners-layout {
  display: grid;
  gap: var(--section-gap);
}

.checklist,
.benefits {
  margin: 0;
  padding-left: 1.15rem;
}

.checklist li,
.benefits li {
  margin-top: 0.46rem;
}

.callout {
  border-color: rgba(37, 99, 235, 0.28);
  background:
    linear-gradient(160deg, rgba(37, 99, 235, 0.16), rgba(28, 201, 193, 0.06));
}

.code-block {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.2);
}

.code-block p {
  font-size: 0.95rem;
}

.code-block details {
  margin-top: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(7, 10, 18, 0.52);
}

.code-block summary {
  cursor: pointer;
  list-style: none;
  padding: 0.62rem 0.8rem;
  font-weight: 650;
}

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

.code-block summary::after {
  content: "+";
  float: right;
  color: var(--secondary);
}

.code-block details[open] summary::after {
  content: "−";
}

.code-block details[open] summary {
  border-bottom: 1px solid var(--border);
}

.code-block pre {
  margin: 0;
  padding: 0.8rem;
  overflow: auto;
}

.code-block code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9rem;
  color: #bad0ff;
}

.cta-band {
  text-align: center;
  padding: clamp(1.25rem, 4vw, 2.35rem);
  border-color: rgba(28, 201, 193, 0.24);
  background:
    radial-gradient(600px 240px at 20% 0%, rgba(28, 201, 193, 0.22), transparent 70%),
    radial-gradient(460px 180px at 88% 100%, rgba(37, 99, 235, 0.2), transparent 80%),
    linear-gradient(170deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04));
}

.cta-band h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3.1vw, 2.25rem);
  letter-spacing: -0.02em;
}

.site-footer {
  margin-top: 2rem;
  padding: 2.25rem 0 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 9, 18, 0.82);
}

.footer-grid {
  display: grid;
  gap: var(--section-gap);
}

.footer-grid h3 {
  margin: 0;
  font-size: 0.95rem;
}

.footer-grid ul {
  margin: 0.45rem 0 0;
  padding: 0;
  list-style: none;
}

.footer-grid li + li {
  margin-top: 0.35rem;
}

.footer-grid a {
  color: var(--muted);
}

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

.legal {
  width: min(100% - 2rem, var(--container));
  margin: 1.45rem auto 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(2px);
  transition:
    opacity 0.65s ease,
    transform 0.65s cubic-bezier(0.2, 0.6, 0.2, 1),
    filter 0.65s ease;
  transition-delay: var(--stagger, 0ms);
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

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

@media (min-width: 700px) {
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .cards-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 960px) {
  .nav {
    margin: 0.4rem auto;
    min-height: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    padding: 0.45rem 0.6rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  }

  .menu-toggle {
    display: none;
  }

  .menu {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.2rem;
    padding: 0;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .menu a {
    padding: 0.5rem 0.64rem;
    font-size: 0.92rem;
  }

  .desktop-cta {
    display: inline-flex !important;
    min-width: max-content;
  }

  .brand-logo {
    width: 162px;
  }

  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    align-items: center;
    gap: 2.75rem;
  }

  .hero-stats {
    margin-top: 0;
    max-width: 420px;
    justify-self: end;
    grid-template-columns: 1fr;
  }

  .hero-stats .stat-card:nth-child(2) {
    margin-right: 1.25rem;
  }

  .hero-stats .stat-card:nth-child(3) {
    margin-right: 0.45rem;
  }

  .cards-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-item {
    grid-template-columns: 1fr;
    grid-template-areas:
      "step"
      "title"
      "text";
    row-gap: 0.5rem;
  }

  .step {
    margin: 0;
  }

  .security-wrap {
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }

  .partners-layout {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

@media (min-width: 1140px) {
  .cards-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .timeline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .animate-on-scroll {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.logo-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.62rem;
  border-radius: 20px;
  border: 1px solid rgba(181, 208, 255, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 245, 255, 0.94));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 16px 30px rgba(6, 22, 58, 0.24);
}
