:root {
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.94);
  --panel2: rgba(30, 41, 59, 0.82);
  --line: rgba(56, 189, 248, 0.24);
  --text: #e5f6ff;
  --muted: #94a3b8;
  --cyan: #22d3ee;
  --blue: #38bdf8;
  --green: #34d399;
  --yellow: #facc15;
  --red: #fb7185;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.18), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(37, 99, 235, 0.22), transparent 34rem),
    var(--bg);
  color: var(--text);
}

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

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

.demo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0 28px;
}

.demo-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.demo-brand strong {
  font-size: 1.05rem;
  letter-spacing: .04em;
}

.demo-brand span {
  color: var(--muted);
  font-size: .86rem;
}

.demo-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.demo-nav a,
.demo-btn,
button.demo-btn {
  border: 1px solid var(--line);
  background: rgba(14, 165, 233, 0.12);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

.demo-btn.primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #031525;
  border: 0;
}

.demo-btn.danger {
  background: rgba(251, 113, 133, 0.12);
  border-color: rgba(251, 113, 133, 0.35);
  color: #fecdd3;
}

.hero-panel,
.demo-card,
.auth-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15,23,42,.96), rgba(2,6,23,.92));
  border-radius: 26px;
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
}

.hero-panel {
  padding: 42px;
}

.eyebrow {
  color: var(--cyan);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-weight: 800;
}

h1 {
  margin: 14px 0;
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  line-height: 1;
}

h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
}

p { color: var(--muted); line-height: 1.65; }

.demo-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.demo-card {
  grid-column: span 4;
  padding: 22px;
}

.demo-card.wide { grid-column: span 8; }
.demo-card.full { grid-column: 1 / -1; }

.stat {
  font-size: 2rem;
  font-weight: 900;
  color: white;
}

.badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
  font-size: .8rem;
  font-weight: 800;
}

.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(460px, 100%);
  padding: 28px;
}

label {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  color: var(--text);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.9);
  color: var(--text);
  padding: 13px 14px;
  outline: none;
}

textarea {
  min-height: 170px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
}

.table th,
.table td {
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  padding: 14px;
  text-align: left;
}

.table th {
  color: var(--cyan);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.output-box {
  min-height: 180px;
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.74);
  padding: 16px;
  white-space: pre-wrap;
  color: #dbeafe;
  overflow: auto;
}

.notice {
  border: 1px solid rgba(250, 204, 21, 0.35);
  background: rgba(250, 204, 21, 0.08);
  color: #fde68a;
  padding: 14px;
  border-radius: 18px;
}

@media (max-width: 850px) {
  .demo-header { align-items: flex-start; flex-direction: column; }
  .hero-panel { padding: 26px; }
  .demo-card,
  .demo-card.wide { grid-column: 1 / -1; }
}
