:root {
  --color-bg: #050816;
  --color-bg-alt: #050816;
  --color-surface: rgba(15, 23, 42, 0.94);
  --color-surface-alt: rgba(15, 23, 42, 0.96);
  --color-border-subtle: rgba(148, 163, 184, 0.25);
  --color-primary: #38bdf8;
  --color-primary-soft: rgba(56, 189, 248, 0.15);
  --color-primary-strong: #0ea5e9;
  --color-accent: #a855f7;
  --color-text-main: #e5e7eb;
  --color-text-muted: #9ca3af;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.75);
  --radius-lg: 18px;
  --radius-xl: 26px;
  --radius-pill: 999px;
  --container-max: 1200px;
}

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

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  background: radial-gradient(circle at top, #0f172a 0, #020617 45%, #000 100%);
  color: var(--color-text-main);
  min-height: 100vh;
}

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

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

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 30px;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
}

.section-header p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 15px;
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

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

@media (max-width: 1024px) {
  .grid-3,
  .grid-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-5 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.96));
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-soft);
  padding: 22px 22px 24px;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 55%);
  opacity: 0;
  transition: opacity 0.22s ease-out;
}

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

.card:hover::before {
  opacity: 1;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.8;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.86));
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 30%;
  background: radial-gradient(circle at 20% 0, #38bdf8, #0ea5e9 40%, #a855f7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #0b1120;
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.6);
}

.logo-mark-sm {
  width: 28px;
  height: 28px;
  font-size: 14px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 18px;
  font-weight: 650;
}

.logo-subtitle {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-muted);
}

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

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.nav-list a {
  font-size: 13px;
  color: var(--color-text-muted);
  padding: 6px 10px;
  border-radius: 999px;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-list a:hover,
.nav-list a.is-active {
  color: #f9fafb;
  background: rgba(15, 23, 42, 0.95);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.95);
  padding: 0 8px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 999px;
  background: #e5e7eb;
}

@media (max-width: 768px) {
  .header-inner {
    height: 60px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-list {
    position: absolute;
    top: 60px;
    right: 16px;
    left: 16px;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.98);
    padding: 10px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
    transform-origin: top;
    transform: scaleY(0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
  }

  .nav-list.is-open {
    opacity: 1;
    transform: scaleY(1);
    pointer-events: auto;
  }

  .nav-list a {
    width: 100%;
    padding: 9px 10px;
  }
}

/* Hero */

.hero-section {
  padding-top: 72px;
  padding-bottom: 90px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero-content {
  max-width: 640px;
}

.hero-kicker {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 10px;
}

.hero-title {
  font-size: 36px;
  line-height: 1.2;
  margin: 0 0 16px;
}

.hero-title span {
  background-image: linear-gradient(120deg, #38bdf8, #22c55e, #a855f7);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.9;
  margin: 0 0 20px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background-image: linear-gradient(135deg, #38bdf8, #0ea5e9, #a855f7);
  color: #0b1120;
  font-weight: 600;
  box-shadow: 0 14px 40px rgba(56, 189, 248, 0.5);
}

.btn-primary:hover {
  text-decoration: none;
  filter: brightness(1.05);
}

.btn-outline {
  border-color: rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.95);
  color: var(--color-text-main);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  text-decoration: none;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 8px 0 0;
}

.hero-metrics div {
  min-width: 120px;
}

.hero-metrics dt {
  font-size: 13px;
  color: #e5e7eb;
}

.hero-metrics dd {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--color-text-muted);
}

.hero-visual {
  position: relative;
  min-height: 260px;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at 10% 0, rgba(56, 189, 248, 0.25), transparent 55%),
    radial-gradient(circle at 90% 90%, rgba(168, 85, 247, 0.35), transparent 60%),
    rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.chip {
  position: absolute;
  z-index: 2;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: #0b1120;
  background: linear-gradient(135deg, #f97316, #facc15);
  box-shadow: 0 14px 30px rgba(234, 179, 8, 0.7);
}

.chip:nth-of-type(1) {
  top: 26px;
  left: 26px;
}

.chip:nth-of-type(2) {
  top: 72px;
  right: 30px;
  background: linear-gradient(135deg, #22c55e, #a3e635);
}

.chip:nth-of-type(3) {
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #a855f7, #ec4899);
}

.orbit {
  position: absolute;
  border-radius: 999px;
  border: 1px dashed rgba(148, 163, 184, 0.4);
}

.orbit-1 {
  inset: 38px 40px;
}

.orbit-2 {
  inset: 70px 70px;
}

.orbit-3 {
  inset: 105px 100px;
}

.hero-badge {
  position: absolute;
  right: 30px;
  bottom: 30px;
  background: rgba(15, 23, 42, 0.96);
  border-radius: 18px;
  padding: 10px 14px;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.hero-badge .badge-title {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-text-muted);
}

.hero-badge .badge-subtitle {
  display: block;
  font-size: 12px;
  margin-top: 4px;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-section {
    padding-top: 70px;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 28px;
  }
}

/* Overview */

.overview-grid .card {
  min-height: 0;
}

/* Capabilities */

.capability-card {
  min-height: 0;
}

/* Architecture */

.architecture-grid {
  align-items: stretch;
}

.architecture-diagram {
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: var(--shadow-soft);
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.architecture-diagram .layer {
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px dashed rgba(148, 163, 184, 0.7);
}

.layer h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.layer p {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-muted);
}

.layer-edge {
  background: radial-gradient(circle at 10% 0, rgba(34, 197, 94, 0.3), transparent 60%);
}

.layer-platform {
  background: radial-gradient(circle at 10% 0, rgba(56, 189, 248, 0.3), transparent 60%);
}

.layer-infra {
  background: radial-gradient(circle at 10% 0, rgba(249, 115, 22, 0.3), transparent 60%);
}

.architecture-text h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.architecture-text ul {
  margin: 0 0 16px;
  padding-left: 18px;
}

.architecture-text li {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* Scenarios */

.scenario-card {
  min-height: 0;
}

/* Modules */

.module-grid {
  gap: 16px;
}

.module-card {
  padding: 18px 16px 20px;
}

.module-card h3 {
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.module-card p {
  font-size: 13px;
}

@media (max-width: 960px) {
  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .module-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Getting started */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.steps h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.steps p {
  margin: 0;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.cta-panel {
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.3), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(168, 85, 247, 0.4), transparent 60%),
    rgba(15, 23, 42, 0.98);
  border-radius: var(--radius-xl);
  padding: 24px 22px 26px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.cta-panel h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.cta-panel p {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  padding: 18px 0 24px;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.98));
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-title {
  font-size: 13px;
}

.footer-subtitle {
  font-size: 11px;
  color: var(--color-text-muted);
}

.footer-right {
  font-size: 11px;
  color: var(--color-text-muted);
}

@media (max-width: 640px) {
  .site-footer {
    padding-top: 16px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
