/* STUDIO — the HYLO line home. Same chassis language as HYLO (ClearTool/ui/app.css). */
:root {
  --bg: #050608; --chassis-1: #16181d; --chassis-2: #0d0f13; --panel: #0a0c10;
  --line: #22262e; --line-hi: #343a45; --text: #e9ecf2; --dim: #8a93a3; --faint: #4b5262;
  --voice: #f2706d; --room: #6fd0ef; --noise: #f0cf63; --ok: #8fe8bb;
  --lcd: #0b1410; --lcd-text: #d4f9e8;
  --mono: "Cascadia Mono", "Consolas", "SF Mono", monospace;
  --sans: "Segoe UI Variable Display", "Segoe UI", "Arial Hebrew", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0; min-height: 100vh; color: var(--text); font-family: var(--sans);
  background: radial-gradient(1200px 700px at 50% 30%, #12151c 0%, var(--bg) 70%) fixed, var(--bg);
  display: grid; place-items: center; padding: 24px 16px;
}
button, input { font: inherit; color: inherit; }

.chassis {
  position: relative; width: min(1180px, 100%);
  padding: 26px 30px 22px; border-radius: 22px;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    linear-gradient(180deg, var(--chassis-1), var(--chassis-2));
  box-shadow: 0 0 0 1px #000, inset 0 1px 0 #ffffff14, inset 0 -1px 0 #00000080, 0 30px 80px #000000c0;
}
.screw { position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #5a606b, #22262d 70%); box-shadow: inset 0 0 0 1px #0007; }
.screw::after { content: ""; position: absolute; left: 2px; right: 2px; top: 4.5px; height: 1px; background: #0009; transform: rotate(35deg); }
.screw.tl { left: 12px; top: 12px; } .screw.tr { right: 12px; top: 12px; }
.screw.bl { left: 12px; bottom: 12px; } .screw.br { right: 12px; bottom: 12px; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 6px 22px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 14px; }
.mark { width: 52px; height: 52px; filter: drop-shadow(0 0 10px #7bd8f055); }
.wordmark b { display: block; font-size: 28px; letter-spacing: .32em; font-weight: 600; }
.wordmark b span { font-weight: 300; color: var(--dim); }
.wordmark small { display: block; font-size: 10px; letter-spacing: .34em; color: var(--faint); margin-top: 3px; font-family: var(--mono); }
.lcd { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 8px; background: var(--lcd);
  border: 1px solid #1a2a22; box-shadow: inset 0 2px 8px #000a; font-family: var(--mono); font-size: 12px; color: var(--lcd-text); letter-spacing: .08em; }
.lcd .lbl { color: #6f9d88; font-size: 10px; }
.top-right { display: flex; align-items: center; gap: 10px; }
.ghost { height: 30px; padding: 0 12px; border-radius: 15px; cursor: pointer; background: #14171c; border: 1px solid #2a2f38;
  color: #c3c8d0; font: 600 11px var(--mono); letter-spacing: .12em; text-decoration: none; display: inline-flex; align-items: center; }
.ghost:hover { border-color: var(--line-hi); color: var(--text); }

.title { text-align: center; margin: 30px 0 24px; }
.title h1 { margin: 0; font-weight: 300; font-size: 30px; letter-spacing: .02em; }
.title p { margin: 8px 0 0; color: var(--dim); font-size: 14px; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.card {
  position: relative; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); text-decoration: none; color: inherit;
  box-shadow: inset 0 1px 0 #ffffff0a, 0 10px 30px #0008; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:hover, .card:focus-visible { transform: translateY(-3px); border-color: var(--accent, var(--line-hi)); outline: none;
  box-shadow: inset 0 1px 0 #ffffff0a, 0 16px 40px #000a, 0 0 0 1px var(--accent, transparent), 0 0 28px color-mix(in srgb, var(--accent, #000) 22%, transparent); }
/* the whole tool is shown, never cropped: the picture fits inside, on a dark "screen" */
.shot { position: relative; aspect-ratio: 16 / 9; background: radial-gradient(120% 90% at 50% 40%, #12151c, #07080b);
  border-bottom: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; padding: 12px; }
.shot img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 6px;
  filter: drop-shadow(0 6px 14px #000c); transition: filter .3s ease; }
.card:hover .shot img { filter: drop-shadow(0 6px 14px #000c) brightness(1.08); }
.meta { display: flex; align-items: center; gap: 12px; padding: 14px 16px 16px; }
.meta .nm { font-weight: 600; letter-spacing: .26em; font-size: 17px; }
.meta .tg { font-family: var(--mono); font-size: 9.5px; letter-spacing: .26em; color: var(--faint); margin-top: 3px; }
.meta .go { margin-left: auto; font: 600 11px var(--mono); letter-spacing: .14em; color: var(--dim);
  padding: 7px 12px; border-radius: 14px; border: 1px solid #2a2f38; background: #14171c; white-space: nowrap; }
.card:hover .go { color: var(--text); border-color: var(--accent); }
.led { width: 9px; height: 9px; border-radius: 50%; background: #2a2f38; box-shadow: inset 0 0 0 1px #0008; flex: none; }
.led.on { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.led.wait { background: var(--noise); box-shadow: 0 0 8px var(--noise); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .3; } }

.card.soon { cursor: default; }
.card.soon:hover { transform: none; box-shadow: inset 0 1px 0 #ffffff0a, 0 10px 30px #0008; border-color: var(--line); }
.soon-art { position: absolute; inset: 0; display: grid; place-items: center; }
.soon-art svg { width: 82%; height: 70%; opacity: .9; }
.badge { position: absolute; top: 12px; right: 12px; z-index: 2; font: 600 10px var(--mono); letter-spacing: .2em; padding: 5px 9px; border-radius: 10px;
  background: #000a; border: 1px solid #2a2f38; color: var(--noise); }

.foot { display: flex; justify-content: space-between; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line);
  font: 10px var(--mono); letter-spacing: .2em; color: var(--faint); }

/* login */
.login { width: min(420px, 100%); text-align: center; padding: 34px 30px 28px; }
.login .brand { justify-content: center; margin-bottom: 26px; }
.login form { display: grid; gap: 12px; }
.login input { height: 46px; border-radius: 10px; padding: 0 14px; background: var(--lcd); border: 1px solid #1a2a22; color: var(--lcd-text);
  font-family: var(--mono); font-size: 16px; letter-spacing: .1em; text-align: center; box-shadow: inset 0 2px 8px #000a; }
.login input:focus { outline: none; border-color: #3a6b55; }
.login button { height: 44px; border-radius: 22px; cursor: pointer; border: 1px solid #3a404b; background: linear-gradient(180deg, #23272f, #15181d);
  font: 600 12px var(--mono); letter-spacing: .24em; }
.login button:hover { border-color: #7bd8f0; }
.err { color: var(--voice); font-size: 13px; min-height: 18px; }

@media (max-width: 640px) {
  body { padding: 12px 10px; place-items: start center; }
  .chassis { padding: 20px 16px 16px; border-radius: 16px; }
  .top { flex-wrap: wrap; padding-bottom: 16px; }
  .mark { width: 40px; height: 40px; }
  .wordmark b { font-size: 21px; }
  .lcd { display: none; }
  .title { margin: 20px 0 16px; }
  .title h1 { font-size: 22px; }
  .grid { grid-template-columns: 1fr; gap: 16px; }
  .foot { flex-direction: column; gap: 6px; }
}
