:root {
  --bg: #07111f;
  --panel: rgba(255,255,255,0.08);
  --panel-strong: rgba(255,255,255,0.14);
  --text: #f4f8fb;
  --muted: #aab8c8;
  --line: rgba(255,255,255,0.16);
  --accent: #8bd7ff;
  --danger: #fecaca;
  --positive: #bbf7d0;
  --warn: #fde68a;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, rgba(40, 105, 170, .55), transparent 34rem), linear-gradient(160deg, #07111f, #0a1728 48%, #06101c);
  color: var(--text);
}
a { color: inherit; }
button, input, textarea, select { font: inherit; }
.page { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0 72px; }
.hero, .panel, .timeline, .safety, .card, .quick-nav, .modal-card, .drawer, .event-log-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 28px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.25);
}
.hero { padding: clamp(26px, 5vw, 54px); background: linear-gradient(135deg, rgba(255,255,255,0.13), rgba(255,255,255,0.04)); }
.eyebrow, .kicker { color: var(--accent); font-weight: 900; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; margin: 0 0 10px; }
h1 { font-size: clamp(36px, 6vw, 72px); line-height: 1.02; margin: 14px 0; letter-spacing: 0; max-width: 1000px; }
h2 { margin: 0 0 14px; font-size: clamp(24px, 3vw, 36px); letter-spacing: 0; }
h3 { margin: 0 0 10px; }
.lead { color: var(--muted); font-size: clamp(17px, 2vw, 21px); line-height: 1.75; max-width: 900px; }
.notice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.notice { padding: 15px 16px; border-radius: 18px; border: 1px solid var(--line); font-weight: 800; line-height: 1.5; }
.notice.positive { color: var(--positive); background: rgba(34,197,94,0.09); }
.notice.danger { color: var(--danger); background: rgba(239,68,68,0.09); }
.hero-actions, .section-head, .button-group, .status-strip { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--text); color: #07111f; text-decoration: none; font-weight: 900; cursor: pointer; }
.button.ghost, .mini-button, .tool-button, .tab-button, .quick-nav button { background: transparent; color: var(--text); border: 1px solid var(--line); }
.button.compact { min-height: 42px; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 20px 0; }
.card { padding: 22px; }
.card span { display: inline-block; color: var(--accent); font-weight: 900; margin-bottom: 14px; }
.card p, .panel p, .timeline li, .safety p, li, .drawer p { color: var(--muted); line-height: 1.65; }
.panel, .timeline, .safety { padding: clamp(22px, 4vw, 36px); margin-top: 20px; }
.demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field, .result-card { display: grid; gap: 10px; padding: 18px; border-radius: 22px; border: 1px solid var(--line); background: rgba(255,255,255,0.055); }
.field span, .result-card span, .event-log-card span { font-weight: 900; color: #dbeafe; }
.field.small { padding: 12px; }
textarea, pre, input[type="text"], select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: rgba(0,0,0,0.22);
  color: var(--text);
}
textarea, pre { min-height: 260px; resize: vertical; font: 14px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow: auto; }
.feedback-form textarea { min-height: 120px; }
.result-card ul { margin: 0; padding-left: 18px; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.split > div { border: 1px solid var(--line); border-radius: 20px; padding: 18px; background: rgba(255,255,255,0.05); }
.matrix-grid, .checklist-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.matrix-grid article, .checklist-grid label { border: 1px solid var(--line); border-radius: 18px; padding: 16px; background: rgba(255,255,255,0.05); }
.matrix-grid span { display: inline-block; color: var(--accent); font-weight: 900; margin-bottom: 10px; }
.matrix-grid strong { display: block; color: var(--text); margin-bottom: 8px; }
.checklist-grid label { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); line-height: 1.55; font-weight: 800; }
.timeline ol { margin: 0; padding-left: 22px; }
.quick-nav { position: sticky; top: 12px; z-index: 10; display: flex; gap: 8px; flex-wrap: wrap; padding: 10px; margin-bottom: 18px; backdrop-filter: blur(12px); }
.quick-nav button, .mini-button, .tool-button, .tab-button { min-height: 36px; padding: 0 14px; border-radius: 999px; cursor: pointer; font-weight: 800; }
.floating-tools { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: grid; gap: 8px; }
.tool-button { background: rgba(7, 17, 31, .86); backdrop-filter: blur(12px); }
.overlay { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 18px; background: rgba(0,0,0,.58); }
.overlay[hidden], .drawer[hidden] { display: none; }
.modal-card { width: min(640px, 100%); padding: 26px; background: rgba(7,17,31,.96); position: relative; }
.close-button { width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.06); color: var(--text); cursor: pointer; font-size: 22px; }
.modal-card .close-button { position: absolute; top: 16px; right: 16px; }
.guide-list { padding-left: 20px; }
.checkbox-row { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 800; }
.drawer { position: fixed; right: 18px; top: 18px; bottom: 18px; z-index: 55; width: min(520px, calc(100% - 36px)); padding: 20px; overflow: auto; background: rgba(7,17,31,.97); backdrop-filter: blur(18px); }
.drawer-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.tab-row, .form-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.tab-button.active { background: var(--text); color: #07111f; }
.feedback-form { display: grid; gap: 12px; }
.radio-group { border: 1px solid var(--line); border-radius: 18px; padding: 12px; display: flex; gap: 10px; flex-wrap: wrap; }
.radio-group legend { color: var(--muted); font-weight: 900; padding: 0 4px; }
.feedback-preview { min-height: 160px; }
.drawer-note { border: 1px solid var(--line); border-radius: 16px; padding: 12px; background: rgba(139,215,255,.08); }
.status-strip { justify-content: flex-start; border: 1px solid var(--line); border-radius: 20px; padding: 10px; background: rgba(255,255,255,.045); }
.badge { border-radius: 999px; padding: 8px 12px; font-weight: 900; }
.badge.online { color: var(--positive); background: rgba(34,197,94,.09); }
.badge.offline { color: var(--warn); background: rgba(251,191,36,.09); }
.event-log-card { display: grid; gap: 10px; padding: 18px; margin-top: 16px; background: rgba(255,255,255,0.055); }
.event-log-card ol { margin: 0; padding-left: 20px; }
@media (max-width: 900px) {
  .cards, .demo-grid, .split, .notice-grid, .matrix-grid, .checklist-grid { grid-template-columns: 1fr; }
  .page { width: min(100% - 24px, 1180px); padding-top: 28px; }
  .drawer { inset: 10px; width: auto; }
  .floating-tools { right: 12px; bottom: 12px; }
}
