:root {
  color-scheme: dark;
  --ink: #07110f;
  --ink-2: #0b1815;
  --surface: #10201b;
  --surface-2: #142923;
  --surface-3: #1a332b;
  --text: #f1f7ef;
  --muted: #afc2b5;
  --quiet: #789286;
  --line: #29473c;
  --line-strong: #396452;
  --emerald: #7ee787;
  --emerald-strong: #3fb950;
  --gold: #f2c866;
  --blue: #8bd5ff;
  --danger: #ff9b8f;
  --radius: 8px;
  --wrap: min(1160px, calc(100% - 40px));
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Arial Black", Impact, "Segoe UI Black", var(--font);
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }
html { background: var(--ink); color-scheme: dark; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-width: 320px; background: var(--ink); color: var(--text); font: 400 16px/1.6 var(--font); text-rendering: optimizeLegibility; }
body::before, body::after { content: none; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.wrap { width: var(--wrap); margin: 0 auto; }
.skip-link { position: fixed; z-index: 10; top: 8px; left: 8px; padding: 8px 12px; border: 2px solid var(--gold); border-radius: var(--radius); background: var(--ink); color: var(--text); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); outline: 3px solid var(--blue); outline-offset: 2px; }

header { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line); background: rgba(7,17,15,.96); }
.nav { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; font-family: var(--display); font-size: 17px; font-weight: 900; text-decoration: none; letter-spacing: -.02em; }
.mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #64795e; border-radius: var(--radius); background: #1e3f32; color: var(--text); font-family: var(--display); box-shadow: inset 0 -12px 0 rgba(85,63,35,.55); }
.nav-links { display: flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; flex: 1 1 auto; overflow-x: auto; scrollbar-width: none; color: var(--muted); font-family: var(--display); font-size: 11px; letter-spacing: .035em; text-transform: uppercase; white-space: nowrap; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 11px; border: 1px solid transparent; border-radius: var(--radius); text-decoration: none; }
.nav-links a:hover, .nav-links a:focus-visible, .nav-links a[aria-current="page"] { border-color: var(--line-strong); background: var(--surface-2); color: var(--text); outline: none; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1.04; letter-spacing: -.035em; }
h1 { max-width: 780px; margin-bottom: 20px; font-size: clamp(44px, 7vw, 88px); }
h2 { margin-bottom: 14px; font-size: clamp(30px, 4vw, 54px); }
h3 { margin-bottom: 8px; font-size: 20px; }
.eyebrow, .section-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--emerald); font-family: var(--display); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.eyebrow::before, .section-eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--emerald); box-shadow: 0 0 0 4px rgba(126,231,135,.12); }
.lead { max-width: 680px; margin-bottom: 24px; color: var(--muted); font-size: clamp(18px, 2.1vw, 22px); line-height: 1.5; }
.section-heading { max-width: 760px; margin-bottom: 26px; }
.section-lead { max-width: 700px; margin-bottom: 0; color: var(--muted); font-size: 18px; }

.button, .copy-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid var(--emerald-strong); border-radius: var(--radius); background: var(--emerald); color: #092016; font: 900 12px/1 var(--display); letter-spacing: .02em; text-decoration: none; cursor: pointer; }
.button { padding: 0 18px; }
.button-support { border-color: #9e813a; background: var(--gold); color: #211a08; }
.button:hover, .button:focus-visible, .copy-button:hover, .copy-button:focus-visible { filter: brightness(1.08); outline: 3px solid rgba(139,213,255,.72); outline-offset: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 28px; }

.hero { position: relative; min-height: 680px; padding: 76px 0 82px; isolation: isolate; overflow: hidden; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: url("/assets/ravia-hero-voxel.webp") right center / cover no-repeat; opacity: .36; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: rgba(7,17,15,.62); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 430px); gap: clamp(28px, 6vw, 84px); align-items: center; }
.hero-copy { max-width: 700px; }
.hero-highlights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 580px; }
.hero-stat { padding: 14px 16px; border-left: 3px solid var(--line-strong); background: rgba(16,32,27,.82); }
.stat-kicker, .join-label, .growth-proof-kicker { color: var(--quiet); font: 900 10px/1.2 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.stat-value { margin-top: 7px; font-family: var(--display); font-size: 17px; }
.status-strip, .panel-status { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--muted); font: 900 11px/1 var(--display); text-transform: uppercase; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--quiet); box-shadow: 0 0 0 3px rgba(120,146,134,.14); }
.status-dot.is-online { background: var(--emerald); box-shadow: 0 0 0 3px rgba(126,231,135,.15); }

.join-panel, .growth-join-panel { border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.join-panel { padding: 24px; }
.join-panel h2 { font-size: 30px; }
.growth-join-panel { display: grid; gap: 18px; padding: clamp(20px, 4vw, 34px); }
.growth-join-panel .section-heading { margin-bottom: 0; }
.join-list { display: grid; gap: 10px; }
.join-item { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.join-label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.address-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.address { display: inline-flex; align-items: center; gap: 10px; min-width: 0; font: 900 clamp(20px, 3vw, 28px)/1 var(--mono); overflow-wrap: anywhere; }
.copy-button { flex: 0 0 auto; min-width: 68px; padding: 0 10px; border-color: var(--line-strong); background: transparent; color: var(--text); }

main > section:not(.hero) { padding: 88px 0; border-top: 1px solid var(--line); }
main > section:nth-of-type(even) { background: var(--ink-2); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card, .faq-item, .rules-list li, .command-preview-card, .command-group { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.card, .faq-item { padding: 20px; }
.card p, .faq-item p { margin-bottom: 0; color: var(--muted); }
.guide-panel, .rules, .contact-panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(26px, 6vw, 72px); align-items: start; }
.guide-steps, .rules-list, .contact-reasons { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.guide-steps li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.guide-steps li::before { content: counter(list-item); display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--emerald-strong); border-radius: 50%; color: var(--emerald); font-family: var(--display); }
.step-text { color: var(--muted); }
.step-text strong { color: var(--text); }
.faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.inline-code { display: inline-block; padding: 2px 6px; border: 1px solid var(--line); border-radius: 4px; background: #071510; color: var(--emerald); font: 700 .9em/1.3 var(--mono); }
.notice { margin-top: 20px; padding: 16px 18px; border-left: 3px solid var(--gold); background: #1c2419; color: var(--muted); }
.rules-list li, .contact-reasons li { padding: 13px 15px 13px 34px; position: relative; color: var(--muted); }
.rules-list li::before, .contact-reasons li::before { content: ""; position: absolute; left: 15px; top: 20px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.commands-preview-panel, .commands-catalog-panel { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.commands-preview-head, .commands-page-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.commands-preview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.command-preview-card { display: grid; gap: 7px; padding: 15px; color: var(--muted); text-decoration: none; }
.command-preview-card:hover, .command-preview-card:focus-visible { border-color: var(--emerald-strong); color: var(--text); outline: 3px solid rgba(139,213,255,.5); outline-offset: 2px; }
.commands-preview-actions { display: flex; justify-content: flex-end; margin-top: 18px; }
.support-actions { align-items: center; color: var(--muted); }
.contact-panel { padding: 30px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface-2); }
footer { padding: 28px 0 36px; border-top: 1px solid var(--line); background: #050c0a; color: var(--quiet); font-size: 14px; }
.disclaimer { margin-top: 18px; color: #6f8377; font: 700 10px/1.5 var(--font); letter-spacing: .05em; }

/* Commands and growth routes share the same terrain system. */
.commands-page-main, .growth-main { min-height: calc(100vh - 68px); padding: 58px 0 84px; background: var(--ink); }
.commands-page-intro, .growth-layout { display: grid; gap: 24px; }
.commands-page-intro .section-title, .growth-hero h1 { max-width: 820px; }
.commands-page-intro .section-lead { max-width: 760px; }
.commands-breadcrumb { display: flex; align-items: center; gap: 8px; color: var(--quiet); font: 900 11px/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.commands-breadcrumb a { color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.command-grid--catalog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.command-group { padding: 20px; }
.command-group h2 { margin-bottom: 14px; font-size: 26px; }
.command-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.command-list li { padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.command-list li:last-child { border-bottom: 0; }
.commands-page-note { margin: 20px 0 0; color: var(--muted); }
.commands-help-link { color: var(--blue); font-weight: 800; }
.growth-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .42fr); gap: clamp(24px, 6vw, 72px); align-items: end; padding: 28px 0 24px; }
.growth-hero h1 { margin: 10px 0 18px; }
.growth-proof { display: grid; gap: 8px; padding: 20px; border-left: 3px solid var(--emerald); background: var(--surface); }
.growth-proof strong { font: 900 clamp(24px, 4vw, 38px)/1.05 var(--display); }
.growth-proof span { color: var(--muted); }
.growth-proof-kicker { color: var(--gold) !important; }
.growth-section { display: grid; gap: 24px; }
.growth-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.growth-card h3 { color: var(--text); }
.growth-card p { margin-bottom: 0; color: var(--muted); }
.growth-join { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; padding: 22px; border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: var(--radius); background: var(--surface); }
.growth-join h2 { margin-bottom: 8px; font-size: 30px; }
.growth-join .section-lead { margin-bottom: 0; }

@media (max-width: 900px) {
  :root { --wrap: min(calc(100% - 32px), 700px); }
  .hero-grid, .guide-panel, .rules, .contact-panel, .growth-hero { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 54px 0 66px; }
  .hero::before { background-position: center; opacity: .22; }
  .join-panel { max-width: 700px; }
}
@media (max-width: 700px) {
  header { position: static; }
  .nav { align-items: flex-start; flex-direction: column; gap: 10px; padding: 12px 0; }
  .nav-links { width: 100%; padding-bottom: 3px; }
  .nav-links a { min-height: 44px; background: var(--surface); }
  main > section:not(.hero) { padding: 64px 0; }
  .grid, .growth-grid, .commands-preview-grid, .command-grid--catalog { grid-template-columns: 1fr; }
  .faq-list { grid-template-columns: 1fr; }
  .commands-preview-head, .commands-page-head { align-items: stretch; flex-direction: column; }
  .commands-preview-actions, .commands-preview-actions .button, .growth-join .button, .actions .button { width: 100%; }
  .growth-join { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  :root { --wrap: calc(100% - 28px); }
  h1 { font-size: clamp(42px, 14vw, 64px); }
  .lead { font-size: 17px; }
  .hero-highlights { grid-template-columns: 1fr; }
  .hero-stat { padding: 12px 14px; }
  .join-panel, .commands-preview-panel, .commands-catalog-panel, .contact-panel { padding: 18px; }
  .join-label { display: grid; gap: 4px; }
  .address-row { align-items: flex-start; flex-direction: column; }
  .copy-button { width: 100%; }
  .actions { margin-bottom: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
