:root{
  --bg: #14181c;
  --panel: #1b2126;
  --panel-line: #2b3339;
  --amber: #ffb000;
  --amber-dim: #7a5300;
  --led-green: #3ecf6e;
  --text: #e9e6dc;
  --muted: #8a9199;
  --hazard-dark: #14181c;
}

*{ box-sizing: border-box; }
html{ -webkit-font-smoothing: antialiased; }

body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Sans', sans-serif;
  min-height: 100vh;
  display:flex;
  flex-direction:column;
  background-image:
    radial-gradient(circle at 15% 8%, rgba(255,176,0,0.05), transparent 40%),
    radial-gradient(circle at 85% 92%, rgba(62,207,110,0.04), transparent 45%);
}

a{ color: inherit; }

.sr-only{
  position: absolute;
  left: -9999px;
}

.hazard{
  height: 10px;
  width:100%;
  background: repeating-linear-gradient(
    -45deg,
    var(--amber),
    var(--amber) 12px,
    var(--hazard-dark) 12px,
    var(--hazard-dark) 24px
  );
  flex-shrink:0;
}

/* ---------- header ---------- */
header{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 56px);
  border-bottom: 1px solid var(--panel-line);
}

.brand-mark{
  display:flex;
  align-items:center;
  gap: 12px;
}

.brand-mark img{ display:block; }

.brand-mark span{
  font-family:'IBM Plex Mono', monospace;
  font-weight:600;
  letter-spacing: 0.14em;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--text);
}

.status-chip{
  display:flex;
  align-items:center;
  gap:8px;
  font-family:'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid var(--amber-dim);
  padding: 6px 12px;
  border-radius: 3px;
  background: rgba(255,176,0,0.05);
}

.dot{
  width:7px; height:7px;
  border-radius:50%;
  background: var(--amber);
  box-shadow: 0 0 6px var(--amber);
  animation: blink 1.6s ease-in-out infinite;
}

@keyframes blink{
  0%, 100%{ opacity: 1; }
  50%{ opacity: 0.25; }
}

/* ---------- main ---------- */
main{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 48px clamp(20px, 6vw, 56px) 64px;
}

.console{
  width:100%;
  max-width: 720px;
  text-align:center;
}

.icon-wrap{
  display:flex;
  justify-content:center;
  margin-bottom: 28px;
}

.icon-wrap img{ display:block; width: 88px; height: 88px; }

.eyebrow{
  font-family:'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}

h1{
  font-family:'IBM Plex Mono', monospace;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.05;
  margin: 0 0 18px;
  text-transform: uppercase;
}

h1 .accent{ color: var(--amber); }

.lede{
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 40px;
}

.lede strong{ color: var(--text); font-weight: 500; }

/* ---------- notify form ---------- */
.notify{
  display:flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto 8px;
  flex-wrap: wrap;
  justify-content:center;
}

.notify input[type="email"]{
  flex: 1 1 260px;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  color: var(--text);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  padding: 13px 16px;
  border-radius: 3px;
  outline: none;
  transition: border-color .15s ease;
}

.notify input[type="email"]::placeholder{ color: var(--muted); }

.notify input[type="email"]:focus{
  border-color: var(--amber);
}

.notify button{
  background: var(--amber);
  color: #14181c;
  border: none;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 13px 22px;
  border-radius: 3px;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease;
  flex: 0 0 auto;
}

.notify button:hover{ background: #ffc233; }
.notify button:active{ transform: translateY(1px); }
.notify button:focus-visible,
.notify input:focus-visible{
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.form-note{
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  margin: 12px 0 48px;
}

/* ---------- module status strip ---------- */
.panel{
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 4px;
  padding: 4px 0;
  text-align: left;
}

.panel-row{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 13px 20px;
  border-bottom: 1px solid var(--panel-line);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
}

.panel-row:last-child{ border-bottom: none; }

.panel-row .label{
  display:flex;
  align-items:center;
  gap: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.panel-row .led{
  width:7px; height:7px;
  border-radius:50%;
  background: var(--amber);
  box-shadow: 0 0 5px var(--amber);
  flex-shrink:0;
  animation: blink 2.4s ease-in-out infinite;
}

.panel-row:nth-child(1) .led{ animation-delay: 0s; }
.panel-row:nth-child(2) .led{ animation-delay: .3s; }
.panel-row:nth-child(3) .led{ animation-delay: .6s; }
.panel-row:nth-child(4) .led{ animation-delay: .9s; }

.panel-row .state{
  letter-spacing: 0.1em;
  color: #c98f00;
}

/* ---------- footer ---------- */
footer{
  border-top: 1px solid var(--panel-line);
  padding: 18px clamp(20px, 5vw, 56px);
  display:flex;
  align-items:center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

footer a{ color: var(--muted); text-decoration: none; }
footer a:hover{ color: var(--amber); }

@media (prefers-reduced-motion: reduce){
  .dot, .panel-row .led{ animation: none; opacity: 1; }
}

@media (max-width: 480px){
  header{ flex-direction: column; gap: 14px; align-items: flex-start; }
  .notify{ flex-direction: column; }
  .notify button{ width: 100%; }
}
