:root {
  color-scheme: dark;
  --bg: #030604;
  --bg-soft: #07100b;
  --panel: rgba(4, 13, 8, 0.88);
  --panel-strong: rgba(5, 18, 10, 0.96);
  --text: #eef9f0;
  --muted: #9eb3a4;
  --subtle: #5f7567;
  --accent: #9cff38;
  --accent-2: #48d86d;
  --border: rgba(156, 255, 56, 0.36);
  --border-soft: rgba(156, 255, 56, 0.18);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.46);
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "Fira Code", "Roboto Mono", Consolas, monospace;
  --max: 1160px;
  --gutter: clamp(18px, 4vw, 48px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 6%, rgba(72, 216, 109, 0.12), transparent 29rem),
    radial-gradient(circle at 84% 2%, rgba(156, 255, 56, 0.08), transparent 24rem),
    linear-gradient(180deg, #030604 0%, #050906 54%, #030604 100%);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
}

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

body::before {
  background-image:
    linear-gradient(rgba(156, 255, 56, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(156, 255, 56, 0.045) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.88), transparent 80%);
}

body::after {
  z-index: -1;
  opacity: 0.28;
  background-image:
    linear-gradient(115deg, transparent 0 47%, rgba(156, 255, 56, 0.1) 49%, transparent 51% 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
}

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

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

.site-shell {
  width: min(100%, calc(var(--max) + (var(--gutter) * 2)));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(120px, 230px) 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 18px 0 14px;
  border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(180deg, rgba(5, 18, 10, 0.5), rgba(5, 18, 10, 0.22));
  backdrop-filter: blur(10px);
  box-shadow: inset 0 -1px 0 rgba(156, 255, 56, 0.05);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand img {
  width: clamp(130px, 18vw, 214px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(156, 255, 56, 0.1));
}

.site-nav,
.language-switch {
  display: flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1;
}

.site-nav {
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
}

.site-nav a,
.language-switch a {
  outline-offset: 7px;
  transition: color 180ms ease, text-shadow 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.language-switch a:hover,
.language-switch a:focus-visible,
.language-switch .is-active {
  color: var(--accent);
  text-shadow: 0 0 20px rgba(156, 255, 56, 0.4);
}

.language-switch {
  gap: 7px;
  padding: 10px 12px;
  border: 1px solid var(--border-soft);
  color: var(--subtle);
  background: rgba(5, 18, 10, 0.72);
}

.language-switch a {
  color: var(--muted);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.72fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.hero {
  min-height: min(790px, calc(100vh - 68px));
  padding: clamp(58px, 9vw, 116px) 0 clamp(40px, 7vw, 80px);
}

.system-line,
.section-divider,
.contact-note {
  margin: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: clamp(12px, 1.4vw, 14px);
}

.hero h1 {
  max-width: 860px;
  margin: 24px 0 24px;
  color: var(--text);
  font-family: var(--mono);
  font-size: clamp(46px, 8vw, 104px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lead-copy {
  max-width: 760px;
  color: #d9e7dc;
  font-size: clamp(16px, 1.6vw, 19px);
}

.lead-copy p,
.panel-body p {
  margin: 0;
}

.lead-copy p + p,
.panel-body p + p {
  margin-top: 18px;
}

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

.command-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(7, 16, 11, 0.82);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  cursor: pointer;
  outline-offset: 6px;
  box-shadow: inset 0 0 0 1px rgba(156, 255, 56, 0.05);
  transition: border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.command-button span:first-child {
  margin-right: 8px;
  color: var(--accent);
}

.command-button.primary {
  background: linear-gradient(180deg, rgba(156, 255, 56, 0.16), rgba(72, 216, 109, 0.08));
}

.command-button:hover,
.command-button:focus-visible {
  border-color: var(--accent);
  color: #f7fff4;
  box-shadow: 0 0 28px rgba(156, 255, 56, 0.18), inset 0 0 18px rgba(156, 255, 56, 0.06);
  transform: translateY(-1px);
}

.cursor {
  width: 8px;
  height: 1.15em;
  margin-left: 9px;
  background: var(--accent);
  animation: blink 1s steps(2, start) infinite;
}

.terminal-panel {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  box-shadow: var(--shadow), inset 0 0 70px rgba(156, 255, 56, 0.025);
}

.hero-panel {
  position: relative;
  overflow: hidden;
}

.hero-panel::after {
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(156, 255, 56, 0.2);
  background: rgba(156, 255, 56, 0.04);
  content: "";
  transform: rotate(18deg);
}

.panel-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 43px;
  padding: 0 15px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.dots {
  display: inline-flex;
  gap: 6px;
}

.dots i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(156, 255, 56, 0.45);
}

.dots i:nth-child(2) {
  opacity: 0.65;
}

.dots i:nth-child(3) {
  opacity: 0.35;
}

.panel-body {
  position: relative;
  z-index: 1;
  padding: clamp(22px, 4vw, 38px);
  color: #d9e7dc;
}

.panel-mark {
  width: min(44%, 156px);
  margin: 0 0 34px auto;
  opacity: 0.68;
  filter: drop-shadow(0 0 28px rgba(156, 255, 56, 0.18));
}

.terminal-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
}

.terminal-list li {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 50px;
  padding: 13px 0;
  border-top: 1px solid var(--border-soft);
  color: var(--text);
}

.terminal-list span {
  color: var(--accent);
}

.marquee {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: rgba(6, 16, 9, 0.72);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 24s linear infinite;
}

.marquee-group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  min-width: 100vw;
}

.marquee span {
  flex: 0 0 auto;
  padding: 14px clamp(28px, 3.5vw, 64px) 14px 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
  white-space: nowrap;
}

.content-section,
.contact-section {
  padding: clamp(58px, 8vw, 104px) 0 0;
  scroll-margin-top: 94px;
}

.section-divider {
  max-width: 100%;
  margin-bottom: 22px;
  overflow: hidden;
  color: var(--muted);
  white-space: nowrap;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(420px, 0.5fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 52px);
}

h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--mono);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1;
  letter-spacing: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(230px, 0.38fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
}

.contact-note {
  margin-top: 20px;
  color: var(--muted);
}

.contact-form {
  width: 100%;
}

.contact-result-panel {
  width: calc(100% - 32px);
  max-width: 720px;
  margin: 12vh auto;
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-body {
  display: grid;
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border-soft);
  border-radius: 0;
  padding: 13px 14px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.28);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(156, 255, 56, 0.12);
}

.form-status {
  min-height: 1.4em;
  margin: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(100px, 150px) minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 54px 0 34px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.site-footer img {
  width: 148px;
}

.site-footer p {
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .section-grid,
  .two-column,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-panel {
    align-self: stretch;
  }
}

@media (max-width: 560px) {
  .site-shell {
    padding: 0 16px;
  }

  .brand img {
    width: 58px;
    max-height: 46px;
  }

  .language-switch {
    padding: 9px 10px;
  }

  .site-nav {
    gap: 16px;
    font-size: 12px;
  }

  .hero h1 {
    font-size: clamp(38px, 14vw, 56px);
  }

  .lead-copy {
    font-size: 15px;
  }

  .command-button {
    width: 100%;
    min-height: 46px;
    padding-inline: 14px;
    font-size: 13px;
  }

  .panel-body {
    padding: 20px;
  }

  .panel-mark {
    width: 116px;
    margin-bottom: 22px;
  }

  .terminal-list li {
    align-items: flex-start;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer img {
    width: 132px;
  }
}
