:root {
  --page-bg: #07182e;
  --page-ink: #edf8ff;
  --page-muted: rgba(237, 248, 255, .72);
  --page-line: rgba(255, 255, 255, .16);
  --page-panel: rgba(255, 255, 255, .08);
  --page-panel-strong: rgba(255, 255, 255, .12);
  --page-blue: #35c9f4;
  --page-green: #66e6a8;
  --page-radius: 22px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 0;
  background: var(--page-bg);
}

body {
  min-width: 0;
  margin: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(53, 201, 244, .26), transparent 28%),
    linear-gradient(180deg, #061426 0%, #0b2442 44%, #082036 100%);
  color: var(--page-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

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

.demo-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.demo-hero {
  min-height: 92vh;
  display: grid;
  align-content: start;
}

.demo-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}

.demo-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.demo-brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--page-line);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(53, 201, 244, .28), rgba(255, 255, 255, .08));
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.demo-brand strong,
.demo-brand small {
  display: block;
}

.demo-brand strong {
  font-size: 15px;
}

.demo-brand small,
.demo-version,
.demo-kicker,
.demo-lead {
  color: var(--page-muted);
}

.demo-brand small,
.demo-version {
  font-size: 12px;
  font-weight: 750;
}

.demo-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, .8fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  padding: clamp(34px, 8vh, 96px) 0 58px;
}

.demo-kicker {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  max-width: 760px;
  line-height: .96;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(42px, 7vw, 82px);
}

h2 {
  font-size: clamp(28px, 4.4vw, 52px);
}

.demo-lead {
  max-width: 620px;
  margin: 20px 0 0;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.55;
}

.demo-hero-preview {
  min-width: 0;
}

.demo-band {
  border-block: 1px solid var(--page-line);
  background: rgba(255, 255, 255, .04);
}

.demo-workbench {
  display: grid;
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
  gap: 22px;
  padding: 32px 0;
}

.demo-controls,
.demo-live-preview {
  min-width: 0;
  border: 1px solid var(--page-line);
  border-radius: var(--page-radius);
  background: var(--page-panel);
  box-shadow: 0 24px 54px rgba(0, 0, 0, .22);
}

.demo-controls {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 18px;
}

.control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.control-row,
.code-grid label {
  display: grid;
  gap: 7px;
}

.control-row label,
.code-grid span,
.toggle-row {
  color: var(--page-muted);
  font-size: 12px;
  font-weight: 850;
}

.toggle-row {
  display: flex;
  gap: 9px;
  align-items: center;
  min-height: 44px;
  padding-top: 22px;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--page-line);
  border-radius: 12px;
  background: rgba(3, 13, 26, .62);
  color: var(--page-ink);
}

input,
select {
  min-height: 42px;
  padding: 0 12px;
}

textarea {
  resize: vertical;
  min-height: 128px;
  padding: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
}

.code-grid {
  display: grid;
  gap: 12px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.copy-button {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--page-blue), #6de8ff);
  color: #041427;
  font-weight: 900;
  cursor: pointer;
}

.copy-button.secondary {
  border: 1px solid var(--page-line);
  background: var(--page-panel-strong);
  color: var(--page-ink);
}

.demo-live-preview {
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 36px);
}

.preview-frame {
  width: min(100%, 560px);
}

.demo-showcase {
  padding: 58px 0 72px;
}

.showcase-heading {
  margin-bottom: 22px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

@media (max-width: 820px) {
  .demo-shell {
    width: min(100% - 22px, 1160px);
  }

  .demo-hero {
    min-height: auto;
  }

  .demo-hero-grid,
  .demo-workbench,
  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .demo-hero-grid {
    padding-top: 22px;
  }

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

@media (max-width: 360px) {
  .demo-shell {
    width: calc(100% - 16px);
  }

  h1 {
    font-size: 36px;
  }

  .demo-controls,
  .demo-live-preview {
    border-radius: 16px;
  }
}
