:root {
  color-scheme: light dark;
  --ink: #171725;
  --muted: #656575;
  --line: rgba(83, 84, 112, 0.16);
  --paper: #f7f7fb;
  --surface: rgba(255, 255, 255, 0.82);
  --accent: #5d5fef;
  --violet: #8a4ff5;
  --mint: #3fc6a5;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 0%, rgba(93, 95, 239, 0.16), transparent 30rem),
    radial-gradient(circle at 92% 8%, rgba(138, 79, 245, 0.12), transparent 28rem),
    var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a { color: inherit; }

.shell {
  width: min(1080px, calc(100% - 36px));
  margin: 0 auto;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--accent), var(--violet));
  color: white;
  box-shadow: 0 8px 24px rgba(93, 95, 239, 0.26);
}

.mark::before {
  content: "";
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 5px;
  box-shadow: inset 0 -5px 0 rgba(255, 255, 255, 0.18);
}

nav { display: flex; gap: 22px; }
nav a { color: var(--muted); font-size: 0.92rem; font-weight: 650; text-decoration: none; }
nav a:hover { color: var(--accent); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  align-items: center;
  gap: 64px;
  min-height: 640px;
  padding: 68px 0 86px;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, h3 { margin: 0; letter-spacing: -0.045em; line-height: 1.08; }
h1 { max-width: 720px; margin-top: 18px; font-size: clamp(3.25rem, 7vw, 6.7rem); }
h2 { margin-bottom: 20px; font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: 1.18rem; }

.lede { max-width: 620px; margin: 26px 0 0; color: var(--muted); font-size: 1.2rem; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-weight: 720;
  text-decoration: none;
}
.button.secondary { border-color: var(--line); background: var(--surface); color: var(--ink); }

.timeline-card {
  position: relative;
  min-height: 460px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 36px;
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(46, 43, 82, 0.15);
  backdrop-filter: blur(24px);
}

.timeline-card::after {
  position: absolute;
  inset: auto -80px -90px auto;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: rgba(93, 95, 239, 0.12);
  content: "";
}

.date { display: flex; justify-content: space-between; color: var(--muted); font-weight: 650; }
.progress { margin: 24px 0 30px; height: 8px; overflow: hidden; border-radius: 9px; background: rgba(93, 95, 239, 0.12); }
.progress span { display: block; width: 58%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--violet)); }
.slot { display: grid; grid-template-columns: 60px 10px 1fr; align-items: center; gap: 12px; margin: 18px 0; }
.slot time { color: var(--muted); font-variant-numeric: tabular-nums; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(93, 95, 239, 0.12); }
.slot:nth-of-type(4) .dot { background: var(--mint); box-shadow: 0 0 0 5px rgba(63, 198, 165, 0.13); }
.task { padding: 14px 16px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, 0.76); font-weight: 690; }
.task small { display: block; margin-top: 2px; color: var(--muted); font-weight: 500; }

.section { padding: 96px 0; }
.section p { color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.card { padding: 26px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.card p { margin-bottom: 0; }

.document { width: min(820px, calc(100% - 36px)); margin: 62px auto 100px; }
.document .back { display: inline-block; margin-bottom: 32px; color: var(--accent); font-weight: 720; text-decoration: none; }
.document article { padding: clamp(24px, 6vw, 64px); border: 1px solid var(--line); border-radius: 32px; background: var(--surface); box-shadow: 0 24px 68px rgba(46, 43, 82, 0.09); }
.document h1 { font-size: clamp(2.4rem, 6vw, 4.7rem); }
.document h2 { margin: 44px 0 12px; font-size: 1.45rem; letter-spacing: -0.025em; }
.document p, .document li { color: var(--muted); }
.document strong { color: var(--ink); }
.document .updated { margin: 18px 0 40px; }

footer { display: flex; justify-content: space-between; gap: 24px; padding: 28px 0 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
footer div { display: flex; flex-wrap: wrap; gap: 18px; }

@media (max-width: 760px) {
  header { align-items: flex-start; padding: 20px 0; }
  nav { gap: 12px; }
  .hero { grid-template-columns: 1fr; gap: 44px; min-height: auto; padding: 54px 0 78px; }
  .timeline-card { min-height: 420px; }
  .grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; }
}

@media (prefers-color-scheme: dark) {
  :root { --ink: #f5f5fb; --muted: #b0b0c0; --line: rgba(215, 216, 255, 0.14); --paper: #111119; --surface: rgba(31, 31, 44, 0.82); }
  .task { background: rgba(48, 48, 65, 0.82); }
  .button { background: white; color: #171725; }
}
