/* SIEOS website — in Atlas's Frosted Glass look: a navy desk lit by blurred blues, frosted panels with a white edge, the yellow accent. */

:root {
  /* Atlas's Glass look: the desk, its glass, and the accent of the focused window's tab */
  --bg: #1c2647;          /* the desk */
  --bg-2: rgba(14, 20, 38, .5);
  --surface: rgba(20, 28, 60, .42);    /* a panel: smoked glass */
  --surface-2: rgba(255, 255, 255, .14); /* the chosen row: clearer glass */
  --line: rgba(255, 255, 255, .22);    /* glass's edge */
  --line-hi: rgba(255, 255, 255, .5);  /* the edge in the light */
  --sheen: inset 0 1px 0 rgba(255, 255, 255, .35);   /* the highlight along a pane's top */
  --text: #ffffff;
  --muted: rgba(232, 237, 255, .82);
  --acc: #ffc93c;         /* the accent: focus, the tab, buttons that matter */
  --acc-2: #ff9f6b;
  --acc-soft: rgba(255, 201, 60, .18);
  --ink: #2a1d00;         /* text on the accent */
  --term: rgba(10, 15, 32, .72);       /* a terminal: dark smoked glass */
  --term-fg: #e1e8ff;
  --teal: #8ee3d3;        /* Pins inputs */
  --blur: blur(26px) saturate(170%);
  --radius: 16px;
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "DejaVu Sans Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 16% 18%, rgba(79, 116, 240, .7) 0, rgba(79, 116, 240, 0) 42%),
    radial-gradient(circle at 88% 24%, rgba(126, 143, 245, .45) 0, rgba(126, 143, 245, 0) 34%),
    radial-gradient(circle at 64% 90%, rgba(59, 91, 217, .55) 0, rgba(59, 91, 217, 0) 42%),
    radial-gradient(circle at 6% 94%, rgba(108, 124, 200, .45) 0, rgba(108, 124, 200, 0) 38%),
    radial-gradient(circle at 46% 48%, rgba(126, 143, 245, .3) 0, rgba(126, 143, 245, 0) 32%);
  background-attachment: fixed;
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
code, kbd, pre { font-family: var(--mono); }
code {
  font-size: .86em;
  background: rgba(255, 255, 255, .12);
  border: 1px solid var(--line);
  padding: .08em .38em;
  border-radius: 6px;
}
kbd {
  font-size: .8em;
  padding: .1em .45em;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .22);
}

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; }
.amber { color: var(--acc); }

h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.8rem); font-weight: 700; }
h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--acc), var(--acc-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.sub { color: var(--muted); max-width: 680px; margin-inline: auto; font-size: 1.08rem; }
.sub a { color: var(--text); text-decoration-color: var(--acc); text-underline-offset: 3px; }

.kicker {
  font: 600 .78rem/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--acc);
  margin-bottom: 1.1rem;
}

/* ---------- Glass: every pane is frosted, with a white edge and a highlight along its top ---------- */
.nav, .eyebrow, .btn-ghost, .stats, .note, .term, .servers, .idea, .step, .card,
.table-wrap, .dl, .disclaimer, .seq {
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
}

/* ---------- Nav: the sia bar ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(20, 28, 60, .5);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--sheen), 0 8px 24px rgba(10, 16, 40, .25);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 700; letter-spacing: .08em; text-decoration: none;
}
.nav nav { display: flex; align-items: center; gap: 1.5rem; }
.nav nav a { text-decoration: none; color: var(--muted); font-size: .94rem; transition: color .2s; }
.nav nav a:hover { color: var(--text); }
.nav nav a.nav-gh {
  color: var(--ink); background: var(--acc); font-weight: 600;
  padding: .3rem .8rem; border-radius: 999px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
}
.nav-donate { display: flex; align-items: center; margin: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 96px 0 72px; overflow: hidden; isolation: isolate; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); z-index: -1; }
.glow-blue { width: 520px; height: 520px; background: #4f74f0; top: -160px; right: -120px; opacity: .45; }
.glow-amber { width: 340px; height: 340px; background: #7e8ff5; top: 220px; right: 260px; opacity: .3; }

.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; align-items: center; gap: 40px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font: 500 .8rem/1 var(--mono); color: var(--text);
  padding: .55rem .9rem; border: 1px solid var(--line-hi); border-radius: 999px;
  background: rgba(255, 255, 255, .14); box-shadow: var(--sheen); margin-bottom: 1.6rem;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 4px var(--acc-soft); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 580px; }
.lede strong { color: var(--text); }
.wip { margin: 1.8rem 0 0; max-width: 580px; font-size: .95rem; color: var(--muted); }
.wip b { color: var(--acc); }
.wip a { color: var(--text); text-decoration-color: var(--acc); text-underline-offset: 3px; }

.cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2rem; }
.center-cta { justify-content: center; }
.btn {
  display: inline-block; padding: .85rem 1.4rem; border-radius: 12px;
  font-weight: 600; text-decoration: none; transition: transform .2s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--acc); color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 10px 30px -10px rgba(255, 201, 60, .7);
}
.btn-primary:hover { background: #ffd462; }
.btn-ghost { border: 1px solid var(--line-hi); background: rgba(255, 255, 255, .16); box-shadow: var(--sheen); }
.btn-ghost:hover { background: rgba(255, 255, 255, .26); }

.hero-logo { position: relative; justify-self: center; width: min(380px, 80%); }
.hero-logo::before {
  content: ""; position: absolute; inset: 8%; border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, .3);
  animation: spin 60s linear infinite;
}
.hero-logo img { width: 100%; filter: drop-shadow(0 30px 50px rgba(8, 12, 30, .5)); animation: float 7s ease-in-out infinite; }

@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes spin { to { transform: rotate(360deg); } }

.stats {
  list-style: none; padding: 0; margin: 72px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line-hi); border-radius: var(--radius);
  background: rgba(255, 255, 255, .12); box-shadow: var(--sheen), 0 16px 40px rgba(8, 12, 30, .3);
}
.stats li { padding: 1.4rem 1.6rem; border-left: 1px solid var(--line); }
.stats li:first-child { border-left: 0; }
.stats b { display: block; font-size: 2rem; font-weight: 700; letter-spacing: -.03em; }
.stats span { color: var(--muted); font-size: .9rem; }
.stats-sm { margin-top: 40px; }
.stats-sm b { font-size: 1.5rem; }

/* ---------- Sections ---------- */
.section { padding: 112px 0; position: relative; }
.section-alt {
  background: rgba(14, 20, 38, .28);
  border-block: 1px solid var(--line);
}
.head { text-align: center; margin-bottom: 56px; }
.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.split-top { align-items: start; }
.split > div > p { color: var(--muted); }
.split > div > p b { color: var(--text); }

.ticks { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 1rem; }
.ticks li { padding-left: 1.9rem; position: relative; color: var(--muted); }
.ticks li b { color: var(--text); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--acc); box-shadow: 0 0 0 5px var(--acc-soft);
}
.ticks-muted li::before { background: rgba(255, 255, 255, .7); box-shadow: 0 0 0 5px rgba(255, 255, 255, .14); }

.note {
  margin-top: 2.4rem; padding: 1.1rem 1.3rem;
  border: 1px solid rgba(255, 201, 60, .45); border-radius: 14px;
  background: rgba(255, 201, 60, .1); box-shadow: var(--sheen);
}
.note-tag {
  display: inline-block; margin-bottom: .5rem;
  font: 600 .72rem/1 var(--mono); text-transform: uppercase; letter-spacing: .14em;
  color: var(--acc);
}
.note p { margin: 0; color: var(--muted); font-size: .98rem; }
.note b { color: var(--text); }

/* ---------- Terminal: dark smoked glass ---------- */
.term {
  border-radius: var(--radius); overflow: hidden;
  background: var(--term); border: 1px solid var(--line);
  box-shadow: var(--sheen), 0 24px 60px rgba(8, 12, 30, .45);
}
.term-bar {
  display: flex; align-items: center; gap: 7px; padding: 12px 14px;
  background: rgba(255, 255, 255, .1); border-bottom: 1px solid var(--line);
  font: 500 .78rem var(--mono); color: var(--muted);
}
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .3); }
.term-bar i:first-child { background: var(--acc); }
.term-bar span { margin-left: 10px; }
.term-body {
  margin: 0; padding: 22px 22px 26px;
  font-size: .86rem; line-height: 1.7; overflow-x: auto;
  color: var(--term-fg);
}
.p { color: var(--acc); }
.dim { color: rgba(225, 232, 255, .6); }
.sia { color: var(--acc); font-weight: 600; }
.cmd { color: var(--text); }
.caret {
  display: inline-block; width: .6em; height: 1.1em; vertical-align: -.2em;
  background: var(--acc); animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Servers ---------- */
.servers {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 64px;
  background: var(--line); border: 1px solid var(--line-hi); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--sheen);
}
.servers div { background: rgba(20, 28, 60, .62); padding: 1rem 1.2rem; }
.servers code { color: var(--acc); }
.servers span { display: block; margin-top: .45rem; color: var(--muted); font-size: .9rem; line-height: 1.45; }

/* ---------- Desktop ---------- */
.shot { margin: 0 auto; max-width: 1080px; }
.shot img, .shots-2 img {
  border-radius: 14px; border: 1px solid var(--line-hi);
  box-shadow: 0 40px 90px -30px rgba(8, 12, 30, .8), 0 0 0 8px rgba(255, 255, 255, .12), 0 0 0 9px var(--line);
}
.ideas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 64px; }
.idea, .step, .card {
  padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--sheen), 0 12px 32px rgba(8, 12, 30, .22);
}
.idea .n, .step .n {
  display: inline-grid; place-items: center; width: 28px; height: 28px; margin-bottom: .9rem;
  border-radius: 50%; background: var(--acc); color: var(--ink);
  font: 600 .85rem var(--mono); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
}
.idea p, .step p { color: var(--muted); font-size: .92rem; margin: 0; }
.idea b { color: var(--text); }
.shots-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 56px; }
.shots-2 figure { margin: 0; min-width: 0; }
.shot-more { margin-top: 56px; }
.shots-2 figcaption, .shot figcaption { margin-top: 1.1rem; color: var(--muted); font-size: .95rem; }
.shots-2 figcaption b, .shot figcaption b { color: var(--text); margin-right: .3em; }

/* ---------- Inside ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { display: flex; flex-direction: column; }
.card p { color: var(--muted); font-size: .95rem; }
.card .card-foot {
  margin: auto 0 0; padding-top: .9rem; border-top: 1px solid var(--line);
  color: var(--text); font-size: .88rem;
}
.counts { margin: 40px 0 0; text-align: center; color: var(--muted); font-size: .95rem; }
.counts b { color: var(--text); }

/* ---------- Hardware ---------- */
.table-wrap {
  overflow-x: auto; border: 1px solid var(--line-hi); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--sheen);
}
.status { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 720px; }
.status th, .status td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.status thead th { background: rgba(255, 255, 255, .12); font-weight: 600; line-height: 1.3; }
.status thead small { color: var(--muted); font-weight: 400; }
.status tbody tr:last-child td { border-bottom: 0; }
.status td:first-child { color: var(--text); }
.status td small { color: var(--muted); }
.status .y { color: var(--acc); }
.status .m { color: var(--muted); }

/* ---------- Run ---------- */
code.big { font-size: .9em; padding: .02em .3em; color: var(--acc); }
.downloads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dl {
  display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; min-width: 0;
  padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  box-shadow: var(--sheen), 0 12px 32px rgba(8, 12, 30, .22);
}
.dl h3 { margin: 0; font: 600 1rem var(--mono); overflow-wrap: anywhere; }
.dl p { margin: 0; color: var(--muted); font-size: .92rem; }
.dl .btn { padding: .6rem 1.1rem; }
.dl .dl-label { margin: .5rem 0 0; font: 600 .72rem/1 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--acc); }
.dl .code { align-self: stretch; margin: 0; font-size: .78rem; }
.dl-note { margin: 1.4rem 0 1rem; color: var(--muted); font-size: .92rem; }
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.step { min-width: 0; }
.code {
  margin: .4rem 0 1rem; padding: .9rem 1.1rem; overflow-x: auto;
  background: var(--term); border: 1px solid var(--line); border-radius: 12px;
  font-size: .84rem; line-height: 1.65; color: var(--term-fg);
}
.disclaimer {
  margin-top: 28px; padding: 1.1rem 1.3rem;
  border: 1px solid rgba(255, 201, 60, .45); border-radius: 14px; background: rgba(255, 201, 60, .1);
  box-shadow: var(--sheen);
}
.disclaimer-tag {
  margin: 0 0 .5rem; font: 600 .72rem/1 var(--mono); text-transform: uppercase;
  letter-spacing: .14em; color: var(--acc);
}
.disclaimer p:last-child { margin: 0; color: var(--muted); font-size: .92rem; }
.disclaimer a { color: var(--text); text-decoration-color: var(--acc); text-underline-offset: 3px; }

/* ---------- Credo and footer ---------- */
.credo { padding: 120px 0; background: radial-gradient(ellipse at 50% 0%, rgba(255, 201, 60, .14), transparent 60%); }
.credo img { margin: 0 auto 2rem; filter: drop-shadow(0 16px 30px rgba(8, 12, 30, .5)); }
.credo blockquote {
  margin: 0 auto 1.4rem; max-width: 820px;
  font-size: clamp(1.4rem, 2.8vw, 2rem); font-weight: 600; line-height: 1.3; letter-spacing: -.02em;
}
.donate { margin-top: 2.5rem; }
.donate .sub { margin-bottom: .75rem; }
.donate iframe { display: inline-block; }

.foot {
  border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .9rem;
  background: rgba(14, 20, 38, .4); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.foot .brand { color: var(--text); }
.foot a { color: var(--text); text-decoration-color: var(--acc); text-underline-offset: 3px; }

/* ---------- Pins ---------- */
.pins-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; margin-top: 64px; align-items: start; }
.pins-grid > * { min-width: 0; }
.seq-fig { margin: 0; }
.seq-fig figcaption { margin-top: 1.1rem; color: var(--muted); font-size: .95rem; }
.seq-fig figcaption b { color: var(--text); margin-right: .3em; }
.seq {
  --seq-head: 150px;
  padding: 16px; border-radius: var(--radius); overflow-x: auto;
  background: var(--term); border: 1px solid var(--line-hi);
  box-shadow: var(--sheen), 0 24px 60px rgba(8, 12, 30, .45);
  font: 500 .74rem var(--mono); color: var(--term-fg);
}
.seq-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.seq-bar span { padding: .25rem .6rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(255, 255, 255, .08); }
.seq-bar .seq-play { background: var(--acc); color: var(--ink); border-color: var(--acc); font-weight: 600; }
.seq-bar .seq-add { margin-left: auto; }
.seq-ruler, .seq-track, .seq-playhead-row { display: grid; grid-template-columns: var(--seq-head) minmax(240px, 1fr); gap: 10px; min-width: 420px; }
.seq-nums, .seq-steps { display: grid; grid-template-columns: repeat(16, 1fr); gap: 3px; }
.seq-nums span { text-align: center; color: rgba(225, 232, 255, .45); font-size: .66rem; }
.seq-nums span.beat { color: var(--acc); }
.seq-track { margin-top: 8px; align-items: center; }
.seq-head {
  display: grid; grid-template-columns: auto 1fr auto; column-gap: 6px; align-items: baseline;
  padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, .1);
}
.seq-head b { color: var(--text); }
.seq-head small { grid-column: 1 / -1; color: var(--muted); font-size: .66rem; }
.seq-io { font-size: .62rem; padding: 0 .3rem; border-radius: 4px; background: var(--acc); color: var(--ink); }
.seq-in .seq-io { background: var(--teal); }
.seq-side { color: var(--teal); font-size: .62rem; }
.seq-steps i { height: 26px; border-radius: 5px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.seq-steps i.beat { border-color: rgba(255, 255, 255, .28); }
.seq-out .seq-steps i.on { background: var(--acc); border-color: var(--acc); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 0 10px rgba(255, 201, 60, .4); }
.seq-in .seq-steps i { background: linear-gradient(to top, rgba(142, 227, 211, .22) 0 22%, rgba(255, 255, 255, .06) 22%); }
.seq-in .seq-steps i.on { background: var(--teal); border-color: var(--teal); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 0 10px rgba(142, 227, 211, .4); }
.seq-playhead-row { margin-top: 6px; }
.seq-lane { position: relative; height: 4px; }
.seq-playhead {
  position: absolute; left: 0; top: 0; height: 4px; width: calc(100% / 16); border-radius: 2px;
  background: var(--acc); box-shadow: 0 0 10px var(--acc);
  animation: seq-play 1.6s steps(16, jump-none) infinite;
}
@keyframes seq-play { from { left: 0; } to { left: calc(100% - 100% / 16); } }
.pins-code .code { margin-top: .2rem; }
.pins-note { color: var(--muted); font-size: .92rem; margin: 0; }

.servers > div:last-child:nth-child(4n+1) { grid-column: 1 / -1; }   /* a lone last server takes the row */

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav nav a:not(.nav-gh) { display: none; }
}
@media (max-width: 960px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-logo { width: min(260px, 60%); order: -1; }
  .ideas, .servers, .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(3) { border-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .shots-2, .pins-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 80px 0; }
  .nav-donate { display: none; }
  .ideas, .servers, .cards, .steps, .downloads { grid-template-columns: 1fr; }
  .stats b { font-size: 1.5rem; }
  .seq { --seq-head: 104px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
