:root {
  --bg-top: #0b1017;
  --bg-bottom: #090d13;
  --panel: rgba(20, 27, 38, 0.82);
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.05);
  --ink: rgba(255, 255, 255, 0.9);
  --muted: rgba(255, 255, 255, 0.38);
  --accent: #7fb3ff;
  --accent-soft: rgba(127, 179, 255, 0.18);
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

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

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  padding: 14px;
  background:
    radial-gradient(circle at 18% 14%, rgba(127, 179, 255, 0.22), transparent 24%),
    radial-gradient(circle at 84% 20%, rgba(196, 149, 106, 0.09), transparent 22%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  color: var(--ink);
  font-family: "Avenir Next", "Helvetica Neue", system-ui, sans-serif;
}

.shell {
  min-height: calc(100vh - 28px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(15, 21, 31, 0.96), rgba(8, 12, 19, 0.98));
  box-shadow: var(--shadow);
  padding: 18px;
}

.chrome {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 78px;
  padding: 0 2px 18px;
  border-bottom: 1px solid var(--line-soft);
}

.traffic { display: flex; gap: 8px; }
.light {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.12), 0 0 0 1px rgba(0,0,0,0.18);
}
.red { background: #ff5f57; }
.amber { background: #ffbd2e; }
.green { background: #28c840; }

.eyebrow,
.panel-kicker,
.card-tag,
.bottom-kicker,
.microcopy,
.meaning-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow { margin: 0 0 8px; }
h1, h2, p { margin: 0; }

h1 {
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: normal;
  line-height: 1.15;
}

.microcopy {
  text-align: right;
  white-space: nowrap;
}

.layout {
  min-height: calc(100vh - 250px);
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr) minmax(240px, 300px);
  gap: 16px;
  padding: 18px 0;
}

.panel,
.card,
.bottom-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 14px 32px rgba(0,0,0,0.22);
  backdrop-filter: blur(12px);
}

.panel { padding: 18px; }
.panel h2 { margin-top: 4px; font-size: 18px; font-weight: normal; }

.seq-list {
  list-style: none;
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 16px 0 0;
}

.seq-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
}

.seq-item.is-active { border: 1px solid rgba(127,179,255,0.5); }

.seq-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 6px;
  flex-shrink: 0;
}

.seq-label { font-size: 13px; }
.seq-note { margin-top: 4px; color: var(--muted); font-size: 11px; }

.card {
  min-height: 100%;
  padding: 28px;
  display: grid;
  align-content: center;
  gap: 18px;
  background:
    radial-gradient(circle at 22% 14%, var(--accent-soft), transparent 32%),
    linear-gradient(180deg, rgba(11,16,25,0.94), rgba(8,12,19,0.98));
}

.card-title {
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(28px, 4vw, 46px);
  font-style: italic;
  font-weight: normal;
  line-height: 1.1;
}

.card-text {
  max-width: 52ch;
  font-size: clamp(15px, 1.8vw, 19px);
  line-height: 1.65;
  color: rgba(255,255,255,0.72);
}

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

.chip {
  padding: 8px 12px;
  border: 1px solid rgba(127,179,255,0.32);
  border-radius: 999px;
  background: rgba(127,179,255,0.08);
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meaning-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.meaning-block {
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(255,255,255,0.02);
}

.meaning-label { margin: 0 0 8px; color: var(--accent); }
.meaning-text { font-size: 13px; line-height: 1.65; }

.bottom-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.bottom-card {
  padding: 18px 20px;
  background: rgba(127,179,255,0.05);
  border-color: rgba(127,179,255,0.22);
}

.bottom-kicker { margin-bottom: 10px; color: var(--accent); }
.bottom-card p:last-child { font-size: 14px; line-height: 1.7; color: var(--ink); }

@media (max-width: 1100px) {
  .layout { grid-template-columns: 1fr; min-height: 0; }
}

@media (max-width: 720px) {
  body { padding: 8px; }
  .shell { padding: 14px; border-radius: 22px; min-height: calc(100vh - 16px); }
  .chrome { grid-template-columns: 1fr; }
  .microcopy { text-align: left; }
  .bottom-grid { grid-template-columns: 1fr; }
}
