@font-face {
  font-family: Inter;
  src: url("./fonts/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("./fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --page: #0b1220;
  --text: #f0f4fa;
  --muted: #a7b4c7;
  --line: #243044;
  --accent: #86b7ff;
  font-family: Inter, system-ui, sans-serif;
  font-synthesis: none;
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 85% 8%, #16273e88, transparent 45%), var(--page);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
}
a {
  color: inherit;
}
svg {
  display: block;
}
a:focus-visible {
  outline: 3px solid #b5d5ff;
  outline-offset: 6px;
  border-radius: 8px;
}
.page-shell {
  width: min(1216px, 100% - 96px);
  margin: 0 auto;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 12px 20px;
  background: #e0edff;
  color: #12223c;
  transform: translateY(-180%);
  border-radius: 8px;
}
.skip-link:focus {
  transform: translateY(0);
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 31px 0;
  border-bottom: 1px solid var(--line);
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  width: 43px;
  height: 43px;
  padding: 10px;
  background: #183354;
  border: 1px solid #315176;
  border-radius: 12px;
  color: #a8ceff;
}
.brand-mark svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 2;
}
.brand-name {
  font-size: 1.4rem;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.055em;
}
.brand-name > span {
  color: #88b8fc;
  margin-left: 4px;
}
.brand-name small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  margin-top: 6px;
}
.site-header nav {
  display: flex;
  gap: 30px;
  align-items: center;
  font-size: 0.875rem;
}
.site-header nav a {
  text-decoration: none;
  font-weight: 500;
}
.site-header nav a:hover {
  color: var(--accent);
}
.header-label {
  border-left: 1px solid #34435a;
  padding-left: 30px;
  color: var(--muted);
}
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 72px;
  align-items: center;
  padding: 69px 0 72px;
}
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.13em;
  font-weight: 600;
  color: #a5b7ce;
  margin: 0 0 18px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.eyebrow > span {
  width: 18px;
  height: 2px;
  background: #77acff;
}
h1 {
  font-size: clamp(3rem, 4.6vw, 4.4rem);
  line-height: 1.09;
  letter-spacing: -0.06em;
  margin: 0 0 24px;
  font-weight: 700;
}
h1 > span {
  color: #90bcff;
}
.hero-description {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: #b5c1d2;
  max-width: 500px;
  margin: 0;
}
.hero-facts {
  display: flex;
  gap: 21px;
  flex-wrap: wrap;
  color: #aebdd0;
  font-size: 0.8125rem;
  margin-top: 29px;
}
.hero-facts > span {
  display: flex;
  gap: 7px;
  align-items: center;
  white-space: nowrap;
}
.hero-facts svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #82a3cc;
  stroke-width: 1.4;
  stroke-linejoin: round;
}
.hero-visual {
  background: linear-gradient(135deg, #152238aa, #0e1a2c99);
  border: 1px solid #2c3d53;
  border-radius: 18px;
  padding: 18px 22px 16px;
  position: relative;
  box-shadow: 0 24px 90px #00000020;
}
.hero-visual:before {
  content: "";
  position: absolute;
  inset: 50px 0 40px;
  pointer-events: none;
  background-image: radial-gradient(#6b91b433 1px, transparent 1px);
  background-size: 17px 17px;
  mask-image: radial-gradient(ellipse, #000, transparent 75%);
}
.visual-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  color: #a8bbd3;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}
.visual-topline svg {
  width: 20px;
  stroke: #76a7dd;
  fill: none;
  stroke-width: 1.5;
}
.network-map {
  width: 100%;
  position: relative;
  margin: 12px 0;
}
.map-wire {
  stroke: url(#wire);
  stroke-width: 1.5;
}
.map-wire-dashed {
  stroke: #32485f;
  stroke-width: 1;
  stroke-dasharray: 4 6;
}
.network-map text {
  font-family: Inter, sans-serif;
  font-size: 10px;
  letter-spacing: 1.5px;
  fill: #99abc2;
}
.visual-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #26364a;
  padding-top: 13px;
  font-size: 0.6875rem;
  color: #9eafc5;
}
.mono {
  font-family: "JetBrains Mono", monospace;
}
.visual-caption .mono {
  font-size: 0.6875rem;
  color: #9dbce6;
}
.labs-section {
  padding-top: 4px;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 25px;
}
.section-heading .eyebrow {
  margin-bottom: 7px;
  font-size: 0.6875rem;
}
.section-heading h2 {
  font-size: 1.65rem;
  letter-spacing: -0.04em;
  line-height: 1.3;
  margin: 0;
}
.section-heading > p {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0 0 3px;
}
.labs-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}
.lab-card {
  --card-accent: #9ac4ff;
  --card-tint: #172b45;
  --card-border: #2b4b73;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: linear-gradient(145deg, #152034, #111b2b);
  border: 1px solid #2a374d;
  border-radius: 16px;
  padding: 25px;
  text-decoration: none;
  transition:
    transform 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.lab-card:before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--card-accent),
    transparent
  );
  opacity: 0;
  transition: opacity 0.2s;
}
.lab-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-border);
  box-shadow: 0 12px 35px #0003;
}
.lab-card:hover:before {
  opacity: 1;
}
.routing {
  --card-accent: #71dcc4;
  --card-tint: #16332f;
  --card-border: #2e6c5f;
}
.raid {
  --card-accent: #b9a3ff;
  --card-tint: #2b2645;
  --card-border: #5b4b85;
}
.nat {
  --card-accent: #f4bd7c;
  --card-tint: #362b23;
  --card-border: #80603a;
  grid-column: span 3;
}
.dhcp {
  --card-accent: #efa2cf;
  --card-tint: #35253a;
  --card-border: #80516e;
  grid-column: span 3;
}
.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 19px;
}
.lab-icon {
  background: var(--card-tint);
  border: 1px solid var(--card-border);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--card-accent);
  flex-shrink: 0;
}
.lab-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.category {
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  color: #acb9cc;
  font-weight: 500;
  text-align: right;
}
.lab-card h3 {
  font-size: 1.5rem;
  letter-spacing: -0.035em;
  line-height: 1.3;
  margin: 0 0 10px;
}
.lab-card > p {
  font-size: 0.875rem;
  color: #b3bfd0;
  line-height: 1.75;
  margin: 0;
  min-height: 4.6em;
  max-width: 450px;
}
.lab-preview {
  margin: 24px 0;
  min-height: 98px;
  border: 1px solid #2a3749;
  border-radius: 10px;
  background: #0b1525bb;
  color: var(--card-accent);
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.subnet-preview {
  flex-direction: column;
  gap: 13px;
}
.subnet-preview > .mono {
  font-size: 0.875rem;
}
.prefix {
  color: #dbeaff;
  margin-left: 3px;
}
.subnet-blocks {
  display: flex;
  width: 100%;
  gap: 5px;
}
.subnet-blocks span {
  flex: 1;
  text-align: center;
  border: 1px solid #34537b;
  background: #1b3553;
  border-radius: 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6875rem;
  padding: 3px;
}
.routing-preview svg {
  width: 100%;
  max-height: 70px;
}
.raid-preview {
  gap: 8px;
  padding: 10px 25px;
}
.raid-preview > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}
.raid-preview span {
  background: #292441;
  border: 1px solid #4e426e;
  border-radius: 3px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.625rem;
}
.raid-preview .parity {
  background: #3c305c;
  color: #e1d3ff;
}
.raid-preview small {
  font-size: 0.5rem;
  color: #a2abc1;
  letter-spacing: 0.08em;
  margin-top: 3px;
}
.nat-preview {
  gap: 18px;
  justify-content: space-around;
}
.nat-preview > div {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.nat-preview small {
  font-size: 0.5625rem;
  color: #a8b3c4;
  letter-spacing: 0.1em;
}
.nat-preview .mono {
  font-size: 0.8125rem;
  color: #e2d0b8;
}
.translation {
  padding: 7px 12px;
  background: var(--card-tint);
  border: 1px solid var(--card-border);
  border-radius: 7px;
  font-size: 0.6875rem;
  font-weight: 600;
}
.dhcp-preview {
  gap: 10px;
  justify-content: space-around;
}
.dhcp-preview > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 0.5625rem;
  color: #c5b1c7;
}
.dhcp-preview b {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  background: var(--card-tint);
  border: 1px solid #67405b;
  color: #f3b4dc;
  border-radius: 7px;
  font-size: 0.8125rem;
  font-family: "JetBrains Mono", monospace;
}
.dhcp-preview i {
  width: 22px;
  height: 1px;
  background: #68485f;
  margin-bottom: 17px;
}
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 1px;
}
.tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.tags > span {
  font-size: 0.625rem;
  color: #b0bdd0;
  border: 1px solid #334057;
  border-radius: 5px;
  padding: 3px 7px;
  white-space: nowrap;
}
.open-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--card-accent);
  white-space: nowrap;
}
.learning-note {
  display: flex;
  gap: 15px;
  align-items: center;
  margin: 31px 0 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #111d2e88;
  padding: 20px 24px;
}
.note-icon {
  color: #92a8c7;
  flex-shrink: 0;
}
.note-icon svg {
  width: 25px;
  height: 25px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.learning-note p {
  margin: 0;
  font-size: 0.8125rem;
  color: #a6b6cc;
  line-height: 1.8;
}
.learning-note strong {
  color: #d6dfed;
  font-weight: 500;
  margin-right: 4px;
}
.site-footer {
  padding: 25px 0 31px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: #8f9fb6;
  font-size: 0.75rem;
}
.site-footer strong {
  font-size: 0.8125rem;
  color: #bbc9dc;
  letter-spacing: -0.02em;
}
.footer-divider {
  color: #4e607b;
  margin: 0 12px;
}
@media (min-width: 1400px) {
  .hero {
    padding-top: 78px;
    padding-bottom: 80px;
  }
}
@media (max-width: 1100px) {
  .page-shell {
    width: calc(100% - 64px);
  }
  .hero {
    gap: 35px;
  }
  .hero-facts {
    gap: 12px;
  }
  .lab-card {
    padding: 21px;
  }
  .category {
    font-size: 0.5625rem;
  }
  .card-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .section-heading > p {
    max-width: 180px;
    text-align: right;
  }
  .nat .card-bottom,
  .dhcp .card-bottom {
    flex-direction: row;
    align-items: center;
  }
}
@media (max-width: 800px) {
  .page-shell {
    width: calc(100% - 40px);
  }
  .header-label {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    padding: 50px 0;
  }
  .hero h1 {
    font-size: 2.9rem;
  }
  .hero-description {
    font-size: 0.9375rem;
  }
  .hero-facts {
    font-size: 0.6875rem;
    gap: 10px;
  }
  .hero-visual {
    padding: 14px;
  }
  .visual-topline {
    font-size: 0.5rem;
    letter-spacing: 0.025em;
  }
  .visual-caption {
    font-size: 0.5rem;
  }
  .visual-caption .mono {
    font-size: 0.5rem;
  }
  .lab-card,
  .nat,
  .dhcp {
    grid-column: span 3;
  }
  .dhcp {
    grid-column: span 6;
  }
  .dhcp .lab-preview {
    max-width: none;
  }
  .lab-card > p {
    min-height: 4.6em;
  }
  .nat .card-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .section-heading h2 {
    font-size: 1.45rem;
  }
  .section-heading > p {
    font-size: 0.75rem;
  }
  .learning-note {
    margin-bottom: 35px;
  }
}
@media (max-width: 580px) {
  .site-header {
    padding: 22px 0;
  }
  .site-header nav {
    font-size: 0.75rem;
  }
  .brand-mark {
    width: 38px;
    height: 38px;
    padding: 8px;
  }
  .brand-name {
    font-size: 1.25rem;
  }
  .brand-name small {
    font-size: 0.625rem;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 43px 0 39px;
    gap: 30px;
  }
  .hero h1 {
    font-size: 3.35rem;
  }
  .hero-description {
    font-size: 1rem;
    max-width: 430px;
  }
  .hero-facts {
    font-size: 0.6875rem;
    gap: 15px;
    margin-top: 23px;
  }
  .hero-visual {
    max-width: 430px;
    width: 100%;
    justify-self: center;
    padding: 16px 20px;
  }
  .visual-topline {
    font-size: 0.5625rem;
    letter-spacing: 0.06em;
  }
  .network-map {
    max-height: 225px;
    margin: 6px 0;
  }
  .visual-caption,
  .visual-caption .mono {
    font-size: 0.625rem;
  }
  .section-heading {
    display: block;
    margin-bottom: 21px;
  }
  .section-heading > p {
    max-width: none;
    text-align: left;
    margin: 10px 0 0;
    font-size: 0.8125rem;
  }
  .section-heading h2 {
    font-size: 1.5rem;
  }
  .labs-grid {
    gap: 16px;
  }
  .lab-card,
  .nat,
  .dhcp {
    grid-column: span 6;
    padding: 24px;
  }
  .category {
    font-size: 0.625rem;
  }
  .lab-card > p {
    font-size: 0.9375rem;
    min-height: 0;
  }
  .lab-preview {
    margin: 22px 0;
  }
  .card-bottom,
  .nat .card-bottom {
    flex-direction: row;
    align-items: center;
  }
  .tags > span {
    font-size: 0.6875rem;
  }
  .open-label {
    font-size: 0.75rem;
  }
  .nat-preview {
    gap: 9px;
    padding: 15px 12px;
  }
  .nat-preview .mono {
    font-size: 0.75rem;
  }
  .translation {
    padding: 7px 9px;
  }
  .learning-note {
    align-items: flex-start;
    padding: 18px;
    margin: 24px 0 31px;
    gap: 12px;
  }
  .learning-note strong {
    display: block;
    margin-bottom: 4px;
  }
  .site-footer {
    flex-direction: column;
    gap: 10px;
    padding: 23px 0;
  }
  .eyebrow {
    font-size: 0.6875rem;
  }
}
@media (max-width: 360px) {
  .page-shell {
    width: calc(100% - 28px);
  }
  .hero h1 {
    font-size: 2.9rem;
  }
  .hero-facts {
    gap: 9px;
    font-size: 0.625rem;
  }
  .lab-card {
    padding: 20px;
  }
  .nat-preview .mono {
    font-size: 0.625rem;
  }
  .tags > span {
    font-size: 0.625rem;
  }
  .card-bottom {
    gap: 5px;
  }
  .open-label {
    font-size: 0.6875rem;
  }
  .site-header nav {
    font-size: 0.6875rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
  *,
  *:before {
    transition: none !important;
  }
  .lab-card:hover {
    transform: none;
  }
}

/* Readable card copy and action labels at every screen size. */
.lab-card > p {
  font-size: 1rem;
}
.tags > span {
  font-size: 0.75rem;
}
.open-label {
  font-size: 0.875rem;
}
@media (max-width: 360px) {
  .card-bottom,
  .nat .card-bottom,
  .dhcp .card-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}
