:root {
  --ink: #102a43;
  --ink-soft: #486581;
  --paper: #f7f9fc;
  --card: #ffffff;
  --line: #d9e2ec;
  --blue: #1261a0;
  --blue-dark: #0b4979;
  --blue-pale: #e8f2fb;
  --green: #15803d;
  --green-pale: #ecfdf3;
  --amber: #a14707;
  --amber-pale: #fff8e6;
  --shadow: 0 22px 60px rgba(16, 42, 67, .12);
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 92% 5%, rgba(18, 97, 160, .12), transparent 27rem),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a { color: var(--blue-dark); }

.skip-link {
  position: fixed;
  z-index: 100;
  left: 1rem;
  top: -5rem;
  padding: .75rem 1rem;
  background: var(--ink);
  color: white;
  border-radius: .5rem;
}

.skip-link:focus { top: 1rem; }

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--ink);
  border-radius: 13px;
}

.brand-mark svg { width: 27px; fill: #fff; }
.brand-mark .brand-check { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: .98rem; letter-spacing: .01em; }
.brand small { color: var(--ink-soft); font-size: .75rem; }

.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem .85rem;
  border: 1px solid #b7e0c4;
  border-radius: 999px;
  background: var(--green-pale);
  color: #176535;
  font-size: .82rem;
  font-weight: 700;
}

.trust-chip span { width: 8px; height: 8px; border-radius: 50%; background: #22a34a; box-shadow: 0 0 0 4px rgba(34,163,74,.12); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
  padding: clamp(3rem, 7vw, 6.5rem) 0;
}

.eyebrow {
  margin: 0 0 .65rem;
  color: var(--blue);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1, h2, h3 { margin-top: 0; line-height: 1.12; letter-spacing: -.035em; }
h1 { max-width: 750px; margin-bottom: 1.3rem; font-size: clamp(2.7rem, 6vw, 5.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.15rem; }

.lede { max-width: 640px; margin: 0 0 2rem; color: var(--ink-soft); font-size: clamp(1.08rem, 2vw, 1.3rem); }

.notice {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  max-width: 620px;
  padding: 1rem 1.15rem;
  border-radius: 14px;
}

.notice svg { flex: 0 0 24px; width: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.notice p { margin: 0; }
.safe-notice { background: var(--green-pale); color: #205b35; border: 1px solid #c3e8ce; }

.start-card {
  position: relative;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--card);
  border: 1px solid rgba(217, 226, 236, .9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.start-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, #1261a0, #42a5d8); }
.step-kicker { display: inline-block; margin-bottom: .7rem; color: var(--blue); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.start-card h2 { margin-bottom: .5rem; font-size: 1.65rem; }
.start-card > p { color: var(--ink-soft); }

.primary-download {
  display: flex;
  align-items: center;
  gap: .85rem;
  width: 100%;
  margin: 1.25rem 0 1rem;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: white;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(18,97,160,.25);
  transition: transform .18s ease, box-shadow .18s ease;
}

.primary-download:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(18,97,160,.3); }
.primary-download svg { width: 25px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.primary-download small, .primary-download strong { display: block; }
.primary-download small { opacity: .78; font-size: .7rem; }
.primary-download strong { font-size: 1rem; }

.platform-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; margin-top: 1rem; }
.platform-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  padding: .75rem .4rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
}
.platform-button:hover, .platform-button[aria-current="true"] { border-color: #7db7df; background: var(--blue-pale); }
.platform-icon { display: grid; width: 22px; height: 22px; place-items: center; color: var(--blue); font-size: 1rem; }
.windows-icon { grid-template-columns: 1fr 1fr; gap: 2px; }
.windows-icon i { display: block; width: 9px; height: 9px; background: var(--blue); }
.download-note { margin: 1rem 0 0; font-size: .77rem; line-height: 1.45; }

.steps-section { padding: clamp(4rem, 8vw, 7rem) 0; border-top: 1px solid var(--line); }
.section-heading { max-width: 690px; margin-bottom: 2.5rem; }
.section-heading h2 { margin-bottom: 0; }
.section-heading.compact { margin-bottom: 1.6rem; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.steps li { position: relative; min-height: 300px; padding: 1.4rem; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.76); }
.steps li.featured-step { border-color: #94c6e6; background: #f5faff; box-shadow: 0 12px 30px rgba(16,42,67,.08); }
.step-number { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--ink); color: white; font-size: .78rem; font-weight: 800; }
.step-visual { height: 82px; display: flex; align-items: center; justify-content: center; margin: 1.2rem 0; border-radius: 12px; background: #edf3f8; color: var(--blue); }
.download-visual span { font-size: 2.4rem; font-weight: 300; }
.choice-visual { gap: .4rem; padding: .75rem; }
.choice-visual span { flex: 1; padding: .48rem; border: 1px solid var(--line); border-radius: 8px; background: white; text-align: center; font-size: .76rem; }
.choice-visual .selected { background: var(--blue); color: white; border-color: var(--blue); }
.code-visual { flex-direction: column; gap: .25rem; font-family: ui-monospace, monospace; font-size: .82rem; }
.close-visual span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: var(--ink); color: white; font-size: 1.7rem; font-weight: 200; }
.steps h3 { margin-bottom: .55rem; }
.steps p { margin: 0; color: var(--ink-soft); font-size: .9rem; }

.safety-section { padding: clamp(2rem, 5vw, 3.5rem); border: 1px solid #f2d08f; border-radius: var(--radius); background: var(--amber-pale); }
.safety-heading { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.safety-heading h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.safety-heading .eyebrow { color: var(--amber); }
.safety-icon { display: grid; flex: 0 0 48px; width: 48px; height: 48px; place-items: center; border-radius: 50%; background: #f7b84b; color: #5e3107; font-size: 1.4rem; font-weight: 900; }
.safety-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.safety-grid p { margin: 0; padding-top: 1rem; border-top: 1px solid #ebc773; color: #643b18; }

.help-section { padding: clamp(4rem, 9vw, 7rem) 0; }
.help-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
details { border: 1px solid var(--line); border-radius: 14px; background: white; }
summary { cursor: pointer; padding: 1rem 1.1rem; font-weight: 750; }
details p { margin: 0; padding: 0 1.1rem 1.1rem; color: var(--ink-soft); }
code { padding: .12rem .35rem; border-radius: 5px; background: #eaf0f5; color: var(--ink); font-size: .85em; }
.fallback-details { margin-top: 1rem; }
.fallback-content { padding: 0 1.1rem 1.1rem; }
.fallback-content p { padding: 0; }
.fallback-content a { font-weight: 750; }

footer { display: flex; justify-content: space-between; gap: 2rem; padding: 2.2rem 0 3rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .8rem; }
footer p { max-width: 530px; margin: 0; text-align: right; }
.footer-brand strong, .footer-brand span { display: block; }
.footer-brand strong { color: var(--ink); }

:focus-visible { outline: 3px solid #f4a62a; outline-offset: 4px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 2.5rem; }
  .start-card { max-width: 620px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .safety-grid, .help-columns { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site-header, main, footer { width: min(100% - 1.5rem, 1180px); }
  .site-header { min-height: 78px; }
  .trust-chip { display: none; }
  .hero { padding-top: 2.5rem; }
  h1 { font-size: clamp(2.45rem, 13vw, 3.6rem); }
  .steps { grid-template-columns: 1fr; }
  .steps li { min-height: 0; }
  .safety-heading { align-items: flex-start; }
  footer { flex-direction: column; }
  footer p { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
