:root {
  --bg: #eef2fa;
  --bg-elevated: rgba(255, 255, 255, 0.86);
  --bg-solid: #ffffff;
  --bg-muted: #e8edf8;
  --text: #141a2b;
  --text-muted: #5f687c;
  --border: rgba(123, 137, 173, 0.28);
  --accent: #5a45e4;
  --accent-2: #7060f4;
  --accent-3: #3f86ff;
  --accent-soft: rgba(90, 69, 228, 0.14);
  --gold: #b38736;
  --shadow-sm: 0 8px 22px rgba(21, 29, 56, 0.08);
  --shadow-md: 0 16px 42px rgba(20, 28, 52, 0.11);
  --shadow-lg: 0 24px 54px rgba(20, 27, 52, 0.14);
  --radius: 16px;
  --radius-lg: 24px;
  --max: 1160px;
  --focus: 0 0 0 4px rgba(95, 76, 238, 0.22);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  color: var(--text);
  line-height: 1.55;
  font-family: "Plus Jakarta Sans", "DM Sans", sans-serif;
  background:
    radial-gradient(circle at 11% -8%, rgba(101, 81, 241, 0.24) 0%, transparent 34%),
    radial-gradient(circle at 90% 12%, rgba(56, 129, 255, 0.18) 0%, transparent 28%),
    linear-gradient(180deg, #f2f5fd 0%, #f6f8fd 42%, #ecf1fa 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image:
    linear-gradient(to right, rgba(96, 108, 143, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(96, 108, 143, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.36), transparent 82%);
}

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

a,
button,
input,
select,
textarea {
  font-family: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.18;
  font-family: "Sora", "Plus Jakarta Sans", sans-serif;
}

p {
  margin: 0;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.container {
  width: min(100% - 2.75rem, var(--max));
  margin: 0 auto;
}

.section {
  padding: 72px 0;
  position: relative;
}

.section.compact {
  padding: 52px 0;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  isolation: isolate;
  border-bottom: 1px solid rgba(132, 143, 174, 0.35);
  background: linear-gradient(160deg, rgba(252, 253, 255, 0.82), rgba(243, 246, 255, 0.66));
  backdrop-filter: blur(14px);
}

.navbar::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(100, 90, 225, 0.42), transparent);
}

.navbar .inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 14px;
  row-gap: 10px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
  min-width: 0;
  white-space: nowrap;
}

.brand-mark {
  width: 44px;
  height: auto;
  flex-shrink: 0;
}

.brand-wordmark {
  font-family: "Sora", "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #0f1423;
}

.brand-wordmark span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-self: center;
  min-width: 0;
  max-width: 100%;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  white-space: nowrap;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  color: #556079;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 8px 14px;
  transition: all 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(90, 69, 228, 0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 12px;
  flex-wrap: nowrap;
}

.social-link {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(88, 67, 224, 0.48);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(83, 62, 218, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.social-link:hover {
  transform: translateY(-1px);
  border-color: rgba(78, 58, 212, 0.7);
  background: linear-gradient(135deg, #4f3cda, #6656ed);
  box-shadow: 0 12px 26px rgba(77, 58, 204, 0.36);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 12px 18px;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(106, 117, 152, 0.4);
  box-shadow: var(--shadow-sm);
}

.button.primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 24px rgba(74, 58, 207, 0.34);
}

.button.primary:hover {
  box-shadow: 0 14px 28px rgba(74, 58, 207, 0.42);
  background: linear-gradient(120deg, #4f39db, #6958ef);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.7);
}

.button.ghost:hover {
  color: var(--accent);
  border-color: rgba(90, 69, 228, 0.42);
}

.button.pill {
  background: rgba(89, 67, 227, 0.08);
  border-color: rgba(89, 67, 227, 0.22);
  color: var(--accent);
  white-space: nowrap;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 76px;
  border-bottom: 1px solid rgba(133, 144, 176, 0.22);
  background: linear-gradient(165deg, rgba(248, 250, 255, 0.65), rgba(236, 241, 252, 0.64));
}

.hero::before {
  content: "";
  position: absolute;
  width: min(860px, 80vw);
  height: min(420px, 42vw);
  left: 50%;
  top: -160px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(90, 69, 228, 0.28), rgba(90, 69, 228, 0));
  filter: blur(20px);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 48%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.hero-centered {
  text-align: center;
}

.hero-stack {
  display: grid;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto 34px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 800;
  color: #6b7188;
}

.hero h1 {
  margin: 8px 0 14px;
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  line-height: 1.06;
}

.hero-highlight {
  background: linear-gradient(120deg, #3a2bd6, #5f4fe8 60%, #3784ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-link {
  color: var(--accent);
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 999px;
  transition: background-color 0.2s ease;
}

.hero-link:hover {
  background: rgba(90, 69, 228, 0.1);
}

.hero-trust {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 8px auto 0;
}

.hero-trust span {
  font-size: 0.78rem;
  font-weight: 700;
  color: #4f5a73;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(125, 137, 169, 0.28);
}

.hero .cta-row,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.hero-card .subtle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

.stat,
.stat-card {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(4px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat:hover,
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  background: linear-gradient(145deg, rgba(89, 67, 227, 0.15), rgba(64, 134, 255, 0.16));
  border: 1px solid rgba(89, 67, 227, 0.25);
}

.stat h4 {
  margin: 0 0 6px;
  font-size: 0.95rem;
}

.stat p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.89rem;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}

.section-title h1,
.section-title h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.section-title p {
  color: var(--text-muted);
  margin-top: 8px;
}

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

.card,
.panel,
.listing,
.preview-card {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.card {
  padding: 18px;
  min-height: 120px;
}

.card h4 {
  margin: 0 0 8px;
}

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

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
}

.panel {
  padding: 24px;
}

.panel.tight {
  padding: 20px;
}

.panel h3 {
  margin: 0 0 12px;
}

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

.list li {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(126, 138, 170, 0.32);
  background: rgba(255, 255, 255, 0.84);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.95rem;
}

.badge {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
}

.badge.gold {
  background: rgba(179, 135, 54, 0.16);
  color: var(--gold);
}

.badge.muted {
  background: rgba(86, 97, 125, 0.11);
  color: #525f79;
}

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

.listing {
  padding: 20px;
  display: grid;
  gap: 12px;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.listing::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
}

.listing:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.listing h4 {
  margin: 0;
}

.listing .summary {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.listing .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #53607a;
  font-size: 0.84rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

select,
input,
textarea {
  border: 1px solid rgba(117, 130, 164, 0.4);
  border-radius: 11px;
  padding: 11px 12px;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

select:hover,
input:hover,
textarea:hover {
  border-color: rgba(89, 106, 151, 0.5);
}

select:focus,
input:focus,
textarea:focus {
  border-color: rgba(84, 67, 217, 0.58);
}

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

.form-grid {
  display: grid;
  gap: 12px;
}

.footer {
  padding: 40px 0 50px;
  border-top: 1px solid rgba(120, 132, 167, 0.34);
  background:
    linear-gradient(180deg, rgba(250, 251, 255, 0.72), rgba(239, 243, 252, 0.84));
}

.footer .columns {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
}

.footer strong {
  font-family: "Sora", "Plus Jakarta Sans", sans-serif;
}

.footer p {
  color: var(--text-muted);
  margin: 8px 0 0;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  background: rgba(255, 255, 255, 0.68);
  border-radius: 14px;
  overflow: hidden;
}

.table th,
.table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(125, 138, 170, 0.24);
}

.table th {
  font-family: "Sora", "Plus Jakarta Sans", sans-serif;
  font-size: 0.84rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #55607a;
  background: rgba(84, 99, 149, 0.06);
}

.table tr:hover td {
  background: rgba(92, 113, 166, 0.06);
}

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

.diagram .step {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  background: var(--bg-elevated);
  text-align: center;
  font-size: 0.92rem;
  box-shadow: var(--shadow-sm);
}

.note {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(83, 99, 145, 0.08);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.72);
  color: #566079;
  border: 1px solid rgba(126, 138, 171, 0.3);
}

.section-muted {
  background: linear-gradient(180deg, rgba(247, 249, 255, 0.74), rgba(240, 245, 255, 0.72));
  border-top: 1px solid rgba(129, 143, 176, 0.24);
  border-bottom: 1px solid rgba(129, 143, 176, 0.24);
}

.callout {
  border-left: 3px solid var(--accent);
  padding: 14px 16px;
  background: rgba(90, 69, 228, 0.1);
  border-radius: 10px;
  color: #4f5972;
}

.icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.anchor-target {
  scroll-margin-top: 120px;
}

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

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

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

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

.preview-card {
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.preview-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(126, 139, 174, 0.3);
  font-size: 0.94rem;
}

.preview-head div {
  display: grid;
  gap: 2px;
}

.preview-frame {
  width: 100%;
  height: 380px;
  border: 0;
  background: #fff;
}

.preview-fallback {
  min-height: 380px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding: 22px;
  text-align: center;
  background:
    radial-gradient(circle at 24% 24%, rgba(109, 125, 175, 0.14), transparent 52%),
    linear-gradient(180deg, rgba(242, 247, 255, 0.9), rgba(232, 238, 252, 0.9));
}

.preview-fallback p {
  margin: 0;
  color: var(--text-muted);
  max-width: 34ch;
}

body.motion-ready .reveal {
  opacity: 0;
  transform: translateY(18px) scale(0.992);
  transition: opacity 0.56s ease, transform 0.56s cubic-bezier(0.2, 0.65, 0.2, 1);
  will-change: transform, opacity;
}

body.motion-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (max-width: 1120px) {
  .navbar .inner {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    grid-column: 1 / -1;
    justify-self: stretch;
    justify-content: flex-start;
  }

  .nav-links a {
    padding: 7px 11px;
    font-size: 0.88rem;
  }

  .brand-wordmark {
    font-size: clamp(1.2rem, 2.2vw, 1.72rem);
  }

  .nav-actions {
    gap: 8px;
  }

  .social-link {
    width: 40px;
    height: 40px;
  }

  .nav-actions .button.pill {
    padding: 10px 13px;
    font-size: 0.84rem;
  }

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

  .hero {
    padding-top: 94px;
  }
}

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

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

  .preview-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .navbar .inner {
    grid-template-columns: 1fr auto;
    padding: 12px 0;
  }

  .button.pill {
    padding: 10px 14px;
  }
}

@media (max-width: 760px) {
  .navbar .inner {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .brand {
    justify-self: center;
  }

  .nav-actions {
    justify-self: center;
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 1.5rem, var(--max));
  }

  .section {
    padding: 56px 0;
  }

  .cards,
  .listing-grid,
  .diagram,
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 82px;
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-link {
    width: 100%;
    text-align: center;
  }

  .brand-mark {
    width: 38px;
  }

  .brand-wordmark {
    font-size: clamp(1.16rem, 6vw, 1.5rem);
  }

  .nav-actions .social-link {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .nav-actions .social-link svg {
    width: 16px;
    height: 16px;
  }

  .nav-actions .button {
    padding: 9px 13px;
    font-size: 0.82rem;
  }

  .preview-frame {
    height: 320px;
  }

  .preview-fallback {
    min-height: 320px;
  }

  .table {
    font-size: 0.9rem;
  }
}

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

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

  body.motion-ready .reveal,
  body.motion-ready .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}
