:root {
  --bg: #030303;
  --bg-2: #080808;
  --surface: #0a0a0a;
  --surface-2: #0e0e0e;
  --text: #c8c8c8;
  --muted: #666666;
  --accent: #8b0000;
  --accent-2: #4a0000;
  --accent-3: #1a1a1a;
  --line: rgba(255, 255, 255, 0.05);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.7);
  --radius: 0px;
  --radius-lg: 2px;
  --radius-pill: 0px;
  --font-body: "Crimson Text", "Georgia", serif;
  --font-mono: "Special Elite", "Courier New", monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  background-color: var(--bg);
  background-image: url("1.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.01) 0, rgba(255, 255, 255, 0.01) 1px, transparent 1px, transparent 4px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0, rgba(0, 0, 0, 0.5) 1px, transparent 1px, transparent 6px),
    radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 4px, 6px 100%, 12px 12px;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 3, 3, 0.7) 0%, rgba(0, 0, 0, 0.9) 100%),
    radial-gradient(900px 560px at 50% 10%, rgba(139, 0, 0, 0.1), transparent 60%);
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 24px 96px;
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(139, 0, 0, 0.4);
  margin-bottom: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.logo-badge {
  width: 42px;
  height: 42px;
  border: 1px solid var(--accent);
  background: transparent;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.92rem;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  background: transparent;
  position: relative;
}

.nav-panel::after {
  display: none;
}

.nav-link {
  position: relative;
  padding-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--accent);
}

.nav-link:hover::after,
.nav-link:focus::after {
  width: 100%;
}

.nav-sep {
  font-size: 0.7rem;
  color: rgba(127, 29, 29, 0.7);
}

.nav-cta {
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  transition: all 0.3s ease;
}

.nav-cta:hover,
.nav-cta:focus {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 10px var(--accent);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 56px;
  align-items: center;
  margin-bottom: 80px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: var(--accent);
  border-bottom: 1px dashed var(--accent);
  padding: 4px 0;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.8rem, 4.4vw, 4.1rem);
  line-height: 1.02;
  margin: 0px 0 16px;
  letter-spacing: 0.02em;
  font-weight: normal;
  text-shadow: 2px 2px 0px rgba(139,0,0,0.5);
}

.lede {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  background: transparent;
  color: #f1f1f1;
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.button:hover,
.button:focus {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 15px var(--accent);
}

.button.secondary {
  border-color: var(--muted);
  color: var(--muted);
}

.button.secondary:hover {
  background: var(--muted);
  box-shadow: none;
  color: #000;
}

.button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  color: var(--muted);
}

.meta-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  background: transparent;
  border: 1px solid var(--accent-2);
  border-radius: var(--radius);
  padding: 4px 10px;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--muted);
}

.hero-visual {
  display: grid;
  gap: 16px;
}

.visual-screen {
  height: 260px;
  background: var(--surface-2);
  border: 1px solid var(--accent);
  position: relative;
  overflow: hidden;
}

.visual-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  filter: saturate(0) contrast(1.5) brightness(0.6) sepia(1) hue-rotate(-50deg);
  animation: imageGlitch 4s infinite steps(1, end);
  will-change: transform, filter;
}

.visual-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.2;
}

.visual-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(127, 29, 29, 0.28), transparent 55%),
    url("1.jpg");
  background-size: 100% 100%, 120% 120%;
  background-position: center, 50% 50%;
  mix-blend-mode: screen;
  opacity: 0.22;
  animation: glitchOverlay 8s infinite steps(1, end);
}

.path {
  position: absolute;
  left: 12%;
  top: 46%;
  width: 72%;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 22px rgba(31, 182, 255, 0.3);
  z-index: 1;
}

.node {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--bg);
  background-image: linear-gradient(180deg, rgba(10, 10, 15, 0.75) 0%, rgba(17, 19, 27, 0.9) 100%),
    radial-gradient(820px 520px at 12% 6%, rgba(185, 28, 28, 0.3), transparent 60%),
    radial-gradient(640px 420px at 88% 10%, rgba(249, 115, 22, 0.2), transparent 60%),
    url("1.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-blend-mode: normal, screen, screen, multiply;
  z-index: 2;
}

.node.n1 {
  left: 14%;
  top: 42%;
}

.node.n2 {
  left: 52%;
  top: 50%;
}

.node.n3 {
  left: 78%;
  top: 40%;
}

.visual-overlay {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.88);
  border-left: 2px solid var(--accent);
  display: grid;
  gap: 4px;
  z-index: 3;
}

.visual-overlay strong {
  font-size: 1rem;
}

.visual-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.mini-card {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--accent-2);
  padding: 12px 14px;
  display: grid;
  gap: 6px;
}

.mini-card.alt {
  border-color: var(--accent);
  background: transparent;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  margin-bottom: 80px;
  background: var(--accent-2);
  border: 1px solid var(--accent-2);
}

.stat {
  background: var(--bg);
  padding: 24px;
}

.stat h3 {
  font-size: 1.7rem;
  margin-bottom: 6px;
}

.stat-label {
  color: var(--muted);
  font-size: 0.95rem;
}

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
  max-width: 620px;
}

.section-title {
  font-size: 1.8rem;
}

.section-subtitle {
  color: var(--muted);
  font-size: 1rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  margin-bottom: 80px;
}

.feature {
  background: rgba(0, 0, 0, 0.4);
  border-left: 2px solid var(--accent-2);
  padding: 22px;
  position: relative;
  transition: all 0.3s ease;
}

.feature:hover {
  border-left-color: var(--accent);
  background: rgba(139, 0, 0, 0.05);
}

.feature-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 8px;
  border-bottom: 1px dotted var(--accent);
}

.feature h4 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.feature p {
  color: var(--muted);
  font-size: 0.96rem;
}

.cta {
  background: transparent;
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  padding: 40px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 80px;
}

.cta-content h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.cta-content p {
  color: var(--muted);
  max-width: 520px;
}

/* Screenshots Carousel */
.screenshots-section {
  margin-bottom: 80px;
}

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--accent);
  background: var(--surface-2);
}

.carousel-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-img {
  width: 100%;
  flex-shrink: 0;
  object-fit: cover;
  filter: saturate(0.8) contrast(1) brightness(0.6) sepia(1) hue-rotate(-50deg);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 2rem;
  padding: 10px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-btn:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 10px var(--accent);
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding-top: 22px;
}

.mono {
  font-family: var(--font-mono);
}

section {
  scroll-margin-top: 120px;
}

@media (max-width: 900px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 20px;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-panel {
    flex-wrap: wrap;
  }

  .hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    background-attachment: scroll;
  }

  .site-header {
    padding: 16px;
  }

  .hero {
    gap: 32px;
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }
}

@keyframes rise {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  40% { opacity: 0.3; }
  50% { opacity: 0.1; }
  60% { opacity: 0.6; }
  70% { opacity: 0.3; }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes imageGlitch {
  0%,
  90%,
  100% {
    transform: translate(0);
    filter: saturate(0) contrast(1.5) brightness(0.6) sepia(1) hue-rotate(-50deg);
  }
  92% {
    transform: translate(2px, 0);
  }
  93% {
    transform: translate(-3px, 1px);
    filter: saturate(0) contrast(1.6) brightness(0.65) sepia(1) hue-rotate(-50deg) invert(0.15);
  }
  94% {
    transform: translate(1px, -1px);
  }
  95% {
    transform: translate(0);
  }
}

@keyframes glitchOverlay {
  0%,
  90%,
  100% {
    transform: translate(0);
    opacity: 0.2;
  }
  92% {
    transform: translate(2px, -1px);
    opacity: 0.25;
  }
  93% {
    transform: translate(-2px, 1px);
    opacity: 0.18;
  }
  94% {
    transform: translate(1px, 0);
  }
  95% {
    transform: translate(0);
  }
}

.animate {
  opacity: 0;
  animation: rise 0.9s ease forwards;
}

@media (prefers-reduced-motion: reduce) {
  .animate {
    opacity: 1;
    animation: none;
  }
}
