:root {
  --bg: #0b1220;
  --bg-alt: #0f1830;
  --fg: #eef2f8;
  --muted: #8ea0bf;
  --border: #24334d;
  --accent: #4a7fc4;
  --accent-hover: #5f92d6;
  --card-bg: #121b2e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  letter-spacing: 0.01em;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 24px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
}

.topnav .brand {
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}

.nav-links { display: flex; gap: 24px; flex: 1; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.nav-links a:hover { color: var(--fg); }

.nav-user { display: flex; align-items: center; gap: 8px; }
.nav-user a { color: var(--muted); text-decoration: none; margin-left: 8px; }
.nav-user a:hover { color: var(--fg); }
.avatar { width: 28px; height: 28px; border-radius: 50%; }

.hero {
  text-align: center;
  padding: 96px 16px;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  margin: 0 -16px 32px;
}
.hero h1 {
  font-size: 2.25rem;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.hero p { color: var(--muted); max-width: 520px; margin: 0 auto; }
.hero .hint { color: var(--muted); font-size: 0.85rem; margin-top: 20px; }

.btn-google {
  display: inline-block;
  margin-top: 28px;
  padding: 14px 32px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.btn-google:hover { background: var(--accent-hover); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.card {
  display: block;
  padding: 24px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  text-decoration: none;
  color: var(--fg);
}
.card:hover { border-color: var(--accent); }
.card h2 {
  margin: 0 0 8px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.card p { margin: 0; color: var(--muted); font-size: 0.9rem; }

table { width: 100%; border-collapse: collapse; margin-top: 16px; }
th, td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--border); }
th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
td a { color: var(--accent); }

.muted { color: var(--muted); font-size: 0.9rem; }

.error-box {
  padding: 16px;
  border: 1px solid #c0392b;
  border-radius: 4px;
  color: #e57368;
  margin-top: 16px;
  background: rgba(192, 57, 43, 0.08);
}

.full-bleed {
  margin: 0;
  padding: 0;
  max-width: none;
}

/* ---------- Landing hero (reference-style) ---------- */

.landing-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
}

.landing-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.landing-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(6, 12, 26, 0.55) 0%, rgba(6, 12, 26, 0.35) 35%, rgba(6, 12, 26, 0.75) 100%),
    linear-gradient(90deg, rgba(6, 12, 26, 0.55) 0%, rgba(6, 12, 26, 0.05) 45%, rgba(6, 12, 26, 0.05) 55%, rgba(6, 12, 26, 0.55) 100%);
}

.landing-hero__nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px;
}

.landing-hero__logo img {
  height: 34px;
  display: block;
}

.landing-hero__content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px 120px;
  max-width: 760px;
  margin: 0 auto;
}

.badge {
  display: inline-block;
  padding: 6px 18px;
  border: 1px solid rgba(90, 160, 230, 0.6);
  border-radius: 999px;
  color: #7fc2ff;
  background: rgba(74, 127, 196, 0.12);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.landing-hero__content h1 {
  font-size: 2.75rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0 0 20px;
  color: #fff;
}

.landing-hero__content p {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.6;
}

.landing-hero__actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.landing-hero__content .hint {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 24px;
  opacity: 0.8;
}

.btn-pill {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: filter 0.15s ease, background 0.15s ease;
}

.btn-pill--primary {
  color: #fff;
  background: linear-gradient(135deg, #2f9bf0 0%, var(--accent) 100%);
  box-shadow: 0 8px 24px rgba(47, 155, 240, 0.35);
}
.btn-pill--primary:hover { filter: brightness(1.08); }

.btn-pill--ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 10px 24px;
  font-size: 0.78rem;
}
.btn-pill--ghost:hover { background: rgba(255, 255, 255, 0.16); }

@media (max-width: 640px) {
  .landing-hero__nav { padding: 20px 20px; }
  .landing-hero__content h1 { font-size: 2rem; }
  .landing-hero__actions { flex-direction: column; width: 100%; }
  .btn-pill { text-align: center; }
}
