:root {
  --bg: #020403;
  --bg-soft: rgba(0, 18, 8, 0.84);
  --panel: rgba(2, 10, 5, 0.82);
  --line: rgba(83, 255, 154, 0.2);
  --glow: #4dff9d;
  --glow-strong: #9dffbe;
  --text: #bbffcf;
  --text-soft: #79c991;
  --shadow: 0 0 18px rgba(77, 255, 157, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Courier New", Courier, monospace;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(27, 97, 50, 0.12), transparent 35%),
    linear-gradient(180deg, #010201 0%, #020403 55%, #000 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    repeating-linear-gradient(
      180deg,
      rgba(98, 255, 162, 0.05) 0,
      rgba(98, 255, 162, 0.05) 1px,
      transparent 1px,
      transparent 4px
    );
  opacity: 0.32;
  animation: screenPulse 8s linear infinite;
}

body::after {
  background:
    radial-gradient(circle at 20% 20%, rgba(77, 255, 157, 0.06), transparent 30%),
    radial-gradient(circle at 80% 30%, rgba(77, 255, 157, 0.06), transparent 24%),
    radial-gradient(circle at 50% 80%, rgba(77, 255, 157, 0.05), transparent 28%);
  animation: drift 18s ease-in-out infinite alternate;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  padding-top: 220px;
}

.top-logo {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(405px, calc(100vw - 32px));
  height: 185px;
  padding: 8px 12px;
  border: 1px solid rgba(83, 255, 154, 0.18);
  border-radius: 18px;
  background: rgba(0, 10, 4, 0.72);
  box-shadow: 0 0 22px rgba(77, 255, 157, 0.16);
  transform: translateX(-50%);
  backdrop-filter: blur(6px);
}

.top-logo img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(77, 255, 157, 0.34));
}

.matrix-rain {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.16;
  background-image:
    linear-gradient(transparent 0%, rgba(77, 255, 157, 0.08) 70%, transparent 100%),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 60px,
      rgba(77, 255, 157, 0.14) 61px,
      transparent 62px
    );
  background-size: 100% 260px, 120px 100%;
  animation: rainMove 11s linear infinite;
}

.site-header,
.content,
.site-footer {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(77, 255, 157, 0.3));
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18rem;
  color: var(--text-soft);
}

.brand strong {
  font-size: 1.2rem;
  letter-spacing: 0.08rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  background: rgba(0, 10, 4, 0.72);
  box-shadow: inset 0 0 0 0 rgba(77, 255, 157, 0.2), 0 0 0 rgba(77, 255, 157, 0);
  transition:
    transform 180ms ease,
    color 180ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background 220ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(157, 255, 190, 0.72);
  background: rgba(7, 35, 16, 0.92);
  box-shadow: 0 0 18px rgba(77, 255, 157, 0.18), inset 0 0 18px rgba(77, 255, 157, 0.08);
  outline: none;
}

.nav-link:active {
  transform: translateY(1px) scale(0.98);
}

.nav-link.current {
  border-color: rgba(157, 255, 190, 0.8);
  color: var(--glow-strong);
  box-shadow: inset 0 0 18px rgba(77, 255, 157, 0.12), var(--shadow);
}

.content {
  flex: 1;
  padding: 24px 0 40px;
}

.hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.panel {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(0, 18, 8, 0.82), rgba(1, 8, 4, 0.92));
  box-shadow: var(--shadow);
}

.panel::before {
  content: "";
  position: absolute;
  inset: auto -30% 100% auto;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(77, 255, 157, 0.16), transparent 68%);
  animation: panelSweep 7s linear infinite;
}

.hero h1,
.panel h1,
.panel h2 {
  margin-top: 0;
}

.hero h1,
.panel h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  text-shadow: 0 0 14px rgba(77, 255, 157, 0.18);
}

.panel h2 {
  font-size: 1.35rem;
}

.eyebrow {
  margin-top: 0;
  color: var(--glow-strong);
  letter-spacing: 0.14rem;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.hero p,
.panel p {
  line-height: 1.7;
  color: var(--text);
}

.hero-card {
  position: relative;
  align-self: center;
}

.scanline {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(157, 255, 190, 0.12) 48%,
    transparent 52%,
    transparent 100%
  );
  animation: scan 5s linear infinite;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.tooling {
  margin-top: 24px;
}

.text-link {
  color: var(--glow-strong);
  text-decoration: none;
  border-bottom: 1px dashed rgba(157, 255, 190, 0.45);
  transition: color 180ms ease, border-color 180ms ease, text-shadow 180ms ease;
}

.text-link:hover,
.text-link:focus-visible {
  color: #d8ffe6;
  border-color: rgba(216, 255, 230, 0.8);
  text-shadow: 0 0 10px rgba(157, 255, 190, 0.32);
  outline: none;
}

.single-content {
  display: grid;
  place-items: center;
}

.panel-center {
  width: min(760px, 100%);
  min-height: 320px;
  display: grid;
  place-content: center;
  text-align: center;
}

.big-message {
  font-size: 1.2rem;
  letter-spacing: 0.08rem;
}

.empty-panel {
  background:
    linear-gradient(180deg, rgba(0, 18, 8, 0.62), rgba(1, 8, 4, 0.84)),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 28px,
      rgba(77, 255, 157, 0.03) 29px,
      transparent 30px
    );
}

.about-panel {
  width: min(860px, 100%);
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: 28px;
  align-items: center;
}

.about-photo-wrap {
  position: relative;
}

.about-photo-wrap::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(157, 255, 190, 0.5);
  border-radius: 18px;
  pointer-events: none;
  box-shadow: inset 0 0 22px rgba(77, 255, 157, 0.14);
}

.about-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid rgba(83, 255, 154, 0.34);
  border-radius: 22px;
  box-shadow: 0 0 26px rgba(77, 255, 157, 0.18);
}

.about-copy {
  min-width: 0;
}

.contact-panel {
  width: min(760px, 100%);
}

.contact-copy {
  margin-bottom: 22px;
  text-align: center;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label {
  color: var(--glow-strong);
  font-size: 0.82rem;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(83, 255, 154, 0.28);
  border-radius: 12px;
  padding: 13px 14px;
  color: var(--text);
  background: rgba(0, 10, 4, 0.74);
  font: inherit;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 150px;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(157, 255, 190, 0.78);
  background: rgba(3, 18, 8, 0.92);
  box-shadow: 0 0 18px rgba(77, 255, 157, 0.16);
}

.contact-check {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-button {
  justify-self: center;
  min-width: 160px;
  border: 1px solid rgba(157, 255, 190, 0.72);
  border-radius: 999px;
  padding: 13px 22px;
  color: var(--glow-strong);
  background: rgba(0, 10, 4, 0.82);
  box-shadow: inset 0 0 18px rgba(77, 255, 157, 0.12), var(--shadow);
  cursor: pointer;
  font: inherit;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.form-button:hover,
.form-button:focus-visible {
  transform: translateY(-2px);
  background: rgba(7, 35, 16, 0.92);
  box-shadow: 0 0 22px rgba(77, 255, 157, 0.2), inset 0 0 18px rgba(77, 255, 157, 0.12);
  outline: none;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 24px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

@keyframes rainMove {
  from {
    background-position: 0 -260px, 0 0;
  }
  to {
    background-position: 0 260px, 0 0;
  }
}

@keyframes scan {
  from {
    transform: translateY(-130%);
  }
  to {
    transform: translateY(130%);
  }
}

@keyframes panelSweep {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-340px, 340px);
  }
}

@keyframes drift {
  from {
    transform: translate3d(-1%, -1%, 0) scale(1);
  }
  to {
    transform: translate3d(1%, 2%, 0) scale(1.06);
  }
}

@keyframes screenPulse {
  0%, 100% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.34;
  }
}

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

  .site-nav {
    justify-content: flex-start;
  }

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

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .page-shell {
    padding-top: 190px;
  }

  .top-logo {
    top: 10px;
    width: 333px;
    height: 158px;
    border-radius: 16px;
  }

  .site-header,
  .content,
  .site-footer {
    width: min(100% - 20px, 1100px);
  }

  .panel {
    padding: 22px;
    border-radius: 18px;
  }

  .nav-link {
    width: 100%;
  }

  .brand {
    align-items: flex-start;
  }

  .brand img {
    width: 60px;
    height: 60px;
  }

  .about-panel {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-photo-wrap {
    width: min(220px, 100%);
    margin: 0 auto;
  }
}
