
:root {
  --bg: #05080e;
  --bg-soft: #080d15;
  --surface: #0a111c;
  --surface-2: #101a29;
  --surface-3: #141f30;

  --text: #f4f7fb;
  --muted: #8291a7;
  --muted-2: #56657a;

  --red: #e53945;
  --red-soft: rgba(229, 57, 69, .10);

  --blue: #19a7ff;
  --cyan: #62e8ff;
  --cyan-soft: rgba(98, 232, 255, .09);

  --purple: #a78bfa;
  --green: #66e0a3;

  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(25, 167, 255, .22);

  --shadow: 0 30px 80px rgba(0, 0, 0, .36);

  --max: 1220px;
}

[data-theme="light"] {
  --bg: #f3f6fa;
  --bg-soft: #edf2f7;
  --surface: #ffffff;
  --surface-2: #e8eef6;
  --surface-3: #dde6f0;

  --text: #111827;
  --muted: #536276;
  --muted-2: #76859a;

  --red: #d92f3b;
  --red-soft: rgba(217, 47, 59, .08);

  --blue: #087fc4;
  --cyan: #078ca6;
  --cyan-soft: rgba(7, 140, 166, .07);

  --purple: #7557d8;
  --green: #15895b;

  --line: rgba(17, 24, 39, .10);
  --line-strong: rgba(8, 127, 196, .22);

  --shadow: 0 30px 80px rgba(45, 58, 76, .13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 5%, rgba(25, 167, 255, .08), transparent 24%),
    radial-gradient(circle at 92% 12%, rgba(229, 57, 69, .06), transparent 24%),
    var(--bg);
  font-family: "Space Grotesk", system-ui, sans-serif;
  overflow-x: hidden;
}

body.web-sling {
  --line-strong: rgba(229, 57, 69, .30);
}

::selection {
  color: #fff;
  background: rgba(229, 57, 69, .7);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

#networkCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  pointer-events: none;
  opacity: .72;
}

.page-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, black 0%, rgba(0,0,0,.7) 55%, transparent 100%);
}

.scroll-progress {
  position: fixed;
  z-index: 200;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--red), var(--blue), var(--cyan));
  box-shadow: 0 0 18px rgba(25, 167, 255, .5);
}

.site-header,
.section,
footer {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 112px 0;
}

.section-block {
  border-top: 1px solid var(--line);
}

.section-title {
  margin-bottom: 54px;
}

.section-code,
.project-kicker,
.eyebrow,
.credential-top,
.career-top,
.project-screen-label,
.console,
.web-status-card,
.header-status,
.brand {
  font-family: "JetBrains Mono", monospace;
}

.section-code {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--blue);
  font-size: .72rem;
  letter-spacing: .10em;
}

.section-title h2 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: .95;
  letter-spacing: -.065em;
}

.web-divider {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
  height: 54px;
  display: flex;
  align-items: center;
  gap: 0;
  opacity: .65;
}

.web-divider span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
}

.web-divider i {
  width: 8px;
  height: 8px;
  margin: 0 18px;
  border: 1px solid rgba(98, 232, 255, .4);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(98, 232, 255, .16);
}

footer {
  padding: 34px 0 48px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: end;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-family: "JetBrains Mono", monospace;
  font-size: .7rem;
}

footer > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

footer strong {
  color: var(--text);
  font-size: 1.05rem;
}

footer > div:nth-child(2) {
  display: flex;
  gap: 13px;
}

footer > div:last-child {
  text-align: right;
}

@media (max-width: 760px) {
  .site-header,
  .section,
  footer,
  .web-divider {
    width: min(100% - 24px, var(--max));
  }

  .section {
    padding: 84px 0;
  }

  footer {
    grid-template-columns: 1fr;
    align-items: start;
  }

  footer > div:nth-child(2) {
    flex-wrap: wrap;
  }

  footer > div:last-child {
    text-align: left;
  }
}


/* LIGHT THEME — core surfaces */
[data-theme="light"] body {
  background:
    radial-gradient(circle at 8% 5%, rgba(8, 127, 196, .08), transparent 24%),
    radial-gradient(circle at 92% 12%, rgba(217, 47, 59, .05), transparent 24%),
    var(--bg);
}

[data-theme="light"] .page-grid {
  background-image:
    linear-gradient(rgba(17,24,39,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,24,39,.035) 1px, transparent 1px);
}

[data-theme="light"] .web-divider span {
  background: linear-gradient(90deg, transparent, rgba(17,24,39,.12), transparent);
}

[data-theme="light"] .web-divider i {
  border-color: rgba(8,127,196,.35);
  box-shadow: 0 0 14px rgba(8,127,196,.10);
}

[data-theme="light"] ::selection {
  color: #fff;
  background: rgba(217,47,59,.78);
}
