:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0c0d0d;
  color: #f7f6f0;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(circle at 8% 0%, #25261f 0, #0c0d0d 34rem); }
a { color: inherit; }
main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.hero { padding: 100px 0 72px; max-width: 920px; }
.eyebrow { margin: 0 0 18px; color: #d7d72e; font-size: .76rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
h1 { margin: 0; max-width: 900px; font-size: clamp(3rem, 7vw, 6.6rem); line-height: .94; letter-spacing: -.065em; }
.intro { max-width: 760px; margin: 34px 0 0; color: #bbbdb5; font-size: clamp(1.08rem, 2vw, 1.35rem); line-height: 1.55; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; padding: 0 22px; border: 1px solid #3b3d39; border-radius: 999px; font-weight: 750; text-decoration: none; transition: transform .16s ease, background .16s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: #d7d72e; border-color: #d7d72e; color: #0c0d0d; }
.button.secondary { background: #181a19; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { position: relative; min-height: 350px; display: flex; flex-direction: column; padding: 28px; overflow: hidden; border: 1px solid #2e302e; border-radius: 24px; background: #151716; }
.card::after { content: ""; position: absolute; width: 150px; height: 150px; right: -55px; top: -55px; border-radius: 50%; background: var(--accent); opacity: .85; }
.accent-yellow { --accent: #d7d72e; }
.accent-blue { --accent: #61a8ed; }
.accent-coral { --accent: #ed725d; }
.number { margin: 0 0 auto; color: #8e918a; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.card h2 { margin: 54px 0 14px; font-size: 1.7rem; letter-spacing: -.035em; }
.card p:not(.number) { margin: 0; color: #b9bbb5; line-height: 1.55; }
.card a { margin-top: 28px; font-weight: 760; text-underline-offset: 4px; }

.setup { display: grid; grid-template-columns: .85fr 1.4fr; gap: 70px; margin: 100px 0 24px; }
.setup-heading h2, .roles h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.04; letter-spacing: -.05em; }
.setup-heading > p:last-child { color: #aeb0aa; line-height: 1.55; }
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid #2e302e; }
.steps li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 23px 0; border-bottom: 1px solid #2e302e; }
.step-number { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #d7d72e; color: #0c0d0d; font-weight: 850; }
.steps h3, .role-grid h3 { margin: 0 0 8px; font-size: 1.12rem; }
.steps p, .role-grid p { margin: 0; color: #aeb0aa; line-height: 1.5; }

.roles { display: grid; grid-template-columns: .85fr 1.4fr; gap: 70px; margin: 100px 0; }
.role-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.role-grid article { padding: 28px; border: 1px solid #2e302e; border-radius: 22px; background: #151716; }
.role-grid .role-name { margin-bottom: 40px; color: #d7d72e; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.system-status { display: grid; grid-template-columns: .85fr 1.4fr; gap: 70px; margin: 100px 0; padding: 50px; border: 1px solid #2e302e; border-radius: 28px; background: #111312; }
.system-status h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.04; letter-spacing: -.05em; }
.status-note { color: #aeb0aa; line-height: 1.55; }
.status-grid { list-style: none; margin: 0; padding: 0; }
.status-grid li { display: grid; grid-template-columns: 14px minmax(180px, 1fr) auto; align-items: center; gap: 12px; padding: 18px 0; border-bottom: 1px solid #292b29; }
.status-grid li:first-child { padding-top: 0; }
.status-grid li:last-child { border-bottom: 0; padding-bottom: 0; }
.status-grid li > span:last-child { color: #aeb0aa; text-align: right; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; }
.status-dot.online { background: #79c99e; box-shadow: 0 0 0 5px rgb(121 201 158 / 10%); }
.status-dot.waiting { background: #edb45d; box-shadow: 0 0 0 5px rgb(237 180 93 / 10%); }

.flow { display: grid; grid-template-columns: .95fr 1.3fr; gap: 70px; margin: 100px 0; padding: 50px; border: 1px solid #2e302e; border-radius: 28px; background: #111312; }
.flow h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.04; letter-spacing: -.05em; }
.flow ol { list-style: none; margin: 0; padding: 0; counter-reset: item; }
.flow li { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 19px 0; border-bottom: 1px solid #292b29; }
.flow li:first-child { padding-top: 0; }
.flow li:last-child { border-bottom: 0; padding-bottom: 0; }
.flow li span { color: #aeb0aa; line-height: 1.45; }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px 0 45px; border-top: 1px solid #292b29; color: #8f928b; font-size: .9rem; }
.status { display: flex; align-items: center; gap: 8px; }
.status span { width: 8px; height: 8px; border-radius: 50%; background: #d7d72e; box-shadow: 0 0 0 5px rgb(215 215 46 / 10%); }

@media (max-width: 850px) {
  .hero { padding-top: 70px; }
  .grid { grid-template-columns: 1fr; }
  .card { min-height: 300px; }
  .flow { grid-template-columns: 1fr; gap: 44px; padding: 30px; }
  .setup, .roles, .system-status { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 540px) {
  main { width: min(100% - 24px, 1180px); }
  h1 { font-size: clamp(2.8rem, 15vw, 4.5rem); }
  .button { width: 100%; }
  .flow li { grid-template-columns: 1fr; gap: 5px; }
  .role-grid { grid-template-columns: 1fr; }
  .system-status { padding: 30px; }
  .status-grid li { grid-template-columns: 14px 1fr; }
  .status-grid li > span:last-child { grid-column: 2; text-align: left; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}
