@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --black: #101513;
  --panel: #17201c;
  --green: #9ae37d;
  --lime: #d9ff88;
  --cream: #f1f0e8;
  --muted: #9ca8a1;
  --line: rgba(241, 240, 232, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--cream);
  font-family: 'Space Grotesk', sans-serif;
}

.topbar {
  padding: 20px clamp(20px, 4vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--lime);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  text-decoration: none;
}

.nav-list,
footer ul {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
}

.nav-list a,
footer a {
  color: inherit;
  text-decoration: none;
}

.nav-list a[aria-current='page'],
.nav-list a:hover {
  color: var(--green);
}

main {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
}

.control-header {
  padding: 90px 0 60px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 70px;
  align-items: end;
}

.system-label {
  margin: 0 0 16px;
  color: var(--green);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2 {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(3.8rem, 8vw, 8rem);
  line-height: 0.88;
  letter-spacing: -0.055em;
}

.control-header > p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.75;
}

.dashboard {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 16px;
}

.dashboard article,
.collaboration-tool,
.protocols article {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
}

.status-panel {
  grid-row: span 2;
  padding: 30px;
}

.panel-heading {
  padding-bottom: 22px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
}

.live-dot {
  color: var(--green);
}

.status-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.status-panel li {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  gap: 25px;
  border-bottom: 1px solid var(--line);
}

.status-panel li span {
  color: var(--muted);
  text-align: right;
}

.weather-panel,
.session-panel {
  padding: 30px;
}

.weather-panel strong {
  display: block;
  color: var(--lime);
  font-size: 5.4rem;
  line-height: 1;
}

.weather-panel > span {
  display: block;
  margin-top: 15px;
  color: var(--muted);
}

.weather-bars {
  height: 60px;
  margin-top: 25px;
  display: flex;
  align-items: end;
  gap: 6px;
}

.weather-bars i {
  width: 12%;
  background: var(--green);
  opacity: 0.75;
}

.weather-bars i:nth-child(1) { height: 20%; }
.weather-bars i:nth-child(2) { height: 38%; }
.weather-bars i:nth-child(3) { height: 52%; }
.weather-bars i:nth-child(4) { height: 76%; }
.weather-bars i:nth-child(5) { height: 68%; }
.weather-bars i:nth-child(6) { height: 44%; }
.weather-bars i:nth-child(7) { height: 28%; }
.weather-bars i:nth-child(8) { height: 18%; }

.session-panel h2 {
  margin-bottom: 16px;
  font-size: 2.4rem;
}

.session-panel p,
.protocols p,
.long-note p {
  color: var(--muted);
  line-height: 1.75;
}

.collaboration-tool {
  margin-top: 16px;
  padding: clamp(28px, 5vw, 60px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
}

.tool-copy h2,
.long-note h2 {
  margin-bottom: 22px;
  font-size: clamp(2.8rem, 5vw, 5.4rem);
  line-height: 0.95;
}

.tool-copy > p {
  color: var(--muted);
  line-height: 1.75;
}

.task-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.task-buttons button,
#copy-signal {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  font: inherit;
}

.task-buttons button:hover,
.task-buttons button.is-active,
#copy-signal:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--black);
}

.generated-signal {
  padding: 30px;
  border-radius: 20px;
  background: var(--cream);
  color: var(--black);
}

.generated-signal > span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.generated-signal p {
  margin: 35px 0;
  font-size: 1.45rem;
  line-height: 1.55;
}

#copy-signal {
  border-color: var(--black);
  color: var(--black);
}

#copy-status {
  display: block;
  min-height: 20px;
  margin-top: 12px;
}

.protocols {
  margin: 16px 0 100px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.protocols article {
  padding: 30px;
}

.protocols article > span {
  color: var(--green);
  font-family: 'JetBrains Mono', monospace;
}

.protocols h2 {
  margin: 70px 0 18px;
  font-size: 2rem;
}

.long-note {
  max-width: 940px;
  margin: 0 auto 110px;
}

.long-note p {
  font-size: 1.08rem;
}

footer {
  padding: 36px;
  display: flex;
  justify-content: center;
  border-top: 1px solid var(--line);
}

@media (max-width: 850px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .control-header,
  .dashboard,
  .collaboration-tool,
  .protocols {
    grid-template-columns: 1fr;
  }

  .status-panel {
    grid-row: auto;
  }
}
