:root {
  color-scheme: dark;
  --ink: #0b0f1a;
  --ink-deep: #070a12;
  --near-black: #1a1a1f;
  --blue: #2563eb;
  --teal: #22d3c5;
  --violet: #a78bfa;
  --orange: #ffb26b;
  --white: #f7f7f5;
  --muted: #a7adbf;
  --muted-soft: #747b92;
  --line: rgb(247 247 245 / 12%);
  --panel: rgb(247 247 245 / 6%);
  --panel-strong: rgb(247 247 245 / 10%);
  --shadow: 0 24px 120px rgb(0 0 0 / 45%);
  --serif: 'Playfair Display', Georgia, serif;
  --sans:
    'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(115deg, rgb(37 99 235 / 18%) 0%, transparent 32%),
    linear-gradient(245deg, rgb(167 139 250 / 12%) 0%, transparent 34%),
    linear-gradient(145deg, var(--ink-deep), var(--ink) 46%, #0d111c);
  color: var(--white);
  font-family: var(--sans);
  line-height: 1.5;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.page-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgb(247 247 245 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(247 247 245 / 5%) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black 0 70%, transparent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  width: min(1120px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  width: fit-content;
  font-weight: 600;
}

.brand-mark {
  border: 1px solid rgb(247 247 245 / 14%);
  border-radius: 12px;
  box-shadow: 0 0 24px rgb(34 211 197 / 12%);
}

.brand-word {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0;
}

.nav-links,
.site-footer nav {
  display: flex;
  gap: 1.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.nav-links a,
.site-footer a {
  transition: color 180ms ease;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--white);
}

.header-cta {
  justify-self: end;
  border: 1px solid rgb(247 247 245 / 14%);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  background: rgb(247 247 245 / 8%);
  color: var(--white);
  font-size: 0.9rem;
  transition:
    border-color 180ms ease,
    background 180ms ease;
}

.header-cta:hover {
  border-color: rgb(34 211 197 / 50%);
  background: rgb(34 211 197 / 13%);
}

.hero,
.demo-section,
.waitlist-section,
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(400px, 0.92fr);
  gap: 3.5rem;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 5.5rem 0 4rem;
}

.eyebrow {
  margin: 0 0 1.1rem;
  color: #b9c3ff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 1.35rem;
  font-family: var(--serif);
  font-size: 5.65rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.95;
}

h2 {
  margin-bottom: 0.85rem;
  font-family: var(--serif);
  font-size: 4rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1rem;
}

.hero-subtitle,
.section-heading p,
.waitlist-panel > div > p,
.site-footer p {
  color: var(--muted);
}

.hero-subtitle {
  max-width: 650px;
  margin-bottom: 2rem;
  font-size: 1.24rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0.85rem 1.2rem;
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button svg {
  width: 1.05rem;
  height: 1.05rem;
  margin-left: 0.5rem;
}

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

.button-primary {
  background: linear-gradient(
    135deg,
    var(--blue),
    var(--teal) 38%,
    var(--violet) 72%,
    var(--orange)
  );
  color: #07101a;
  box-shadow: 0 18px 54px rgb(34 211 197 / 17%);
}

.button-secondary {
  border-color: var(--line);
  background: rgb(247 247 245 / 7%);
  color: var(--white);
}

.button-secondary:hover {
  border-color: rgb(247 247 245 / 24%);
  background: rgb(247 247 245 / 11%);
}

.hero-note {
  max-width: 580px;
  margin: 1.45rem 0 0;
  color: var(--muted-soft);
  font-size: 0.96rem;
}

.hero-visual {
  position: relative;
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgb(247 247 245 / 9%), rgb(247 247 245 / 3%)),
    linear-gradient(155deg, rgb(34 211 197 / 13%) 0%, transparent 38%),
    rgb(8 11 20 / 68%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(247 247 245 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(247 247 245 / 5%) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.signal-card,
.artifact-card,
.video-card,
.waitlist-panel {
  border: 1px solid var(--line);
  background: rgb(247 247 245 / 7%);
  backdrop-filter: blur(18px);
}

.signal-card {
  position: absolute;
  top: 32px;
  left: 32px;
  z-index: 2;
  width: 212px;
  border-radius: 22px;
  padding: 1rem;
}

.mic-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 0.85rem;
  border: 1px solid rgb(34 211 197 / 30%);
  border-radius: 14px;
  color: var(--teal);
}

.mic-icon svg {
  width: 24px;
  height: 24px;
}

.signal-card span,
.artifact-card span {
  color: var(--white);
  font-weight: 700;
}

.wave-bars {
  display: flex;
  align-items: end;
  gap: 0.35rem;
  height: 54px;
  margin-top: 1rem;
}

.wave-bars span {
  display: block;
  width: 0.52rem;
  border-radius: 999px;
  background: linear-gradient(var(--teal), var(--violet));
}

.wave-bars span:nth-child(1) {
  height: 20px;
}

.wave-bars span:nth-child(2) {
  height: 42px;
}

.wave-bars span:nth-child(3) {
  height: 30px;
}

.wave-bars span:nth-child(4) {
  height: 50px;
}

.wave-bars span:nth-child(5) {
  height: 24px;
}

.flow-line {
  position: absolute;
  top: 66px;
  left: 168px;
  width: calc(100% - 196px);
  opacity: 0.92;
  filter: drop-shadow(0 0 16px rgb(167 139 250 / 32%));
}

.artifact-cluster {
  position: absolute;
  inset: 252px 28px 30px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.9rem;
  align-content: end;
}

.artifact-card {
  position: relative;
  min-height: 112px;
  border-radius: 20px;
  padding: 0.95rem;
  overflow: hidden;
}

.artifact-card::after {
  content: '';
  position: absolute;
  inset: auto 1rem 0;
  height: 1px;
  background: linear-gradient(90deg, var(--blue), var(--teal), var(--violet));
  opacity: 0.5;
}

.card-html {
  grid-column: span 7;
}

.card-chart {
  grid-column: span 5;
}

.card-diagram,
.card-formula,
.card-mindmap {
  grid-column: span 4;
}

.artifact-card code,
.artifact-card strong {
  display: block;
  margin-top: 1rem;
  color: #d5dcff;
}

.artifact-card code {
  font-size: 0.85rem;
}

.mini-bars,
.node-map,
.mindmap {
  position: relative;
  min-height: 58px;
  margin-top: 0.85rem;
}

.mini-bars {
  display: flex;
  align-items: end;
  gap: 0.55rem;
}

.mini-bars i {
  width: 20%;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(var(--teal), var(--violet));
}

.mini-bars i:nth-child(1) {
  height: 26px;
}

.mini-bars i:nth-child(2) {
  height: 42px;
}

.mini-bars i:nth-child(3) {
  height: 58px;
}

.mini-bars i:nth-child(4) {
  height: 72px;
}

.node-map i,
.mindmap i {
  position: absolute;
  width: 34px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--violet), #6d5dfc);
}

.node-map i:nth-child(1) {
  left: 0;
  top: 8px;
}

.node-map i:nth-child(2) {
  right: 0;
  top: 0;
}

.node-map i:nth-child(3) {
  left: 50%;
  bottom: 0;
}

.node-map b {
  position: absolute;
  width: 44px;
  height: 1px;
  background: rgb(247 247 245 / 30%);
  transform: rotate(26deg);
}

.node-map b:nth-of-type(1) {
  left: 34px;
  top: 30px;
}

.node-map b:nth-of-type(2) {
  right: 35px;
  top: 35px;
  transform: rotate(-42deg);
}

.mindmap i {
  width: 20px;
  height: 20px;
}

.mindmap i:nth-child(1) {
  left: 42%;
  top: 30px;
  background: var(--teal);
}

.mindmap i:nth-child(2) {
  left: 12px;
  top: 8px;
}

.mindmap i:nth-child(3) {
  right: 12px;
  top: 14px;
}

.mindmap i:nth-child(4) {
  right: 42px;
  bottom: 4px;
  background: var(--orange);
}

.demo-section,
.waitlist-section {
  padding: 5rem 0 0;
}

.section-heading {
  max-width: 660px;
  margin-bottom: 2rem;
}

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

.video-card {
  border-radius: 24px;
  overflow: hidden;
  transition:
    border-color 180ms ease,
    transform 180ms ease;
}

.video-card:hover {
  border-color: rgb(247 247 245 / 24%);
  transform: translateY(-2px);
}

.video-button {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
}

.video-art {
  display: block;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(130deg, rgb(34 211 197 / 16%) 0%, transparent 42%),
    linear-gradient(145deg, rgb(247 247 245 / 10%), rgb(247 247 245 / 2%));
}

.video-art svg {
  width: 100%;
  height: 100%;
}

.video-art rect {
  fill: rgb(247 247 245 / 8%);
  stroke: rgb(247 247 245 / 14%);
}

.play-control {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  border: 1px solid rgb(247 247 245 / 22%);
  border-radius: 999px;
  background: rgb(11 15 26 / 78%);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 40px rgb(34 211 197 / 17%);
}

.play-control::after {
  content: '';
  position: absolute;
  left: 23px;
  top: 18px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid var(--white);
}

.video-status {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  border: 1px solid rgb(247 247 245 / 14%);
  border-radius: 999px;
  padding: 0.42rem 0.7rem;
  background: rgb(8 11 20 / 72%);
  color: var(--muted);
  font-size: 0.78rem;
}

.video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--near-black);
}

.video-copy {
  padding: 1.1rem;
}

.video-copy p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.waitlist-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr);
  gap: 3.5rem;
  align-items: start;
  border-radius: 30px;
  padding: 3rem;
  box-shadow: var(--shadow);
}

.waitlist-form {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

label {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgb(247 247 245 / 13%);
  border-radius: 16px;
  background: rgb(8 11 20 / 72%);
  color: var(--white);
  padding: 0.9rem 1rem;
  transition:
    border-color 180ms ease,
    background 180ms ease;
}

textarea {
  min-height: 116px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgb(167 173 191 / 62%);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgb(34 211 197 / 60%);
  background: rgb(8 11 20 / 86%);
}

.form-message {
  min-height: 1.35rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-message.success {
  color: #8ff1d9;
}

.form-message.error {
  color: #ffb4b4;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.8rem 2rem;
  align-items: center;
  padding: 3.5rem 0 2rem;
  color: var(--muted);
}

.footer-brand {
  color: var(--white);
}

.site-footer p,
.site-footer small {
  margin: 0;
}

.site-footer nav {
  justify-self: end;
}

.site-footer small {
  grid-column: 1 / -1;
  color: var(--muted-soft);
  font-size: 0.82rem;
}

.demo-modal {
  width: min(540px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #0b0f1a;
  color: var(--white);
  box-shadow: var(--shadow);
  padding: 0;
}

.demo-modal::backdrop {
  background: rgb(0 0 0 / 70%);
  backdrop-filter: blur(12px);
}

.modal-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(247 247 245 / 7%);
  color: var(--white);
}

.modal-close svg {
  width: 20px;
  height: 20px;
}

.modal-body {
  padding: 3rem 2rem 2rem;
}

.modal-body h3 {
  margin-bottom: 0.75rem;
  font-family: var(--serif);
  font-size: 2rem;
}

.modal-body p {
  margin-bottom: 0;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    min-height: auto;
  }

  h1 {
    font-size: 4.8rem;
  }

  h2 {
    font-size: 3.2rem;
  }

  .hero-visual {
    min-height: 520px;
  }

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

  .waitlist-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    width: min(100% - 24px, 1120px);
  }

  .brand-word {
    font-size: 1.1rem;
  }

  .header-cta {
    padding-inline: 0.82rem;
    font-size: 0.84rem;
  }

  .hero,
  .demo-section,
  .waitlist-section,
  .site-footer {
    width: min(100% - 24px, 1120px);
  }

  .hero {
    padding-top: 3.4rem;
  }

  h1 {
    font-size: 3.5rem;
  }

  h2 {
    font-size: 2.65rem;
  }

  .hero-subtitle {
    font-size: 1.08rem;
  }

  .hero-actions,
  .hero-actions .button,
  .waitlist-form .button {
    width: 100%;
  }

  .waitlist-panel {
    padding: 1.25rem;
  }

  .hero-visual {
    min-height: 640px;
    border-radius: 24px;
  }

  .signal-card {
    left: 18px;
    top: 24px;
    width: calc(100% - 36px);
  }

  .flow-line {
    top: 190px;
    left: -10px;
    width: 108%;
  }

  .artifact-cluster {
    inset: auto 18px 20px;
    grid-template-columns: 1fr;
  }

  .card-html,
  .card-chart {
    display: none;
  }

  .card-diagram,
  .card-formula,
  .card-mindmap {
    grid-column: auto;
  }

  .artifact-card {
    min-height: 108px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }
}
