:root {
  --signal: #86d6df;
  --canvas: #0b0f12;
  font-family: var(--sans);
  background: var(--canvas);
  color: var(--text);
  font-synthesis: none;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 0; line-height: 1.55; }
h1, h2, h3, h4, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
::selection { color: #14190b; background: var(--lime); }
.shell { width: min(1240px, calc(100% - 104px)); margin-inline: auto; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 3;
  transform: translateY(-155%);
  border-radius: 5px;
  background: var(--lime);
  color: #14190b;
  padding: 10px 16px;
}
.skip-link:focus { transform: translateY(0); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid #2a373b;
  background: #0e1517f3;
  backdrop-filter: blur(14px);
}
.header-inner {
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}
.wordmark { display: inline-flex; align-items: center; justify-self: start; min-width: 0; max-width: 100%; }
.wordmark .brand-wordmark { display: block; width: 150px; max-width: 100%; height: auto; }
nav { display: flex; align-items: center; gap: 30px; }
nav a { position: relative; font-size: .92rem; color: var(--muted); }
nav a::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 1px;
  background: var(--signal);
  content: "";
  transform: scaleX(0);
  transition: transform .18s ease;
}
nav a:hover { color: var(--lime); }
nav a:hover::after, nav a:focus-visible::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; justify-self: end; gap: 15px; }
.preview-link { color: var(--signal); font-size: .86rem; white-space: nowrap; }
.preview-link:hover { color: var(--lime); }
.header-action { white-space: nowrap; }

.button {
  display: inline-flex;
  min-height: 46px;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--lime);
  color: #14190b;
  font-size: .92rem;
  font-weight: 660;
  line-height: 1.32;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease, transform 160ms ease;
}
.button:hover { background: #e0ff93; transform: translateY(-2px); }
.button-outline { background: #131d20; border-color: #405458; color: var(--text); }
.button-outline:hover { border-color: var(--signal); background: #19282a; color: var(--signal); }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, .89fr) minmax(0, 1.11fr);
  gap: clamp(28px, 4.6vw, 65px);
  align-items: center;
  padding-block: clamp(53px, 6.2vw, 84px) clamp(49px, 5.5vw, 74px);
}
.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0 -12px;
  content: "";
  background:
    radial-gradient(ellipse at 82% 38%, #58978e26 0, transparent 65%),
    linear-gradient(#53707121 1px, transparent 1px) 0 0 / 29px 29px,
    linear-gradient(90deg, #53707121 1px, transparent 1px) 0 0 / 29px 29px;
  mask-image: radial-gradient(ellipse at 58% 44%, #000, transparent 72%);
}
.hero-copy {
  position: relative;
  padding-left: clamp(12px, 2vw, 27px);
  border-left: 1px solid #30423f;
}
.hero-copy::before, .hero-copy::after {
  position: absolute;
  left: -3px;
  width: 5px;
  height: 5px;
  background: var(--signal);
  content: "";
}
.hero-copy::before { top: 0; }
.hero-copy::after { bottom: 0; opacity: .52; }
.kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--signal);
  font: .81rem/1.45 var(--mono);
  letter-spacing: .077em;
  text-transform: uppercase;
}
.status-dot { display: inline-block; flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.hero h1 {
  margin-block: 21px;
  font-size: clamp(3rem, 5.25vw, 5.1rem);
  line-height: .99;
  font-weight: 640;
  letter-spacing: -.061em;
}
.hero em { color: var(--lime); font-style: normal; }
.hero-description { max-width: 28rem; color: var(--muted); font-size: 1.17rem; line-height: 1.57; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 26px; }

.workbench {
  position: relative;
  overflow: hidden;
  border: 1px solid #456064;
  border-radius: 12px;
  background: #111b1f;
  box-shadow: 0 26px 74px #0008, 0 0 0 4px #2033336b;
  transition: border-color .22s ease, box-shadow .22s ease;
}
.workbench:has(#preview-status[data-state="querying"]) { border-color: var(--signal); box-shadow: 0 22px 70px #0008, 0 0 32px #63b0ad38; }
.workbench:has(#preview-status[data-state="received"]) { border-color: #8fb977; }
.workbench-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding-inline: 16px;
  border-bottom: 1px solid #304448;
  background: #172428;
  font: .76rem/1.4 var(--mono);
}
.workbench-bar h2 { font: inherit; color: var(--text); letter-spacing: .045em; text-transform: uppercase; }
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 6px; height: 6px; border-radius: 50%; background: #516962; }
.window-dots i:first-child { background: #88b4af; }
.window-state { display: inline-flex; justify-self: end; align-items: center; gap: 6px; color: var(--lime); white-space: nowrap; }
.window-state .status-dot { flex-basis: 5px; width: 5px; height: 5px; }

.topology-view { height: clamp(208px, 22vw, 298px); background: #111b1f; }
.topology-view canvas { display: block; width: 100%; height: 100%; }
.terminal {
  min-height: 148px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: #090e10;
  font: .84rem/1.6 var(--mono);
}
.terminal p { color: var(--secondary); }
.terminal form { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; margin-top: 7px; }
.terminal label, .terminal-output { color: var(--lime); }
.terminal input {
  width: 100%;
  min-width: 0;
  padding: 3px 4px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--text);
}
.terminal button {
  min-height: 32px;
  padding-inline: 12px;
  border: 1px solid #55744b;
  border-radius: 4px;
  background: #232e24;
  color: var(--lime);
  cursor: pointer;
}
.terminal button:hover { background: #303e2d; }
.terminal button:disabled { cursor: progress; opacity: .66; }
.terminal-output { min-height: 3.2em; margin-top: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.workbench-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 16px;
  border-top: 1px solid var(--line);
  color: #a4bdb7;
  font: .77rem/1.5 var(--mono);
}
#preview-status[data-state="querying"] { color: #d0c78b; }
#preview-status[data-state="received"] { color: var(--lime); }
#preview-status { text-align: right; }

.method-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid #304043;
  border-radius: 9px;
  background: #10191c;
}
.method-strip > div { display: flex; align-items: center; gap: clamp(9px, 1.4vw, 17px); padding: 17px clamp(12px, 2vw, 26px); }
.method-strip > div + div { border-left: 1px solid #304043; }
.method-icon {
  position: relative;
  flex: 0 0 37px;
  height: 37px;
  border: 1px solid #4a6261;
  border-radius: 5px;
  background: #192b2c;
  color: var(--signal);
}
.watch-icon::before {
  position: absolute;
  top: 11px;
  left: 14px;
  border-block: 7px solid transparent;
  border-left: 10px solid currentColor;
  content: "";
}
.terminal-icon::before {
  position: absolute;
  top: 12px;
  left: 10px;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  content: "";
}
.terminal-icon::after {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 7px;
  height: 2px;
  background: currentColor;
  content: "";
}
.network-icon::before {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 15px;
  height: 15px;
  border-bottom: 1px solid currentColor;
  border-left: 1px solid currentColor;
  transform: rotate(-45deg);
  content: "";
}
.network-icon::after {
  position: absolute;
  top: 11px;
  left: 15px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: -7px 10px currentColor, 7px 10px currentColor;
  content: "";
}
.method-strip strong { font-size: 1.05rem; font-weight: 600; }
.method-strip p, .daily-intro > p:last-child { margin-top: 4px; color: var(--muted); }
.method-strip p { font-size: .94rem; }

.daily-section {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr;
  align-items: center;
  gap: clamp(15px, 3vw, 35px);
  padding-block: 38px;
  border-bottom: 1px solid var(--line);
}
.daily-section h2 {
  margin-block: 6px;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  letter-spacing: -.05em;
  line-height: 1.1;
  font-weight: 610;
}
.daily-intro > p:last-child { font-size: .96rem; line-height: 1.44; }
.release-time {
  position: relative;
  padding: 13px clamp(11px, 2vw, 23px);
  border-left: 1px solid #49726c;
  background: linear-gradient(90deg, #18272a, transparent);
}
.release-time span { display: block; color: var(--secondary); font: .82rem/1.35 var(--mono); }
.release-time strong { display: block; color: var(--lime); font-size: clamp(1.42rem, 3.2vw, 2.5rem); line-height: 1.2; letter-spacing: -.04em; font-weight: 560; margin-top: 5px; }

.section { padding-block: clamp(48px, 7vw, 92px); border-bottom: 1px solid var(--line); }
.section h2 {
  margin-top: 11px;
  font-size: clamp(2.15rem, 4.3vw, 3.45rem);
  line-height: 1.04;
  letter-spacing: -.055em;
  font-weight: 620;
}
.lab-entry {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  margin-top: 26px;
  border: 1px solid #3d5153;
  border-top: 2px solid #8ec4ab;
  border-radius: 9px;
  background: #111b1e;
}
.lab-summary, .lab-tasks { padding: clamp(22px, 3.2vw, 39px); }
.lab-summary .lab-meta { color: var(--signal); font: .83rem/1.35 var(--mono); }
.lab-summary h3 { font-size: 2rem; line-height: 1.1; letter-spacing: -.05em; font-weight: 620; margin-top: 8px; }
.lab-summary > p:not(.lab-meta) { max-width: 35rem; margin-block: 11px 19px; color: var(--muted); }
.lab-tasks { border-left: 1px solid #354649; }
.lab-tasks h4 { font-size: 1.05rem; }
.lab-tasks ul { display: grid; gap: 9px; margin: 12px 0 0; padding-left: 17px; color: var(--muted); }
.lab-tasks li { padding-bottom: 7px; border-bottom: 1px solid #293b3e; }
.lab-tasks li::marker { color: var(--signal); }

.video-section {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(24px, 6vw, 82px);
}
.video-section > div > p:last-child { max-width: 26rem; color: var(--muted); margin-top: 17px; }
.video-card { overflow: hidden; border: 1px solid #3a5254; border-radius: 8px; background: #142125; box-shadow: 0 15px 37px #0005; }
.video-card video { display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--terminal); object-fit: contain; }
.video-card figcaption { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 15px; border-top: 1px solid var(--line); }
.video-card figcaption span { color: var(--secondary); font: .84rem var(--mono); }
.preview-links { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; }
.preview-links p:not(.kicker) { margin-top: 11px; max-width: 36rem; color: var(--muted); }
.preview-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.site-footer {
  min-height: 84px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--secondary);
  font-size: .9rem;
}
.site-footer strong { color: var(--text); font-weight: 620; }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: arrive .5s ease-out both; }
  .workbench { animation: arrive .56s .07s ease-out both; }
}
@keyframes arrive {
  from { opacity: .25; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 1050px) {
  .shell { width: calc(100% - 72px); }
  .hero { gap: 30px; }
  nav { gap: 16px; }
  .header-actions { gap: 8px; }
  .workbench-bar { grid-template-columns: auto 1fr auto; }
  .workbench-bar h2 { text-align: center; }
}
@media (max-width: 800px) {
  .shell { width: calc(100% - 48px); }
  .hero { grid-template-columns: 1fr; gap: 34px; padding-block: 55px 52px; }
  .hero h1 { font-size: clamp(3.35rem, 10vw, 5rem); }
  .preview-link { display: none; }
  .workbench { width: 100%; }
  .topology-view { height: clamp(200px, 45vw, 275px); }
  .daily-section { grid-template-columns: 1fr 1fr; }
  .daily-intro { grid-column: 1 / -1; }
  .video-section, .preview-links { grid-template-columns: 1fr; }
}
@media (max-width: 660px) {
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .header-inner nav { display: none; }
}
@media (max-width: 560px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { grid-template-columns: 1fr auto; min-height: 68px; gap: 12px; }
  nav { display: none; }
  .preview-link { display: none; }
  .header-action { min-height: 40px; padding-inline: 13px; }
  .hero { padding-top: 44px; }
  .hero h1 { margin-block: 17px; font-size: clamp(2.78rem, 10.5vw, 3.45rem); }
  .hero-description { font-size: 1.05rem; }
  .hero-actions { margin-top: 20px; }
  .method-strip, .lab-entry { grid-template-columns: 1fr; }
  .method-strip > div { padding: 12px 15px; }
  .method-strip > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .lab-tasks { border-left: 0; border-top: 1px solid var(--line); }
  .terminal { font-size: .79rem; padding-inline: 11px; }
  .terminal form { column-gap: 6px; }
  .terminal input { padding-inline: 1px; }
  .terminal button { padding-inline: 8px; }
  .workbench-bar, .workbench-footer { padding-inline: 11px; }
  .window-dots { gap: 3px; }
  .window-dots i { width: 5px; height: 5px; }
  .site-footer { flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; }
}
@media (max-width: 385px) {
  .terminal form { grid-template-columns: auto minmax(0, 1fr); }
  .terminal input { font-size: .75rem; }
  .terminal button { grid-column: 2; justify-self: end; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; animation: none !important; }
}
