/* ============================================================
   SteamOps Demo Hub — visual system
   Reuses the steamops.cloud brand (navy / cyan / orange,
   IBM Plex Sans + Instrument Serif). Dark, cinematic theme.
   ============================================================ */
:root {
  --brand-navy: #15243F;
  --brand-cyan: #7BD0FD;
  --brand-orange: #DE4E13;

  --bg-dark: #0e1a2a;
  --bg-darker: #07101c;
  --ink: #f4f6fa;
  --white-soft: rgba(244, 246, 250, 0.92);
  --white-mute: rgba(184, 200, 214, 0.62);
  --line-dark: rgba(184, 200, 214, 0.14);

  --radius: 18px;
  --radius-sm: 10px;
  --max: 1180px;
  --pad: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-feature-settings: 'ss01', 'ss03';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(1100px 620px at 78% -8%, #18335f 0%, rgba(24,51,95,0) 58%),
    radial-gradient(820px 520px at 8% 4%, #122a52 0%, rgba(18,42,82,0) 55%),
    linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

/* The SteamOps logo is a dark wordmark built for light backgrounds; render it
   white on our dark theme so it stays legible. (No white logo asset exists.) */
.brand-logo, .login-logo, .foot-logo { filter: brightness(0) invert(1); }
.foot-logo { opacity: 0.6; }

/* ---------------- shared bits ---------------- */
.kicker {
  font-size: 11px;
  letter-spacing: 0.24em;
  font-weight: 600;
  color: var(--brand-orange);
  text-transform: uppercase;
  margin: 0 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.kicker::before {
  content: "";
  width: 30px; height: 1px;
  background: currentColor;
  display: inline-block;
  opacity: 0.9;
}

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 999px;
  font-size: 14.5px; font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.btn-sm { padding: 9px 15px; font-size: 13px; }
.btn-block { width: 100%; padding: 15px 18px; }
.btn span[aria-hidden] { display: inline-block; transition: transform .25s ease; }
.btn:hover span[aria-hidden] { transform: translateX(3px); }

.btn-primary {
  background: var(--brand-cyan);
  color: #06223a;
  box-shadow: 0 10px 30px -12px rgba(123, 208, 253, 0.55);
}
.btn-primary:hover { transform: translateY(-1px); background: #9bdbfe; }

.btn-ghost {
  background: transparent;
  color: var(--white-soft);
  border-color: var(--line-dark);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(184, 200, 214, 0.3); }

.textlink { color: var(--brand-cyan); }
.textlink:hover { text-decoration: underline; }

/* ============================================================
   LOGIN
   ============================================================ */
.login-body { display: flex; min-height: 100vh; }
.login-wrap {
  margin: auto;
  width: 100%;
  max-width: 420px;
  padding: 40px var(--pad);
  display: flex; flex-direction: column; align-items: center; gap: 28px;
}
.login-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 38px 34px 34px;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.7);
}
.login-logo { height: 40px; width: auto; margin-bottom: 26px; }
.login-title {
  font-size: 32px; font-weight: 600; line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.login-sub { color: var(--white-mute); font-size: 14.5px; margin: 0 0 22px; line-height: 1.5; }
.login-error {
  background: rgba(222, 78, 19, 0.12);
  border: 1px solid rgba(222, 78, 19, 0.4);
  color: #ffb59a;
  font-size: 13.5px;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  margin: 0 0 18px;
}
.login-form { display: flex; flex-direction: column; gap: 7px; }
.login-form label {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--white-mute); font-weight: 600;
  margin-top: 12px;
}
.login-form input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  color: var(--ink);
  padding: 13px 14px;
  font-size: 15px;
  transition: border-color .2s ease, background .2s ease;
}
.login-form input:focus {
  outline: none;
  border-color: var(--brand-cyan);
  background: rgba(123, 208, 253, 0.06);
}
.login-form .btn-block { margin-top: 22px; }

/* ============================================================
   HUB — top bar + landing
   ============================================================ */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--pad);
  border-bottom: 1px solid var(--line-dark);
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(7, 16, 28, 0.82), rgba(7, 16, 28, 0.5));
}
.brand { display: inline-flex; align-items: center; }
.brand:hover { opacity: 0.85; }
.brand-logo { height: 38px; width: auto; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.who { color: var(--white-mute); font-size: 14px; }

.hub-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 84px) var(--pad) 64px;
}

.intro { margin-bottom: clamp(34px, 5vw, 54px); }
.intro-title {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 700; line-height: 1.04; letter-spacing: -0.025em;
  margin: 0 0 14px;
  max-width: 16ch;
}
.intro-sub {
  color: var(--white-mute);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.6; margin: 0; max-width: 56ch;
}

/* ---------------- demo cards ---------------- */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 22px;
}
.demo-card {
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 300px;
  padding: 32px 30px 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(123, 208, 253, 0.13);
  color: inherit;
  overflow: hidden;
  transition: transform .35s ease, border-color .35s ease, background .35s ease, box-shadow .35s ease;
}
.demo-card.is-live { cursor: pointer; }
.demo-card.is-live:hover {
  transform: translateY(-4px);
  border-color: color-mix(in oklch, var(--brand-cyan) 55%, transparent);
  background: rgba(123, 208, 253, 0.05);
  box-shadow: 0 24px 60px -30px color-mix(in oklch, var(--brand-cyan) 60%, transparent);
}
.demo-card.is-disabled { opacity: 0.6; }

.demo-tag {
  align-self: flex-start;
  padding: 6px 12px;
  border: 1px solid color-mix(in oklch, var(--brand-cyan) 55%, transparent);
  border-radius: 4px;
  color: var(--brand-cyan);
  font-size: 10px; letter-spacing: 0.22em; font-weight: 600; text-transform: uppercase;
}
.demo-status {
  position: absolute; top: 28px; right: 28px;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600;
  padding: 5px 10px; border-radius: 999px;
}
.status-live { color: #06223a; background: var(--brand-cyan); }
.status-building { color: #ffd9c7; background: rgba(222, 78, 19, 0.22); border: 1px solid rgba(222, 78, 19, 0.45); }
.status-soon { color: var(--white-mute); background: rgba(255, 255, 255, 0.06); }

.demo-name {
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1.05; letter-spacing: -0.02em; font-weight: 700;
  margin: 6px 0 2px;
}
.demo-desc { color: var(--white-mute); font-size: 15px; line-height: 1.55; margin: 0; flex: 1; }
.demo-cta {
  margin-top: 12px;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600;
  color: var(--brand-orange);
  display: inline-flex; align-items: center; gap: 8px;
}
.demo-cta.muted { color: var(--white-mute); }
.demo-card.is-live:hover .demo-cta { gap: 14px; }

/* ---------------- 404 / empty ---------------- */
.empty-state { text-align: left; }

/* ---------------- footer ---------------- */
.foot {
  display: flex; align-items: center; gap: 14px;
  justify-content: center;
  padding: 30px var(--pad) 40px;
  color: var(--white-mute);
  font-size: 13px;
  border-top: 1px solid var(--line-dark);
}
.foot-logo { height: 22px; width: auto; opacity: 0.85; }
.login-wrap .foot { border: none; padding: 0; }

@media (max-width: 640px) {
  .demo-grid { grid-template-columns: 1fr; }
  .brand-logo { height: 32px; }
}
