:root {
  --bg: #050711;
  --panel: rgba(11, 16, 34, 0.72);
  --line: rgba(118, 145, 201, 0.26);
  --text: #edf2ff;
  --muted: #9aaad1;
  --primary: #5ee9ff;
  --primary-2: #6affc4;
  --purple: #9a6bff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  background:
    radial-gradient(circle at 8% -10%, rgba(81, 194, 255, 0.3), transparent 34%),
    radial-gradient(circle at 90% 12%, rgba(154, 107, 255, 0.25), transparent 34%),
    radial-gradient(circle at 60% 120%, rgba(49, 227, 185, 0.16), transparent 40%),
    var(--bg);
}

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

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.8) 10%, transparent 78%);
}

.orb {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(70px);
  z-index: 0;
  pointer-events: none;
}

.orb-a {
  background: rgba(72, 187, 255, 0.2);
  top: -120px;
  left: -120px;
}

.orb-b {
  background: rgba(124, 91, 255, 0.24);
  right: -90px;
  top: 24%;
}

.container {
  width: min(1440px, 96vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(120, 142, 186, 0.2);
  backdrop-filter: blur(14px);
  background: rgba(7, 10, 21, 0.72);
}

.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: 0.2px;
}

.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 1.4rem;
  color: var(--muted);
  font-size: 1.06rem;
  font-weight: 500;
}

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

.btn {
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 0.6rem 0.95rem;
  font-size: 0.9rem;
  font-weight: 600;
  transition: 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #02140f;
  border-color: transparent;
  background: linear-gradient(140deg, var(--primary) 0%, var(--primary-2) 95%);
  box-shadow: 0 10px 28px rgba(94, 233, 255, 0.25);
}

.btn-outline {
  border-color: rgba(120, 142, 186, 0.38);
  background: rgba(18, 26, 50, 0.55);
}

.hero {
  padding: 6.4rem 0 3.2rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: #a5b4d7;
  border: 1px solid rgba(136, 156, 199, 0.35);
  border-radius: 999px;
  padding: 0.38rem 0.76rem;
  background: rgba(10, 16, 33, 0.8);
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.3rem;
  margin-top: 1rem;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 5.3vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero-copy h1 span {
  background: linear-gradient(135deg, #d9e7ff 20%, #8de2ff 45%, #7ff6d2 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p {
  color: var(--muted);
  font-size: 1.04rem;
  margin-top: 1.1rem;
  max-width: 680px;
}

.hero-actions {
  margin-top: 1.45rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
}

.hero-panel {
  border: 1px solid rgba(129, 153, 200, 0.33);
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(22, 31, 60, 0.78), rgba(10, 15, 31, 0.92));
  padding: 1.15rem 1.1rem;
  box-shadow: inset 0 0 0 1px rgba(97, 219, 255, 0.06);
}

.panel-title {
  margin: 0;
  color: #9eb1d9;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.panel-row {
  margin-top: 0.84rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: #cfdcff;
}

.panel-row strong {
  font-size: 1.2rem;
  color: var(--primary);
}

.panel-line {
  margin-top: 1rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(94, 233, 255, 0.4), transparent);
}

.panel-note {
  margin: 0.82rem 0 0;
  color: #9bb0db;
  font-size: 0.9rem;
}

.section {
  padding: 2.7rem 0;
}

.section-heading {
  max-width: 760px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  letter-spacing: -0.015em;
}

.section-heading p {
  margin: 0.65rem 0 0;
  color: var(--muted);
}

#risk-coverage .section-heading {
  max-width: none;
  width: 100%;
}

#risk-coverage .section-heading p {
  max-width: none;
}

.feature-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.feature-card {
  border: 1px solid rgba(129, 153, 200, 0.22);
  background: var(--panel);
  border-radius: 14px;
  padding: 1rem;
  backdrop-filter: blur(10px);
}

.feature-card h3 {
  margin: 0;
  font-size: 1rem;
}

.feature-card p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.layer-card {
  min-height: 188px;
  border: 1px solid rgba(129, 153, 200, 0.22);
  background: linear-gradient(180deg, rgba(12, 20, 42, 0.88), rgba(8, 14, 30, 0.92));
  border-radius: 16px;
  padding: 1.05rem 1.08rem;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: flex-start;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.layer-card:hover,
.layer-card:focus-within {
  border-color: rgba(108, 219, 245, 0.42);
  transform: translateY(-2px);
  box-shadow:
    0 12px 28px rgba(4, 9, 22, 0.38),
    inset 0 0 0 1px rgba(97, 219, 255, 0.06);
}

.layer-icon {
  font-size: 1.45rem;
  line-height: 1;
  flex-shrink: 0;
}

.layer-card > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.44rem;
  min-width: 0;
}

.layer-card h3 {
  margin: 0;
  font-size: 1.03rem;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.01em;
}

.layer-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.layer-card code {
  font-size: 0.82rem;
  background: rgba(94, 233, 255, 0.1);
  border-radius: 4px;
  padding: 0.1em 0.35em;
  color: var(--primary);
}

.risk-index {
  margin-top: 1.1rem;
  margin-bottom: 1.8rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.72rem;
}

.risk-pill {
  border: 1px solid rgba(129, 153, 200, 0.18);
  border-radius: 14px;
  background: var(--panel);
  padding: 0.74rem 0.86rem;
  display: flex;
  align-items: center;
  gap: 0.62rem;
  min-width: 0;
  min-height: 58px;
}

.risk-pill.covered {
  border-color: rgba(94, 233, 255, 0.32);
  background: rgba(10, 32, 40, 0.72);
}

.risk-pill.active {
  border-color: rgba(108, 219, 245, 0.58);
  box-shadow: 0 0 0 1px rgba(108, 219, 245, 0.18);
}

.risk-pill.na {
  opacity: 0.38;
  filter: grayscale(0.4);
}

.risk-num {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
  letter-spacing: 0.04em;
}

.risk-name {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.risk-badge {
  appearance: none;
  border: none;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  padding: 0.2em 0.52em;
  border-radius: 8px;
  background: linear-gradient(140deg, var(--primary) 0%, var(--primary-2) 95%);
  color: #022f23;
  flex-shrink: 0;
}

.risk-demo-btn {
  cursor: pointer;
  transition: transform 0.16s ease, filter 0.16s ease;
}

.risk-demo-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.risk-demo-btn:focus-visible {
  outline: 2px solid rgba(94, 233, 255, 0.7);
  outline-offset: 2px;
}

.risk-badge-na {
  background: rgba(129, 153, 200, 0.2);
  color: var(--muted);
}

.demo-stage {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-height 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease, margin-top 0.24s ease;
}

.demo-stage.open {
  max-height: 780px;
  opacity: 1;
  margin-top: 0.78rem;
  overflow: visible;
  pointer-events: auto;
}

.demo-stage-panel {
  --demo-origin-x: 50%;
  width: min(880px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(129, 153, 200, 0.3);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(15, 23, 46, 0.95), rgba(9, 14, 31, 0.96));
  box-shadow: 0 12px 34px rgba(4, 9, 22, 0.56);
  overflow: hidden;
  transform-origin: var(--demo-origin-x) top;
  transform: translateY(-22px) scale(0.62);
  opacity: 0;
  transition: transform 0.46s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.24s ease;
}

.demo-stage.open .demo-stage-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.demo-stage-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.86rem 0.96rem;
}

.demo-stage-meta {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  min-width: 0;
}

.demo-stage-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #022f23;
  background: linear-gradient(140deg, var(--primary) 0%, var(--primary-2) 95%);
  flex-shrink: 0;
}

.demo-stage-meta h3 {
  margin: 0;
  font-size: 1.08rem;
}

.demo-stage-meta p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.demo-stage-close {
  appearance: none;
  border: 1px solid rgba(129, 153, 200, 0.3);
  background: rgba(8, 13, 28, 0.9);
  color: #ccd9fb;
  border-radius: 9px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}

.demo-stage-media {
  border-top: 1px solid rgba(129, 153, 200, 0.2);
  background: rgba(7, 12, 26, 0.96);
}

.demo-stage-media video {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(58vh, 520px);
  object-fit: contain;
  background: #060b17;
}

.demo-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  align-items: stretch;
}

.demo-card {
  border: 1px solid rgba(129, 153, 200, 0.3);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(15, 23, 46, 0.82), rgba(9, 14, 31, 0.86));
  overflow: hidden;
  padding: 0.82rem;
  display: flex;
  flex-direction: column;
  gap: 0.62rem;
  box-shadow:
    0 10px 30px rgba(4, 9, 22, 0.38),
    inset 0 0 0 1px rgba(97, 219, 255, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.demo-card:hover {
  transform: translateY(-2px);
  border-color: rgba(108, 219, 245, 0.45);
  box-shadow:
    0 14px 34px rgba(4, 9, 22, 0.46),
    inset 0 0 0 1px rgba(97, 219, 255, 0.1);
}

.demo-media {
  border: 1px solid rgba(129, 153, 200, 0.28);
  border-radius: 12px;
  background: rgba(7, 12, 26, 0.92);
  overflow: hidden;
}

.demo-media video {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #060b17;
}

.demo-head {
  display: flex;
  align-items: center;
  gap: 0.62rem;
  min-height: 46px;
}

.demo-id {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  font-weight: 700;
  color: #022f23;
  background: linear-gradient(140deg, var(--primary) 0%, var(--primary-2) 95%);
}

.demo-head h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.demo-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.pipeline {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.pipeline-item {
  border: 1px solid rgba(129, 153, 200, 0.22);
  border-radius: 14px;
  padding: 0.95rem;
  background: var(--panel);
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0.75rem;
  align-items: start;
}

.pipeline-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(108, 219, 245, 0.42);
  color: var(--primary);
  font-weight: 700;
}

.pipeline-item strong {
  display: block;
  margin-top: 0.1rem;
}

.pipeline-item p {
  margin: 0.36rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.launch {
  padding-bottom: 4.1rem;
}

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

.launch-card a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.launch-card {
  border: 1px solid rgba(129, 153, 200, 0.25);
  border-radius: 16px;
  background: var(--panel);
  padding: 1rem;
}

.launch-card h2 {
  margin: 0;
  font-size: 1.22rem;
}

.launch-card p {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.launch-card pre {
  margin: 0.95rem 0 0;
  border: 1px solid rgba(129, 153, 200, 0.22);
  border-radius: 12px;
  background: rgba(8, 13, 28, 0.95);
  padding: 0.82rem;
  color: #ccdcff;
  overflow: auto;
}

.launch-card ol {
  margin: 0.85rem 0 0;
  padding-left: 1.15rem;
  color: #cad8f5;
}

.launch-card li + li {
  margin-top: 0.35rem;
}

.footer {
  border-top: 1px solid rgba(129, 153, 200, 0.17);
  padding: 1.3rem 0 2.6rem;
  color: #8ea3cf;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

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

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

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

@media (max-width: 680px) {
  .risk-index {
    grid-template-columns: 1fr;
  }

  .demo-stage.open {
    max-height: 620px;
  }

  .demo-stage-media video {
    max-height: 44vh;
  }
}

@media (max-width: 900px) {
  .hero-layout,
  .pipeline,
  .launch-grid {
    grid-template-columns: 1fr;
  }

  .main-nav {
    display: none;
  }
}

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

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

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

  .hero {
    padding-top: 5rem;
  }
}
