:root {
  color-scheme: dark;
  --bg: #0b0c10;
  --panel: rgba(20, 23, 31, 0.82);
  --panel-strong: #11141c;
  --text: #f4f1e8;
  --muted: #a9a396;
  --line: rgba(244, 241, 232, 0.14);
  --accent: #f0c35a;
  --accent-strong: #ffd978;
  --danger: #ff847c;
  --success: #9fe6b8;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  background:
    radial-gradient(circle at top left, rgba(240, 195, 90, 0.18), transparent 34rem),
    linear-gradient(135deg, #090a0d 0%, #10131a 55%, #090a0d 100%);
  color: var(--text);
}

button,
input,
select {
  font: inherit;
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
}

.hero {
  max-width: 760px;
  margin-bottom: 32px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 720px;
  font-size: clamp(2.6rem, 8vw, 6.4rem);
  line-height: 0.88;
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  line-height: 0.98;
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.demo-card,
.integration-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.demo-card {
  padding: clamp(20px, 4vw, 36px);
}

.demo-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
}

.environment-pill {
  flex: none;
  border: 1px solid rgba(240, 195, 90, 0.28);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--accent-strong);
  background: rgba(240, 195, 90, 0.08);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
}

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

.demo-form label {
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  outline: none;
}

input:focus,
select:focus {
  border-color: rgba(240, 195, 90, 0.75);
  box-shadow: 0 0 0 4px rgba(240, 195, 90, 0.12);
}

button {
  border: 0;
  border-radius: 16px;
  padding: 14px 18px;
  color: #17130a;
  background: var(--accent);
  cursor: pointer;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
}

button:hover {
  background: var(--accent-strong);
}

.status {
  min-height: 24px;
  margin: 22px 0;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

.status.error {
  color: var(--danger);
}

.status.success {
  color: var(--success);
}

.widget-container {
  min-height: 220px;
  overflow: hidden;
  border: 1px dashed rgba(244, 241, 232, 0.2);
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.18);
}

.integration-card {
  margin-top: 28px;
  padding: clamp(20px, 4vw, 36px);
}

pre {
  overflow-x: auto;
  margin: 22px 0 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  background: var(--panel-strong);
  color: #efe7d2;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1120px);
    padding: 32px 0;
  }

  .demo-header,
  .input-row {
    grid-template-columns: 1fr;
  }

  .demo-header {
    display: grid;
  }

  button {
    width: 100%;
  }
}
