:root {
  --ink: #10184a;
  --ink-2: #20295d;
  --muted: #5f6689;
  --line: rgba(66, 76, 135, 0.18);
  --panel: rgba(255, 255, 255, 0.74);
  --violet: #7a35ef;
  --blue: #276de6;
  --cyan: #05b8c7;
  --aqua: #8ef8ef;
  --shadow: 0 28px 80px rgba(44, 45, 115, 0.16);
  --soft-shadow: 0 18px 45px rgba(78, 53, 180, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-pill: 999px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 86% 18%, rgba(0, 189, 203, 0.16), transparent 28rem),
    radial-gradient(circle at 14% 15%, rgba(122, 53, 239, 0.12), transparent 26rem),
    linear-gradient(180deg, #ffffff 0%, #fbfcff 50%, #ffffff 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(16, 24, 74, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 24, 74, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

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

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

.page-shell {
  width: min(100%, 1440px);
  margin: 0 auto;
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0;
  backdrop-filter: blur(18px);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  color: var(--ink-2);
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-links a {
  opacity: 0.84;
  transition: opacity 180ms ease, color 180ms ease;
}

.nav-links a:hover {
  color: var(--violet);
  opacity: 1;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  letter-spacing: -0.01em;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

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

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--blue) 52%, var(--cyan));
  box-shadow: 0 18px 34px rgba(39, 109, 230, 0.24), 0 10px 18px rgba(122, 53, 239, 0.18);
}

.button-secondary {
  color: var(--violet);
  border: 1px solid rgba(0, 184, 199, 0.72);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 0 0 1px rgba(122, 53, 239, 0.12);
}

main {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 70px;
  align-items: center;
}

.hero {
  min-height: 760px;
  padding: 70px 0 80px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--violet);
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: -0.055em;
  color: var(--ink);
}

h1 {
  margin-bottom: 26px;
  font-size: clamp(4.6rem, 8vw, 8.4rem);
  line-height: 0.86;
}

h1 span,
.gradient-text {
  background: linear-gradient(120deg, var(--violet), var(--blue) 45%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 4.3vw, 4.7rem);
  line-height: 0.98;
}

h3 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 1.22rem;
  line-height: 1.15;
}

p {
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.72;
}

.hero-lede {
  max-width: 520px;
  margin-bottom: 32px;
  font-size: 1.17rem;
}

.accent-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 220px;
  margin: 0 0 28px;
  color: var(--violet);
}

.accent-rule::before,
.accent-rule::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  opacity: 0.68;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 30px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
  font-weight: 700;
}

.trust-row li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-row li::before {
  content: "✧";
  color: var(--blue);
}

.product-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 620px;
}

.product-stage::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 70% 40%, rgba(5, 184, 199, 0.34), transparent 30%),
    radial-gradient(circle at 30% 72%, rgba(122, 53, 239, 0.22), transparent 36%);
  filter: blur(10px);
  opacity: 0.76;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(122, 53, 239, 0.16);
  border-radius: 50%;
  transform: rotate(-24deg);
}

.orbit-one {
  width: 650px;
  height: 350px;
}

.orbit-two {
  width: 540px;
  height: 290px;
  transform: rotate(-50deg);
  border-color: rgba(5, 184, 199, 0.17);
}

.spark {
  position: absolute;
  z-index: 2;
  color: var(--violet);
  text-shadow: 0 0 22px rgba(122, 53, 239, 0.5);
}

.spark-one {
  top: 20%;
  left: 9%;
}

.spark-two {
  right: 3%;
  bottom: 34%;
  color: var(--cyan);
}

.app-window {
  position: relative;
  z-index: 4;
  width: min(440px, 86vw);
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(104, 112, 170, 0.24);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 249, 255, 0.76));
  box-shadow: var(--shadow), 0 0 0 10px rgba(255, 255, 255, 0.48);
}

.window-chrome {
  display: flex;
  gap: 8px;
  padding: 5px 6px 12px;
}

.window-chrome span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff6b63;
}

.window-chrome span:nth-child(2) {
  background: #ffc452;
}

.window-chrome span:nth-child(3) {
  background: #34cb76;
}

.app-window img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(11, 16, 40, 0.22);
}

.features,
.docs {
  padding: 44px 0 64px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 30px;
}

.card-grid {
  display: grid;
  gap: 18px;
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.docs article {
  min-height: 210px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  box-shadow: var(--soft-shadow);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  margin-bottom: 22px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(122, 53, 239, 0.12), rgba(5, 184, 199, 0.12));
  color: #fff;
  font-size: 2.5rem;
  font-weight: 900;
}

.people-icon {
  position: relative;
  display: block;
}

.people-icon span {
  position: absolute;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
}

.people-icon span:nth-child(1) {
  width: 28px;
  height: 28px;
  left: 18px;
  top: 18px;
}

.people-icon span:nth-child(2) {
  width: 28px;
  height: 28px;
  right: 18px;
  top: 18px;
  opacity: 0.78;
}

.people-icon span:nth-child(3) {
  width: 34px;
  height: 32px;
  left: 12px;
  bottom: 13px;
  border-radius: 40% 40% 30% 30%;
}

.people-icon span:nth-child(4) {
  width: 34px;
  height: 32px;
  right: 12px;
  bottom: 13px;
  border-radius: 40% 40% 30% 30%;
  opacity: 0.78;
}

.shield-icon {
  clip-path: polygon(50% 0, 88% 14%, 82% 68%, 50% 100%, 18% 68%, 12% 14%);
  background: linear-gradient(135deg, var(--violet), var(--blue));
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.18), 0 16px 36px rgba(39, 109, 230, 0.25);
}

.loop-icon {
  font-size: 4rem;
  line-height: 1;
  background: linear-gradient(135deg, var(--violet), var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.how {
  align-items: start;
  padding: 56px 0 72px;
}

.how > div:first-child {
  max-width: 450px;
}

.text-link {
  color: var(--violet);
  font-weight: 900;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  padding: 28px 20px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--soft-shadow);
}

.step-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  border: 1px solid rgba(122, 53, 239, 0.14);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(122, 53, 239, 0.12);
  font-size: 1.9rem;
}

.steps li > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: 0 auto 12px;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--violet), var(--blue), var(--cyan));
}

.steps p {
  margin-bottom: 0;
  font-size: 0.94rem;
  line-height: 1.52;
}

.protocol-band,
.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr) auto;
  gap: 28px;
  align-items: center;
  margin: 34px 0 70px;
  padding: 42px;
  border: 1px solid rgba(122, 53, 239, 0.16);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 95% 20%, rgba(5, 184, 199, 0.24), transparent 22rem),
    radial-gradient(circle at 0% 90%, rgba(122, 53, 239, 0.17), transparent 20rem),
    rgba(255, 255, 255, 0.78);
  box-shadow: var(--soft-shadow);
}

.protocol-band {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.protocol-band h2,
.cta-band h2 {
  font-size: clamp(2.15rem, 3.2vw, 3.4rem);
}

.protocol-copy p,
.cta-band p {
  margin-bottom: 18px;
}

.mini-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mini-grid span {
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  color: var(--ink-2);
  border: 1px solid rgba(5, 184, 199, 0.22);
  background: rgba(255, 255, 255, 0.56);
  font-size: 0.88rem;
  font-weight: 900;
}

.docs {
  padding-top: 20px;
}

.docs h2 {
  max-width: 860px;
}

.card-grid.compact article {
  min-height: 170px;
}

.cta-band {
  margin-top: 18px;
}

.site-footer {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0 54px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-brand img {
  width: 214px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

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

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .site-header {
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .section-grid,
  .protocol-band,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 36px;
  }

  .product-stage {
    min-height: auto;
    padding: 44px 0 0;
  }

  .card-grid.three,
  .steps {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

@media (max-width: 640px) {
  main,
  .site-header,
  .site-footer {
    width: min(100% - 28px, var(--max));
  }

  .brand img {
    width: 214px;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    min-height: 42px;
    padding: 0 16px;
    font-size: 0.88rem;
  }

  h1 {
    font-size: clamp(4rem, 17vw, 6rem);
  }

  .hero {
    min-height: auto;
  }

  .hero-actions,
  .trust-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .feature-card,
  .docs article,
  .protocol-band,
  .cta-band {
    padding: 26px;
  }
}
