:root {
  --ink: #101c36;
  --ink-soft: #526078;
  --navy: #09152c;
  --mint: #57ddb2;
  --mint-dark: #128768;
  --paper: #f3f6f8;
  --white: #fff;
  --line: #dfe6eb;
  --shadow: 0 12px 40px rgba(17, 30, 52, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: clip; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; }
.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }

.hero {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 85% 20%, rgba(87, 221, 178, .16), transparent 28%),
    radial-gradient(circle at 60% 110%, rgba(101, 198, 232, .13), transparent 38%),
    linear-gradient(130deg, var(--navy), #102443 75%, #153151);
}
.hero::after {
  content: "";
  position: absolute;
  width: 360px; height: 360px; right: -170px; bottom: -210px;
  border: 1px solid rgba(255,255,255,.11); border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(255,255,255,.025), 0 0 0 110px rgba(255,255,255,.018);
}
.nav { height: 92px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.1); }
.brand img { width: 190px; max-width: 42vw; max-height: 48px; object-fit: contain; display: block; }
.live-pill { display: inline-flex; align-items: center; gap: 9px; color: #dce6ef; font-size: .82rem; font-weight: 650; letter-spacing: .03em; }
.live-pill span { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(87,221,178,.12); }
.hero-content { min-height: 270px; padding: 48px 0 74px; display: flex; align-items: center; justify-content: space-between; gap: 48px; position: relative; z-index: 1; }
.eyebrow { margin: 0 0 12px; color: var(--mint); font-size: .72rem; font-weight: 800; letter-spacing: .17em; }
.eyebrow.dark { color: var(--mint-dark); }
h1 { margin: 0; max-width: 760px; font-size: clamp(2.45rem, 5.7vw, 4.8rem); line-height: .98; letter-spacing: -.055em; }
h1 em { color: var(--mint); font-family: Georgia, serif; font-weight: 400; }
.intro { max-width: 680px; margin: 22px 0 0; color: #bcc9d9; font-size: 1.02rem; line-height: 1.6; }
.refresh-button { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 11px; padding: 15px 19px; border: 1px solid rgba(255,255,255,.15); border-radius: 11px; color: var(--navy); background: var(--mint); font-weight: 750; cursor: pointer; box-shadow: 0 12px 30px rgba(0,0,0,.16); transition: transform .2s, background .2s; }
.refresh-button:hover { transform: translateY(-2px); background: #6de8c1; }
.refresh-button:disabled { cursor: wait; opacity: .65; transform: none; }
.refresh-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.refresh-button.loading svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.main { position: relative; margin-top: -36px; z-index: 2; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stat-card, .privacy-card { min-width: 0; min-height: 105px; display: flex; align-items: center; gap: 16px; padding: 22px; border: 1px solid rgba(17,30,52,.06); border-radius: 15px; background: rgba(255,255,255,.96); box-shadow: var(--shadow); }
.stat-primary { background: var(--mint); border-color: transparent; }
.stat-icon, .privacy-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; color: var(--mint-dark); background: #e1faf2; font-weight: 850; }
.stat-primary .stat-icon { color: white; background: rgba(9,21,44,.16); }
.stat-card div, .privacy-card div { min-width: 0; display: grid; }
.stat-card strong { font-size: 1.7rem; line-height: 1; letter-spacing: -.04em; }
.privacy-card strong { font-size: 1rem; }
.stat-card div span, .privacy-card div span { margin-top: 8px; color: var(--ink-soft); font-size: .77rem; font-weight: 650; overflow-wrap: anywhere; }
.stat-primary div span { color: #214d43; }

.workspace { padding: 62px 0 52px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.045em; }
.updated-at { color: #79869a; font-size: .78rem; }
.phase-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.phase-card { min-width: 0; min-height: 178px; padding: 24px; border: 1px solid var(--line); border-radius: 15px; background: white; transition: transform .2s, box-shadow .2s, border-color .2s; }
.phase-card:hover { transform: translateY(-3px); border-color: #c5d4dc; box-shadow: var(--shadow); }
.phase-top { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.phase-card h3 { margin: 3px 0 0; font-size: 1.12rem; line-height: 1.3; letter-spacing: -.025em; overflow-wrap: anywhere; }
.phase-count { color: var(--mint-dark); font-size: 2.35rem; line-height: 1; letter-spacing: -.06em; }
.phase-caption { margin: 10px 0 27px; color: var(--ink-soft); font-size: .78rem; font-weight: 650; }
.phase-track { height: 7px; overflow: hidden; border-radius: 99px; background: #e9eef1; }
.phase-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--mint-dark), var(--mint)); }
.message { display: none; padding: 34px; border: 1px dashed #cbd6dc; border-radius: 14px; color: #687589; background: rgba(255,255,255,.6); text-align: center; }
.message.visible { display: block; }
.skeleton { pointer-events: none; }
.skeleton-line { height: 12px; margin: 12px 0; border-radius: 99px; background: linear-gradient(90deg, #edf1f3 25%, #f7f9fa 45%, #edf1f3 65%); background-size: 250% 100%; animation: shimmer 1.3s infinite; }
.skeleton-line.big { height: 36px; width: 38%; margin: 28px 0; }
@keyframes shimmer { to { background-position: -250% 0; } }
.footer { display: flex; justify-content: space-between; gap: 20px; padding: 26px 0 38px; border-top: 1px solid var(--line); color: #7e899a; font-size: .72rem; }

@media (max-width: 940px) {
  .hero-content { align-items: flex-start; flex-direction: column; }
  .phase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .shell { width: min(100% - 24px, 1160px); }
  .nav { height: 76px; }
  .brand img { width: 166px; }
  .hero-content { padding: 42px 0 72px; gap: 30px; }
  .refresh-button { width: 100%; justify-content: center; }
  .stats, .phase-grid { grid-template-columns: 1fr; }
  .stat-card, .privacy-card { min-height: 88px; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .workspace { padding-top: 48px; }
  .footer { flex-direction: column; }
}
