*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --red: #e01111;
  --red2: #ff3333;
  --red-glow: rgba(224, 17, 17, 0.3);
  --bg: #0d0808;
  --bg2: #130c0c;
  --bg3: #1a1010;
  --text: #f0eded;
  --text2: #9a8e8e;
  --text3: #4a3f3f;
  --border: rgba(224, 17, 17, 0.2);
  --border2: rgba(255, 255, 255, 0.06);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

/* grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
  z-index: 9999;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 56px;
  background: rgba(13, 8, 8, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border2);
}

.nav-brand {
  font-family: "Space Mono", monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-brand .dot {
  color: var(--red);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  color: var(--text2);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  transition:
    color 0.2s,
    background 0.2s;
}
.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-cta {
  background: var(--red);
  color: #fff !important;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 1.1rem;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 0 20px var(--red-glow);
  transition:
    background 0.2s,
    box-shadow 0.2s;
}
.nav-cta:hover {
  background: var(--red2);
  box-shadow: 0 0 32px var(--red-glow);
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 8rem 2rem 5rem;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
}

/* ambient glow */
.hero::after {
  content: "";
  position: fixed;
  top: 0;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(224, 17, 17, 0.07) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Space Mono", monospace;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--red);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.5s ease both;
}
.hero-eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--red);
}

.hero-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.5s 0.1s ease both;
}
.hero-title span {
  color: var(--red);
}

.hero-sub {
  font-size: 1rem;
  color: var(--text2);
  max-width: 420px;
  font-weight: 400;
  line-height: 1.75;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.5s 0.2s ease both;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.5s 0.3s ease both;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.7rem 1.75rem;
  border-radius: 7px;
  box-shadow: 0 0 28px var(--red-glow);
  transition:
    background 0.2s,
    box-shadow 0.2s,
    transform 0.15s;
  letter-spacing: 0.01em;
}
.btn-primary:hover {
  background: var(--red2);
  box-shadow: 0 0 40px var(--red-glow);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text2);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.7rem 1.75rem;
  border-radius: 7px;
  border: 1px solid var(--border2);
  transition:
    color 0.2s,
    border-color 0.2s,
    transform 0.15s;
}
.btn-secondary:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

/* ── TERMINAL ── */
.hero-terminal {
  margin-top: 4.5rem;
  width: min(700px, 90vw);
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.03);
  animation: fadeUp 0.6s 0.4s ease both;
}

.terminal-bar {
  background: var(--bg3);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid var(--border2);
}
.tdot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.tdot:nth-child(1) {
  background: #ff5f57;
}
.tdot:nth-child(2) {
  background: #febc2e;
}
.tdot:nth-child(3) {
  background: #28c840;
}
.terminal-title {
  font-family: "Space Mono", monospace;
  font-size: 0.68rem;
  color: var(--text3);
  margin-left: auto;
}

.terminal-body {
  padding: 1rem 1.25rem;
  font-family: "Space Mono", monospace;
  font-size: 0.72rem;
  line-height: 1.9;
}
.log-line {
  display: flex;
  gap: 0.75rem;
}
.log-time {
  color: var(--text3);
}
.log-ok {
  color: #4ade80;
}
.log-info {
  color: #60a5fa;
}
.log-msg {
  color: var(--text2);
}
.log-cursor {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: var(--red);
  animation: blink 1s step-end infinite;
  vertical-align: middle;
  margin-left: 3px;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* ── DIVIDER ── */
.section-divider {
  width: 100%;
  height: 1px;
  background: var(--border2);
  margin: 0;
}

/* ── STATS ── */
.stats {
  background: var(--bg2);
  border-top: 1px solid var(--border2);
  border-bottom: 1px solid var(--border2);
}
.stats-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.stat {
  text-align: left;
  padding: 0 1rem;
  border-right: 1px solid var(--border2);
}
.stat:last-child {
  border-right: none;
}
.stat-num {
  font-family: "Space Mono", monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text3);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── FEATURES ── */
.features {
  max-width: 960px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-eye {
  font-family: "Space Mono", monospace;
  font-size: 0.68rem;
  color: var(--red);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-eye::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--red);
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}
.section-sub {
  font-size: 0.9rem;
  color: var(--text2);
  max-width: 420px;
  margin-bottom: 3rem;
  font-weight: 400;
  line-height: 1.7;
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--border2);
  border-radius: 10px;
  overflow: hidden;
  background: var(--border2);
}

.feat-card {
  background: var(--bg2);
  padding: 1.75rem;
  transition: background 0.2s;
}
.feat-card:hover {
  background: var(--bg3);
}

.feat-num {
  font-family: "Space Mono", monospace;
  font-size: 0.65rem;
  color: var(--red);
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  opacity: 0.7;
}
.feat-name {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.feat-desc {
  font-size: 0.8rem;
  color: var(--text2);
  line-height: 1.65;
  font-weight: 400;
}

/* ── CTA ── */
.cta {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
}
.cta-box {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}
.cta-left {
  flex: 1;
  min-width: 220px;
}
.cta-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}
.cta-sub {
  font-size: 0.85rem;
  color: var(--text2);
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border2);
  padding: 1.5rem 2rem;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand {
  font-family: "Space Mono", monospace;
  font-size: 0.8rem;
  color: var(--text3);
}
.footer-brand span {
  color: var(--red);
}
.footer-copy {
  font-size: 0.75rem;
  color: var(--text3);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat {
    border-right: none;
    border-bottom: 1px solid var(--border2);
    padding: 0.75rem 0;
  }
  .feat-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 7rem 1.25rem 4rem;
  }
  nav {
    padding: 0 1.25rem;
  }
  .cta-box {
    padding: 2rem 1.5rem;
  }
  footer {
    max-width: 100%;
    padding: 1.25rem;
  }
  .features {
    padding: 4rem 1.25rem;
  }
  .cta {
    padding: 0 1.25rem 4rem;
  }
}
