:root {
  color-scheme: dark;
  --bg: #070b14;
  --sheet: #0b1324;
  --panel: #101a30;
  --panel-glass: rgba(16, 26, 48, 0.84);
  --tile: #111e38;
  --border: #294270;
  --border-subtle: #1d2e50;
  --border-active: #4b73c2;
  --text: #edf2ff;
  --muted: #94a6c4;
  --cyan: #65ceff;
  --green: #7be0b8;
  --amber: #f0b85c;
  --error: #ff9aa8;
  --btn-primary: #1f3666;
  --btn-primary-hover: #294985;
  --btn-outlined: #142038;
  --btn-outlined-border: #283b60;
  font-family: Inter, Roboto, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  accent-color: var(--cyan);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
  background-color: var(--bg);
}

body {
  margin: 0;
  min-block-size: 100dvh;
  background-color: var(--bg);
  color: var(--text);
  position: relative;
  overflow-x: hidden;
}

/* WispSpace starfield and radial nebula backdrop */
.space-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 34%, rgba(34, 86, 158, 0.34) 0%, rgba(20, 40, 76, 0.16) 44%, transparent 74%),
    radial-gradient(circle at 82% 18%, rgba(101, 206, 255, 0.09) 0%, transparent 42%),
    radial-gradient(1.5px 1.5px at 14% 22%, rgba(240, 248, 255, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 28% 68%, rgba(101, 206, 255, 0.65), transparent),
    radial-gradient(2px 2px at 44% 14%, rgba(255, 223, 168, 0.65), transparent),
    radial-gradient(1.5px 1.5px at 66% 82%, rgba(125, 162, 255, 0.6), transparent),
    radial-gradient(1.5px 1.5px at 78% 36%, rgba(240, 248, 255, 0.65), transparent),
    radial-gradient(2px 2px at 88% 62%, rgba(101, 206, 255, 0.6), transparent),
    radial-gradient(1.5px 1.5px at 8% 84%, rgba(125, 162, 255, 0.55), transparent);
}

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

button, a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
  border-radius: 8px;
}

::selection {
  background: rgba(101, 206, 255, 0.26);
  color: var(--text);
}

.wrap {
  inline-size: min(1240px, calc(100% - 96px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  z-index: 20;
  padding: 12px 18px;
  background: var(--btn-primary);
  color: var(--text);
  border: 1px solid var(--border-active);
  border-radius: 12px;
  font-weight: 600;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Three-layer WispStatusDot */
.status-dot {
  display: inline-block;
  inline-size: 9px;
  block-size: 9px;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.status-dot-cyan {
  background: radial-gradient(circle, #f4fcff 0 36%, var(--cyan) 42% 100%);
  box-shadow: 0 0 0 3.5px rgba(101, 206, 255, 0.24), 0 0 10px rgba(101, 206, 255, 0.45);
}

.status-dot-green {
  background: radial-gradient(circle, #f4fcff 0 36%, var(--green) 42% 100%);
  box-shadow: 0 0 0 3.5px rgba(123, 224, 184, 0.22), 0 0 10px rgba(123, 224, 184, 0.4);
}

/* Header */
.site-header {
  block-size: 102px;
  display: flex;
  align-items: safe center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 750;
  letter-spacing: -0.04em;
  font-size: 24px;
  color: var(--text);
  white-space: nowrap;
}

.brand-mark {
  display: block;
  inline-size: 38px;
  block-size: 38px;
  border-radius: 9px;
  box-shadow: 0 0 18px rgba(69, 130, 255, 0.24);
  flex-shrink: 0;
}

.brand-mark-large {
  inline-size: 48px;
  block-size: 48px;
  border-radius: 11px;
}

.brand-mark-small {
  inline-size: 28px;
  block-size: 28px;
  border-radius: 7px;
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
}

.nav-detail {
  color: var(--muted);
  transition: color 0.16s ease;
}

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

/* Online-pill styled Header CTA */
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-block-size: 42px;
  padding: 9px 16px;
  background: rgba(18, 37, 74, 0.85);
  border: 1.4px solid #5b9cf7;
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(69, 130, 255, 0.18);
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.02em;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.header-cta:hover {
  background: rgba(31, 58, 112, 0.92);
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(101, 206, 255, 0.24);
}

.cta-arrow {
  color: var(--cyan);
  font-weight: 700;
}

/* Hero Section */
.hero {
  min-block-size: 560px;
  padding-block: 48px 56px;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--cyan);
  margin: 0 0 22px;
}

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

h1 {
  font-size: clamp(54px, 6.4vw, 88px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.05em;
  margin-block-end: 24px;
  color: var(--text);
}

h1 span {
  background: linear-gradient(96deg, var(--cyan) 0%, #8eb4ff 55%, var(--green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-description {
  max-inline-size: 495px;
  font-size: 17px;
  line-height: 1.72;
  color: var(--muted);
  margin-block-end: 30px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* WispTheme FilledButton & OutlinedButton */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-block-size: 48px;
  padding: 13px 22px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

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

.button-primary {
  background-color: var(--btn-primary);
  color: var(--text);
  border: 1px solid var(--border-active);
  box-shadow: 0 8px 24px -6px rgba(17, 42, 92, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.button-primary:hover {
  background-color: var(--btn-primary-hover);
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(101, 206, 255, 0.2), 0 10px 26px -6px rgba(17, 42, 92, 0.85);
}

.button-primary span {
  color: var(--cyan);
}

.button-outlined {
  background-color: var(--btn-outlined);
  color: var(--text);
  border: 1px solid var(--btn-outlined-border);
}

.button-outlined:hover {
  background-color: #1b2c4d;
  border-color: var(--border-active);
}

.button-outlined span {
  color: var(--cyan);
}

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin: 22px 0 0;
}

.note-shield {
  display: inline-grid;
  place-items: center;
  inline-size: 18px;
  block-size: 18px;
  border-radius: 50%;
  background: rgba(123, 224, 184, 0.14);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
}

/* Hero Connection Figure */
.connection-figure {
  margin: 0;
  min-inline-size: 0;
}

.connection-art {
  display: block;
  inline-size: 100%;
  block-size: auto;
  overflow: visible;
}

.art-label {
  font-family: Inter, Roboto, sans-serif;
  font-size: 13px;
  font-weight: 650;
  fill: #edf2ff;
  letter-spacing: 0.01em;
}

.art-window-title {
  font-family: Inter, Roboto, sans-serif;
  font-size: 12px;
  font-weight: 700;
  fill: #edf2ff;
  letter-spacing: 0.05em;
}

.art-pill-text {
  font-family: Inter, Roboto, sans-serif;
  font-size: 10px;
  font-weight: 700;
  fill: #edf4ff;
  letter-spacing: 0.06em;
}

.art-small {
  font-family: Inter, Roboto, sans-serif;
  font-size: 11px;
  font-weight: 500;
  fill: #94a6c4;
}

.art-small-green {
  fill: #7be0b8;
}

.art-service-title {
  font-family: Inter, Roboto, sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  fill: #edf2ff;
}

.art-service-kind {
  font-family: Inter, Roboto, sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  fill: #94a6c4;
  letter-spacing: 0.06em;
}

.art-badge-green {
  font-family: Inter, Roboto, sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  fill: #7be0b8;
}

.connection-figure figcaption {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-block-start: 6px;
}

/* Principles Bar */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: center;
  background: rgba(11, 19, 36, 0.72);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 20px 28px;
}

.principle-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.principle-item p {
  margin: 0;
  font-size: 13.5px;
  font-weight: 550;
  line-height: 1.5;
  color: var(--text);
}

.principle-icon {
  display: inline-grid;
  place-items: center;
  inline-size: 32px;
  block-size: 32px;
  border-radius: 10px;
  background: var(--tile);
  border: 1px solid var(--border);
  color: var(--cyan);
  font-size: 16px;
  flex-shrink: 0;
}

/* Connections / Access Modes */
.connections {
  padding-block: 88px 80px;
}

.section-heading {
  max-inline-size: 680px;
  margin-block-end: 40px;
}

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

h2 {
  font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-block-end: 16px;
  color: var(--text);
}

.section-heading > p:last-child {
  max-inline-size: 590px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.75;
  margin: 0;
}

.access-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* WispPanel cards */
.access-mode {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 34px 36px 0;
  background: linear-gradient(180deg, rgba(17, 30, 56, 0.9) 0%, rgba(11, 19, 36, 0.92) 100%);
  box-shadow: 0 18px 40px -18px rgba(2, 5, 11, 0.75);
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.access-mode:hover {
  border-color: var(--border-active);
}

.public-mode {
  background: linear-gradient(180deg, rgba(19, 36, 66, 0.94) 0%, rgba(12, 22, 42, 0.95) 100%);
  border-color: #32518a;
}

.mode-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-block-end: 24px;
}

.mode-number {
  display: grid;
  place-items: center;
  inline-size: 30px;
  block-size: 30px;
  background: var(--tile);
  border: 1px solid var(--border-active);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan);
}

.mode-number-green {
  border-color: rgba(123, 224, 184, 0.5);
  color: var(--green);
}

.mode-kind {
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 750;
  color: var(--cyan);
}

.mode-kind-green {
  color: var(--green);
}

.access-mode h3 {
  font-size: 27px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-block-end: 16px;
  color: var(--text);
}

.access-mode > p:not(.mode-note) {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--muted);
  max-inline-size: 460px;
  margin-block-end: 22px;
}

.access-mode ul {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  display: grid;
  gap: 12px;
}

.access-mode li {
  position: relative;
  padding-inline-start: 22px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #cfdcff;
}

.access-mode li::before {
  content: "";
  position: absolute;
  inset-inline-start: 2px;
  inset-block-start: 0.52em;
  inline-size: 6px;
  block-size: 6px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(101, 206, 255, 0.5);
}

.public-mode li::before {
  background: var(--green);
  box-shadow: 0 0 8px rgba(123, 224, 184, 0.5);
}

.access-mode .mode-note {
  margin: auto -36px 0;
  border-block-start: 1px solid var(--border-subtle);
  background: rgba(7, 11, 20, 0.38);
  border-end-start-radius: 20px;
  border-end-end-radius: 20px;
  padding: 16px 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--cyan);
  line-height: 1.5;
}

.access-mode .mode-note-green {
  color: var(--green);
}

/* Start CTA Panel */
.start {
  padding-block: 12px 76px;
}

.start-panel {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 56px;
  align-items: center;
  background: linear-gradient(135deg, rgba(17, 30, 56, 0.92) 0%, rgba(11, 19, 36, 0.95) 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px 52px;
  box-shadow: 0 22px 48px -20px rgba(2, 5, 11, 0.8);
}

.start-copy .eyebrow {
  color: var(--green);
  margin-block-end: 16px;
}

.start-copy h2 {
  font-size: clamp(30px, 3.5vw, 44px);
  margin-block-end: 16px;
}

.start-copy > p:not(.eyebrow) {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  max-inline-size: 440px;
  margin-block-end: 26px;
}

.preview-note {
  border-inline-start: 1px solid var(--border-subtle);
  padding-inline-start: 48px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.core-badge {
  inline-size: 48px;
  block-size: 48px;
}

.core-badge svg {
  display: block;
  inline-size: 100%;
  block-size: 100%;
}

.preview-note h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin-block-end: 10px;
  color: var(--text);
}

.preview-note p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.72;
  max-inline-size: 320px;
  margin-block-end: 8px;
}

.preview-note .preview-small {
  font-size: 12.5px;
  color: #798eb0;
  margin-block-end: 0;
}

/* Footer */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-block-size: 92px;
  border-block-start: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--muted);
}

.footer-brand {
  font-size: 19px;
  color: var(--text);
  letter-spacing: -0.03em;
}

.site-footer p {
  margin: 0;
}

.footer-link {
  font-size: 12.5px;
  color: var(--muted);
  transition: color 0.16s ease;
}

.footer-link:hover {
  color: var(--cyan);
}

.repository-note {
  color: #6e82a3;
  font-size: 11.5px;
}

@media (min-width: 1500px) {
  .hero {
    min-block-size: 620px;
  }
  .connection-art {
    inline-size: 620px;
    max-inline-size: 108%;
  }
}

@media (max-width: 1000px) {
  .wrap {
    inline-size: calc(100% - 64px);
  }
  .hero {
    gap: 20px;
    padding-block: 36px 46px;
    min-block-size: 480px;
  }
  h1 {
    font-size: clamp(48px, 7vw, 72px);
  }
  .hero-description {
    font-size: 15.5px;
  }
  .principles {
    padding: 18px 20px;
    gap: 14px;
  }
  .principle-item p {
    font-size: 12.5px;
  }
  .connections {
    padding-block: 64px;
  }
  .access-mode {
    padding: 28px 28px 0;
  }
  .access-mode .mode-note {
    margin-inline: -28px;
    padding-inline: 28px;
  }
  .start-panel {
    gap: 36px;
    padding: 36px;
  }
  .preview-note {
    padding-inline-start: 32px;
  }
}

@media (max-width: 740px) {
  .wrap {
    inline-size: calc(100% - 40px);
  }
  .site-header {
    block-size: 80px;
    gap: 12px;
  }
  .wordmark {
    font-size: 21px;
  }
  .nav-detail {
    display: none;
  }
  .header-cta {
    padding: 8px 13px;
    font-size: 12px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 28px 36px;
    min-block-size: 0;
  }
  .hero-copy {
    max-inline-size: 540px;
  }
  .connection-figure {
    margin: 0 auto;
    inline-size: min(100%, 500px);
  }
  .principles {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .principle-item {
    justify-content: flex-start;
  }
  .connections {
    padding-block: 52px;
  }
  .access-modes {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .start-panel {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 24px;
  }
  .preview-note {
    border-inline-start: 0;
    border-block-start: 1px solid var(--border-subtle);
    padding: 24px 0 0;
    flex-direction: row;
    align-items: flex-start;
  }
  .site-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding-block: 24px;
    min-block-size: 0;
  }
  .site-footer p {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .button, .header-cta, .nav-detail, .access-mode {
    transition: none;
  }
  .button:hover {
    transform: none;
  }
}
