:root {
  color-scheme: dark;
  --bg: #0b0e12;
  --bg-soft: #11161d;
  --panel: #151b23;
  --panel-light: #1a222c;
  --line: rgba(229, 238, 247, 0.12);
  --text: #f3f6f8;
  --muted: #a4b0bd;
  --faint: #788694;
  --accent: #b7f36b;
  --accent-dark: #18300c;
  --blue: #8bd5ff;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 82% 0%, rgba(183, 243, 107, 0.11), transparent 31rem),
    radial-gradient(circle at 10% 22%, rgba(139, 213, 255, 0.08), transparent 26rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

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

.site-header {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 760;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: end;
  gap: 3px;
  width: 27px;
  height: 27px;
  padding: 5px;
  border: 1px solid rgba(183, 243, 107, 0.5);
  border-radius: 9px;
  background: rgba(183, 243, 107, 0.08);
}

.brand-mark i {
  display: block;
  width: 4px;
  border-radius: 3px;
  background: var(--accent);
}

.brand-mark i:nth-child(1) { height: 8px; opacity: 0.65; }
.brand-mark i:nth-child(2) { height: 13px; opacity: 0.82; }
.brand-mark i:nth-child(3) { height: 17px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.nav-cta {
  padding: 9px 14px;
  border: 1px solid rgba(183, 243, 107, 0.38);
  border-radius: 999px;
  color: var(--accent) !important;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  align-items: center;
  gap: 80px;
  min-height: 640px;
  padding: 92px 0 104px;
}

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

h1,
h2,
h3 {
  color: var(--text);
  letter-spacing: -0.045em;
  line-height: 1.08;
}

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(3.2rem, 8vw, 6.7rem);
  font-weight: 760;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h3 {
  margin-bottom: 9px;
  font-size: 1.15rem;
}

.lede {
  max-width: 630px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-dark);
}

.button.secondary:hover {
  border-color: rgba(183, 243, 107, 0.5);
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(25, 35, 44, 0.95), rgba(14, 19, 25, 0.95));
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.28);
}

.hero-card::before {
  position: absolute;
  top: -80px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(183, 243, 107, 0.1);
  content: "";
  filter: blur(3px);
}

.card-topline,
.workflow-head,
.status-row,
.section-heading,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.card-topline {
  position: relative;
  margin-bottom: 38px;
  color: var(--faint);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(183, 243, 107, 0.1);
}

.hero-card h2 {
  position: relative;
  max-width: 360px;
  margin-bottom: 34px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.mini-flow {
  position: relative;
  display: grid;
  gap: 9px;
}

.mini-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 0.85rem;
}

.mini-step.active {
  border-color: rgba(183, 243, 107, 0.5);
  background: rgba(183, 243, 107, 0.1);
  color: var(--text);
}

.step-number {
  display: grid;
  flex: 0 0 25px;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--faint);
  font-size: 0.7rem;
  font-weight: 800;
}

.active .step-number {
  background: var(--accent);
  color: var(--accent-dark);
}

.trust-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.trust-item {
  padding: 24px 20px;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.trust-item + .trust-item {
  border-left: 1px solid var(--line);
}

.trust-item strong {
  display: block;
  margin-bottom: 3px;
  color: var(--text);
  font-size: 0.94rem;
}

.section {
  padding: 120px 0;
}

.section-heading {
  align-items: end;
  margin-bottom: 46px;
}

.section-heading > div:first-child {
  max-width: 640px;
}

.section-heading p {
  max-width: 530px;
  margin-bottom: 0;
  color: var(--muted);
}

.section-heading .eyebrow {
  margin-bottom: 14px;
}

.workflow-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.workflow-card,
.feature-card,
.integration-card,
.callout {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(21, 27, 35, 0.72);
}

.workflow-card {
  min-height: 230px;
  padding: 24px;
}

.workflow-card:nth-child(2) {
  transform: translateY(22px);
}

.workflow-card:nth-child(3) {
  transform: translateY(44px);
}

.card-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 42px;
  border: 1px solid rgba(183, 243, 107, 0.28);
  border-radius: 50%;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
}

.workflow-card p,
.feature-card p,
.integration-card p,
.callout p {
  color: var(--muted);
}

.integration-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 14px;
  align-items: stretch;
}

.integration-card {
  padding: 30px;
}

.integration-card.highlight {
  border-color: rgba(183, 243, 107, 0.38);
  background: linear-gradient(140deg, rgba(183, 243, 107, 0.11), rgba(21, 27, 35, 0.76));
}

.integration-card h3 {
  font-size: 1.45rem;
}

.scope-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.scope-list li {
  padding: 6px 9px;
  border: 1px solid rgba(139, 213, 255, 0.24);
  border-radius: 7px;
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
}

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

.feature-card {
  padding: 24px;
}

.feature-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-icon {
  color: var(--accent);
  font-size: 1.1rem;
}

.callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 32px;
  background: var(--panel-light);
}

.callout h2 {
  max-width: 620px;
  margin-bottom: 0;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-inner {
  align-items: start;
  padding: 34px 0 42px;
}

.footer-brand {
  max-width: 280px;
}

.footer-brand p {
  margin: 12px 0 0;
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 10px 22px;
  font-size: 0.85rem;
}

.footer-links a {
  text-decoration: none;
}

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

.copyright {
  width: 100%;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
}

.legal-main {
  padding: 92px 0 120px;
}

.legal-header {
  max-width: 780px;
  margin-bottom: 56px;
}

.legal-header h1 {
  margin-bottom: 18px;
  font-size: clamp(2.8rem, 7vw, 5.7rem);
}

.legal-header p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 70px;
  max-width: 960px;
}

.legal-content h2 {
  margin-top: 48px;
  font-size: 1.65rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  margin-top: 30px;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
}

.legal-content ul {
  padding-left: 22px;
}

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

.legal-content strong {
  color: var(--text);
}

.legal-content code {
  padding: 3px 6px;
  border-radius: 5px;
  background: rgba(139, 213, 255, 0.1);
  color: var(--blue);
  font-size: 0.9em;
}

.legal-content a,
.sidebar a {
  color: var(--accent);
}

.sidebar {
  align-self: start;
  position: sticky;
  top: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(21, 27, 35, 0.72);
}

.sidebar strong {
  display: block;
  margin-bottom: 13px;
  color: var(--text);
  font-size: 0.83rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar a {
  display: block;
  padding: 6px 0;
  font-size: 0.86rem;
  text-decoration: none;
}

.notice {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  background: rgba(183, 243, 107, 0.08);
  color: var(--muted);
}

.notice strong {
  color: var(--text);
}

.not-found {
  min-height: 68vh;
  display: grid;
  place-items: center;
  padding: 80px 0;
  text-align: center;
}

@media (max-width: 820px) {
  .hero,
  .integration-wrap,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 42px;
    min-height: auto;
    padding: 72px 0 84px;
  }

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

  .workflow-card:nth-child(2),
  .workflow-card:nth-child(3) {
    transform: none;
  }

  .legal-layout {
    gap: 40px;
  }

  .sidebar {
    position: static;
    order: -1;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .header-inner,
  .footer-inner,
  .callout,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 9px 15px;
  }

  .site-nav .nav-cta {
    padding: 6px 10px;
  }

  .trust-items,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .trust-item + .trust-item {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section {
    padding: 82px 0;
  }

  .footer-links {
    justify-content: start;
  }
}

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