/* Theme v3 — clean with cobalt accent */

:root {
  --bg: #f7fafc;
  --surface: #ffffff;
  --ink: #0b1220;        /* deep slate */
  --muted: #4b5563;      /* slate-600 */
  --accent: #2563eb;     /* cobalt-600 */
  --accent-ink: #1e3a8a; /* cobalt-900 */
  --border: #e5e7eb;     /* slate-200 */
  --shadow: 0 8px 30px rgba(11, 18, 32, 0.08);

  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-6: 1.5rem;
  --s-8: 2rem;
  --s-12: 3rem;
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.muted { color: var(--muted); }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--s-4); }

/* Header */
.header { position: sticky; top: 0; z-index: 40; background: var(--surface); border-bottom: 1px solid var(--border); transition: box-shadow 160ms ease; }
.header--shadow { box-shadow: var(--shadow); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: var(--s-3); font-weight: 700; }
.brand__mark { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), #60a5fa); }
.menu { display: flex; gap: var(--s-4); }
.menu__link { padding: var(--s-2) var(--s-3); border-radius: 8px; color: var(--muted); }
.menu__link:hover { background: #f1f5f9; color: var(--ink); }
.menu__link--active { color: var(--ink); background: #eef2ff; }

/* Sections */
.section { padding: var(--s-12) 0; }
.section--tint { background: linear-gradient(180deg, #f8fbff, #f5f7fb); }
.section__head { margin-bottom: var(--s-6); }
.section__head h2 { margin: 0 0 var(--s-2); font-size: 1.75rem; }

/* Layout helpers */
.stack { display: grid; gap: var(--s-4); }
.cluster { display: inline-flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.grid { display: grid; gap: var(--s-6); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.center { text-align: center; }

/* Hero */
.hero__inner { display: grid; align-items: center; min-height: 48vh; }
.lead { font-size: 1.125rem; color: var(--muted); }

/* Components */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 var(--s-4); border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); background: #f8fafc; }
.btn--primary { background: var(--accent); color: #fff; border-color: transparent; }
.btn--primary:hover { background: #1d4ed8; box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--accent); border-color: var(--accent); }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s-6); box-shadow: 0 1px 2px rgba(11,18,32,0.05); }
.highlight { border-left: 4px solid var(--accent); }

/* Timeline */
.timeline .panel { position: relative; }
.timeline .panel::before { content: ""; position: absolute; left: -14px; top: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* Footer */
.footer { margin-top: var(--s-12); border-top: 1px solid var(--border); background: var(--surface); }
.footer__inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--s-6); padding: var(--s-8) 0; }
.footer__brand { font-weight: 700; }
.footer__nav { display: flex; gap: var(--s-4); }
.footer__nav a { color: var(--muted); }
.footer__nav a:hover { color: var(--ink); }
.legal { color: var(--muted); }

/* Progressive animation */
[data-animate] { opacity: 1; transform: none; transition: opacity 260ms ease, transform 260ms ease; }
html.ready [data-animate] { opacity: 0; transform: translateY(10px); }
html.ready [data-animate].in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr; text-align: center; }
}
@media (max-width: 640px) {
  .header__inner { height: auto; padding: var(--s-4) 0; flex-direction: column; gap: var(--s-4); }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .hero__inner { min-height: auto; }
}