@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Barlow+Condensed:wght@300;400;600;700;900&display=swap');

:root {
  --bg:        #0a0a0a;
  --bg2:       #111111;
  --bg3:       #181818;
  --orange:    #ff6600;
  --orange-dim:#c44d00;
  --orange-lo: #2a1400;
  --amber:     #ffaa00;
  --white:     #e8e8e8;
  --grey:      #555555;
  --grey-lt:   #888888;
  --green:     #00cc66;
  --red:       #ff3344;
  --border:    #2a2a2a;
}

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

html { color-scheme: dark; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Share Tech Mono', monospace;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,0.08) 3px,
    rgba(0,0,0,0.08) 4px
  );
  pointer-events: none;
  z-index: 10;
}

.terminal {
  width: 100%;
  max-width: 720px;
}


/* -- PRELUDE -- */
.prelude {
  min-height: clamp(160px, 28vh, 260px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 30px;
}

.prelude-thesis {
  color: var(--orange);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.1rem, 8vw, 4.2rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 0.95;
  text-transform: uppercase;
  max-width: 10ch;
  text-shadow: 0 0 18px rgba(255, 102, 0, 0.22);
}

.prelude-copy {
  color: var(--grey-lt);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  line-height: 1.45;
  margin-top: 18px;
  max-width: 48ch;
}

/* ── TOP BAR ── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 6px;
}

.topbar-left {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.brand {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.2em;
  color: var(--orange);
  text-transform: uppercase;
}

.pipe { color: var(--grey); margin: 0 2px; }

.label-tag {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--grey-lt);
  text-transform: uppercase;
}

.topbar-right {
  font-size: 0.65rem;
  color: var(--grey-lt);
  letter-spacing: 0.12em;
  text-align: right;
  line-height: 1.5;
}

/* ── HEADER ROW ── */
.header-row {
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 12px;
  margin-bottom: 2px;
}

.header-row .model-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.4rem;
  color: #000;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-row .shutter-badge {
  font-size: 0.68rem;
  color: rgba(0,0,0,0.75);
  letter-spacing: 0.15em;
  text-align: right;
  line-height: 1.6;
}

.header-row .shutter-badge strong {
  display: block;
  font-size: 1.1rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  color: #000;
  letter-spacing: 0.05em;
}


/* ── TABLE ── */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.08s;
  cursor: default;
}

tbody tr:nth-child(even) { background: var(--bg2); }
tbody tr:nth-child(odd)  { background: var(--bg); }

tbody tr:hover {
  background: var(--orange-lo) !important;
}

tbody tr:hover td.key { color: var(--orange); }
tbody tr:hover td.val { color: var(--amber); }

td {
  padding: 8px 12px;
  vertical-align: middle;
}

td.key {
  color: var(--grey-lt);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.68rem;
  width: 38%;
  white-space: nowrap;
  border-right: 1px solid var(--border);
}

td.key em {
  font-style: normal;
  color: var(--grey);
  margin-left: 6px;
  font-size: 0.6rem;
  text-transform: lowercase;
  letter-spacing: 0.08em;
}

td.val {
  color: var(--white);
  letter-spacing: 0.06em;
  padding-left: 16px;
}

td.val a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
  padding-bottom: 1px;
}

td.val a:hover { color: var(--orange); border-bottom-color: var(--orange); }

td.val.accent-orange { color: var(--orange); }
td.val.accent-amber  { color: var(--amber); }
td.val.accent-green  { color: var(--green); }

td.val.is-error    { color: var(--red); }
td.val.is-success  { color: var(--green); }

/* ── INPUTS ── */
td.val input {
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  width: 100%;
  outline: none;
  padding: 0;
  caret-color: var(--orange);
}

td.val input::placeholder {
  color: var(--grey);
}

td.val input:focus {
  color: var(--orange);
}

td.val input[aria-invalid="true"] {
  color: var(--red);
}

/* ── SUBMIT BUTTON ── */
button[type="submit"] {
  background: var(--orange);
  color: #000;
  border: 0;
  padding: 6px 16px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.1s, transform 0.05s;
}

button[type="submit"]:hover:not(:disabled) {
  background: var(--amber);
}

button[type="submit"]:active:not(:disabled) {
  transform: translateY(1px);
}

button[type="submit"]:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── FOOTER ── */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--orange-dim);
  padding-top: 6px;
  margin-top: 2px;
}

.footer-left {
  font-size: 0.6rem;
  color: var(--grey);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  animation: blink 2s infinite;
}
.dot.green  { background: var(--green); animation-delay: 0s; }
.dot.orange { background: var(--orange); animation-delay: 0.4s; }
.dot.amber  { background: var(--amber); animation-delay: 0.8s; }

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

/* ── BRAND CURSOR ── */
.cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--orange);
  vertical-align: bottom;
  margin-left: 3px;
  animation: blink 1s step-end infinite;
}

/* ── ROW LOAD-IN ── */
@keyframes flashIn {
  from { background: var(--orange-lo); }
  to   { background: transparent; }
}

tbody tr { animation: flashIn 0.6s ease both; }
tbody tr:nth-child(1) { animation-delay: 0.05s; }
tbody tr:nth-child(2) { animation-delay: 0.10s; }
tbody tr:nth-child(3) { animation-delay: 0.15s; }
tbody tr:nth-child(4) { animation-delay: 0.20s; }
tbody tr:nth-child(5) { animation-delay: 0.25s; }
tbody tr:nth-child(6) { animation-delay: 0.30s; }
tbody tr:nth-child(7) { animation-delay: 0.35s; }
tbody tr:nth-child(8) { animation-delay: 0.40s; }
tbody tr:nth-child(9) { animation-delay: 0.45s; }

/* ── RESPONSIVE ── */
@media (max-width: 540px) {
  body { padding: 1rem; }
  .prelude { min-height: clamp(150px, 24vh, 220px); padding-bottom: 22px; }
  .prelude-thesis { font-size: clamp(1.9rem, 12vw, 3.4rem); }
  .prelude-copy { font-size: 0.68rem; max-width: 34ch; }
  table { font-size: 0.72rem; }
  td.key { width: 40%; font-size: 0.6rem; padding: 8px 8px; }
  td.val { padding-left: 12px; padding-right: 8px; }
  .header-row .model-name { font-size: 1.1rem; }
  .header-row .shutter-badge { font-size: 0.6rem; }
  .header-row .shutter-badge strong { font-size: 0.95rem; }
  .topbar-right { font-size: 0.58rem; }
  button[type="submit"] { font-size: 0.85rem; padding: 5px 12px; }
}
