@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@500;600;700&display=swap');

:root {
  --bg: #fbfbfd;
  --surface: rgba(255,255,255,0.78);
  --surface-strong: #ffffff;
  --ink: #0b0b42;
  --ink-soft: #5d6076;
  --line: rgba(11,11,66,0.10);
  --purple: #7a2cff;
  --violet: #5e45ff;
  --blue: #2f72ff;
  --cyan: #18c7e9;
  --glow: rgba(85, 78, 255, 0.18);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --shadow: 0 22px 80px rgba(29, 26, 90, 0.08);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 25% 15%, rgba(115,49,255,0.055), transparent 25%),
    radial-gradient(circle at 77% 18%, rgba(14,198,234,0.045), transparent 23%),
    linear-gradient(180deg, #fff 0%, #fbfbfd 42%, #f8f8fb 100%);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.page-shell { overflow: hidden; }

.site-header {
  width: min(1180px, calc(100% - 40px));
  height: 76px;
  margin: 14px auto 0;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: sticky;
  top: 12px;
  z-index: 20;
  background: rgba(255,255,255,0.76);
  border: 1px solid rgba(11,11,66,.08);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 40px rgba(26,28,75,.05);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
}

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

.brand span {
  color: var(--ink);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
}

.nav {
  display: flex;
  gap: 28px;
  font-size: 13px;
  color: #42445d;
}

.nav a { transition: .2s ease; }
.nav a:hover { color: var(--ink); }

.desktop-cta { justify-self: end; }

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 126px 0;
  position: relative;
}

.hero {
  min-height: 860px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  color: #777b95;
  margin-bottom: 24px;
}

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

h1 {
  font-family: Manrope, Inter, sans-serif;
  font-size: clamp(62px, 8.6vw, 122px);
  line-height: .93;
  letter-spacing: -.065em;
  max-width: 1020px;
  margin-bottom: 36px;
}

h2 {
  font-family: Manrope, Inter, sans-serif;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -.055em;
  margin-bottom: 0;
}

h3 {
  font-family: Manrope, Inter, sans-serif;
  font-size: 24px;
  letter-spacing: -.03em;
}

.hero-copy {
  max-width: 700px;
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1.75;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 48px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 20px;
  border-radius: 13px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: .2s ease;
  font-weight: 600;
  font-size: 13px;
}

.button-primary {
  background: var(--ink);
  color: white;
  box-shadow: 0 12px 34px rgba(11,11,66,.18);
}
.button-primary:hover { transform: translateY(-1px); }

.button-secondary, .button-quiet {
  background: rgba(255,255,255,.8);
  color: var(--ink);
  border-color: var(--line);
}
.button-secondary:hover, .button-quiet:hover { border-color: rgba(11,11,66,.22); }

.principle {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #777b95;
  font-size: 10px;
  letter-spacing: .12em;
  font-weight: 700;
}

.dot { color: #c3c5d3; }

.hero-visual {
  position: absolute;
  right: -110px;
  top: 185px;
  width: 720px;
  height: 530px;
  pointer-events: none;
  opacity: .98;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(22px);
}
.orb-a {
  width: 180px; height: 180px;
  right: 190px; top: 125px;
  background: rgba(99,65,255,.12);
}
.orb-b {
  width: 150px; height: 150px;
  right: 100px; bottom: 90px;
  background: rgba(20,199,233,.11);
}

.wave {
  position: absolute;
  width: 650px;
  height: 170px;
  border: 5px solid transparent;
  border-top-color: rgba(101,59,255,.65);
  border-radius: 50%;
  transform: rotate(-12deg);
  filter: drop-shadow(0 10px 12px rgba(82, 69, 247, .10));
}
.wave-a { top: 150px; right: -25px; }
.wave-b {
  top: 230px; right: 15px;
  border-top-color: rgba(44,112,255,.60);
  transform: rotate(8deg) scale(.82);
}
.wave-c {
  top: 310px; right: -45px;
  border-top-color: rgba(22,199,234,.55);
  transform: rotate(-6deg) scale(.68);
}

.section-head {
  display: grid;
  grid-template-columns: 1.1fr .7fr;
  gap: 90px;
  align-items: end;
  margin-bottom: 58px;
}

.section-head > p,
.large-copy,
.compute-copy p {
  color: var(--ink-soft);
  line-height: 1.8;
  font-size: 16px;
  margin-bottom: 0;
}

.playground-card {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.drop-zone {
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
  padding: 46px;
  text-align: center;
  position: relative;
  transition: .2s ease;
}
.drop-zone.dragging {
  background: rgba(104,65,255,.04);
  box-shadow: inset 0 0 0 1px rgba(104,65,255,.18);
}
.drop-icon {
  width: 72px;
  color: var(--violet);
  margin-bottom: 24px;
}
.drop-zone h3 { margin-bottom: 10px; }
.drop-zone p {
  color: var(--ink-soft);
  font-size: 13px;
  margin-bottom: 24px;
}

.listen-panel {
  min-height: 480px;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 50% 42%, rgba(92,64,255,.08), transparent 32%),
    rgba(252,252,255,.5);
}

.listen-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 26px;
}
.tiny-label {
  font-size: 10px;
  letter-spacing: .15em;
  font-weight: 700;
  color: #7e8198;
}
.status-pill {
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 9px;
  letter-spacing: .12em;
  font-weight: 700;
  color: #676a82;
}
.status-pill.live {
  color: #285e46;
  background: #eef8f2;
  border-color: rgba(44,129,86,.12);
}

.listen-core {
  flex: 1;
  display: grid;
  place-items: center;
}
.listen-button {
  width: 158px;
  height: 158px;
  border-radius: 50%;
  border: 1px solid rgba(81,60,255,.16);
  color: white;
  background:
    radial-gradient(circle at 35% 28%, #9c43ff 0%, #5c48ff 40%, #1e9fe7 80%, #10c5df 100%);
  box-shadow:
    0 20px 70px rgba(86,68,255,.24),
    inset 0 0 25px rgba(255,255,255,.13);
  cursor: pointer;
  letter-spacing: .18em;
  font-size: 11px;
  font-weight: 700;
  transition: .25s ease;
}
.listen-button:hover { transform: scale(1.03); }
.listen-button.listening {
  animation: pulse 1.3s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 20px 70px rgba(86,68,255,.24); }
  50% { transform: scale(1.055); box-shadow: 0 28px 90px rgba(86,68,255,.35); }
}

.listen-results {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
}
.metric {
  padding: 18px 16px;
  border-right: 1px solid var(--line);
}
.metric:last-child { border-right: 0; }
.metric span {
  display: block;
  color: #8a8da1;
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.metric strong {
  font-size: 12px;
  font-weight: 600;
}

.api-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(255,255,255,.58);
}

.api-card {
  min-height: 270px;
  padding: 28px;
  border-right: 1px solid var(--line);
}
.api-card:last-child { border-right: 0; }
.api-number {
  color: #a1a3b5;
  font-size: 10px;
  letter-spacing: .1em;
  margin-bottom: 64px;
}
.api-card h3 { margin-bottom: 12px; }
.api-card p {
  min-height: 62px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.65;
}
.api-card code {
  display: inline-block;
  margin-top: 18px;
  padding: 8px 10px;
  border-radius: 9px;
  background: #f4f4f8;
  color: #555870;
  font-size: 11px;
}

.code-window {
  margin-top: 22px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0c0c22;
  color: #f5f5fb;
  box-shadow: 0 22px 80px rgba(12,12,34,.12);
}
.code-header {
  height: 52px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 18px;
  font-size: 11px;
  color: #9294aa;
}
.window-dots {
  display: flex;
  gap: 7px;
}
.window-dots i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #373749;
}
.copy-button {
  justify-self: end;
  border: 0;
  background: transparent;
  color: #a8aabd;
  font-size: 10px;
  cursor: pointer;
}
.code-window pre {
  margin: 0;
  padding: 32px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.8;
  font-family: "SFMono-Regular", Consolas, monospace;
}
.c-purple { color: #bd93ff; }
.c-cyan { color: #77e6ff; }

.developer-grid {
  display: grid;
  grid-template-columns: 1fr .72fr;
  gap: 90px;
  align-items: center;
}
.large-copy {
  max-width: 670px;
  font-size: 19px;
  margin-top: 28px;
}
.console-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.78);
  padding: 28px;
  box-shadow: var(--shadow);
}
.console-line {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.console-line span { color: #898ca0; }
.console-line strong { font-weight: 600; }
.healthy { color: #2a7d55; }
.usage-bar {
  height: 7px;
  margin-top: 24px;
  border-radius: 999px;
  background: #ececf2;
  overflow: hidden;
}
.usage-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  border-radius: inherit;
}
.console-foot {
  display: flex;
  justify-content: space-between;
  color: #9699aa;
  font-size: 10px;
  margin-top: 10px;
}

.compute-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 54px;
  background:
    radial-gradient(circle at 80% 30%, rgba(48,122,255,.10), transparent 23%),
    radial-gradient(circle at 66% 80%, rgba(129,45,255,.09), transparent 28%),
    rgba(255,255,255,.8);
  display: grid;
  grid-template-columns: 1fr .85fr;
  gap: 80px;
  align-items: center;
}
.compute-copy h2 { margin-bottom: 26px; }
.formula-card {
  padding: 36px;
  border: 1px solid rgba(11,11,66,.09);
  background: rgba(255,255,255,.72);
  border-radius: 24px;
}
.formula-label {
  font-size: 9px;
  letter-spacing: .14em;
  color: #8e91a5;
  font-weight: 700;
  margin-bottom: 22px;
}
.formula {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: -.04em;
  margin-bottom: 30px;
}
.formula-notes {
  display: grid;
  gap: 12px;
  color: #777a91;
  font-size: 12px;
}
.formula-notes b {
  color: var(--ink);
  display: inline-block;
  width: 20px;
}

.research-stack {
  border-top: 1px solid var(--line);
}
.research-row {
  min-height: 92px;
  display: grid;
  grid-template-columns: 70px 1fr 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  transition: .2s ease;
}
.research-row:hover { padding-left: 10px; }
.research-row span {
  font-size: 10px;
  letter-spacing: .12em;
  color: #9a9cad;
}
.research-row strong {
  font-size: 18px;
  font-weight: 600;
}
.research-row em {
  color: #85889c;
  font-size: 12px;
  font-style: normal;
}

.applications-section { padding-top: 78px; padding-bottom: 78px; }
.application-marquee {
  display: flex;
  gap: 42px;
  flex-wrap: wrap;
  color: #989aac;
  font-size: 11px;
  letter-spacing: .12em;
  font-weight: 700;
}
.application-marquee span { white-space: nowrap; }

.status-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.72);
  font-size: 12px;
}
.status-card > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.status-dot {
  width: 8px; height: 8px;
  background: #36b476;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(54,180,118,.10);
}
.muted { color: #9294a7; }

.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 48px 0 60px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: end;
}
.footer-brand .brand img {
  width: 43px;
  height: 30px;
}

.footer-brand .brand span {
  font-size: 23px;
}
.footer-brand p, .footer-note {
  color: #9699aa;
  font-size: 10px;
}
.footer-links {
  display: flex;
  gap: 24px;
  font-size: 11px;
}
.footer-note {
  justify-self: end;
  display: grid;
  gap: 7px;
  text-align: right;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }
  .nav, .desktop-cta { display: none; }
  .menu-toggle {
    display: grid;
    gap: 5px;
    width: 38px;
    height: 38px;
    place-content: center;
  }
  .menu-toggle span {
    width: 18px;
    height: 1px;
    background: var(--ink);
  }
  .site-header.menu-open .nav {
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 14px;
    background: rgba(255,255,255,.96);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }
  .site-header.menu-open .nav a {
    padding: 14px 12px;
  }
  .hero {
    min-height: 790px;
    padding-top: 140px;
  }
  .hero-visual {
    right: -350px;
    top: 250px;
    opacity: .65;
  }
  .section-head, .developer-grid, .compute-panel {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .playground-card {
    grid-template-columns: 1fr;
  }
  .drop-zone { border-right: 0; border-bottom: 1px solid var(--line); }
  .api-grid { grid-template-columns: 1fr 1fr; }
  .api-card:nth-child(2) { border-right: 0; }
  .api-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .listen-results { grid-template-columns: 1fr 1fr; }
  .metric { border-bottom: 1px solid var(--line); }
  .site-footer {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .footer-note { justify-self: start; text-align: left; }
}

@media (max-width: 620px) {
  .site-header, .section, .site-footer {
    width: min(100% - 24px, 1180px);
  }
  .site-header { height: 66px; top: 8px; }
  .brand { gap: 8px; }
  .brand img { width: 42px; height: 30px; }
  .brand span { font-size: 22px; }
  .section { padding: 90px 0; }
  .hero {
    min-height: 720px;
    padding-top: 120px;
  }
  h1 { font-size: clamp(56px, 18vw, 78px); }
  h2 { font-size: 46px; }
  .hero-copy { font-size: 16px; }
  .hero-actions { width: 100%; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .principle { max-width: 290px; line-height: 1.8; }
  .hero-visual { display: none; }
  .section-head { margin-bottom: 36px; }
  .playground-card, .compute-panel { border-radius: 24px; }
  .drop-zone, .listen-panel { min-height: 410px; }
  .drop-zone { padding: 28px; }
  .listen-results { grid-template-columns: 1fr; }
  .metric { border-right: 0; }
  .api-grid { grid-template-columns: 1fr; }
  .api-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    min-height: 230px;
  }
  .api-card:last-child { border-bottom: 0; }
  .api-number { margin-bottom: 38px; }
  .compute-panel { padding: 28px; }
  .research-row {
    grid-template-columns: 48px 1fr;
    padding: 20px 0;
  }
  .research-row em {
    grid-column: 2;
    margin-top: 7px;
  }
  .status-card {
    align-items: flex-start;
    gap: 18px;
    flex-direction: column;
  }
}
