:root {
  --bg: #050505;
  --bg-elevated: #0d0d0d;
  --bg-panel: #121212;
  --ink: #f5f5f5;
  --muted: #a3a3a3;
  --dim: #6b6b6b;
  --line: rgba(255, 255, 255, 0.1);
  --red: #ed1c24;
  --red-deep: #b40f16;
  --red-soft: rgba(237, 28, 36, 0.14);
  --white: #ffffff;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Sora", sans-serif;
  --header-h: 72px;
  --radius: 2px;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(237, 28, 36, 0.18), transparent 55%),
    linear-gradient(180deg, #0a0a0a 0%, var(--bg) 40%);
  background-color: var(--bg);
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.9em;
  color: var(--red);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--red);
  color: var(--white);
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

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

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.brand-sub {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.nav a:hover {
  color: var(--white);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
}

.nav + .header-actions {
  margin-left: 0;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.icon-btn svg {
  width: 16px;
  height: 16px;
}

.icon-btn:hover {
  border-color: var(--red);
  background: var(--red-soft);
}

.menu-toggle {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1.25rem 1.25rem;
  background: rgba(5, 5, 5, 0.98);
  border-bottom: 1px solid var(--line);
}

.mobile-nav[hidden] {
  display: none !important;
}

.mobile-nav a:not(.btn) {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.mobile-nav .btn {
  margin-top: 0.75rem;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 42px;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-deep);
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.btn-lg {
  min-height: 52px;
  padding: 0.85rem 1.4rem;
  font-size: 0.98rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.02);
  animation: hero-drift 18s var(--ease) infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.55) 42%, rgba(0, 0, 0, 0.35) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.15) 40%, rgba(5, 5, 5, 0.95) 100%);
}

.hero-circuit {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(237, 28, 36, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 28, 36, 0.35) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 30% 70%, black 10%, transparent 65%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: calc(var(--max) + 4rem);
  width: 100%;
  margin: 0 auto;
  padding: 4.5rem 1.25rem 5.5rem;
}

.hero-logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  margin-bottom: 1.25rem;
  animation: rise-in 0.9s var(--ease) both;
}

.hero-brand {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  animation: rise-in 0.9s var(--ease) 0.08s both;
}

.hero h1 {
  margin: 0;
}

.hero-ticker {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4.5rem, 16vw, 9.5rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--white);
  text-shadow: 0 0 60px rgba(237, 28, 36, 0.25);
  animation: rise-in 0.95s var(--ease) 0.12s both;
}

.hero-lead {
  margin: 0.85rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--red);
  animation: rise-in 0.95s var(--ease) 0.18s both;
}

.hero-support {
  max-width: 34rem;
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  animation: rise-in 0.95s var(--ease) 0.24s both;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
  animation: rise-in 0.95s var(--ease) 0.3s both;
}

.hero-scroll {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  animation: bob 2.4s ease-in-out infinite;
}

.hero-scroll svg {
  width: 18px;
  height: 18px;
}

/* Marquee strip */
.strip {
  border-block: 1px solid var(--line);
  background: #090909;
  overflow: hidden;
  padding: 0.9rem 0;
}

.strip-track {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.strip-track svg {
  width: 12px;
  height: 12px;
  color: var(--red);
  flex-shrink: 0;
}

/* Sections */
.section {
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto;
  padding: 5.5rem 1.25rem;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.75rem;
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}

.section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.section-lead {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.product {
  background: var(--bg-elevated);
  padding: 1.75rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: background 0.25s var(--ease);
}

.product:hover {
  background: #141414;
}

.product-icon {
  width: 48px;
  height: 48px;
  color: var(--red);
  margin-bottom: 1.15rem;
}

.product-icon svg {
  width: 100%;
  height: 100%;
}

.product h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.product p {
  margin: 0.7rem 0 1.25rem;
  color: var(--muted);
  flex: 1;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  font-weight: 600;
  color: var(--white);
}

.text-link svg {
  width: 20px;
  height: 20px;
  color: var(--red);
  transition: transform 0.2s var(--ease);
}

.text-link:hover svg {
  transform: translateX(3px);
}

/* Architecture */
.architecture {
  padding-top: 2rem;
}

.arch-layout {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.feature-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}

.feature-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
}

.feature-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--red-soft);
  color: var(--red);
  border: 1px solid rgba(237, 28, 36, 0.3);
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature-list strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.feature-list span {
  color: var(--muted);
  font-size: 0.95rem;
}

.arch-visual {
  display: grid;
  place-items: center;
}

.cpu-plate {
  width: min(100%, 380px);
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 30% 20%, rgba(237, 28, 36, 0.2), transparent 45%),
    linear-gradient(145deg, #1a1a1a, #0a0a0a 55%, #151515);
  border: 1px solid var(--line);
  padding: 1.5rem;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  animation: float-plate 6s ease-in-out infinite;
}

.cpu-die {
  height: calc(100% - 2rem);
  border: 1px solid rgba(237, 28, 36, 0.35);
  background: #080808;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.cpu-logo {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  position: relative;
  z-index: 1;
}

.cpu-grid {
  position: absolute;
  inset: 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  opacity: 0.35;
}

.cpu-grid span {
  border: 1px solid rgba(237, 28, 36, 0.4);
  background: rgba(237, 28, 36, 0.05);
}

.cpu-pins {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 14px,
      rgba(180, 180, 180, 0.35) 14px 16px
    );
  mask-image: linear-gradient(transparent 88%, black 92%, black 100%);
}

.cpu-label {
  position: absolute;
  left: 1.5rem;
  bottom: 0.85rem;
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  color: var(--dim);
}

/* Specs */
.spec-table-wrap {
  border: 1px solid var(--line);
  background: var(--bg-panel);
  overflow: hidden;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table th,
.spec-table td {
  padding: 1.15rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: 0;
}

.spec-table th {
  width: 42%;
  font-weight: 500;
  color: var(--muted);
}

.spec-table th .spec-icon {
  display: inline-flex;
  vertical-align: middle;
  margin-right: 0.55rem;
  color: var(--red);
}

.spec-table th svg {
  width: 18px;
  height: 18px;
}

.spec-table td {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* Buy */
.buy {
  padding-top: 2rem;
}

.buy-panel {
  display: grid;
  gap: 2rem;
  padding: 2rem 1.5rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(237, 28, 36, 0.1), transparent 40%),
    var(--bg-panel);
}

.buy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.buy-note {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--dim);
}

.terminal {
  background: #070707;
  border: 1px solid var(--line);
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  gap: 0.4rem;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: #0e0e0e;
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #333;
}

.terminal-bar span:nth-child(1) { background: #ed1c24; }
.terminal-bar span:nth-child(2) { background: #666; }
.terminal-bar span:nth-child(3) { background: #999; }

.terminal-body {
  margin: 0;
  padding: 1.15rem 1.1rem 1.35rem;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.86rem;
  line-height: 1.7;
  color: #d4d4d4;
  overflow-x: auto;
}

.t-muted { color: #666; }
.t-cmd { color: var(--red); }
.t-ok { color: #9a9a9a; }
.t-warn { color: #c4c4c4; }

.cursor {
  animation: blink 1s steps(1) infinite;
  color: var(--red);
}

/* Join */
.link-grid {
  display: grid;
  gap: 0.75rem;
}

.link-tile {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.link-tile:hover {
  border-color: rgba(237, 28, 36, 0.55);
  background: #151515;
}

.link-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--red-soft);
  color: var(--red);
  border: 1px solid rgba(237, 28, 36, 0.28);
}

.link-icon svg,
.link-arrow {
  width: 18px;
  height: 18px;
}

.link-arrow {
  color: var(--dim);
}

.link-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.link-meta strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.link-meta span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 1.25rem 2.5rem;
  background: #050505;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.footer-tag {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.04em;
}

.footer-links {
  display: flex;
  gap: 0.65rem;
}

.footer-links a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s;
}

.footer-links a:hover {
  color: var(--white);
  border-color: var(--red);
}

.footer-links svg {
  width: 16px;
  height: 16px;
}

.disclaimer {
  margin: 0.5rem 0 0;
  max-width: 42rem;
  font-size: 0.8rem;
  color: var(--dim);
  line-height: 1.5;
}

/* Animations */
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.55; }
  50% { transform: translate(-50%, 6px); opacity: 1; }
}

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

@keyframes float-plate {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes hero-drift {
  from { transform: scale(1.02) translateY(0); }
  to { transform: scale(1.06) translateY(-1.5%); }
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (min-width: 720px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }

  .buy-panel {
    grid-template-columns: 1.05fr 0.95fr;
    padding: 2.5rem;
    align-items: center;
  }

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

@media (min-width: 900px) {
  .nav {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .header-actions {
    margin-left: 0;
  }

  .arch-layout {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
  }

  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .link-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-content {
    padding-bottom: 6.5rem;
  }
}

@media (max-width: 560px) {
  .brand-sub {
    display: none;
  }

  .header-actions .btn-primary {
    display: none;
  }

  .hero-ctas .btn-lg {
    width: 100%;
  }

  .spec-table th,
  .spec-table td {
    display: block;
    width: 100%;
    padding: 0.85rem 1.1rem;
  }

  .spec-table th {
    padding-bottom: 0.2rem;
    border-bottom: 0;
  }

  .spec-table td {
    padding-top: 0.2rem;
  }
}
