:root {
  --bg: #080605;
  --surface: #1c1917;
  --surface-2: #11100f;
  --amber: #f59e0b;
  --amber-hot: #facc15;
  --text: #f5f5f4;
  --muted: #a8a29e;
  --border: #292524;
  --shadow: rgba(245, 158, 11, 0.18);
  --max: 1180px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 24% 8%, rgba(245, 158, 11, 0.13), transparent 28rem),
    linear-gradient(135deg, #080605 0%, #0e0b09 48%, #080605 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(245, 158, 11, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 158, 11, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

a {
  color: inherit;
}

.site-shell {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.brand,
.nav-links,
.hero-actions,
.signal-actions,
.card-meta,
.console-toolbar,
.quick-stats,
.footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(250, 204, 21, 0.42);
  background: rgba(245, 158, 11, 0.12);
  color: var(--amber-hot);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.nav-links {
  gap: 8px;
}

.nav-links a {
  padding: 9px 12px;
  border: 1px solid transparent;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.nav-links a:hover {
  border-color: var(--border);
  color: var(--text);
  background: rgba(28, 25, 23, 0.72);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 0.92fr);
  gap: 28px;
  align-items: center;
  min-height: calc(100vh - 160px);
  padding: 42px 0 26px;
}

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

.eyebrow {
  margin: 0 0 13px;
  color: var(--amber-hot);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.02;
  overflow-wrap: normal;
  word-break: normal;
}

h1 {
  max-width: 680px;
  font-size: clamp(3.25rem, 5.35vw, 5.35rem);
  font-weight: 900;
}

h2 {
  max-width: 720px;
  font-size: clamp(2rem, 4vw, 4rem);
}

h3 {
  font-size: 1.45rem;
}

.hero-text {
  max-width: 660px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-actions,
.signal-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 800;
}

.button-primary {
  border-color: rgba(250, 204, 21, 0.58);
  background: linear-gradient(180deg, var(--amber-hot), var(--amber));
  color: #1c1203;
  box-shadow: 0 0 34px var(--shadow);
}

.button-secondary {
  background: rgba(28, 25, 23, 0.82);
  color: var(--text);
}

.button:hover,
.text-link:hover {
  filter: brightness(1.08);
}

.quick-stats {
  margin: 34px 0 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-stats div {
  min-width: 138px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  background: rgba(28, 25, 23, 0.62);
}

.quick-stats dt {
  color: var(--muted);
  font-size: 0.76rem;
}

.quick-stats dd {
  margin: 4px 0 0;
  color: var(--amber-hot);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
}

.console-card {
  min-width: 0;
  border: 1px solid rgba(250, 204, 21, 0.18);
  background:
    linear-gradient(180deg, rgba(28, 25, 23, 0.96), rgba(9, 7, 6, 0.98)),
    var(--surface);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(250, 204, 21, 0.1);
}

.console-toolbar {
  height: 48px;
  gap: 8px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
}

.control {
  width: 9px;
  height: 9px;
  border: 1px solid rgba(250, 204, 21, 0.35);
  border-radius: 50%;
  background: rgba(168, 162, 158, 0.24);
}

.control-hot {
  background: var(--amber);
  box-shadow: 0 0 18px var(--shadow);
}

.console-title {
  margin-left: auto;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
}

.terminal-window {
  padding: 20px;
  color: #f7d88b;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: clamp(0.78rem, 1.4vw, 0.96rem);
  line-height: 1.7;
}

.terminal-line {
  color: #f4bf57;
}

.terminal-line span {
  color: var(--amber-hot);
}

.terminal-line.muted {
  color: var(--muted);
}

.terminal-table {
  display: grid;
  gap: 9px;
  margin: 14px 0;
}

.terminal-table div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 12px;
  border: 1px solid rgba(250, 204, 21, 0.13);
  background: rgba(8, 6, 5, 0.6);
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.72rem;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  text-transform: uppercase;
}

.status.active {
  border-color: rgba(250, 204, 21, 0.46);
  color: var(--amber-hot);
  background: rgba(245, 158, 11, 0.1);
}

.status.queued {
  color: #d6d3d1;
  background: rgba(168, 162, 158, 0.08);
}

.scan-lines {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.scan-lines span {
  display: block;
  height: 8px;
  border: 1px solid rgba(250, 204, 21, 0.12);
  background: linear-gradient(90deg, var(--amber), rgba(245, 158, 11, 0.08));
  transform-origin: left;
  animation: scan 2.8s ease-in-out infinite;
}

.scan-lines span:nth-child(2) {
  width: 73%;
  animation-delay: 0.2s;
}

.scan-lines span:nth-child(3) {
  width: 88%;
  animation-delay: 0.4s;
}

.scan-lines span:nth-child(4) {
  width: 55%;
  animation-delay: 0.6s;
}

.cursor {
  color: var(--amber-hot);
  animation: blink 1s steps(2, start) infinite;
}

.visual-band {
  margin: 0 0 96px;
  border: 1px solid rgba(250, 204, 21, 0.16);
  background: #060504;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.visual-band img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.92;
}

.section {
  padding: 84px 0;
}

.section-heading {
  margin-bottom: 26px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.product-card,
.signal-panel {
  border: 1px solid var(--border);
  background: rgba(28, 25, 23, 0.74);
}

.product-card {
  min-height: 278px;
  padding: 22px;
}

.product-card.is-active {
  border-color: rgba(250, 204, 21, 0.42);
  box-shadow: inset 0 1px 0 rgba(250, 204, 21, 0.08), 0 20px 60px rgba(0, 0, 0, 0.24);
}

.card-meta {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 36px;
}

.product-code {
  color: var(--amber-hot);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
}

.product-card p,
.about-strip p,
.signal-panel p {
  color: var(--muted);
  line-height: 1.65;
}

.text-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--amber-hot);
  font-weight: 800;
  text-decoration: none;
}

.about-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.8fr);
  gap: 36px;
  align-items: end;
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-strip p {
  margin: 0;
  font-size: 1.02rem;
}

.signal-section {
  padding-bottom: 74px;
}

.signal-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
}

.signal-panel p {
  max-width: 600px;
  margin: 0;
}

.signal-actions {
  margin-top: 0;
  justify-content: flex-end;
}

.footer {
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
}

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

@keyframes scan {
  0%,
  100% {
    transform: scaleX(0.5);
    opacity: 0.45;
  }

  50% {
    transform: scaleX(1);
    opacity: 1;
  }
}

@media (max-width: 920px) {
  .site-shell {
    width: min(100% - 24px, var(--max));
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 24px;
  }

  h1 {
    max-width: 11ch;
  }

  .product-grid,
  .about-strip {
    grid-template-columns: 1fr;
  }

  .visual-band {
    margin-bottom: 48px;
  }

  .signal-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .topbar,
  .footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 18px 0;
  }

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

  .nav-links a {
    padding-inline: 6px;
    font-size: 0.82rem;
  }

  .hero {
    gap: 18px;
  }

  h1 {
    font-size: clamp(3rem, 18vw, 4.4rem);
  }

  .hero-text {
    font-size: 1rem;
  }

  .button {
    width: 100%;
  }

  .quick-stats div {
    width: 100%;
  }

  .terminal-window {
    padding: 14px;
  }

  .terminal-table div,
  .card-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .section {
    padding: 56px 0;
  }

  .product-card {
    min-height: 0;
  }
}

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