:root {
  --ink: #e7edf5;
  --muted: #8c99ab;
  --line: rgba(148, 163, 184, 0.16);
  --panel: rgba(15, 23, 34, 0.86);
  --accent: #9aabc2;
  --accent-deep: #1b283b;
  --secondary: #71829a;
  --page: #070b12;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 70% 12%, rgba(73, 93, 124, 0.12), transparent 34rem),
    var(--page);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

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

.ambient {
  filter: blur(100px);
  opacity: 0.12;
  pointer-events: none;
  position: fixed;
  border-radius: 999px;
  z-index: -1;
}

.ambient-one {
  background: var(--accent);
  height: 24rem;
  right: -10rem;
  top: 24rem;
  width: 24rem;
}

.ambient-two {
  background: var(--secondary);
  bottom: 2rem;
  height: 18rem;
  left: -7rem;
  width: 18rem;
}

.shell {
  margin: 0 auto;
  max-width: 1180px;
  width: calc(100% - 48px);
}

.topbar {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  height: 76px;
  justify-content: space-between;
}

.brand {
  align-items: center;
  color: var(--ink);
  display: flex;
  font-weight: 700;
  gap: 10px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--accent);
  border-radius: 8px;
  color: #0a101a;
  display: flex;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.topbar-actions {
  align-items: center;
  display: flex;
  gap: 22px;
}

.format-pill,
.preview-badge {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: flex;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  gap: 8px;
  padding: 7px 10px;
}

.pulse {
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
  height: 6px;
  width: 6px;
}

.text-link {
  color: var(--ink);
  font-size: 13px;
  text-decoration: none;
}

.hero {
  padding: 112px 0 96px;
}

.eyebrow {
  color: var(--accent);
  font-family: "DM Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
}

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

h1 {
  font-size: clamp(52px, 8vw, 96px);
  letter-spacing: -0.075em;
  line-height: 0.96;
  margin: 26px 0 30px;
  max-width: 950px;
}

h1 span {
  color: #8390a1;
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin-bottom: 0;
}

.hero-copy {
  color: #aeb8c6;
  font-size: 18px;
  line-height: 1.7;
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 36px 0 30px;
}

.button {
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  justify-content: center;
  padding: 13px 18px;
  text-decoration: none;
  transition: 160ms ease;
}

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

.button.primary {
  background: var(--accent);
  color: #0a101a;
}

.button.secondary {
  border-color: var(--line);
  color: var(--ink);
}

.integrity-line {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 8px;
}

code,
pre {
  font-family: "DM Mono", monospace;
}

.integrity-line code {
  color: #c5cfdb;
}

.dot {
  margin: 0 4px;
}

.demo,
.benchmarks,
.local-run {
  border-top: 1px solid var(--line);
  padding: 92px 0;
}

.section-heading {
  align-items: end;
  display: flex;
  gap: 60px;
  justify-content: space-between;
  margin-bottom: 38px;
}

.section-heading h2 {
  margin-top: 14px;
}

.section-heading > p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 2px;
  max-width: 470px;
}

.workspace {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.tabs {
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 5px;
  padding: 12px;
}

.tab {
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 15px;
}

.tab.active {
  background: var(--accent-deep);
  color: var(--accent);
}

.workspace-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 440px;
}

.input-panel,
.output-panel {
  padding: 30px;
}

.input-panel {
  border-right: 1px solid var(--line);
}

.panel-label {
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin: 26px 0 9px;
}

textarea,
input,
select {
  background: #0b111b;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  outline: none;
  padding: 14px;
  width: 100%;
}

textarea {
  line-height: 1.55;
  resize: vertical;
}

textarea:focus,
input:focus,
select:focus {
  border-color: rgba(154, 171, 194, 0.52);
  box-shadow: 0 0 0 3px rgba(154, 171, 194, 0.1);
}

.field-help {
  color: var(--muted);
  font-size: 12px;
  margin: 9px 0 0;
}

.preview-button {
  margin-top: 18px;
  width: 100%;
}

.output-panel {
  background: rgba(6, 10, 17, 0.54);
  display: flex;
  flex-direction: column;
}

.output-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.preview-badge {
  border-color: rgba(126, 145, 171, 0.34);
  color: #a5b3c7;
  font-size: 9px;
}

#output {
  color: #c6d1df;
  flex: 1;
  font-size: 12px;
  line-height: 1.65;
  margin: 26px 0;
  overflow-x: auto;
  white-space: pre-wrap;
}

.copy-button {
  align-self: flex-end;
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
}

.metric-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
}

.metric-card {
  background: linear-gradient(145deg, rgba(22, 32, 47, 0.82), rgba(11, 17, 27, 0.84));
  border: 1px solid var(--line);
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.metric-card span {
  color: var(--muted);
  font-size: 12px;
}

.metric-card strong {
  color: var(--accent);
  font-size: 36px;
  letter-spacing: -0.05em;
  margin: 14px 0 4px;
}

.metric-card small {
  color: #778497;
}

.caveat {
  align-items: start;
  background: rgba(104, 124, 151, 0.1);
  border: 1px solid rgba(126, 145, 171, 0.22);
  border-radius: 14px;
  display: grid;
  gap: 20px;
  grid-template-columns: 180px 1fr;
  margin-top: 22px;
  padding: 22px;
}

.caveat strong {
  color: #b6c2d2;
  font-size: 13px;
}

.caveat p {
  color: #a5afbd;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 0;
}

.local-run {
  align-items: center;
  display: grid;
  gap: 70px;
  grid-template-columns: 0.8fr 1.2fr;
}

.local-run h2 {
  margin: 14px 0 18px;
}

.local-run p {
  color: var(--muted);
  line-height: 1.7;
}

.local-run pre {
  background: #050912;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #c6d1df;
  font-size: 11px;
  line-height: 1.7;
  margin: 0;
  overflow-x: auto;
  padding: 24px;
}

footer {
  border-top: 1px solid var(--line);
  color: #707d90;
  display: flex;
  font-size: 11px;
  justify-content: space-between;
  padding-bottom: 36px;
  padding-top: 30px;
}

@media (max-width: 820px) {
  .section-heading,
  .local-run {
    align-items: start;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

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

  .input-panel {
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }

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

@media (max-width: 560px) {
  .shell {
    width: calc(100% - 28px);
  }

  .format-pill {
    display: none;
  }

  .hero {
    padding: 80px 0 72px;
  }

  h1 {
    font-size: 50px;
  }

  .demo,
  .benchmarks,
  .local-run {
    padding: 70px 0;
  }

  .tabs {
    overflow-x: auto;
  }

  .input-panel,
  .output-panel {
    padding: 22px;
  }

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

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

  footer {
    flex-direction: column;
    gap: 8px;
  }
}
