/* =============================================================
   ChillFOLIO landing — Univers U1 Minimal Zen (cohérent ChillBTC)
   Palette: #FAFAF7 / #0B0B0B / #1F6F8F (teal) / #1F6F4A (green) / #B33A3A (red)
   Accent ChillFOLIO = teal — distinct de l'orange Bitcoin de ChillBTC.
   Fonts:   Inter (corps) + IBM Plex Mono (chiffres, code)
   ============================================================= */

:root {
  --bg: #FAFAF7;
  --ink: #0B0B0B;
  --ink-soft: #241B17;
  --accent: #1F6F8F;
  --accent-soft: rgba(31, 111, 143, 0.08);
  --green: #1F6F4A;
  --red: #B33A3A;
  --muted: #6b6b66;
  --line: #e7e6e0;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(0,0,0,.03), 0 4px 16px rgba(0,0,0,.04);
  --radius: 14px;
  --container: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3 { letter-spacing: -0.02em; margin: 0; font-weight: 800; }
h1 { font-size: clamp(48px, 7vw, 88px); line-height: 1.05; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; margin: 0 0 20px; }
h3 { font-size: 20px; line-height: 1.3; margin: 0 0 12px; }
p { margin: 0 0 16px; }
.muted { color: var(--muted); font-size: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  font-weight: 600; font-size: 16px;
  border-radius: 10px;
  text-decoration: none;
  transition: transform .12s ease, background .15s, color .15s;
  border: 1px solid var(--ink);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn-secondary { background: transparent; color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--bg); }

/* ---------- Nav top ---------- */
.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.88);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topnav .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
}
.brand {
  display: flex; align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.topnav-links {
  display: flex; gap: 28px;
  font-size: 14px; font-weight: 500;
}
.topnav-links a {
  text-decoration: none; color: var(--muted);
  transition: color .15s;
}
.topnav-links a:hover { color: var(--accent); }

@media (max-width: 640px) {
  .topnav-links { display: none; }
  .topnav .wrap { padding: 12px 16px; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 64px;
  text-align: center;
}
.wordmark {
  font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.36em;
  color: var(--accent);
  margin-bottom: 24px;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0 0 16px;
}
.tagline {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 40px;
}
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section {
  padding: 80px 0;
  border-top: 1px solid var(--line);
}
.section-lead {
  color: var(--muted);
  max-width: 680px;
  margin: 0 0 40px;
  font-size: 17px;
}

/* ---------- Profils (3 cartes) ---------- */
#profils { background: var(--card); }
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.profile-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex; flex-direction: column;
  position: relative;
  transition: border-color .15s, transform .12s, box-shadow .15s;
}
.profile-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.profile-card.profile-default {
  border-color: var(--accent);
  background: var(--card);
  box-shadow: var(--shadow);
}
.profile-badge {
  position: absolute;
  top: -10px; right: 16px;
  background: var(--accent);
  color: var(--bg);
  font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}
.profile-name {
  font-weight: 800; font-size: 24px;
  margin-bottom: 6px;
}
.profile-tagline {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
  font-style: italic;
}
.profile-weights {
  font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 20px;
  line-height: 1.7;
}
.profile-card.profile-default .profile-weights {
  background: var(--bg);
}
.profile-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
  margin-top: auto;
}
.profile-metrics > div {
  font-size: 12px;
  color: var(--muted);
  font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex; flex-direction: column;
  gap: 2px;
}
.profile-metrics strong {
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  text-transform: none;
}
.profile-card.profile-default .profile-metrics strong {
  color: var(--accent);
}

/* ---------- Classes (4 cartes) ---------- */
.class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.class-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: left;
}
.class-icon {
  font-size: 32px;
  margin-bottom: 12px;
}
.class-name {
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 8px;
}
.class-quadrant {
  font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.class-vehicle {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Galaxie (1 live + 3 WIP) ---------- */
#galaxie { background: var(--card); }
.sibling-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
  margin-bottom: 24px;
}
.sibling-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  display: flex; flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .15s, transform .12s, box-shadow .15s;
}
.sibling-card.sibling-live {
  border-color: var(--green);
}
.sibling-card.sibling-live:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.sibling-card.sibling-wip {
  opacity: 0.55;
  cursor: default;
}
.sibling-status {
  font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.sibling-card.sibling-live .sibling-status { color: var(--green); }
.sibling-card.sibling-wip .sibling-status { color: var(--muted); }
.sibling-name {
  font-weight: 800;
  font-size: 22px;
  margin-bottom: 4px;
}
.sibling-class {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  font-style: italic;
}
.sibling-cta {
  margin-top: auto;
  font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.sibling-card.sibling-live .sibling-cta { color: var(--accent); }
.sibling-card.sibling-wip .sibling-cta { color: var(--muted); }

/* ---------- How ---------- */
.how p, .how ul { font-size: 17px; }
.how ul {
  margin: 16px 0 16px;
  padding-left: 24px;
}
.how li { margin-bottom: 10px; }

/* ---------- Disclaimer ---------- */
.disclaimer {
  background: #FFF4E5;
  border-top: 1px solid #F5D7A6;
  border-bottom: 1px solid #F5D7A6;
  padding: 56px 0;
}
.disclaimer h2 {
  font-size: 20px;
  color: #8B5A00;
  margin-bottom: 12px;
}
.disclaimer p {
  font-size: 15px;
  color: #5C3B00;
  margin: 0;
  max-width: 820px;
}

/* ---------- Footer ---------- */
footer {
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid var(--line);
}
footer p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
footer a { color: var(--muted); text-decoration-color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .hero { padding: 56px 0 48px; }
  section { padding: 56px 0; }
  .profile-metrics { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .profile-metrics strong { font-size: 18px; }
}
