/* Landing page. Tokens and chrome come from base.css. */

/* ---------------------------------------------------------------- hero */
.hero { position: relative; padding: var(--s-9) var(--gutter) 0; isolation: isolate; overflow: clip; }
.hero__glow {
  position: absolute; z-index: -1; left: 50%; top: -360px; width: min(1500px, 140vw); height: 900px; translate: -50% 0;
  background: radial-gradient(closest-side, rgb(212 165 55 / 0.17), rgb(212 165 55 / 0.05) 55%, transparent);
  pointer-events: none;
}
.hero__copy { max-width: 880px; margin: 0 auto; text-align: center; }
.chip {
  display: inline-flex; align-items: center; gap: var(--s-3); margin: 0;
  padding: 6px 14px 6px 12px; border: 1px solid var(--line); border-radius: var(--r-pill);
  background: rgb(255 255 255 / 0.03); color: var(--text-2); font-size: var(--t-xs); font-variant-numeric: tabular-nums;
}
.hero h1 {
  margin: var(--s-5) 0 var(--s-4); font-size: var(--t-hero); font-weight: 650; line-height: 1.02;
  letter-spacing: -0.04em; 
}
.hero__lede { margin: 0 auto var(--s-6); max-width: 34rem; color: var(--text-3); font-size: var(--t-lg); line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); }

/* the app window: the network shown as a working product */
.stage { margin: var(--s-8) auto 0; max-width: 1100px; perspective: 1800px; }
.window {
  --tilt: 14deg;
  border-radius: var(--r-lg) var(--r-lg) 0 0; overflow: hidden;
  background: var(--bg-raised); border: 1px solid var(--line); border-bottom: 0;
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.8), 0 2px 6px rgb(0 0 0 / 0.5);
  transform: rotateX(var(--tilt)); transform-origin: 50% 0;
  min-height: 360px;
  -webkit-mask-image: linear-gradient(#000 62%, transparent);
          mask-image: linear-gradient(#000 62%, transparent);
}
.window__body.is-solo { grid-template-columns: 1fr; }
.window__body.is-solo .window__side { display: none; }
.servers tr.is-proxy .name { font-family: var(--mono); font-weight: 500; }
.servers__note { margin: 0; padding: var(--s-4) var(--s-5); color: var(--text-3); font-size: var(--t-sm); }
.servers__note code { color: var(--text-2); }
@media (prefers-reduced-motion: reduce) { .window { transform: none; } }
.window__bar {
  display: flex; align-items: center; gap: var(--s-3); height: 44px; padding: 0 var(--s-4);
  border-bottom: 1px solid var(--line); color: var(--text-3); font-size: var(--t-xs);
}
.window__lights { display: flex; gap: 7px; }
.window__lights i { width: 10px; height: 10px; border-radius: 50%; background: #26282c; }
.window__status { margin-left: auto; display: inline-flex; align-items: center; gap: var(--s-2); font-variant-numeric: tabular-nums; }
.window__body { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 316px; }
.window__side { display: flex; flex-direction: column; gap: 2px; padding: var(--s-3); border-right: 1px solid var(--line); }
.filter {
  appearance: none; border: 0; background: transparent; color: var(--text-3); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; border-radius: var(--r-sm);
  font-size: var(--t-sm); text-align: left; transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.filter span { font-size: var(--t-xs); color: var(--text-3); font-variant-numeric: tabular-nums; }
.filter:hover { color: var(--text); background: rgb(255 255 255 / 0.03); }
.filter[aria-pressed="true"] { color: var(--text); background: rgb(255 255 255 / 0.06); }
.servers { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.servers th {
  text-align: left; font-weight: 500; font-size: var(--t-xs); color: var(--text-3);
  padding: 12px var(--s-5); border-bottom: 1px solid var(--line);
}
.servers td { padding: 14px var(--s-5); border-bottom: 1px solid rgb(255 255 255 / 0.04); vertical-align: top; color: var(--text-2); }
.servers tr { transition: background-color 160ms var(--ease); }
.servers tbody tr:hover { background: rgb(255 255 255 / 0.02); }
.servers .name { color: var(--text); font-weight: 500; }
.servers .desc { display: block; color: var(--text-3); font-size: var(--t-xs); margin-top: 2px; max-width: 44ch; }
.servers .status { display: inline-flex; align-items: center; gap: var(--s-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cmd {
  appearance: none; border: 1px solid var(--line); background: transparent; color: var(--text-2); cursor: pointer;
  font-family: var(--mono); font-size: var(--t-xs); padding: 3px 8px; border-radius: var(--r-sm);
  transition: border-color 160ms var(--ease), color 160ms var(--ease);
}
.cmd:hover { border-color: var(--line-strong); color: var(--text); }
.cmd.is-done { border-color: rgb(76 195 138 / 0.5); color: var(--green); }

/* ------------------------------------------------------------- sections */
.sect { max-width: var(--maxw); margin: 0 auto; padding: var(--s-10) var(--gutter) 0; }
.sect__head { max-width: 40rem; }
.sect h2 { margin: 0 0 var(--s-3); font-size: var(--t-3xl); font-weight: 600; line-height: 1.08; letter-spacing: -0.035em; }
.sect__head p { margin: 0; color: var(--text-3); font-size: var(--t-lg); line-height: 1.55; }

/* join steps: a sequence, so numbers carry information */
.steps-row { list-style: none; margin: var(--s-7) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.steps-row li { padding: var(--s-5) var(--s-6) 0 0; }
.steps-row li + li { padding-left: var(--s-6); border-left: 1px solid var(--line); }
.steps-row__n { font-family: var(--mono); font-size: var(--t-xs); color: var(--text-3); }
.steps-row h3 { margin: var(--s-3) 0 var(--s-2); font-size: var(--t-lg); font-weight: 600; letter-spacing: -0.015em; }
.steps-row p { margin: 0; color: var(--text-3); font-size: var(--t-sm); max-width: 30ch; }
.steps-row code { white-space: nowrap; color: var(--text); background: rgb(255 255 255 / 0.05); padding: 1px 5px; border-radius: 4px; }

/* supported release lines: the version claim shown as data */
.lines { margin: var(--s-7) 0 0; }
.lines__grid {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.lines__grid li {
  padding: var(--s-4) var(--s-4); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: var(--t-sm); color: var(--text); font-variant-numeric: tabular-nums;
}
.lines__grid li.is-off { color: var(--text-3); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.lines__cap { margin-top: var(--s-4); color: var(--text-3); font-size: var(--t-sm); }

/* news */
.sect__head--row { display: flex; align-items: baseline; justify-content: space-between; max-width: none; }
.news__list { list-style: none; margin: var(--s-6) 0 0; padding: 0; border-top: 1px solid var(--line); }
.news__list li { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: var(--s-5); padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.news__list time { font-family: var(--mono); font-size: var(--t-xs); color: var(--text-3); padding-top: 3px; }
.news__list h3 { margin: 0 0 var(--s-1); font-size: var(--t-lg); font-weight: 600; letter-spacing: -0.015em; }
.news__list p { margin: 0; color: var(--text-3); font-size: var(--t-sm); max-width: 68ch; }
.news__list .tag { margin-left: var(--s-2); }
.news__empty { margin: var(--s-6) 0 0; padding: var(--s-5) 0; border-top: 1px solid var(--line); color: var(--text-3); font-size: var(--t-sm); }

/* partner */
.partner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--s-8); align-items: center; }
.partner__copy p { margin: 0 0 var(--s-6); color: var(--text-3); font-size: var(--t-lg); line-height: 1.55; max-width: 34rem; }
.flow { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-raised); overflow: hidden; box-shadow: var(--shadow); }
.flow__row { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: var(--s-4); align-items: center; padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); font-size: var(--t-sm); color: var(--text-2); }
.flow__k { font-size: var(--t-xs); color: var(--text-3); }
.flow__row code { color: var(--text); }
.flow__row--done .flow__k { color: var(--green); }
.flow__facts { list-style: none; margin: 0; padding: var(--s-4) var(--s-5); display: grid; gap: var(--s-2); font-size: var(--t-sm); color: var(--text-3); background: rgb(255 255 255 / 0.02); }
.flow__facts li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: var(--s-3); border-radius: 1px; background: var(--text-3); vertical-align: 2px; }

/* faq */
.faq__list { margin-top: var(--s-6); border-top: 1px solid var(--line); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  padding: var(--s-5) 0; font-size: var(--t-lg); font-weight: 500; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 10px; height: 10px; flex: none; border-right: 1.5px solid var(--text-3); border-bottom: 1.5px solid var(--text-3); rotate: 45deg; translate: 0 -3px; transition: rotate 200ms var(--ease); }
.faq details[open] summary::after { rotate: 225deg; translate: 0 2px; }
.faq summary:hover { color: #fff; }
.faq details p { margin: 0 0 var(--s-5); color: var(--text-3); max-width: 64ch; }
.faq code { color: var(--text-2); }

/* close */
.close { text-align: center; padding: var(--s-10) var(--gutter); }
.close__crown { width: 78px; height: 48px; margin: 0 auto var(--s-6); }
.close__title { margin: 0; font-family: var(--mono); font-weight: 500; font-size: clamp(2rem, 1rem + 4.4vw, 4.25rem); letter-spacing: -0.04em; line-height: 1.05; overflow-wrap: anywhere; }
.close__meta { margin: var(--s-4) 0 var(--s-6); color: var(--text-3); font-variant-numeric: tabular-nums; }
.community { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); margin-top: var(--s-4); }
.community .icon { width: 18px; height: 18px; }

/* section entry: visible by default, JS only hides what is still below the fold */
@media (prefers-reduced-motion: no-preference) {
  .sect.is-pending { opacity: 0; translate: 0 18px; }
  .sect.is-in { transition: opacity 700ms var(--ease), translate 900ms var(--ease); }
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 900px) {
  .partner { grid-template-columns: 1fr; gap: var(--s-6); }
  .steps-row { grid-template-columns: 1fr; }
  .steps-row li, .steps-row li + li { padding: var(--s-5) 0; border-left: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 680px) {
  .hero { padding-top: var(--s-8); }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .address { justify-content: space-between; }
  .window { --tilt: 0deg; border-radius: var(--r-lg); border-bottom: 1px solid var(--line); min-height: 0; -webkit-mask-image: none; mask-image: none; }
  .chip__ver { display: none; }
  .window__body { grid-template-columns: 1fr; min-height: 0; }
  .window__title { display: none; }
  .window__side { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .filter { flex: none; gap: var(--s-2); }
  .servers thead { display: none; }
  .servers tr { display: grid; grid-template-columns: 1fr auto; padding: var(--s-3) var(--s-4); border-bottom: 1px solid rgb(255 255 255 / 0.05); }
  .servers td { border: 0; padding: 2px 0; }
  .servers td.c-server { grid-column: 1 / -1; }
  .servers tr.has-status td.c-server { grid-column: 1; }
  .servers td.c-status { grid-row: 1; grid-column: 2; justify-self: end; font-size: var(--t-xs); }
  .servers td.c-status:empty { display: none; }
  .servers td.c-op { grid-row: 2; font-size: var(--t-xs); align-self: center; }
  .servers td.c-join { grid-row: 2; }
  .sect { padding-top: var(--s-9); }
  .news__list li { grid-template-columns: 1fr; gap: var(--s-1); }
  .flow__row { grid-template-columns: 1fr; gap: 2px; }
}
@media (min-width: 1000px) {
  .lines__grid { grid-template-columns: repeat(17, minmax(0, 1fr)); }
  .lines__grid li { padding: var(--s-4) var(--s-3); font-size: var(--t-xs); }
}
