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

:root {
  --black: #04060a;
  --deep: #080c12;
  --panel: #0d1117;
  --border: #0e1218;
  --red: #c0000a;
  --red-bright: #e8000d;
  --red-dim: #6b0005;
  --red-glow: rgba(192, 0, 10, 0.12);
  --white: #f0f0f0;
  --grey: #4a4f5a;
  --grey-mid: #6a7080;
  --grey-light: #8a8f9a;
  --mono: 'Space Mono', monospace;
  --display: 'Syne', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--mono);
  overflow-x: hidden;
  cursor: none;
}

.noise {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 999;
}

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.3;
  pointer-events: none;
}

.cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--red-bright);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.15s, height 0.15s;
  box-shadow: 0 0 8px var(--red-bright);
}

.cursor-ring {
  position: fixed;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(192, 0, 10, 0.45);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease, width 0.2s, height 0.2s;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 52px;
  background: linear-gradient(to bottom, rgba(4, 6, 10, 0.97) 0%, transparent 100%);
  border-bottom: 1px solid rgba(192, 0, 10, 0.07);
  transition: background 0.4s;
}

nav.scrolled {
  background: rgba(4, 6, 10, 0.97);
}

.nav-logo {
  font-family: var(--display);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
}

.nav-logo span {
  color: var(--red);
}

.logo-dot {
  width: 8px;
  height: 8px;
  background: var(--red-bright);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--red-bright);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px var(--red-bright); }
  50% { opacity: 0.35; box-shadow: 0 0 3px var(--red-bright); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  color: var(--grey-light);
  text-decoration: none;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.3s;
}

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

.nav-btn {
  border: 1px solid var(--red-dim) !important;
  color: var(--white) !important;
  padding: 8px 18px;
  transition: background 0.3s, box-shadow 0.3s !important;
}

.nav-btn:hover {
  background: var(--red-glow) !important;
  box-shadow: 0 0 18px rgba(192, 0, 10, 0.2) !important;
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 4px;
}

.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--grey-light);
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 62px;
  left: 0;
  right: 0;
  background: rgba(4, 6, 10, 0.98);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  z-index: 490;
  flex-direction: column;
  gap: 0;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  color: var(--grey-light);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.3s;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

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

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 52px 80px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.025) 2px, rgba(0, 0, 0, 0.025) 4px);
  pointer-events: none;
}

.hero-content {
  max-width: 860px;
}

.hero-tag {
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero-tag::before {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background: var(--red);
}

.hero h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(48px, 8vw, 100px);
  line-height: 1.0;
  letter-spacing: -3px;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.4s forwards;
}

.hero h1 em {
  font-style: normal;
  color: var(--red);
}

.hero-sub {
  font-size: 13px;
  color: var(--grey-light);
  margin-top: 28px;
  max-width: 500px;
  line-height: 1.9;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.6s forwards;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 44px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.8s forwards;
}

.hero-stats {
  display: flex;
  gap: 56px;
  margin-top: 72px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s ease 1s forwards;
}

.stat-n {
  font-family: var(--display);
  font-weight: 900;
  font-size: 34px;
  line-height: 1;
  color: var(--white);
}

.stat-n span {
  color: var(--red);
}

.stat-l {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 6px;
}

.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeUp 1s ease 1.4s forwards;
}

.scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, transparent, var(--red-dim));
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(0.6); }
}

.scroll-hint span {
  font-size: 8px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--grey);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn-red {
  background: var(--red);
  color: var(--white);
  padding: 13px 30px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.3s, box-shadow 0.3s;
}

.btn-red:hover {
  background: var(--red-bright);
  box-shadow: 0 0 28px rgba(232, 0, 13, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--grey-light);
  padding: 13px 30px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid #1c2230;
  cursor: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.3s, color 0.3s;
}

.btn-ghost:hover {
  border-color: var(--grey);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--grey);
  padding: 13px 30px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid #111820;
  cursor: none;
  transition: color 0.3s, border-color 0.3s;
}

.btn-outline:hover {
  color: var(--grey-light);
  border-color: #1c2230;
}

.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(8, 12, 18, 0.7);
  padding: 13px 0;
  position: relative;
  z-index: 1;
}

.marquee-inner {
  display: flex;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}

.marquee-inner span {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--grey);
  padding: 0 36px;
  display: inline-flex;
  align-items: center;
  gap: 36px;
  flex-shrink: 0;
}

.marquee-inner span::after {
  content: '/';
  color: var(--red-dim);
  font-size: 12px;
}

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

.section {
  position: relative;
  z-index: 1;
  padding: 120px 52px;
}

.section-tag {
  font-size: 9px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-tag::before {
  content: '';
  display: block;
  width: 22px;
  height: 1px;
  background: var(--red);
}

.section-header {
  margin-bottom: 68px;
}

.section-header h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 50px);
  letter-spacing: -1px;
  line-height: 1.1;
  max-width: 480px;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--grey-light);
  font-size: 13px;
  max-width: 420px;
  line-height: 1.8;
}

.overview-section {
  background: var(--deep);
}

.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.overview-left h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(26px, 3.5vw, 48px);
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 24px;
}

.overview-left p {
  color: var(--grey-light);
  font-size: 13px;
  line-height: 1.9;
  margin-bottom: 16px;
}

.code-panel {
  background: var(--panel);
  border: 1px solid #131920;
  border-left: 2px solid var(--red-dim);
  position: relative;
}

.code-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(4, 6, 10, 0.6);
}

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

.cdot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.cdot.red { background: #4a1010; }
.cdot.yellow { background: #4a4010; }
.cdot.green { background: #104a28; }

.code-title {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--grey);
}

.code-body {
  padding: 24px 20px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.85;
  overflow-x: auto;
}

.code-line { white-space: nowrap; }
.code-line.pl { padding-left: 18px; }
.code-line.pl2 { padding-left: 36px; }

.ct { color: var(--grey-light); }
.cs { color: #7a9e6a; }
.cn { color: #6ab8d4; }
.cv { color: #d06000; }
.cr { color: var(--red); }
.ck { color: var(--grey-mid); }

.features-section {
  background: var(--black);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.feat-card {
  background: var(--black);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: background 0.4s;
}

.feat-card:hover {
  background: var(--deep);
}

.feat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--red), transparent);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.feat-card:hover::after {
  transform: scaleX(1);
}

.feat-num {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 52px;
  color: rgba(255, 255, 255, 0.025);
  user-select: none;
  line-height: 1;
}

.feat-icon {
  width: 38px;
  height: 38px;
  border: 1px solid var(--red-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--red);
}

.feat-card h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 12px;
  letter-spacing: -0.2px;
}

.feat-card p {
  font-size: 11px;
  color: var(--grey-light);
  line-height: 1.8;
}

.feat-badge {
  display: inline-block;
  margin-top: 18px;
  font-size: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red-dim);
  border: 1px solid var(--red-dim);
  padding: 3px 7px;
}

.screenshots-section {
  background: var(--deep);
  overflow: hidden;
}

.screenshots-track {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.shot-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.shot-card[data-dir="right"] {
  grid-template-columns: 1fr 1.2fr;
  direction: rtl;
}

.shot-card[data-dir="right"] > * {
  direction: ltr;
}

.shot-card.from-left {
  transform: translateX(-70px);
}

.shot-card.from-right {
  transform: translateX(70px);
}

.shot-card.visible {
  opacity: 1;
  transform: translateX(0);
}

.shot-img {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16/9;
  background: var(--panel);
}

.shot-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.shot-card:hover .shot-img img {
  transform: scale(1.03);
}

.img-placeholder {
  background: linear-gradient(135deg, #0d1117 0%, #180005 100%);
  border: 1px solid #1a0508;
}

.img-placeholder::after {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(192, 0, 10, 0.04) 20px, rgba(192, 0, 10, 0.04) 21px);
}

.shot-overlay {
  position: absolute;
  bottom: 12px;
  left: 12px;
}

.shot-badge {
  font-size: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid;
}

.shot-badge.critical {
  color: var(--red);
  border-color: var(--red-dim);
  background: rgba(192, 0, 10, 0.1);
}

.shot-badge.high {
  color: #d06000;
  border-color: #5a2800;
  background: rgba(208, 96, 0, 0.1);
}

.shot-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  line-height: 1.2;
}

.shot-desc {
  font-size: 12px;
  color: var(--grey-light);
  line-height: 1.85;
}

.arch-section {
  background: var(--black);
}

.arch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.arch-left h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(26px, 3.5vw, 48px);
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.arch-left > p {
  color: var(--grey-light);
  font-size: 13px;
  line-height: 1.9;
  margin-bottom: 44px;
}

.arch-steps {
  display: flex;
  flex-direction: column;
}

.arch-step {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.arch-step.visible {
  opacity: 1;
  transform: translateX(0);
}

.step-num {
  font-family: var(--display);
  font-weight: 900;
  font-size: 10px;
  color: var(--red);
  letter-spacing: 1px;
  min-width: 26px;
  padding-top: 3px;
}

.step-body h4 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
}

.step-body p {
  font-size: 11px;
  color: var(--grey-light);
  line-height: 1.75;
}

.arch-right .section-tag {
  margin-bottom: 20px;
}

.collectors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
}

.collector {
  background: var(--panel);
  padding: 18px;
  transition: background 0.3s;
}

.collector:hover {
  background: #111820;
}

.col-name {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--grey-light);
  margin-bottom: 7px;
}

.col-cmd {
  font-size: 10px;
  color: var(--red);
  font-family: var(--mono);
  margin-bottom: 5px;
}

.col-desc {
  font-size: 9px;
  color: var(--grey);
  line-height: 1.5;
  margin-bottom: 10px;
}

.col-badge {
  display: inline-block;
  font-size: 7px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 2px 6px;
  border: 1px solid;
}

.badge-crit { color: var(--red); border-color: var(--red-dim); }
.badge-high { color: #c06000; border-color: #5a2800; }
.badge-med { color: #9a8800; border-color: #4a4000; }

.cta-section {
  padding: 120px 52px;
  text-align: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: var(--deep);
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(192, 0, 10, 0.055) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner h2 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(34px, 5.5vw, 76px);
  letter-spacing: -2px;
  line-height: 1;
  margin: 0 auto 18px;
}

.cta-inner h2 span {
  color: var(--red);
}

.cta-inner p {
  color: var(--grey-light);
  font-size: 13px;
  max-width: 420px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

.cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.cta-note {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--grey);
}

footer {
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
  padding: 36px 52px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  font-family: var(--display);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -0.5px;
}

.footer-logo span {
  color: var(--red);
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--grey);
  text-decoration: none;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.3s;
}

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

.footer-copy {
  font-size: 9px;
  color: var(--grey);
  letter-spacing: 1px;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0);
}

@media (max-width: 1100px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  nav {
    padding: 16px 24px;
  }

  .nav-links {
    display: none;
  }

  .nav-mobile-toggle {
    display: flex;
  }

  .hero {
    padding: 100px 24px 70px;
  }

  .hero h1 {
    font-size: clamp(40px, 10vw, 64px);
    letter-spacing: -2px;
  }

  .hero-stats {
    gap: 28px;
  }

  .scroll-hint {
    left: 24px;
  }

  .section {
    padding: 80px 24px;
  }

  .overview-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .shot-card,
  .shot-card[data-dir="right"] {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 28px;
  }

  .shot-card.from-left,
  .shot-card.from-right {
    transform: translateY(40px);
  }

  .arch-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

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

  .cta-section {
    padding: 80px 24px;
  }

  footer {
    padding: 28px 24px;
  }

  .footer-links {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    letter-spacing: -1px;
  }

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

  .hero-actions a {
    text-align: center;
    justify-content: center;
  }

  .stat-n {
    font-size: 26px;
  }

  .cta-btns {
    flex-direction: column;
    align-items: center;
  }
}
