/* Atlas — Brand & Layout */

:root {
  --atlas-navy: #0a2540;
  --atlas-blue: #1e6fd9;
  --atlas-cyan: #4ec9c1;
  --atlas-gold: #f5b800;
  --atlas-bg: #f4f7fb;
  --atlas-surface: #ffffff;
  --atlas-text: #0a2540;
  --atlas-muted: #6b7c93;
  --atlas-border: #e3e8ef;
  --atlas-accent: #4ec9c1;
  --atlas-danger: #e85a4f;
  --atlas-success: #2ec27e;

  /* WhatsApp palette for player chat */
  --wa-bg: #efeae2;
  --wa-bot: #ffffff;
  --wa-user: #d9fdd3;
  --wa-header: #075e54;
  --wa-header-text: #ffffff;
  --wa-text: #111b21;
  --wa-muted: #667781;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 3px rgba(10, 37, 64, 0.06);
  --shadow-md: 0 4px 12px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 12px 32px rgba(10, 37, 64, 0.12);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--atlas-text);
  background: var(--atlas-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--atlas-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--atlas-navy); margin: 0 0 0.5em; line-height: 1.2; }
h1 { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 1.7rem; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--atlas-text); }
.lede { font-size: 1.15rem; color: var(--atlas-muted); }

/* ───────────────── Brand bar ───────────────── */

.brand-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px;
  background: var(--atlas-surface);
  border-bottom: 1px solid var(--atlas-border);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.3rem; color: var(--atlas-navy); }
.brand-mark { font-size: 1.5rem; }
.brand-tag { font-size: 0.85rem; color: var(--atlas-muted); }

/* ───────────────── Landing — Hero ───────────────── */

.landing { min-height: 100vh; display: flex; flex-direction: column; }

.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  padding: 56px 56px 32px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.hero-copy h1 { margin-bottom: 16px; }
.hero-copy .lede { margin-bottom: 28px; max-width: 56ch; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.stat {
  background: var(--atlas-surface);
  border: 1px solid var(--atlas-border);
  border-radius: var(--r-md);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat .num {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--atlas-blue);
}
.stat .lbl { font-size: 0.78rem; color: var(--atlas-muted); }

/* Phone frame mock */
.hero-card { display: flex; align-items: center; justify-content: center; }
.phone-frame {
  width: 280px;
  height: 540px;
  background: var(--wa-bg);
  border-radius: 32px;
  border: 8px solid #1f2c34;
  padding: 16px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.phone-status {
  font-size: 0.7rem;
  color: #1f2c34;
  text-align: center;
  margin-bottom: 12px;
  font-weight: 600;
}
.phone-chat { display: flex; flex-direction: column; gap: 8px; }
.bubble {
  max-width: 80%;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 0.85rem;
  box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
}
.bubble.bot { background: var(--wa-bot); align-self: flex-start; }
.bubble.user { background: var(--wa-user); align-self: flex-end; }

/* ───────────────── Three entry cards ───────────────── */

.entries { padding: 32px 56px; max-width: 1280px; margin: 0 auto; width: 100%; }
.entries h2 { margin-bottom: 24px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--atlas-surface);
  border: 1px solid var(--atlas-border);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
  color: var(--atlas-text);
  text-decoration: none;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.card .card-icon { font-size: 2rem; margin-bottom: 12px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--atlas-muted); font-size: 0.95rem; flex: 1; }
.card-cta {
  margin-top: 16px;
  font-weight: 600;
  color: var(--atlas-blue);
}
.card.player { border-top: 4px solid var(--atlas-cyan); }
.card.employer { border-top: 4px solid var(--atlas-blue); }
.card.policymaker { border-top: 4px solid var(--atlas-gold); }

/* ───────────────── Brief table ───────────────── */

.brief { padding: 32px 56px; max-width: 1280px; margin: 0 auto; width: 100%; }
.brief-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--atlas-surface);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.brief-table th, .brief-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--atlas-border); }
.brief-table th { background: var(--atlas-navy); color: white; font-weight: 600; font-size: 0.95rem; }
.brief-table td { font-size: 0.92rem; }
.brief-table td:first-child { font-weight: 600; color: var(--atlas-navy); }

/* ───────────────── Footer ───────────────── */

.foot {
  margin-top: auto;
  padding: 24px 56px;
  border-top: 1px solid var(--atlas-border);
  background: var(--atlas-surface);
  font-size: 0.85rem;
  color: var(--atlas-muted);
  text-align: center;
}
.foot-legal { font-size: 0.75rem; margin-top: 6px; opacity: 0.7; }

/* ───────────────── Responsive ───────────────── */

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding: 32px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .entries, .brief { padding: 24px; }
  h1 { font-size: 2rem; }
}
