:root {
  --bg: #07110f;
  --bg-2: #0a1714;
  --panel: #0d1c18;
  --panel-2: #10231e;
  --line: rgba(174, 238, 213, .14);
  --line-strong: rgba(174, 238, 213, .26);
  --text: #e5f2ec;
  --muted: #91a8a0;
  --green: #79f2bd;
  --blue: #71c9ff;
  --amber: #ffc76b;
  --violet: #b7a0ff;
  --danger: #ff8b79;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 8%, rgba(55, 161, 121, .14), transparent 30rem),
    radial-gradient(circle at 7% 52%, rgba(45, 115, 100, .08), transparent 32rem),
    var(--bg);
  font-family: var(--sans);
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(125, 220, 181, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 220, 181, .025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
}

.noise { position: fixed; inset: 0; pointer-events: none; opacity: .025; z-index: 20; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E"); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.site-header {
  width: min(1240px, calc(100% - 48px));
  height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 2;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand strong { display: block; font-family: var(--mono); font-size: 17px; letter-spacing: .12em; line-height: 1.1; }
.brand small { display: block; margin-top: 4px; color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .28em; }
.brand-mark { width: 34px; height: 34px; border: 1px solid rgba(121, 242, 189, .42); display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 7px; transform: rotate(45deg); }
.brand-mark span { background: var(--green); opacity: .75; }
.brand-mark span:nth-child(2) { opacity: .3; }
.brand-mark span:nth-child(3) { opacity: .55; }

nav { display: flex; gap: 34px; }
nav a { color: var(--muted); font-size: 13px; letter-spacing: .05em; transition: color .2s ease; }
nav a:hover, nav a:focus-visible { color: var(--green); }
.system-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border: 1px solid var(--line); color: #b8cec6; background: rgba(10, 27, 22, .6); font-family: var(--mono); font-size: 10px; letter-spacing: .06em; }
.system-pill i, .ticker i { width: 6px; height: 6px; background: var(--green); border-radius: 50%; box-shadow: 0 0 14px var(--green); }

main, .site-footer { width: min(1240px, calc(100% - 48px)); margin: 0 auto; }
.hero { min-height: 680px; display: grid; grid-template-columns: 1.12fr .88fr; gap: 80px; align-items: center; padding: 90px 0 72px; }
.eyebrow { color: var(--green); font-family: var(--mono); font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow span { padding: 5px 8px; margin-right: 7px; border: 1px solid rgba(121, 242, 189, .28); background: rgba(121, 242, 189, .05); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 26px; font-size: clamp(48px, 6vw, 83px); line-height: .98; letter-spacing: -.055em; font-weight: 650; }
h1 em { color: #8aa299; font-style: normal; font-weight: 430; }
.lead { max-width: 690px; color: #a8bbb4; font-size: 18px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; }
.button { min-height: 48px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; border: 1px solid var(--line-strong); font-family: var(--mono); font-size: 12px; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: #06110d; background: var(--green); border-color: var(--green); font-weight: 700; }
.button.secondary { color: #c7d8d1; background: rgba(255,255,255,.015); }

.hero-panel { border: 1px solid var(--line-strong); background: linear-gradient(145deg, rgba(17, 39, 32, .86), rgba(7, 18, 15, .9)); box-shadow: 0 28px 80px rgba(0,0,0,.25); position: relative; }
.hero-panel::before, .hero-panel::after { content: ""; position: absolute; width: 11px; height: 11px; border-color: var(--green); opacity: .7; }
.hero-panel::before { top: -1px; left: -1px; border-top: 2px solid; border-left: 2px solid; }
.hero-panel::after { right: -1px; bottom: -1px; border-right: 2px solid; border-bottom: 2px solid; }
.panel-head { padding: 17px 20px; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.metric { min-height: 128px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metric:nth-child(2n) { border-right: 0; }
.metric strong { font-family: var(--mono); font-size: 30px; font-weight: 500; }
.metric span { color: var(--muted); font-size: 12px; }
.activity { padding: 24px; }
.activity-title { display: flex; justify-content: space-between; color: var(--muted); font-family: var(--mono); font-size: 10px; }
.activity-title output { color: var(--green); font: inherit; }
.activity-title output.is-stale { color: var(--amber); }
.load-chart {
  height: 86px;
  margin: 18px 0 0;
  overflow: hidden;
  background-image:
    linear-gradient(to top, rgba(121,242,189,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(121,242,189,.055) 1px, transparent 1px);
  background-size: 100% 25%, 12.5% 100%;
  background-position: left bottom;
}
.load-chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.load-chart__area { fill: rgba(121, 242, 189, .1); }
.load-chart__line { fill: none; stroke: var(--green); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.load-chart__point { fill: var(--green); stroke: rgba(7,17,15,.9); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.ticker { min-height: 54px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ticker span { display: flex; align-items: center; justify-content: center; gap: 9px; border-right: 1px solid var(--line); color: #8fa79e; font-family: var(--mono); font-size: 9px; letter-spacing: .12em; }
.ticker span:last-child { border-right: 0; }

.section { padding: 118px 0; }
.section-heading { display: grid; grid-template-columns: 1fr 430px; align-items: end; gap: 60px; margin-bottom: 42px; }
h2 { margin-bottom: 0; font-size: clamp(35px, 4vw, 52px); line-height: 1.07; letter-spacing: -.035em; font-weight: 600; }
.section-heading > p { margin-bottom: 5px; color: var(--muted); }
.lab-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.lab-card { min-height: 370px; padding: 22px; display: flex; flex-direction: column; background: rgba(13, 28, 24, .82); border: 1px solid var(--line); position: relative; overflow: hidden; transition: transform .2s ease, border-color .2s ease; }
.lab-card:hover { transform: translateY(-4px); border-color: var(--card-color); }
.lab-card::after { content: ""; position: absolute; left: 0; top: 0; width: 3px; height: 58px; background: var(--card-color); }
.accent-green { --card-color: var(--green); }
.accent-blue { --card-color: var(--blue); }
.accent-amber { --card-color: var(--amber); }
.accent-violet { --card-color: var(--violet); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lab-number { color: var(--card-color); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; }
.state { padding: 4px 7px; font-family: var(--mono); font-size: 8px; letter-spacing: .05em; text-transform: uppercase; border: 1px solid; }
.state.ready { color: var(--green); border-color: rgba(121,242,189,.25); background: rgba(121,242,189,.05); }
.state.planned { color: #9eb0aa; border-color: var(--line); }
.lab-icon { width: 58px; height: 58px; margin: 50px 0 26px; display: grid; place-items: center; color: var(--card-color); border: 1px solid color-mix(in srgb, var(--card-color) 30%, transparent); background: color-mix(in srgb, var(--card-color) 5%, transparent); font-family: var(--mono); font-size: 22px; }
.lab-card h3 { margin-bottom: 13px; font-size: 19px; font-weight: 580; }
.lab-card p { color: var(--muted); font-size: 13px; }
.lab-card footer { margin-top: auto; padding-top: 17px; display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); color: #7d928b; font-family: var(--mono); font-size: 9px; }

.environment { padding: 94px 0; display: grid; grid-template-columns: 1.08fr .92fr; gap: 80px; align-items: center; border-top: 1px solid var(--line); }
.terminal { border: 1px solid var(--line-strong); background: #050c0a; box-shadow: 0 32px 70px rgba(0,0,0,.28); }
.terminal-head { height: 42px; padding: 0 14px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); color: #70847d; font-family: var(--mono); font-size: 9px; }
.terminal-head > span:last-child { text-align: right; }
.dots { display: flex; gap: 6px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: #315048; }
.dots i:first-child { background: #d56f60; }.dots i:nth-child(2) { background: #d3ad57; }.dots i:nth-child(3) { background: #58b68d; }
pre { margin: 0; padding: 30px; min-height: 340px; overflow: auto; color: #cad8d3; font-family: var(--mono); font-size: 12px; line-height: 1.9; }
.dim { color: #506660; }.prompt { color: var(--green); }.success { color: var(--blue); }.cursor { color: var(--green); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.environment-copy > p:not(.eyebrow) { margin: 25px 0 30px; color: var(--muted); }
.environment-copy ul { padding: 0; margin: 0; list-style: none; }
.environment-copy li { padding: 14px 0; border-top: 1px solid var(--line); color: #c3d2cd; font-size: 13px; }
.environment-copy li:last-child { border-bottom: 1px solid var(--line); }
.environment-copy li span { margin-right: 15px; color: var(--green); font-family: var(--mono); font-size: 10px; }

.access-section { margin: 65px 0 120px; padding: 68px; display: grid; grid-template-columns: 1fr 460px; gap: 100px; align-items: center; background: linear-gradient(130deg, rgba(12, 32, 26, .92), rgba(8, 19, 16, .9)); border: 1px solid var(--line-strong); position: relative; }
.access-section::before { content: "AUTH / 04"; position: absolute; top: 20px; right: 22px; color: rgba(121,242,189,.18); font-family: var(--mono); font-size: 10px; letter-spacing: .18em; }
.access-copy > p:not(.eyebrow) { max-width: 520px; margin: 25px 0; color: var(--muted); }
.security-note { max-width: 430px; padding: 15px; display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); background: rgba(4, 13, 10, .32); }
.security-note > span { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border: 1px solid rgba(121,242,189,.25); color: var(--green); }
.security-note p { margin: 0; font-size: 11px; color: var(--muted); }
.security-note strong { color: #c8d8d2; font-weight: 550; }
.login-card { background: #091410; border: 1px solid var(--line-strong); box-shadow: 0 25px 60px rgba(0,0,0,.25); }
.login-head { height: 49px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); color: var(--green); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; }
.lock { font-size: 17px; }
form { padding: 25px; }
label { display: block; margin: 14px 0 8px; color: #9cb0a9; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; }
.input-wrap { height: 48px; display: grid; grid-template-columns: 43px 1fr; align-items: center; border: 1px solid var(--line); background: rgba(255,255,255,.015); transition: border-color .2s ease; }
.input-wrap:focus-within { border-color: rgba(121,242,189,.55); box-shadow: 0 0 0 3px rgba(121,242,189,.05); }
.input-wrap span { height: 100%; display: grid; place-items: center; border-right: 1px solid var(--line); color: #658078; font-family: var(--mono); }
.input-wrap input { width: 100%; height: 100%; padding: 0 14px; color: var(--text); border: 0; outline: 0; background: transparent; font-family: var(--mono); font-size: 12px; }
.input-wrap input::placeholder { color: #40564f; }
#login-button { width: 100%; min-height: 49px; margin-top: 22px; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; color: #06120e; border: 1px solid var(--green); background: var(--green); font-family: var(--mono); font-size: 11px; font-weight: 700; cursor: pointer; transition: filter .2s ease, transform .2s ease; }
#login-button:hover { filter: brightness(1.06); transform: translateY(-1px); }
#login-button:focus-visible { outline: 2px solid white; outline-offset: 3px; }
.login-error { margin: 13px 0 0; padding: 10px 12px; color: #ffd1c9; border: 1px solid rgba(255,139,121,.3); background: rgba(255,139,121,.07); font-family: var(--mono); font-size: 10px; }
.form-foot { margin: 17px 0 0; color: #526760; text-align: center; font-size: 10px; }

.site-footer { min-height: 105px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 45px; border-top: 1px solid var(--line); color: #637770; font-size: 10px; }
.footer-brand { opacity: .65; }.footer-brand .brand-mark { width: 28px; height: 28px; padding: 6px; }.footer-brand strong { font-size: 14px; }.footer-brand small { font-size: 7px; }

@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 75px; }
  .hero-panel { max-width: 700px; }
  .lab-grid { grid-template-columns: repeat(2, 1fr); }
  .environment { grid-template-columns: 1fr; }
  .access-section { grid-template-columns: 1fr; gap: 45px; padding: 48px; }
  .login-card { max-width: 540px; }
  .section-heading { grid-template-columns: 1fr; gap: 15px; }
}

@media (max-width: 720px) {
  .site-header, main, .site-footer { width: min(100% - 28px, 1240px); }
  .site-header { height: 74px; }
  nav, .system-pill { display: none; }
  .hero { min-height: auto; padding: 72px 0 55px; }
  h1 { font-size: clamp(43px, 14vw, 65px); }
  .lead { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .ticker { grid-template-columns: repeat(2, 1fr); }
  .ticker span { min-height: 44px; border-bottom: 1px solid var(--line); }
  .section { padding: 82px 0; }
  .lab-grid { grid-template-columns: 1fr; }
  .lab-card { min-height: 330px; }
  .environment { padding: 75px 0; gap: 50px; }
  pre { padding: 20px; font-size: 10px; }
  .access-section { margin: 25px 0 80px; padding: 29px 18px; }
  .metric { min-height: 110px; padding: 18px; }
  .panel-head { flex-direction: column; gap: 5px; }
  .site-footer { padding: 25px 0; grid-template-columns: 1fr; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
