:root {
  color-scheme: dark;
  --ink: #070a10;
  --night: #0c111a;
  --slate: #121b2b;
  --glow-blue: rgba(38, 110, 255, 0.35);
  --glow-teal: rgba(33, 200, 195, 0.35);
  --glow-gold: rgba(233, 196, 106, 0.25);
  --text-main: #f2f5ff;
  --text-muted: #9aa6bd;
  --text-soft: #c8d1e3;
  --accent-blue: #3c79ff;
  --accent-teal: #18d2c4;
  --accent-gold: #f0c26a;
  --radius-card: 16px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 50px rgba(6, 10, 16, 0.55);
  --shadow-lift: 0 28px 80px rgba(6, 10, 16, 0.7);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Sora", system-ui, -apple-system, sans-serif;
  color: var(--text-soft);
  background: radial-gradient(circle at top, rgba(24, 210, 196, 0.2), transparent 48%),
    radial-gradient(circle at 15% 20%, rgba(60, 121, 255, 0.25), transparent 40%),
    radial-gradient(circle at 80% 10%, rgba(240, 194, 106, 0.2), transparent 45%),
    linear-gradient(180deg, var(--night), var(--ink));
}

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

h1,
h2,
h3 {
  color: var(--text-main);
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2.6rem, 3.4vw, 4.1rem);
  line-height: 1.05;
}

h2 {
  font-size: clamp(1.8rem, 2.3vw, 2.6rem);
}

p {
  color: var(--text-soft);
  line-height: 1.6;
}

.bg-gradient,
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-gradient {
  background: radial-gradient(circle at 50% 0%, rgba(24, 210, 196, 0.1), transparent 40%);
  opacity: 0.9;
}

.bg-grid {
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.2;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(8, 12, 18, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
}

.logo-mark {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-teal));
  box-shadow: 0 0 12px var(--glow-blue);
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.nav-cta {
  display: flex;
  gap: 12px;
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  margin: 5px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent-blue), var(--accent-teal));
  color: #0b0f16;
  box-shadow: 0 12px 30px rgba(24, 210, 196, 0.35);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 16px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin: 24px 0;
  flex-wrap: wrap;
}

.hero-proof {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  gap: 20px;
}

.map-stack {
  position: relative;
  display: grid;
  place-items: center;
  width: min(520px, 94%);
  height: 351px;
  --pulse-offset-x: -10px;
  --pulse-offset-y: -10px;
}

.territory-map {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background-image: url("./assets/territory-map.png");
  background-size: 140%;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 20px 44px rgba(15, 23, 42, 0.2)) contrast(1.25)
    saturate(0.9);
  opacity: 0.95;
  z-index: 0;
  border: 1px solid rgba(31, 42, 59, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
  overflow: hidden;
}

.territory-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 20% 30%,
      rgba(29, 78, 216, 0.18),
      transparent 45%
    ),
    radial-gradient(
      circle at 70% 40%,
      rgba(15, 118, 110, 0.18),
      transparent 40%
    ),
    radial-gradient(
      circle at 55% 75%,
      rgba(224, 184, 74, 0.2),
      transparent 45%
    );
  mix-blend-mode: multiply;
  opacity: 0.9;
}

.territory-map::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      90deg,
      rgba(15, 23, 42, 0.06) 1px,
      transparent 1px
    ),
    linear-gradient(
      rgba(15, 23, 42, 0.06) 1px,
      transparent 1px
    );
  background-size: 40px 40px;
  opacity: 0.35;
}

.map-attrib {
  position: absolute;
  bottom: 12px;
  left: 14px;
  font-size: 0.6rem;
  color: rgba(31, 42, 59, 0.55);
  background: rgba(255, 255, 255, 0.78);
  padding: 4px 8px;
  border-radius: 6px;
  z-index: 2;
}

.signal-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 78, 216, 0.18), transparent 60%);
  display: grid;
  place-items: center;
  overflow: hidden;
  z-index: 1;
  transform: translate(-50%, -50%) translate(var(--pulse-offset-x), var(--pulse-offset-y));
}

.signal-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(29, 78, 216, 0.2);
  border-radius: 50%;
  animation: ringPulse 3.6s ease-in-out infinite;
}

.signal-ring.ring-2 {
  width: 220px;
  height: 220px;
  border-color: rgba(14, 116, 144, 0.2);
  animation-delay: 0.4s;
}

.signal-ring.ring-3 {
  width: 280px;
  height: 280px;
  border-color: rgba(224, 184, 74, 0.2);
  animation-delay: 0.8s;
}

.signal-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-blue);
  box-shadow: var(--shadow-glow);
  animation: dotPulse 2.2s ease-in-out infinite;
}

.signal-core::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(29, 78, 216, 0.45);
  transform: translate(-50%, -50%);
}

.halo-frame {
  position: relative;
  width: min(360px, 90%);
  aspect-ratio: 1;
  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle at 40% 35%, rgba(24, 210, 196, 0.2), transparent 60%);
  box-shadow: var(--shadow-lift);
  display: grid;
  place-items: center;
}

.halo-ring {
  position: absolute;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.halo-ring.ring-2 {
  width: 50%;
  height: 50%;
  border-color: rgba(24, 210, 196, 0.4);
}

.halo-ring.ring-3 {
  width: 30%;
  height: 30%;
  border-color: rgba(60, 121, 255, 0.4);
}

.halo-core {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-teal);
  box-shadow: 0 0 16px var(--glow-teal);
}

.hero-card {
  background: linear-gradient(180deg, rgba(18, 26, 42, 0.95), rgba(10, 16, 26, 0.98));
  border-radius: var(--radius-card);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-lift);
  width: min(360px, 100%);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.chip {
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: rgba(240, 194, 106, 0.15);
  color: var(--accent-gold);
  font-size: 0.7rem;
  font-weight: 600;
}

.card-title {
  font-weight: 600;
}

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

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.metric-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.metric-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.card-footer {
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 12px;
}

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 88px 24px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.section::before {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  margin-bottom: 40px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 32px;
}

.section-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
}

.compare-card,
.card,
.ecosystem-card,
.moat-card,
.roadmap-step,
.stat,
.feature-panel {
  background: linear-gradient(180deg, rgba(18, 26, 42, 0.95), rgba(10, 16, 26, 0.98));
  border-radius: var(--radius-card);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
}

.compare-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.compare-row:last-child {
  border-bottom: none;
}

.compare-row.highlight {
  color: var(--accent-teal);
  font-weight: 600;
}

.ecosystem-grid,
.cards,
.moat-grid,
.stats,
.roadmap {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.workflow-steps {
  position: relative;
  display: grid;
  gap: 22px 0;
  grid-template-columns: minmax(0, 1fr) 60px minmax(0, 1fr);
  max-width: 980px;
  margin: 0 auto;
}

.workflow-steps::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    transparent,
    rgba(24, 210, 196, 0.6),
    rgba(60, 121, 255, 0.6),
    transparent
  );
  opacity: 0.8;
}

.workflow-step {
  background: linear-gradient(180deg, rgba(18, 26, 42, 0.95), rgba(10, 16, 26, 0.98));
  border-radius: var(--radius-card);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
  position: relative;
  z-index: 1;
}

.workflow-step::before {
  content: "";
  position: absolute;
  top: 26px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-teal));
  box-shadow: 0 0 12px var(--glow-teal);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.workflow-step::after {
  content: "";
  position: absolute;
  top: 31px;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-teal));
  opacity: 0.7;
}

.workflow-step:nth-child(odd) {
  grid-column: 1;
}

.workflow-step:nth-child(odd)::before {
  right: -36px;
}

.workflow-step:nth-child(odd)::after {
  right: -30px;
}

.workflow-step:nth-child(even) {
  grid-column: 3;
}

.workflow-step:nth-child(even)::before {
  left: -36px;
}

.workflow-step:nth-child(even)::after {
  left: -30px;
}

.workflow-step:last-child {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(820px, 100%);
}

.workflow-step:last-child::before,
.workflow-step:last-child::after {
  display: none;
}

.workflow-step-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.workflow-index {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  color: var(--accent-teal);
  background: rgba(24, 210, 196, 0.12);
  border: 1px solid rgba(24, 210, 196, 0.3);
}

.workflow-time {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.catena-diagram {
  background: linear-gradient(180deg, rgba(12, 20, 34, 0.92), rgba(9, 14, 24, 0.98));
  border-radius: calc(var(--radius-card) + 8px);
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 10px;
  justify-items: center;
}

.catena-diagram svg {
  width: 100%;
  height: auto;
}

.catena-top,
.catena-bottom {
  width: 100%;
}

.catena-branches-row {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.branch-svg {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.branch-svg svg {
  width: 100%;
  max-width: 260px;
  filter: drop-shadow(0 18px 28px rgba(8, 12, 20, 0.65));
}

.split-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.panel-card {
  background: linear-gradient(180deg, rgba(18, 26, 42, 0.95), rgba(10, 16, 26, 0.98));
  border-radius: var(--radius-card);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
}

.data-table {
  background: linear-gradient(180deg, rgba(18, 26, 42, 0.95), rgba(10, 16, 26, 0.98));
  border-radius: var(--radius-card);
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
}

.data-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.2fr) repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-soft);
  font-size: 0.95rem;
}

.data-row:last-child {
  border-bottom: none;
}

.data-row.full {
  grid-template-columns: minmax(160px, 1fr);
}

.data-row.full span:last-child {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.data-head {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.highlight-row {
  color: var(--accent-teal);
  font-weight: 600;
}

.note-row {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(24, 210, 196, 0.08);
  border: 1px solid rgba(24, 210, 196, 0.2);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-soft);
}

.note-row span:first-child {
  color: var(--accent-teal);
  font-weight: 600;
}

.chip-row {
  margin-top: 14px;
  font-size: 0.75rem;
  color: var(--accent-teal);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.feature {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.feature-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.feature-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: var(--text-soft);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-teal);
  box-shadow: 0 0 10px var(--glow-teal);
}

.panel-header {
  font-weight: 600;
  color: var(--text-main);
}

.panel-metric {
  margin: 12px 0;
  font-family: "IBM Plex Mono", monospace;
}

.panel-list {
  display: grid;
  gap: 10px;
  font-size: 0.85rem;
}

.badge {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
}

.badge.high {
  background: var(--accent-teal);
}

.badge.med {
  background: var(--accent-gold);
}

.badge.low {
  background: rgba(255, 255, 255, 0.2);
}

.roadmap-step {
  text-align: left;
}

.step-title {
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: "IBM Plex Mono", monospace;
  font-size: 2rem;
  color: var(--accent-teal);
}

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

.cta {
  padding-bottom: 100px;
}

.cta-card {
  background: linear-gradient(120deg, rgba(60, 121, 255, 0.2), rgba(24, 210, 196, 0.15));
  border-radius: 24px;
  padding: 40px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-lift);
}

.cta-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.cta-form input {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(5, 8, 14, 0.7);
  color: var(--text-main);
  font-family: inherit;
}

.cta-form input::placeholder {
  color: var(--text-muted);
}

.cta-form .btn {
  width: 100%;
}

.footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 16px;
}

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

@keyframes ringPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0.4;
  }
  50% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.08);
    opacity: 0.2;
  }
}

@keyframes dotPulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.8;
  }
}

@media (max-width: 960px) {
  .nav {
    flex-wrap: wrap;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
    padding: 6px;
  }

  .nav-links,
  .nav-cta {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
  }

  .branch-svg svg {
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 80px;
  }

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

  .workflow-steps::before,
  .workflow-step::before,
  .workflow-step::after {
    display: none;
  }

  .workflow-step {
    grid-column: 1;
  }

  .catena-diagram {
    padding: 20px;
  }

  .footer {
    flex-direction: column;
    gap: 12px;
  }
}
