:root {
  color-scheme: dark;
  --bg: #060b14;
  --bg-soft: #091221;
  --panel: rgba(13, 25, 44, 0.72);
  --panel-solid: #0d192b;
  --line: rgba(160, 196, 235, 0.14);
  --line-strong: rgba(160, 207, 255, 0.24);
  --text: #f4f8ff;
  --text-soft: #aabbd1;
  --text-muted: #70839b;
  --blue: #2ea9f3;
  --blue-bright: #6ecbff;
  --blue-deep: #1769c9;
  --teal: #4bd8c8;
  --amber: #ffcf70;
  --shadow: 0 30px 100px rgba(0, 5, 16, 0.52);
  --radius-lg: 34px;
  --radius-md: 24px;
  --shell: min(1240px, calc(100vw - 48px));
  font-family: Inter, "SF Pro Display", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -20%, rgba(30, 105, 200, 0.12), transparent 40%),
    var(--bg);
  color: var(--text);
}

body::selection {
  color: #06101c;
  background: var(--teal);
}

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

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

svg {
  display: block;
}

.page-ambient {
  position: absolute;
  inset: 0 0 auto;
  height: 1100px;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.24;
}

.ambient-orb-blue {
  width: 500px;
  height: 500px;
  top: -180px;
  left: 55%;
  background: #166fda;
}

.ambient-orb-teal {
  width: 360px;
  height: 360px;
  top: 260px;
  right: -180px;
  background: #20b9a8;
  opacity: 0.13;
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(80, 133, 190, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 133, 190, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 92%);
}

.section-shell {
  width: var(--shell);
  margin-inline: auto;
}

.section-pad {
  padding: 140px 0;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  isolation: isolate;
  background: rgba(6, 11, 20, 0.94);
  box-shadow: 0 10px 28px rgba(0, 4, 12, 0.2);
  backdrop-filter: blur(20px) saturate(125%);
  transition: background 180ms ease, box-shadow 180ms ease, backdrop-filter 180ms ease;
}

.site-header::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: -22px;
  left: 0;
  height: 22px;
  pointer-events: none;
  opacity: 0.72;
  background: linear-gradient(to bottom, rgba(6, 11, 20, 0.42), transparent);
  transition: opacity 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(6, 11, 20, 0.985);
  box-shadow: 0 14px 34px rgba(0, 4, 12, 0.32);
  backdrop-filter: blur(24px) saturate(130%);
}

.site-header.is-scrolled::after {
  opacity: 1;
}

.nav-shell {
  width: min(1680px, calc(100vw - 64px));
  height: 76px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: height 180ms ease;
}

.site-header.is-scrolled .nav-shell {
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 17px;
  font-weight: 730;
  letter-spacing: -0.02em;
}

.brand img {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 7px 15px rgba(30, 133, 226, 0.28));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 10px 14px;
  color: var(--text-soft);
  border-radius: 999px;
  font-size: 14px;
  transition: color 160ms ease, background 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
}

.nav-download-mobile {
  display: none;
}

.site-nav .nav-download,
.nav-download-desktop {
  padding-inline: 18px;
  color: #06111f;
  background: #fff;
  font-weight: 700;
}

.site-nav .nav-download {
  margin-left: 8px;
}

.nav-download-desktop {
  display: inline-flex;
  align-items: center;
  align-self: center;
  padding-block: 10px;
  border-radius: 999px;
  font-size: 14px;
  transition: color 160ms ease, background 160ms ease;
}

.site-nav .nav-download:hover,
.site-nav .nav-download.is-active,
.nav-download-desktop:hover {
  color: #06111f;
  background: var(--blue-bright);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.04);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: #fff;
  transition: transform 180ms ease;
}

.hero {
  min-height: min(100vh, 1000px);
  padding: 145px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(420px, 0.86fr) minmax(580px, 1.25fr);
  gap: 62px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 3;
}

.release-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px 7px 8px;
  border: 1px solid rgba(110, 203, 255, 0.18);
  border-radius: 999px;
  color: #cdeaff;
  background: rgba(23, 105, 201, 0.1);
  font-size: 13px;
  font-weight: 650;
}

.release-pill svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.release-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(75, 216, 200, 0.12), 0 0 18px rgba(75, 216, 200, 0.8);
}

.hero h1 {
  margin: 31px 0 25px;
  max-width: 720px;
  font-size: clamp(46px, 4.7vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.055em;
}

.hero h1 span,
.section-heading h2 span,
.workflow-copy h2 span {
  color: transparent;
  background: linear-gradient(95deg, #f5fbff 5%, var(--blue-bright) 48%, var(--teal));
  background-clip: text;
}

.hero-lead {
  max-width: 650px;
  margin: 0;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

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

.button svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.button-primary {
  color: #05101d;
  background: linear-gradient(135deg, #fff 15%, #c9eeff 100%);
  box-shadow: 0 15px 42px rgba(46, 169, 243, 0.2);
}

.button-primary:hover {
  box-shadow: 0 18px 50px rgba(46, 169, 243, 0.32);
}

.button-primary span {
  padding-left: 10px;
  border-left: 1px solid rgba(5, 16, 29, 0.2);
  font-size: 12px;
}

.button-ghost {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
}

.button-ghost:hover {
  border-color: rgba(110, 203, 255, 0.45);
  background: rgba(46, 169, 243, 0.08);
}

.button-ghost svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.hero-note {
  display: flex;
  gap: 18px;
  margin-top: 22px;
  color: var(--text-muted);
  font-size: 12px;
}

.hero-note span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-note i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

.product-stage {
  position: relative;
  width: 820px;
  transform: perspective(1400px) rotateY(-7deg) rotateX(2deg);
  transform-origin: center left;
}

.stage-glow {
  position: absolute;
  inset: 10% 5% -10%;
  border-radius: 50%;
  background: rgba(29, 112, 210, 0.28);
  filter: blur(90px);
}

.ide-window {
  position: relative;
  z-index: 1;
  overflow: hidden;
  width: 100%;
  height: 535px;
  border: 1px solid rgba(146, 202, 255, 0.22);
  border-radius: 18px;
  background: #091322;
  box-shadow: 0 50px 120px rgba(0, 4, 13, 0.7), inset 0 1px rgba(255, 255, 255, 0.04);
}

.ide-titlebar {
  height: 44px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #14253b;
  background: #08111e;
}

.ide-brand {
  width: 138px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding-left: 14px;
  color: #bed0e4;
  font-size: 10px;
  font-weight: 650;
}

.ide-brand img {
  width: 21px;
  height: 21px;
}

.ide-tabs {
  height: 100%;
  display: flex;
  flex: 1;
}

.ide-tab {
  min-width: 176px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border-inline: 1px solid #142238;
  color: #71849b;
  font-size: 9px;
}

.ide-tab.active {
  color: #d9e9f8;
  border-top: 1px solid var(--blue-bright);
  background: #0c1929;
}

.ide-tab i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: #6799cf;
}

.ide-tab b {
  margin-left: auto;
  font-weight: 400;
}

.window-controls {
  display: flex;
  gap: 13px;
  padding-right: 16px;
}

.window-controls i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34475f;
}

.ide-body {
  height: calc(100% - 62px);
  display: grid;
  grid-template-columns: 39px 135px minmax(310px, 1fr) 228px;
}

.activity-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 17px;
  padding-top: 15px;
  border-right: 1px solid #132237;
  background: #07101c;
}

.activity-bar svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #5f738c;
  stroke-width: 1.4;
}

.activity-bar svg.active {
  stroke: var(--blue-bright);
  filter: drop-shadow(0 0 5px rgba(110, 203, 255, 0.35));
}

.activity-bar span {
  flex: 1;
}

.file-panel {
  padding-top: 12px;
  border-right: 1px solid #132237;
  background: #091321;
  color: #71839a;
  font-size: 8px;
}

.panel-label,
.tree-root,
.tree-row,
.tree-file {
  min-height: 25px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
}

.panel-label {
  min-height: 22px;
  justify-content: space-between;
  color: #98aac0;
  font-size: 7px;
  letter-spacing: 0.08em;
}

.panel-label b {
  letter-spacing: 0;
}

.tree-root {
  color: #c1d2e4;
  font-size: 7px;
  font-weight: 700;
}

.tree-row.indent,
.tree-file {
  padding-left: 21px;
}

.tree-file.active {
  color: #ddecfa;
  background: rgba(46, 169, 243, 0.1);
}

.tree-file i {
  width: 13px;
  font-style: normal;
  font-size: 7px;
  font-weight: 800;
}

.tree-file .md { color: #55b9f5; }
.tree-file .rust { color: #f4a26c; }
.tree-file .json { color: #f7d76a; }

.editor-surface {
  min-width: 0;
  background: #0b1625;
}

.editor-toolbar {
  height: 33px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-bottom: 1px solid #14253b;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #667c94;
  font-size: 7px;
}

.breadcrumbs strong {
  color: #b5c8db;
}

.toolbar-actions {
  display: flex;
  gap: 5px;
}

.toolbar-actions i {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid #1e324b;
  border-radius: 4px;
  color: #7890a8;
  font-size: 8px;
  font-style: normal;
}

.editor-document {
  max-width: 455px;
  margin: 42px auto 0;
  padding: 0 32px;
}

.document-kicker {
  color: var(--teal);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.editor-document h2 {
  margin: 12px 0 8px;
  color: #edf7ff;
  font-size: 24px;
  letter-spacing: -0.045em;
}

.editor-document > p {
  margin: 0;
  color: #7e92a9;
  font-size: 9px;
}

.code-card {
  margin-top: 25px;
  padding: 15px 17px;
  border: 1px solid #1c314a;
  border-radius: 10px;
  background: #08111e;
  color: #b9c9da;
  font: 8px/2.05 "Cascadia Code", Consolas, monospace;
  box-shadow: inset 3px 0 var(--blue-deep);
}

.code-keyword { color: #d48ef4; }
.code-muted { color: #7c93ad; }
.code-string { color: #93d98c; }
.code-fn { color: #68c9ff; }
.code-ok { color: var(--teal); }

.document-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.document-features span {
  padding: 5px 7px;
  border: 1px solid #1b3149;
  border-radius: 5px;
  color: #7690a9;
  background: rgba(15, 31, 50, 0.65);
  font-size: 7px;
}

.agent-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border-left: 1px solid #14253b;
  background: #091321;
}

.agent-header {
  height: 33px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 11px;
  border-bottom: 1px solid #14253b;
  color: #c4d5e7;
  font-size: 9px;
  font-weight: 700;
}

.agent-header div {
  display: flex;
  gap: 5px;
}

.agent-header i {
  width: 12px;
  height: 12px;
  border: 1px solid #31465f;
  border-radius: 4px;
}

.agent-model {
  height: 35px;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 9px;
  padding: 0 8px;
  border: 1px solid #1b3149;
  border-radius: 7px;
  color: #b7c9dc;
  font-size: 8px;
}

.agent-model b {
  margin-left: auto;
}

.agent-model strong {
  opacity: 0.72;
  filter: blur(2.2px);
  user-select: none;
}

.model-mark {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #07121f;
  background: var(--teal);
  font-size: 6px;
  font-weight: 900;
}

.agent-thread {
  flex: 1;
  padding: 10px;
  font-size: 8px;
}

.user-message {
  margin-left: 34px;
  padding: 10px;
  border-radius: 9px 9px 2px 9px;
  color: #c8d9e9;
  background: #12253b;
  line-height: 1.55;
}

.agent-message {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 7px;
  margin-top: 15px;
  color: #8ca1b6;
}

.agent-avatar {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #10233a;
}

.agent-avatar img {
  width: 16px;
  height: 16px;
}

.agent-message p {
  margin: 2px 0 9px;
  line-height: 1.55;
}

.tool-call {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  padding: 6px 7px;
  border: 1px solid #192c43;
  border-radius: 6px;
  background: rgba(7, 16, 28, 0.65);
}

.tool-call.done span { color: var(--teal); }

.tool-call.running span {
  width: 6px;
  height: 6px;
  border: 1px solid var(--blue-bright);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.agent-composer {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 9px;
  padding: 0 9px;
  border: 1px solid #203953;
  border-radius: 8px;
  color: #526980;
  font-size: 7px;
}

.agent-composer b {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #06121e;
  background: var(--blue-bright);
  font-size: 11px;
}

.ide-statusbar {
  height: 18px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 10px;
  border-top: 1px solid #193654;
  color: #7db1db;
  background: #0d2b46;
  font-size: 6px;
}

.ide-statusbar b {
  flex: 1;
}

.floating-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 12px 15px;
  border: 1px solid rgba(145, 205, 255, 0.2);
  border-radius: 13px;
  background: rgba(9, 21, 36, 0.78);
  box-shadow: 0 18px 40px rgba(0, 6, 16, 0.38);
  backdrop-filter: blur(16px);
}

.floating-chip b {
  color: #e7f7ff;
  font-size: 12px;
}

.floating-chip span {
  margin-top: 2px;
  color: #7790a9;
  font-size: 8px;
}

.chip-speed {
  right: 27px;
  bottom: -27px;
}

.chip-speed b {
  color: var(--teal);
  font-size: 22px;
}

.chip-agent {
  left: -28px;
  bottom: 38px;
  padding-left: 34px;
}

.pulse-ring {
  position: absolute;
  left: 13px;
  top: 19px;
  width: 9px;
  height: 9px;
  margin: 0 !important;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(75, 216, 200, 0.1);
  animation: pulse 2s ease infinite;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 110px;
  border-bottom: 1px solid var(--line);
}

.metric-strip div {
  padding: 27px 30px;
}

.metric-strip strong,
.metric-strip span {
  display: block;
}

.metric-strip strong {
  color: #f4f9ff;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.metric-strip small {
  color: var(--blue-bright);
  font-size: 13px;
}

.metric-strip span {
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 13px;
}
