:root {
  color-scheme: dark;
  --bg: #030303;
  --panel: #0f0f0f;
  --panel-strong: #151515;
  --line: #2a2a2a;
  --line-soft: #1c1c1c;
  --text: #f3f3f3;
  --muted: #8b8b8b;
  --soft: #b9b9b9;
  --max: 1320px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  background: var(--bg);
  color: var(--text);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
}

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

.site-header,
.site-footer {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

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

.brand {
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 16px;
  font-weight: 650;
}

.pixel-mark {
  width: 34px;
  height: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 5px;
}

.pixel-mark span {
  background: var(--text);
}

.pixel-mark span:nth-child(1) { grid-column: 1; grid-row: 1; }
.pixel-mark span:nth-child(2) { grid-column: 3; grid-row: 1; }
.pixel-mark span:nth-child(3) { grid-column: 2; grid-row: 2; }
.pixel-mark span:nth-child(4) { grid-column: 1; grid-row: 3; }
.pixel-mark span:nth-child(5) { grid-column: 3; grid-row: 3; }

.site-nav {
  gap: 26px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-nav a:hover,
.site-footer a:hover {
  color: var(--text);
}

.hero {
  position: relative;
  width: 100%;
  margin: 0 auto;
  min-height: calc(100vh - 76px);
  padding: 76px max(20px, calc((100vw - var(--max)) / 2)) 68px;
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(520px, 1.38fr);
  gap: 56px;
  align-items: center;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-color: var(--line);
  border-style: solid;
  width: 44px;
  height: 44px;
}

.hero::before {
  left: max(2px, calc((100vw - var(--max)) / 2 - 18px));
  top: 42px;
  border-width: 1px 0 0 1px;
}

.hero::after {
  right: max(2px, calc((100vw - var(--max)) / 2 - 18px));
  bottom: 48px;
  border-width: 0 1px 1px 0;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

h1 {
  margin: 0;
  max-width: 640px;
  font-size: clamp(46px, 6.4vw, 94px);
  line-height: 0.94;
  font-weight: 560;
  letter-spacing: 0;
}

.hero-copy p {
  width: min(520px, 100%);
  margin: 26px 0 0;
  color: var(--soft);
  font-size: 16px;
  line-height: 1.7;
}

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

.button {
  position: relative;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--line);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  overflow: hidden;
  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.button::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 12px, rgba(255,255,255,0.18) 12px 13px, transparent 13px 24px);
  transform: translateX(-100%);
  transition: opacity 160ms ease, transform 260ms ease;
}

.button.primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.button.secondary {
  color: var(--text);
  background: rgba(255,255,255,0.025);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.24), 0 16px 38px rgba(255,255,255,0.08);
}

.button:hover::after,
.button:focus-visible::after {
  opacity: 1;
  transform: translateX(100%);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #dcdcdc;
  border-color: #ffffff;
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.54);
}

.button:focus-visible {
  outline: 1px solid var(--text);
  outline-offset: 4px;
}

.pixel-field {
  --pixel-size: 2px;
  --pixel-gap: 7px;
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  display: block;
  opacity: 0.74;
  pointer-events: none;
  z-index: 1;
  contain: strict;
}

.app-frame {
  position: relative;
  z-index: 2;
  margin: 96px 0 0;
  padding: 0;
  overflow: visible;
  pointer-events: none;
}

.app-frame::before {
  content: "LIVE PANEL";
  position: absolute;
  left: 0;
  top: -26px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-frame::after {
  content: "";
  position: absolute;
  inset: 10% -4% -6%;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.12), rgba(255,255,255,0.035) 34%, transparent 68%);
  filter: blur(18px);
  opacity: 0.46;
  pointer-events: none;
}

.app-frame img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 14px;
  filter: drop-shadow(0 34px 74px rgba(0,0,0,0.58));
}

.value-panel {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto 72px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.042), rgba(255,255,255,0.012) 42%, rgba(255,255,255,0.026));
}

.value-panel-head {
  min-height: 54px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.value-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(190px, 0.4fr) minmax(360px, 0.9fr);
  min-height: 300px;
}

.value-copy,
.workload-list,
.thermal-loop {
  min-width: 0;
  padding: 28px;
}

.value-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.value-copy h2 {
  margin: 0;
  max-width: 660px;
  color: var(--text);
  font-size: clamp(34px, 4.1vw, 62px);
  line-height: 1.05;
  font-weight: 560;
  letter-spacing: 0;
}

.value-copy p {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.75;
}

.workload-list {
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: rgba(0,0,0,0.22);
}

.workload-list h3,
.thermal-loop .loop-header,
.value-reasons h3 {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.workload-list ul {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
}

.workload-list li {
  min-height: 36px;
  position: relative;
  display: flex;
  align-items: center;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.4;
  border-top: 1px solid var(--line-soft);
}

.workload-list li::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 12px;
  background: var(--text);
}

.thermal-loop {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.loop-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.loop-header span:last-child {
  color: var(--muted);
}

.loop-track {
  position: relative;
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 10px;
}

.loop-track::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 50%;
  height: 1px;
  background: rgba(255,255,255,0.18);
}

.loop-track span {
  position: relative;
  z-index: 1;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.028);
}

.loop-metrics {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.loop-metrics span {
  min-height: 72px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.loop-metrics strong {
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.value-reasons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.value-reasons article {
  min-height: 148px;
  padding: 22px 24px;
  border-right: 1px solid var(--line);
}

.value-reasons article:last-child {
  border-right: 0;
}

.value-reasons p {
  max-width: 310px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.notes {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto 72px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.notes article {
  min-height: 150px;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.018);
}

.notes h2 {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.notes p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.site-footer {
  min-height: 74px;
  justify-content: space-between;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 920px) {
  .site-header,
  .site-footer,
  .value-panel,
  .notes {
    width: min(100% - 28px, var(--max));
  }

  .site-header {
    height: auto;
    min-height: 72px;
    gap: 18px;
  }

  .site-nav {
    gap: 14px;
    font-size: 11px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 54px 14px 42px;
  }

  .pixel-field {
    --pixel-size: 2px;
    --pixel-gap: 7px;
    width: auto;
    height: auto;
  }

  .app-frame {
    margin-top: 20px;
    order: 3;
  }

  .app-frame img {
    border-radius: 10px;
  }

  .value-grid {
    grid-template-columns: 1fr 1fr;
    min-height: auto;
  }

  .value-copy {
    grid-column: 1 / -1;
    border-bottom: 1px solid var(--line);
  }

  .workload-list {
    border-left: 0;
  }

  .thermal-loop {
    border-left: 1px solid var(--line);
  }

  .value-reasons {
    grid-template-columns: 1fr;
  }

  .value-reasons article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .value-reasons article:last-child {
    border-bottom: 0;
  }

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

@media (max-width: 560px) {
  .brand {
    font-size: 14px;
  }

  .site-nav {
    display: none;
  }

  h1 {
    font-size: 40px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

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

  .value-panel-head {
    padding: 0 18px;
  }

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

  .value-copy,
  .workload-list,
  .thermal-loop {
    padding: 22px 18px;
  }

  .value-copy h2 {
    font-size: 32px;
  }

  .workload-list {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .thermal-loop {
    border-left: 0;
  }

  .loop-track,
  .loop-metrics {
    grid-template-columns: 1fr;
  }

  .loop-track::before {
    display: none;
  }

  .loop-metrics span {
    min-height: 62px;
  }

  .value-reasons article {
    padding: 20px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
