/* =============================================================================
 * FILE: site/assets/styles.css
 * WHAT: The look of the hub. Same dark palette as CenterStage
 *       (CenterStage: web/src/styles/base.css) so the two feel like one
 *       system.
 * ===========================================================================*/

/* -----------------------------------------------------------------------------
 * SECTION 1: Colours and fonts (copied from CenterStage)
 * ---------------------------------------------------------------------------*/
:root {
  --bg: #000;
  --panel: #111418;
  --card: #161a20;
  --text: #f2f4f7;
  --text-dim: #8a93a0;
  --line: #2a313a;
  --ok: #2ecc71;
  --warn: #f5a623;
  --accent: #4da3ff;
  --pair: #2dd4bf;
  --idle: #6b7280;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* -----------------------------------------------------------------------------
 * SECTION 2: Header (brand mark like CenterStage's "CS" tile)
 * ---------------------------------------------------------------------------*/
.header {
  display: flex;
  align-items: center;
  height: 72px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent);
  color: #04121f;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
}
.brand-name {
  font-size: 19px;
}

/* -----------------------------------------------------------------------------
 * SECTION 3: Page body
 * ---------------------------------------------------------------------------*/
.main {
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 24px;
}
.intro h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.01em;
}
.intro p {
  max-width: 640px;
  margin: 0;
  color: var(--text-dim);
  font-size: 17px;
  line-height: 1.5;
}
.group {
  margin-top: 44px;
}
.group h2 {
  margin: 0 0 14px;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* -----------------------------------------------------------------------------
 * SECTION 4: Tiles (one per tool or guide)
 * ---------------------------------------------------------------------------*/
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.tile {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: 1fr auto;
  gap: 14px 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
a.tile:hover,
a.tile:focus-visible {
  border-color: var(--accent);
  transform: translateY(-2px);
  outline: none;
}
.tile.is-soon {
  opacity: 0.55;
}
.tile-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #0d2238;
  color: var(--accent);
}
.tile-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tile-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tile-name {
  font-size: 19px;
  font-weight: 800;
}
.tile-text {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.45;
}

/* Lock badge: who can open it */
.lock {
  grid-column: 1 / -1;
  justify-self: start;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 12px;
  font-weight: 700;
}
.lock::before {
  margin-right: 6px;
}
.lock-open {
  color: var(--ok);
}
.lock-open::before {
  content: '●';
}
.lock-email {
  color: var(--pair);
}
.lock-email::before {
  content: '✉';
}
.lock-login {
  color: var(--warn);
}
.lock-login::before {
  content: '🔒';
}
.lock-soon {
  color: var(--idle);
}

/* -----------------------------------------------------------------------------
 * SECTION 5: Footer
 * ---------------------------------------------------------------------------*/
.footer {
  padding: 24px;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 13px;
  text-align: center;
}
