/* Nofly portal — iCloud-like landing, Gotham briefing, role-gated tiles. */
:root {
  --bg0: #f5f5f7;
  --bg1: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --accent: #0071e3;
  --accent-press: #0077ed;
  --tile: #ffffff;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  --ops-bg: #0c1118;
  --ops-ink: #e8eef6;
  --ops-muted: #8b97a8;
  --ops-line: rgba(255, 255, 255, 0.08);
  --ops-green: #3dd68c;
  --ops-amber: #f5a524;
  --ops-red: #ff6369;
}

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

html, body {
  min-height: 100%;
  background: var(--bg0);
  color: var(--ink);
  font: 17px/1.45 "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

.landing {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, #dce8f8 0%, transparent 55%),
    linear-gradient(180deg, #fbfbfd 0%, #eef1f5 100%);
  padding: 2rem;
}

.landing-inner {
  text-align: center;
  max-width: 28rem;
}

.wordmark {
  font-size: clamp(3.5rem, 12vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.tagline {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 1.15rem;
  font-weight: 400;
}

.cta {
  margin-top: 2rem;
  appearance: none;
  border: 0;
  border-radius: 980px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 500;
  padding: 0.85rem 1.75rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.cta:hover { background: var(--accent-press); }
.cta:active { transform: scale(0.98); }

.home {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 3rem;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0 1.25rem;
  border-bottom: 1px solid var(--line);
}

.wordmark-sm {
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.35rem;
}

.user-meta {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.9rem;
}

.ghost {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
}

.briefing {
  margin-top: 1.75rem;
  background: var(--ops-bg);
  color: var(--ops-ink);
  border-radius: 18px;
  padding: 1.25rem 1.35rem 1.1rem;
  box-shadow: var(--shadow);
}

.briefing-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.briefing h2 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ops-muted);
}

.briefing .muted,
.muted { color: var(--ops-muted); font-size: 0.85rem; }

.briefing-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.stat {
  border: 1px solid var(--ops-line);
  border-radius: 12px;
  padding: 0.85rem 0.9rem;
  background: rgba(255, 255, 255, 0.03);
}

.stat .label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ops-muted);
  margin-bottom: 0.35rem;
}

.stat .value {
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.stat .value.warn { color: var(--ops-amber); }
.stat .value.bad { color: var(--ops-red); }
.stat .value.good { color: var(--ops-green); }

.briefing-events {
  margin-top: 1rem;
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: var(--ops-muted);
}

.briefing-events .ev {
  display: flex;
  gap: 0.65rem;
  border-top: 1px solid var(--ops-line);
  padding-top: 0.4rem;
}
.briefing-events .ev:first-child { border-top: 0; padding-top: 0; }
.briefing-events .tag {
  font-weight: 600;
  min-width: 4.5rem;
  color: var(--ops-ink);
}

.tiles-section {
  margin-top: 2.25rem;
}

.tiles-section h2 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 1rem;
}

.tile {
  appearance: none;
  border: 0;
  background: var(--tile);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 1.15rem 0.9rem 1rem;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  min-height: 8.5rem;
}
.tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.tile-icon {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  color: #fff;
}

.tile-label {
  font-size: 0.95rem;
  font-weight: 500;
}

.tile-sub {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: -0.45rem;
}

.tile-hint {
  margin-top: 1rem;
  color: var(--muted) !important;
}

@media (max-width: 720px) {
  .briefing-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home { padding: 1rem 1rem 2.5rem; }
}
