@font-face {
  font-family: "Inter";
  src: url("./assets/InterVariable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #000;
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.62);
  --line: rgba(255, 255, 255, 0.12);
  --panel: rgba(255, 255, 255, 0.045);
  --green: #24e6ad;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: #000;
}

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

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 64px;
  margin: 0;
  padding: 0 max(32px, calc((100% - 1200px) / 2));
  background: #000;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 740;
  letter-spacing: 0;
}

.brand img {
  display: block;
  width: 26px;
  height: 22px;
  object-fit: contain;
}

.login-button,
.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 720;
  line-height: 1;
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.login-button {
  color: #000;
  background: #fff;
}

.primary-action {
  min-width: 132px;
  color: #000;
  background: #fff;
}

.login-button:hover,
.primary-action:hover {
  color: #000;
  background: #e9e9e9;
  transform: translateY(-1px);
}

.hero {
  display: flex;
  width: min(1200px, calc(100% - 64px));
  min-height: calc(100vh - 64px);
  margin: 0 auto;
  padding: 100px 0 64px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

h1 {
  max-width: 760px;
  margin: 0 0 32px;
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 820;
  line-height: 0.96;
  letter-spacing: 0;
}

.demo-panel[hidden],
.demo-result[hidden] {
  display: none;
}

.demo-panel {
  width: min(720px, 100%);
  margin-top: 34px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #050505;
}

.demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.demo-head span {
  color: #fff;
  font-size: 16px;
}

.demo-head strong {
  color: var(--green);
  font-size: 12px;
  text-transform: uppercase;
}

.demo-form {
  display: grid;
  gap: 12px;
}

.demo-field,
.demo-file {
  display: grid;
  gap: 8px;
}

.demo-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.demo-field textarea,
.demo-field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #fff;
  background: #0d0d0d;
  font: inherit;
  outline: none;
}

.demo-field textarea {
  min-height: 112px;
  resize: vertical;
  padding: 12px;
  line-height: 1.45;
}

.demo-field select {
  min-height: 44px;
  padding: 0 12px;
}

.demo-field textarea:focus,
.demo-field select:focus,
.demo-file:focus-within {
  border-color: rgba(36, 230, 173, 0.72);
}

.demo-field small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.demo-controls {
  display: grid;
  grid-template-columns: minmax(170px, 0.75fr) minmax(220px, 1fr);
  gap: 12px;
  align-items: end;
}

.demo-file {
  min-height: 54px;
  padding: 0 14px;
  border: 1px dashed rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  align-content: center;
  color: #fff;
  background: #0d0d0d;
  cursor: pointer;
  font-size: 13px;
  font-weight: 720;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.demo-file:hover,
.demo-file.is-dragging {
  border-color: rgba(36, 230, 173, 0.78);
  background: rgba(36, 230, 173, 0.1);
}

.demo-file.has-file {
  border-style: solid;
  border-color: rgba(36, 230, 173, 0.58);
}

.demo-file input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.demo-file span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-submit {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  color: #000;
  background: var(--green);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 820;
}

.demo-submit:hover {
  background: #42efbd;
}

.demo-submit:disabled {
  color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
  cursor: default;
}

.demo-status {
  min-height: 18px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.demo-status.is-error {
  color: #ff695f;
}

.demo-status.is-good {
  color: var(--green);
}

.demo-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}

.demo-result audio {
  width: 100%;
  height: 38px;
}

.demo-result a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 780;
}

.demo-result a:hover {
  border-color: rgba(255, 255, 255, 0.32);
}

.site-footer {
  display: flex;
  width: min(1180px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  padding: 22px 0 34px;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

.legal-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.legal-links a:hover {
  color: #fff;
}

.legal-page {
  min-height: 100vh;
  color: var(--text);
  background: #000;
}

.legal-shell {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}

.legal-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #000;
  font-size: 12px;
  font-weight: 760;
}

.legal-nav a:hover {
  color: #fff;
}

.legal-card {
  padding: clamp(22px, 5vw, 42px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #000;
}

.legal-kicker {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
}

.legal-card h1 {
  max-width: 760px;
  margin: 0 0 24px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 0.98;
  letter-spacing: 0;
}

.legal-card h2 {
  margin: 30px 0 10px;
  font-size: 20px;
  line-height: 1.22;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.legal-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.legal-note {
  margin-top: 30px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #fff !important;
  background: var(--panel);
}

@media (max-width: 720px) {
  .hero,
  .site-footer {
    width: calc(100% - 28px);
  }

  .site-header {
    height: 64px;
    padding: 0 14px;
  }

  .hero {
    min-height: calc(100vh - 64px);
    padding: 64px 0 76px;
  }

  h1 {
    font-size: clamp(42px, 14vw, 64px);
  }

  .demo-panel {
    margin-top: 28px;
    padding: 14px;
  }

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