:root {
  color-scheme: dark;
  --bg: #020503;
  --bg-soft: #07100b;
  --panel: rgba(15, 24, 18, 0.72);
  --panel-strong: rgba(18, 32, 23, 0.9);
  --line: rgba(94, 255, 153, 0.18);
  --line-strong: rgba(94, 255, 153, 0.42);
  --text: #e7fff0;
  --muted: #91aa9b;
  --green: #5eff99;
  --green-deep: #00b95f;
  --shadow: 0 0 42px rgba(0, 255, 128, 0.14);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(44, 255, 141, 0.16), transparent 32rem),
    radial-gradient(circle at 80% 10%, rgba(0, 185, 95, 0.09), transparent 28rem),
    var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body::selection {
  background: var(--green);
  color: #001407;
}

.background-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(94, 255, 153, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 255, 153, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
  z-index: -2;
}

.scanline {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 0 50%, rgba(94, 255, 153, 0.025) 50% 100%);
  background-size: 100% 4px;
  opacity: 0.45;
  z-index: -1;
}

.site-header,
.section-shell {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}

.brand,
.nav,
.hero-actions,
.footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.03em;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background:
    radial-gradient(circle, rgba(94, 255, 153, 0.2), transparent 64%),
    linear-gradient(145deg, rgba(94, 255, 153, 0.16), rgba(255, 255, 255, 0.03));
  color: var(--green);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.brand-mark img {
  width: 150%;
  height: 150%;
  object-fit: cover;
  filter: drop-shadow(0 0 10px rgba(94, 255, 153, 0.58));
}

.brand-text {
  font-size: 1.05rem;
}

.nav {
  gap: 10px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(3, 10, 6, 0.58);
  backdrop-filter: blur(14px);
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 9px 14px;
  border-radius: 999px;
  transition: color 180ms ease, background 180ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
  background: rgba(94, 255, 153, 0.1);
  outline: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.86fr);
  gap: 32px;
  align-items: center;
  min-height: calc(100vh - 112px);
  padding: 42px 0 82px;
}

.status-pill,
.eyebrow,
.card-tag {
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 800;
}

.status-pill {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 22px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(94, 255, 153, 0.08);
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
  animation: pulse 1.65s infinite;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 24px;
  font-size: clamp(2.7rem, 8vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.hero-text {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.75;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.primary {
  background: var(--green);
  color: #001407;
  box-shadow: 0 0 32px rgba(94, 255, 153, 0.22);
}

.secondary {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: rgba(94, 255, 153, 0.06);
}


.hero-stack {
  display: grid;
  gap: 16px;
}

.logo-card {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at center, rgba(94, 255, 153, 0.14), transparent 58%),
    linear-gradient(145deg, rgba(94, 255, 153, 0.09), rgba(255, 255, 255, 0.018)),
    rgba(2, 5, 3, 0.68);
  box-shadow:
    0 0 70px rgba(0, 255, 128, 0.18),
    inset 0 0 36px rgba(94, 255, 153, 0.04);
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.logo-card::before,
.logo-card::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(94, 255, 153, 0.12);
  border-radius: calc(var(--radius) - 8px);
  pointer-events: none;
}

.logo-card::after {
  inset: auto 22px 22px;
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(94, 255, 153, 0.65), transparent);
  box-shadow: 0 0 18px rgba(94, 255, 153, 0.55);
}

.logo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transform: scale(1.02);
}

.logo-card figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 7px 10px;
  border: 1px solid rgba(94, 255, 153, 0.2);
  border-radius: 999px;
  background: rgba(2, 5, 3, 0.72);
  color: var(--green);
  font: 0.72rem/1.1 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.terminal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(94, 255, 153, 0.08), transparent),
    var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.terminal-top {
  display: flex;
  gap: 8px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}

.terminal-top span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(94, 255, 153, 0.55);
}

pre {
  margin: 0;
  padding: 28px;
  white-space: pre-wrap;
  color: #baffd1;
  font: 0.98rem/1.8 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.work-section,
.lab-section {
  padding: 78px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-heading h2,
.lab-panel h2,
.footer h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 3.6rem);
  letter-spacing: -0.05em;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card,
.lab-panel,
.signal-list div {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.card {
  position: relative;
  min-height: 290px;
  padding: 26px;
  border-radius: var(--radius);
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: auto -30% -45% 20%;
  height: 160px;
  background: radial-gradient(circle, rgba(94, 255, 153, 0.16), transparent 68%);
  pointer-events: none;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  color: var(--green);
  font-size: 1.6rem;
  background: rgba(94, 255, 153, 0.08);
}

.card h3 {
  margin-bottom: 14px;
  font-size: 1.38rem;
}

.card p,
.lab-panel p,
.footer p {
  color: var(--muted);
  line-height: 1.72;
}

.card-tag {
  display: inline-flex;
  margin-top: 14px;
}

.lab-section {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 16px;
  align-items: stretch;
}

.lab-panel {
  padding: 34px;
  border-radius: var(--radius);
}

.signal-list {
  display: grid;
  gap: 12px;
}

.signal-list div {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 78px;
  padding: 20px;
  border-radius: 18px;
  color: var(--text);
}

.signal-list span {
  color: var(--green);
  font-weight: 900;
}

.footer {
  justify-content: space-between;
  gap: 24px;
  padding: 52px 0 64px;
  border-top: 1px solid var(--line);
}

.footer-link {
  color: var(--green);
  text-decoration: none;
  font-weight: 800;
}

.footer-link:hover,
.footer-link:focus-visible {
  text-decoration: underline;
  outline: none;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.8); opacity: 0.35; }
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    gap: 18px;
    flex-direction: column;
  }

  .hero,
  .lab-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .site-header,
  .section-shell {
    width: min(100% - 22px, 1120px);
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .nav a {
    padding-inline: 10px;
  }

  h1 {
    font-size: clamp(2.35rem, 16vw, 4rem);
  }

  .card,
  .lab-panel,
  pre {
    padding: 22px;
  }
}

.hero-stack .terminal-card {
  box-shadow: 0 0 42px rgba(0, 255, 128, 0.1);
}

.hero-stack pre {
  padding: 22px;
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .hero-stack {
    max-width: 560px;
  }
}

@media (max-width: 520px) {
  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .logo-card figcaption {
    left: 12px;
    bottom: 12px;
    font-size: 0.62rem;
  }
}
