:root {
  --bg: #07111f;
  --bg-soft: #0c1830;
  --surface: rgba(18, 27, 49, 0.72);
  --surface-strong: rgba(13, 22, 42, 0.92);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f7fb;
  --muted: #aeb8cf;
  --brand: #7b87ff;
  --brand-2: #4ee1c1;
  --brand-3: #8fe6ff;
  --success: #78e7b3;
  --pending: #ffd27a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1500px;
  --transition: 220ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(123, 135, 255, 0.18), transparent 32%),
    radial-gradient(circle at top right, rgba(78, 225, 193, 0.14), transparent 26%),
    linear-gradient(180deg, #07111f 0%, #091522 32%, #07111f 100%);
  color: var(--text);
  min-width: 320px;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: rgba(123, 135, 255, 0.35);
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.site-shell {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 92%);
  opacity: 0.25;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.section {
  padding: 42px 0;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(7, 17, 31, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-mark {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  box-shadow: 0 0 0 8px rgba(123, 135, 255, 0.12);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 4px;
  background: rgba(7, 17, 31, 0.88);
}

.brand-text {
  font-size: 1.16rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav a {
  color: var(--muted);
  transition: color var(--transition), transform var(--transition);
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--brand) 0%, #628cff 48%, var(--brand-2) 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 20px 40px rgba(86, 101, 255, 0.18);
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 44px rgba(86, 101, 255, 0.26);
}

.button-secondary,
.button-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line);
  color: var(--text);
  box-shadow: none;
}

.button-sm {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.94rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  border: 1px solid rgba(143, 230, 255, 0.15);
  background: rgba(143, 230, 255, 0.06);
  color: #d9f7ff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero {
  padding-top: 56px;
}

.hero-grid,
.inner-hero-grid,
.compare-grid,
.dashboard-grid,
.code-grid,
.process-grid,
.fit-grid,
.security-grid,
.endpoints-grid,
.architecture-grid {
  display: grid;
  gap: 28px;
}

.hero-grid,
.inner-hero-grid,
.dashboard-grid,
.compare-grid,
.fit-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
}

.hero-copy h1,
.section-head h2,
.security-card h2,
.fit-card h2,
.cta-card h2,
.legal-card h2 {
  margin: 0;
  line-height: 1.03;
  letter-spacing: -0.05em;
}

.hero-copy h1 {
  font-size: clamp(2.7rem, 5.6vw, 5.3rem);
  max-width: 12ch;
}

.hero-text,
.section-head p,
.hero-copy p,
.feature-card p,
.step-card p,
.endpoint-card p,
.value-card p,
.process-card p,
.fit-card p,
.footer-copy,
.faq-item p,
.timeline-item p,
.security-card li,
.clean-list li,
.compare-row div,
.legal-list span,
.legal-list strong {
  color: var(--muted);
  line-height: 1.75;
}

.hero-text {
  max-width: 64ch;
  font-size: 1.08rem;
  margin: 22px 0 0;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.hero-points div,
.story-card,
.api-panel,
.feature-card,
.compare-card,
.browser-frame,
.step-card,
.code-card,
.endpoint-card,
.value-card,
.process-card,
.fit-card,
.security-card,
.timeline-item,
.legal-card,
.faq-item,
.cta-card,
.phone-frame,
.floating-note,
.wallet-card,
.qr-widget,
.mini-box,
.event-list,
.stat-box,
.chart-card,
.table-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(21, 31, 57, 0.9) 0%, rgba(12, 20, 38, 0.82) 100%);
  box-shadow: var(--shadow);
}

.hero-points div {
  padding: 20px;
  border-radius: var(--radius-md);
}

.hero-points strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.hero-points span,
.story-label,
.muted {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-visual {
  position: relative;
  min-height: 640px;
  display: grid;
  place-items: center;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.85;
}

.orb-one {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(123, 135, 255, 0.7), transparent 66%);
  top: 5%;
  right: 8%;
}

.orb-two {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(78, 225, 193, 0.66), transparent 68%);
  left: 0;
  bottom: 10%;
}

.phone-card {
  position: relative;
  z-index: 2;
  perspective: 1400px;
  transition: transform 140ms linear;
}

.phone-frame {
  width: min(100%, 340px);
  padding: 14px;
  border-radius: 42px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.04) 40%, rgba(0, 0, 0, 0.18) 100%),
    rgba(16, 24, 43, 0.9);
  transform: rotateY(-18deg) rotateX(12deg);
}

.phone-screen {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  min-height: 620px;
  padding: 18px;
  background:
    radial-gradient(circle at top, rgba(123, 135, 255, 0.2), transparent 30%),
    linear-gradient(180deg, rgba(8, 14, 29, 0.98) 0%, rgba(9, 18, 34, 0.98) 100%);
}

.phone-screen::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 108px;
  height: 22px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.44);
}

.screen-top,
.event-row,
.chart-head,
.table-row,
.api-panel-head,
.api-row,
.compare-head,
.compare-row,
.browser-top,
.endpoint-title,
.timeline-item,
.legal-list,
.footer-grid,
.trust-row,
.stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.screen-top {
  padding-top: 18px;
  margin-bottom: 20px;
  font-size: 0.86rem;
  color: var(--muted);
}

.wallet-card {
  padding: 20px;
  border-radius: 24px;
}

.wallet-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1.9rem;
  letter-spacing: -0.05em;
}

.progress-line {
  height: 8px;
  margin-top: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.progress-line span {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-2) 100%);
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.mini-box,
.qr-widget,
.event-list {
  border-radius: 20px;
  padding: 16px;
}

.mini-box strong {
  display: block;
  font-size: 1.6rem;
  margin-top: 10px;
}

.qr-widget {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 14px;
  margin-top: 14px;
}

.qr-pattern {
  width: 94px;
  height: 94px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.95) 12px, transparent 12px) 0 0/24px 24px,
    linear-gradient(rgba(255,255,255,0.95) 12px, transparent 12px) 0 0/24px 24px,
    radial-gradient(circle at center, rgba(123,135,255,0.4), rgba(8, 14, 29, 0.9));
  box-shadow: inset 0 0 0 10px rgba(9, 18, 34, 0.9);
}

.qr-widget p {
  margin: 8px 0 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
}

.event-list {
  margin-top: 14px;
}

.event-row + .event-row,
.table-row + .table-row,
.api-row + .api-row,
.compare-row + .compare-row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 14px;
  margin-top: 14px;
}

.event-row span,
.api-row span,
.side-link,
.timeline-number,
.legal-list span {
  color: var(--muted);
}

.event-row strong,
.api-row strong {
  font-size: 0.94rem;
}

.floating-note {
  position: absolute;
  z-index: 3;
  border-radius: 20px;
  padding: 12px 16px;
  background: rgba(13, 22, 42, 0.82);
  backdrop-filter: blur(16px);
  color: var(--text);
}

.top-right {
  top: 12%;
  right: -2%;
}

.bottom-left {
  left: 2%;
  bottom: 16%;
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 8px rgba(120, 231, 179, 0.14);
}

.trust-bar {
  padding-top: 10px;
}

.trust-row {
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 30px;
  padding: 18px 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.section-head {
  max-width: 760px;
  margin-bottom: 26px;
}

.section-head h2,
.security-card h2,
.fit-card h2,
.cta-card h2,
.legal-card h2 {
  font-size: clamp(2rem, 4.2vw, 3.5rem);
}

.section-head p {
  margin: 16px 0 0;
}

.adv-grid,
.steps-grid,
.values-grid,
.timeline,
.legal-list,
.faq-grid,
.footer-list,
.footer-legal {
  display: grid;
  gap: 18px;
}

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

.feature-card {
  grid-column: span 4;
  padding: 28px;
  border-radius: var(--radius-lg);
}

.feature-card-large {
  grid-column: span 8;
}

.icon-chip,
.step-number,
.timeline-number,
.method {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 700;
}

.feature-card h3,
.step-card h3,
.endpoint-card h3,
.value-card h3,
.process-card h3,
.faq-item summary,
.timeline-item h3 {
  margin: 18px 0 10px;
  font-size: 1.26rem;
  letter-spacing: -0.03em;
}

.compare-card {
  padding: 28px;
  border-radius: var(--radius-xl);
}

.compare-head {
  padding-bottom: 16px;
  margin-bottom: 16px;
  color: var(--muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.compare-head span:last-child,
.compare-row div:last-child {
  color: var(--text);
}

.compare-row {
  align-items: flex-start;
}

.compare-row div {
  flex: 1;
}

.dashboard-browser .browser-frame,
.code-card,
.endpoint-card,
.api-panel,
.story-card,
.company-story,
.legal-card,
.cta-card,
.timeline-item,
.fit-card,
.value-card,
.process-card,
.security-card,
.architecture-card {
  border-radius: var(--radius-xl);
}

.browser-frame {
  overflow: hidden;
}

.browser-top {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.browser-top span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.browser-top span + span {
  margin-left: 6px;
}

.browser-body {
  display: grid;
  grid-template-columns: 230px 1fr;
}

.browser-body aside {
  padding: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.side-brand {
  font-weight: 700;
  margin-bottom: 22px;
}

.side-link {
  padding: 12px 14px;
  border-radius: 14px;
}

.side-link + .side-link {
  margin-top: 8px;
}

.side-link.active {
  color: var(--text);
  background: rgba(123, 135, 255, 0.14);
}

.browser-content {
  padding: 24px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-box,
.chart-card,
.table-card {
  border-radius: 22px;
  padding: 18px;
}

.stat-box span,
.chart-head span {
  color: var(--muted);
}

.stat-box strong {
  display: block;
  margin-top: 10px;
  font-size: 1.6rem;
  letter-spacing: -0.04em;
}

.chart-card,
.table-card {
  margin-top: 18px;
}

.chart-head {
  margin-bottom: 16px;
}

.bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
  min-height: 188px;
}

.bars span {
  width: 100%;
  height: var(--bar);
  min-height: 40px;
  border-radius: 999px 999px 14px 14px;
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  opacity: 0.95;
}

.table-head-row {
  color: var(--muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 98px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.tag-success {
  background: rgba(120, 231, 179, 0.14);
  color: #cbffe6;
}

.tag-pending {
  background: rgba(255, 210, 122, 0.14);
  color: #ffe6a9;
}

.clean-list {
  margin: 18px 0 0;
  padding-left: 1.1rem;
}

.clean-list li + li {
  margin-top: 10px;
}

.steps-grid,
.values-grid,
.process-grid,
.fit-grid,
.security-grid,
.endpoints-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.step-card,
.endpoint-card,
.value-card,
.process-card,
.fit-card,
.security-card {
  padding: 26px;
}

.step-number {
  min-width: 42px;
  min-height: 42px;
}

.code-card {
  overflow: auto;
  padding: 0;
}

.code-card pre,
.endpoint-card pre {
  margin: 0;
  padding: 28px;
  overflow: auto;
  color: #dce6ff;
  font-size: 0.95rem;
  line-height: 1.7;
}

.timeline {
  margin-top: 8px;
}

.timeline-item {
  align-items: flex-start;
  padding: 24px 26px;
}

.timeline-number {
  min-width: 76px;
  font-weight: 700;
}

.architecture-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 32px;
}

.flow-node {
  display: grid;
  place-items: center;
  min-height: 116px;
  padding: 18px;
  text-align: center;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.flow-node.accent {
  background: rgba(123, 135, 255, 0.12);
}

.flow-node-wide {
  grid-column: 1 / -1;
}

.flow-arrow {
  font-size: 1.5rem;
  color: var(--muted);
}

.flow-arrow-down {
  grid-column: 3;
  justify-self: center;
}

.api-panel {
  padding: 26px;
}

.api-panel-body {
  margin-top: 14px;
}

.company-story {
  display: grid;
  gap: 16px;
}

.story-card {
  padding: 24px;
}

.story-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
}

.process-card,
.value-card,
.fit-card,
.security-card {
  height: 100%;
}

.process-card span,
.story-label {
  color: var(--brand-3);
  font-weight: 700;
}

.legal-card {
  padding: 34px;
}

.legal-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.legal-list strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
}

.legal-wide {
  grid-column: 1 / -1;
}

.faq-item {
  padding: 20px 22px;
  border-radius: 22px;
}

.faq-item summary {
  margin: 0;
  list-style: none;
  cursor: pointer;
}

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

.faq-item p {
  margin: 12px 0 0;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  background:
    radial-gradient(circle at top right, rgba(78, 225, 193, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(20, 31, 58, 0.95) 0%, rgba(12, 20, 38, 0.95) 100%);
}

.footer {
  padding: 30px 0 48px;
}

.footer-grid {
  align-items: flex-start;
  gap: 28px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.03);
}

.footer-grid > * {
  flex: 1;
}

.footer-copy {
  margin-top: 16px;
  max-width: 36ch;
}

.footer h3 {
  margin: 4px 0 14px;
  font-size: 1rem;
}

.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-list a,
.footer-list li {
  color: var(--muted);
  line-height: 1.7;
}

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

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal-delay {
  transition-delay: 120ms;
}

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

@media (max-width: 1100px) {
  .hero-grid,
  .inner-hero-grid,
  .dashboard-grid,
  .compare-grid,
  .fit-grid,
  .security-grid,
  .code-grid,
  .architecture-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 100%;
  }

  .hero-visual {
    min-height: 560px;
  }

  .browser-body {
    grid-template-columns: 1fr;
  }

  .browser-body aside {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .architecture-card {
    grid-template-columns: 1fr;
  }

  .flow-arrow,
  .flow-arrow-down {
    grid-column: auto;
    justify-self: center;
    transform: rotate(90deg);
  }
}

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    top: 84px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(8, 14, 29, 0.95);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
  }

  body.menu-open .nav {
    display: flex;
  }

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

  .hero-points,
  .steps-grid,
  .values-grid,
  .process-grid,
  .fit-grid,
  .security-grid,
  .endpoints-grid,
  .stats-row,
  .legal-list {
    grid-template-columns: 1fr;
  }

  .adv-grid {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .feature-card-large {
    grid-column: auto;
  }

  .cta-card,
  .footer-grid {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 32px 0;
  }

  .hero {
    padding-top: 36px;
  }

  .hero-copy h1 {
    font-size: clamp(2.3rem, 12vw, 3.8rem);
  }

  .hero-visual {
    min-height: 480px;
  }

  .phone-frame {
    width: 290px;
    transform: rotateY(-10deg) rotateX(8deg);
  }

  .phone-screen {
    min-height: 530px;
  }

  .floating-note {
    position: static;
    margin-top: 16px;
  }

  .qr-widget {
    grid-template-columns: 1fr;
  }

  .compare-card,
  .feature-card,
  .step-card,
  .endpoint-card,
  .value-card,
  .process-card,
  .fit-card,
  .security-card,
  .timeline-item,
  .legal-card,
  .cta-card,
  .footer-grid,
  .code-card pre,
  .endpoint-card pre,
  .browser-content,
  .browser-top {
    padding-left: 20px;
    padding-right: 20px;
  }

  .footer-grid {
    padding-top: 24px;
    padding-bottom: 24px;
  }
}
