:root {
  color-scheme: dark;
  --bg: #07100d;
  --surface: rgba(14, 29, 24, 0.78);
  --surface-strong: #10251e;
  --line: rgba(204, 238, 225, 0.13);
  --text: #f4f8f5;
  --muted: #9eb0a9;
  --green: #82e6b8;
  --green-strong: #36ce91;
  --gold: #e3c177;
  --danger: #ff9a83;
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.28);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--bg); color: var(--text); }
body::before { content: ""; position: fixed; inset: 0; z-index: -3; background: linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(to bottom, black, transparent 78%); }
.ambient { position: fixed; z-index: -2; border-radius: 50%; filter: blur(1px); pointer-events: none; }
.ambient-one { width: 46rem; height: 46rem; top: -21rem; right: -16rem; background: radial-gradient(circle, rgba(54,206,145,.18), transparent 67%); }
.ambient-two { width: 38rem; height: 38rem; top: 31rem; left: -24rem; background: radial-gradient(circle, rgba(227,193,119,.1), transparent 68%); }

.topbar { height: 88px; max-width: 1240px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 13px; color: inherit; text-decoration: none; }
.brand-mark { width: 37px; height: 37px; position: relative; display: grid; place-items: center; border: 1px solid rgba(130,230,184,.45); transform: rotate(45deg); }
.brand-mark span { width: 13px; height: 13px; background: var(--green); box-shadow: 0 0 24px rgba(130,230,184,.55); }
.brand > span:last-child { display: grid; line-height: 1; }
.brand strong { font-size: 14px; letter-spacing: .18em; }
.brand small { margin-top: 7px; color: var(--muted); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.live-chip { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; letter-spacing: .05em; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(227,193,119,.08); }
.live-chip.online .pulse { background: var(--green); box-shadow: 0 0 0 5px rgba(130,230,184,.09); animation: breathe 2.4s ease-in-out infinite; }
.live-chip.offline .pulse { background: var(--danger); }
@keyframes breathe { 50% { box-shadow: 0 0 0 8px rgba(130,230,184,0); } }

main { max-width: 1180px; margin: 0 auto; padding: 0 32px 96px; }
.hero { padding: 104px 0 72px; }
.eyebrow, .section-kicker { color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: .2em; }
.hero h1 { max-width: 850px; margin: 22px 0 26px; font-size: clamp(52px, 7.2vw, 96px); line-height: .96; letter-spacing: -.055em; font-weight: 610; }
.hero h1 em { color: var(--green); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.hero-copy { max-width: 655px; margin: 0; color: #b6c5bf; font-size: 18px; line-height: 1.7; }
.hero-meta { margin-top: 60px; padding-top: 24px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.hero-meta div { display: grid; gap: 8px; }
.hero-meta span { color: #778a83; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.hero-meta strong { font-size: 13px; font-weight: 550; }

.status-panel, .credentials-card, .port-table { border: 1px solid var(--line); background: linear-gradient(145deg, rgba(17,39,31,.9), rgba(10,24,19,.8)); box-shadow: var(--shadow); }
.status-panel { padding: 34px; }
.status-heading { display: flex; justify-content: space-between; align-items: flex-start; }
h2 { margin: 10px 0 0; font-size: clamp(28px, 4vw, 46px); line-height: 1.08; letter-spacing: -.035em; font-weight: 570; }
.score-ring { width: 84px; height: 84px; flex: 0 0 auto; display: grid; place-content: center; text-align: center; border: 1px solid rgba(130,230,184,.3); border-radius: 50%; box-shadow: inset 0 0 28px rgba(130,230,184,.05); }
.score-ring span { font-size: 21px; font-weight: 650; }
.score-ring small { color: var(--muted); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.service-grid { margin-top: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.service-card { min-width: 0; padding: 18px; display: flex; align-items: center; gap: 14px; background: rgba(5,13,10,.32); border: 1px solid rgba(255,255,255,.06); }
.service-icon { width: 38px; height: 38px; display: grid; place-items: center; background: rgba(130,230,184,.06); color: var(--green); }
.service-icon svg, .configuration-note svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.service-card > div:nth-child(2) { min-width: 0; display: grid; gap: 5px; }
.service-card span { overflow: hidden; color: var(--muted); font-size: 10px; letter-spacing: .05em; text-overflow: ellipsis; white-space: nowrap; }
.service-card strong { font-size: 13px; }
.service-card i { width: 7px; height: 7px; margin-left: auto; border-radius: 50%; background: var(--gold); }
.service-card.ready i { background: var(--green); box-shadow: 0 0 14px rgba(130,230,184,.55); }
.service-card.failed i { background: var(--danger); }

.connect-section, .steps-section, .network-section { padding-top: 112px; }
.section-intro { max-width: 740px; }
.section-intro p { margin: 20px 0 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.section-intro.compact { max-width: 680px; }
.path-tabs { margin-top: 38px; display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.path-tab { position: relative; padding: 18px 8px; display: flex; align-items: center; justify-content: center; gap: 9px; appearance: none; color: var(--muted); background: transparent; border: 0; border-bottom: 2px solid transparent; font: inherit; font-size: 13px; cursor: pointer; }
.path-tab small { color: #71827b; font-size: 10px; }
.path-tab:hover, .path-tab:focus-visible { color: var(--text); outline: none; background: rgba(255,255,255,.025); }
.path-tab.active { color: var(--text); border-bottom-color: var(--green); }
.path-dot { width: 6px; height: 6px; border-radius: 50%; }
.path-dot.ready { background: var(--green); }
.path-dot.pending { background: var(--gold); }
.credentials-card { border-top: 0; }
.credential { padding: 25px 28px; display: grid; grid-template-columns: 180px 1fr; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); }
.credential-label { display: grid; gap: 5px; }
.credential-label span { font-size: 13px; font-weight: 630; }
.credential-label small { color: var(--muted); font-size: 11px; }
.copy-field { min-width: 0; display: flex; align-items: center; gap: 12px; }
.copy-field code { min-width: 0; flex: 1; overflow: hidden; color: #dce9e3; font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.copy-button { padding: 10px 15px; color: var(--green); background: rgba(130,230,184,.07); border: 1px solid rgba(130,230,184,.2); font: inherit; font-size: 11px; font-weight: 650; letter-spacing: .04em; cursor: pointer; }
.copy-button:hover, .copy-button:focus-visible { background: rgba(130,230,184,.13); outline: 1px solid var(--green); }
.configuration-note { padding: 19px 28px; display: flex; align-items: center; gap: 12px; color: var(--gold); background: rgba(227,193,119,.045); font-size: 12px; line-height: 1.5; }
.configuration-note svg { flex: 0 0 auto; }
.configuration-note.ready { color: var(--green); background: rgba(130,230,184,.04); }

.steps { margin: 46px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.steps li { padding: 28px 0; display: grid; grid-template-columns: 90px 1fr; border-bottom: 1px solid var(--line); }
.step-number { color: var(--green); font-family: Georgia, serif; font-size: 19px; font-style: italic; }
.steps h3 { margin: 0 0 8px; font-size: 16px; font-weight: 600; }
.steps p { max-width: 720px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.steps b { padding: 0 4px; color: var(--text); }
.steps strong { color: #dbe7e2; }

.port-table { margin-top: 40px; }
.port-row { min-height: 62px; padding: 0 24px; display: grid; grid-template-columns: 110px 150px 1fr 110px; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.port-row:last-child { border-bottom: 0; }
.port-row strong { color: var(--text); font-family: "SFMono-Regular", Consolas, monospace; }
.port-row i { justify-self: end; color: var(--gold); font-style: normal; }
.port-row i::before { content: ""; width: 6px; height: 6px; margin-right: 8px; display: inline-block; border-radius: 50%; background: currentColor; }
.port-row.ready i { color: var(--green); }
.port-row.failed i { color: var(--danger); }
.port-header { min-height: 44px; color: #758880; background: rgba(0,0,0,.16); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.port-header span:last-child { justify-self: end; }
.port-row.optional span:nth-child(3)::after { content: "OPTIONAL"; margin-left: 8px; padding: 3px 6px; color: #82958d; border: 1px solid var(--line); font-size: 8px; letter-spacing: .09em; }

footer { max-width: 1180px; min-height: 100px; margin: 0 auto; padding: 30px 32px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; color: #687b74; border-top: 1px solid var(--line); font-size: 10px; letter-spacing: .04em; }
footer p { text-align: center; }
footer > span:last-child { justify-self: end; }
.brand-mini { display: flex; align-items: center; gap: 9px; color: #91a49d; font-weight: 700; letter-spacing: .16em; }
.brand-mini span { width: 8px; height: 8px; border: 1px solid var(--green); transform: rotate(45deg); }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 5; padding: 12px 16px; color: #06110d; background: var(--green); box-shadow: var(--shadow); font-size: 12px; font-weight: 700; opacity: 0; transform: translateY(8px); pointer-events: none; transition: .2s ease; }
.toast.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 760px) {
  .topbar, main, footer { padding-left: 20px; padding-right: 20px; }
  .topbar { height: 76px; }
  .brand small { display: none; }
  .hero { padding: 72px 0 52px; }
  .hero h1 { font-size: clamp(45px, 15vw, 68px); }
  .hero-copy { font-size: 15px; }
  .hero-meta { grid-template-columns: 1fr; gap: 20px; margin-top: 42px; }
  .status-panel { padding: 24px; }
  .score-ring { width: 68px; height: 68px; margin-left: 16px; }
  .service-grid { grid-template-columns: 1fr; }
  .connect-section, .steps-section, .network-section { padding-top: 84px; }
  .path-tab { flex-wrap: wrap; }
  .path-tab small { width: 100%; }
  .credential { grid-template-columns: 1fr; gap: 12px; padding: 22px; }
  .configuration-note { padding: 18px 22px; }
  .steps li { grid-template-columns: 54px 1fr; }
  .port-row { grid-template-columns: 70px 1fr 84px; gap: 8px; padding: 0 14px; }
  .port-row span:nth-child(3) { display: none; }
  footer { grid-template-columns: 1fr; text-align: center; }
  footer p { margin: 0; }
  footer > span, footer > span:last-child { justify-self: center; }
}

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