:root {
  color-scheme: light;
  --brand: #5e45b8;
  --brand-hover: #4b3596;
  --brand-soft: #a99bea;
  --white: #ffffff;
  --ink: #1c1926;
  --muted: #625d78;
  --canvas: #fbfafc;
  --line: #ded9ed;
  --dark: #1d1929;
}

* { box-sizing: border-box; }
html { height: 100%; }
body {
  min-height: 100%;
  margin: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  color: var(--ink);
  background: var(--canvas);
  font-family: Montserrat, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 2; padding: .75rem 1rem; color: var(--white); background: var(--brand); }
.masthead, main, footer { width: min(1180px, calc(100% - 3rem)); margin: auto; }
.masthead {
  min-height: clamp(4.5rem, 9vh, 5.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}
.masthead-actions { display: flex; align-items: center; gap: .65rem; }
.masthead-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: .6rem .85rem;
  border: 1px solid var(--line);
  border-radius: .25rem;
  color: var(--ink);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease, transform .2s ease;
}
.masthead-link:hover { border-color: var(--brand); color: var(--brand-hover); transform: translateY(-1px); }
.masthead-link-primary { border-color: var(--brand); color: var(--white); background: var(--brand); }
.masthead-link-primary:hover { color: var(--white); background: var(--brand-hover); }
.brand { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); font-size: 1.35rem; font-weight: 800; letter-spacing: .24em; text-decoration: none; }
.mark { width: 2.15rem; height: 2.15rem; color: var(--brand); flex: none; }

main { min-height: 0; }
.hero {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, .75fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(1.5rem, 5vh, 3.5rem) 0;
}
.hero-copy { max-width: 720px; }
.eyebrow { margin: 0 0 .9rem; color: var(--brand); font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: clamp(.8rem, 2vh, 1.25rem); font-size: clamp(2.6rem, min(6vw, 8vh), 5.4rem); line-height: .96; letter-spacing: -.065em; }
.hero-copy > p:not(.eyebrow) { max-width: 52ch; margin-bottom: 0; color: var(--muted); font-size: clamp(.98rem, 1.6vw, 1.18rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: clamp(1.25rem, 3vh, 2rem); }
.button { display: inline-flex; width: fit-content; align-items: center; gap: .7rem; padding: .85rem 1rem; border-radius: .25rem; font-size: .84rem; font-weight: 800; text-decoration: none; transition: background-color .2s ease, transform .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-dark { color: var(--white); background: var(--dark); }
.button-dark:hover { background: #302a43; }
.button-brand { color: var(--white); background: var(--brand); }
.button-brand:hover { background: var(--brand-hover); }
.button:focus-visible, .brand:focus-visible, .masthead-link:focus-visible { outline: 3px solid var(--brand-soft); outline-offset: 4px; }
.cycle { position: relative; display: grid; place-items: center; width: 100%; max-height: 58vh; aspect-ratio: 1; color: var(--brand); }
.cycle::before { position: absolute; width: 82%; height: 82%; border: 1px solid var(--brand-soft); border-radius: 50%; content: ""; opacity: .45; }
.cycle svg { position: relative; width: 67%; filter: drop-shadow(0 20px 36px rgb(94 69 184 / .16)); }

footer { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: clamp(3.5rem, 7vh, 4.25rem); border-top: 1px solid var(--line); color: var(--muted); font-size: .74rem; }
footer .brand { font-size: .95rem; }
footer .mark { width: 1.55rem; height: 1.55rem; }
footer p { margin: 0; }

@media (max-width: 720px) {
  .masthead { width: min(100% - 1.5rem, 1180px); }
  .masthead-actions { gap: .35rem; }
  .masthead-link { min-height: 2.25rem; padding: .45rem .58rem; font-size: .68rem; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(105px, 26vw); gap: 1rem; }
  .cycle { width: 100%; }
  .hero-actions { gap: .5rem; }
  .button { padding: .7rem .8rem; font-size: .76rem; }
  footer .brand { display: none; }
  footer { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .brand { font-size: 1.05rem; letter-spacing: .18em; }
  .mark { width: 1.8rem; height: 1.8rem; }
  .masthead-link-detail { display: none; }
  .hero { grid-template-columns: 1fr; }
  .cycle { display: none; }
  .eyebrow { margin-bottom: .65rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; justify-content: space-between; }
  footer p { font-size: .67rem; }
}

@media (max-height: 620px) {
  .masthead { min-height: 4rem; }
  .hero { padding: 1rem 0; }
  .eyebrow { margin-bottom: .5rem; }
  .hero-actions { margin-top: .8rem; }
  .cycle { max-height: 45vh; }
  footer { min-height: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .button, .masthead-link { transition: none; }
  .button:hover, .masthead-link:hover { transform: none; }
}
