@import url("https://fonts.googleapis.com/css2?family=Syne:wght@500;600;700&family=Space+Grotesk:wght@400;500;700&display=swap");
:root {
  --bg-space: #04000b;
  --bg-deep: #0c0017;
  --bg-soft: #090014;
  --accent-a: #ff4dbb;
  --accent-b: #ff71d8;
  --accent-c: #c04dff;
  --accent-d: #7e45ff;
  --glow-soft: #ffb7f1;
  --glow-light: #ffd3f5;
  --panel: #12122b;
  --panel-strong: #0d1030;
  --panel-line: rgba(151, 146, 255, 0.22);
  --text-main: #f5edff;
  --text-soft: #cabff5;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg-space);
  color: var(--text-main);
  font-family: "Space Grotesk", "Syne", "Inter", "Segoe UI", sans-serif;
  line-height: 1.55;
}

#app {
  isolation: isolate;
}

a {
  color: inherit;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  background: radial-gradient(circle at 16% 6%, rgba(255, 77, 187, 0.18), transparent 34%), radial-gradient(circle at 82% 3%, rgba(126, 69, 255, 0.2), transparent 32%), var(--bg-space);
}

.swirl-layer {
  z-index: 0;
}

.top-nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(151, 146, 255, 0.24);
  background: rgba(12, 0, 23, 0.64);
  backdrop-filter: blur(10px);
}

.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 76px;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text-main);
  font-family: "Syne", "Space Grotesk", sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 113, 216, 0.5);
  box-shadow: 0 0 24px rgba(255, 113, 216, 0.2);
}

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

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text-soft);
  border: 1px solid transparent;
  transition: background 170ms ease, border-color 170ms ease, transform 170ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  border-color: rgba(255, 183, 241, 0.4);
  background: rgba(255, 113, 216, 0.12);
  color: #fff;
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  border: 1px solid rgba(151, 146, 255, 0.35);
  background: rgba(18, 18, 43, 0.72);
  color: #f5edff;
  border-radius: 10px;
  padding: 0.45rem 0.9rem;
}

.mobile-nav {
  display: none;
}

.section {
  position: relative;
  z-index: 1;
  padding: clamp(2.3rem, 4vw, 4rem) 1rem;
}

.section-soft {
  background: linear-gradient(180deg, rgba(255, 113, 216, 0.06), rgba(7, 0, 18, 0.01) 35%, rgba(7, 0, 18, 0));
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  margin: 0 0 1rem;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-family: "Syne", "Space Grotesk", sans-serif;
  letter-spacing: 0.02em;
}

.hero-section {
  padding-top: 2rem;
  padding-bottom: 3.5rem;
}

.hero-copy {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  align-items: center;
}

.hero-title {
  margin: 0;
  font-size: clamp(1.9rem, 4.7vw, 3.3rem);
  line-height: 1.08;
  color: #fff;
  white-space: nowrap;
  max-width: none;
}

.hero-slogan {
  margin: 0;
  max-width: 58ch;
  text-wrap: balance;
  color: var(--text-soft);
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.eyebrow {
  margin: 0;
  font-size: 0.86rem;
  text-transform: uppercase;
  color: var(--glow-soft);
  letter-spacing: 0.18em;
}

.hero-actions {
  margin-top: 0.4rem;
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

.button {
  border: 1px solid rgba(255, 113, 216, 0.45);
  border-radius: 999px;
  text-decoration: none;
  padding: 0.6rem 1.15rem;
  min-height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(255, 77, 187, 0.28);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent-b), var(--accent-d));
  color: #0f0515;
  font-weight: 600;
}

.button-ghost {
  background: rgba(255, 183, 241, 0.08);
  color: var(--text-main);
}

.hero-asset {
  width: min(900px, 100%);
  margin: 1.7rem auto 0;
  display: block;
  border-radius: 14px;
  border: none;
  box-shadow: none;
}

.stat-grid {
  margin-top: 1.1rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card,
.doc-card,
.feature-card,
.timeline-content,
.inline-link,
.tab-panel,
.architecture-chart {
  animation: panelPop 480ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.stat-card,
.doc-card,
.feature-card,
.timeline-content,
.tab-panel {
  background: linear-gradient(140deg, rgba(10, 14, 54, 0.9), rgba(13, 16, 48, 0.95));
  border: 1px solid rgba(151, 146, 255, 0.2);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 8px 30px rgba(2, 0, 15, 0.28);
}

.stat-card p {
  margin: 0.45rem 0 0;
  color: var(--text-soft);
}

.stat-title {
  margin: 0;
  font-weight: 600;
  color: #fff;
}

.feature-strip {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.4rem 0.2rem 0.65rem;
  scroll-snap-type: none;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: none;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-b) rgba(13, 16, 48, 0.85);
}

.feature-strip::-webkit-scrollbar {
  height: 9px;
  width: 9px;
  background: transparent;
}

.feature-strip::-webkit-scrollbar-track {
  background: linear-gradient(90deg, rgba(7, 0, 18, 0.92), rgba(13, 16, 48, 0.86));
  border-radius: 999px;
  border: 1px solid rgba(255, 183, 241, 0.22);
}

.feature-strip::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, rgba(255, 113, 216, 0.98), rgba(126, 69, 255, 0.95), rgba(192, 77, 255, 0.95));
  border-radius: 999px;
  border: 1px solid rgba(255, 183, 241, 0.6);
  box-shadow: inset 0 0 0 1px rgba(13, 16, 48, 0.7), 0 0 12px rgba(255, 77, 187, 0.42);
  background-size: 260% 260%;
  animation: scrollbarFlow 2.8s linear infinite;
}

.feature-strip::-webkit-scrollbar-thumb:hover {
  animation-duration: 1.6s;
  box-shadow: inset 0 0 0 1px rgba(13, 16, 48, 0.5), 0 0 16px rgba(255, 77, 187, 0.55);
}

.feature-strip::-webkit-scrollbar-thumb:active {
  background-size: 180% 180%;
  opacity: 0.95;
}

.feature-strip::-webkit-scrollbar-corner {
  background: rgba(4, 0, 11, 0.95);
}

@keyframes scrollbarFlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}
.feature-card {
  position: relative;
  flex: 0 0 min(300px, 86vw);
  overflow: hidden;
  padding-top: 1.25rem;
  padding-bottom: 1.2rem;
  min-height: 208px;
  background: var(--panel);
  border: 1px solid rgba(151, 146, 255, 0.22);
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  border: 2px solid transparent;
  border-top-color: #ff4dbb;
  z-index: 2;
  animation: borderSweep 4.2s linear infinite;
  filter: drop-shadow(0 0 8px rgba(255, 77, 187, 0.78));
  pointer-events: none;
}

.feature-card > * {
  position: relative;
  z-index: 2;
}

.feature-icon {
  margin: 0 0 0.9rem;
  font-size: 1.35rem;
}

.feature-card h3 {
  margin: 0 0 0.45rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-soft);
}

.architecture-chart {
  margin: 1rem 0;
  border-radius: 14px;
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 0.75rem 0.8rem;
}

.chart-node {
  background: rgba(4, 0, 11, 0.74);
  border: 1px solid rgba(255, 113, 216, 0.2);
  border-radius: 12px;
  min-height: 86px;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 0.8rem;
}

.chart-arrow {
  display: grid;
  place-content: center;
  font-size: 1.1rem;
  color: var(--glow-soft);
}

.muted {
  color: var(--text-soft);
  margin-top: 1rem;
}

.tabs {
  max-width: 820px;
}

.tabs-toolbar {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.tab {
  border: 1px solid rgba(151, 146, 255, 0.25);
  border-radius: 10px;
  background: rgba(4, 0, 11, 0.6);
  color: var(--text-soft);
  padding: 0.6rem 0.95rem;
  cursor: pointer;
  transition: all 170ms ease;
}

.tab:hover,
.tab:focus-visible,
.tab.active {
  background: linear-gradient(130deg, rgba(255, 113, 216, 0.22), rgba(192, 77, 255, 0.18));
  border-color: rgba(255, 183, 241, 0.7);
  color: #fff;
}

.tab-panel {
  margin-top: 0.9rem;
}

.timeline {
  position: relative;
  margin-top: 1.4rem;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 0.5rem;
  bottom: 0.7rem;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-b), var(--accent-d));
}

.timeline-item {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 0.9rem;
  align-items: start;
}

.timeline-dot {
  margin-top: 0.45rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text-soft);
  border: 2px solid rgba(255, 183, 241, 0.65);
}

.timeline-item.completed .timeline-dot {
  background: radial-gradient(circle, #fff 0%, #ffb7f1 50%, #7e45ff 100%);
  box-shadow: 0 0 12px rgba(255, 77, 187, 0.8);
}

.timeline-item .timeline-content {
  margin: 0;
  border-color: rgba(255, 183, 241, 0.22);
}

.timeline-item h3 {
  margin: 0;
}

.timeline-item p {
  margin: 0.35rem 0 0;
  color: var(--text-soft);
}

.timeline-item.completed .timeline-content {
  background: linear-gradient(140deg, rgba(255, 113, 216, 0.17), rgba(126, 69, 255, 0.16));
}

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

.doc-card {
  min-height: 170px;
}

.doc-card p {
  color: var(--text-soft);
}

.inline-link {
  margin-top: 0.8rem;
  display: inline-block;
  text-decoration: none;
  color: var(--glow-light);
  border-bottom: 1px solid rgba(255, 183, 241, 0.4);
}

.site-footer {
  border-top: 1px solid rgba(151, 146, 255, 0.25);
  margin-top: 2.2rem;
  padding: 1.8rem 1rem;
  text-align: center;
  color: var(--text-soft);
  position: relative;
  z-index: 1;
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }
  .menu-button {
    display: inline-flex;
    align-items: center;
  }
  .mobile-nav {
    display: block;
    max-height: 0;
    overflow: hidden;
    border-top: 1px solid transparent;
    transition: max-height 230ms ease, border-color 230ms ease;
  }
  .mobile-nav.open {
    border-color: rgba(151, 146, 255, 0.25);
    max-height: 420px;
  }
  .mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0.65rem 0 0.85rem;
    display: grid;
    gap: 0.2rem;
  }
  .mobile-nav-link {
    display: block;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    color: var(--text-soft);
    text-decoration: none;
  }
  .mobile-nav-link:active,
  .mobile-nav-link:hover,
  .mobile-nav-link:focus-visible {
    background: rgba(255, 77, 187, 0.12);
    color: #fff;
  }
  .hero-section {
    padding-top: 1.5rem;
  }
  .stat-grid,
  .doc-grid {
    grid-template-columns: 1fr;
  }
  .architecture-chart {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}
@media (max-width: 640px) {
  .section {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }
  .hero-copy h1 {
    max-width: 18ch;
  }
  .feature-strip {
    gap: 0.8rem;
  }
  .feature-card {
    flex-basis: min(280px, 84vw);
  }
  .chart-arrow {
    display: none;
  }
  .architecture-chart {
    grid-template-columns: 1fr;
  }
  .menu-button {
    padding: 0.5rem 0.8rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .feature-card::before,
  .stat-card,
  .doc-card,
  .timeline-item,
  .tab-panel,
  .button,
  .nav-link,
  .tab,
  .mobile-nav,
  .chart-arrow {
    animation: none !important;
    transition: none !important;
  }
}
@keyframes borderSweep {
  to {
    transform: rotate(360deg);
  }
}
@keyframes panelPop {
  from {
    opacity: 0.2;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
