:root {
  --ink: #e7e3de;
  --coal: #0b0b0d;
  --blood: #b61c24;
  --scar: #ff3b2f;
  --rust: #a7472a;
  --grit: rgba(255, 255, 255, 0.08);
  --mist: rgba(255, 255, 255, 0.12);
  --radius: 22px;
}

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

body {
  font-family: "Spectral", serif;
  color: var(--ink);
  background: #050506;
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(182, 28, 36, 0.25), transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(255, 59, 47, 0.18), transparent 55%),
    radial-gradient(circle at 50% 80%, rgba(167, 71, 42, 0.2), transparent 60%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.04), transparent 55%);
  z-index: 0;
}

.grain {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.3'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0.25;
  z-index: 1;
}

.scanlines {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(transparent 60%, rgba(0, 0, 0, 0.6) 80%);
  background-size: 100% 6px;
  opacity: 0.3;
  pointer-events: none;
  z-index: 2;
}

.top {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 8vw 12px;
  background: rgba(5, 5, 6, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  z-index: 5;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Unbounded", sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.sigil {
  font-size: 1.4rem;
  background: var(--blood);
  color: var(--ink);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(182, 28, 36, 0.4);
}

.nav {
  display: flex;
  gap: 20px;
  font-family: "Unbounded", sans-serif;
  font-size: 0.85rem;
}

.nav a {
  text-decoration: none;
  color: var(--ink);
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--scar);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

main {
  padding: 0 8vw 6rem;
  position: relative;
  z-index: 3;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  padding: 7rem 0 5rem;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  color: var(--scar);
  font-family: "Unbounded", sans-serif;
  margin-bottom: 1rem;
}

h1 {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(2.6rem, 4vw, 4rem);
  line-height: 1.12;
  margin-bottom: 1.5rem;
}

h1 span {
  display: block;
  color: var(--scar);
}

.lead {
  font-size: 1.1rem;
  max-width: 540px;
  margin-bottom: 2rem;
}

.cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.cta {
  padding: 12px 24px;
  border-radius: 6px;
  background: var(--blood);
  color: var(--ink);
  text-decoration: none;
  font-family: "Unbounded", sans-serif;
  font-size: 0.9rem;
  box-shadow: 0 16px 30px rgba(182, 28, 36, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(182, 28, 36, 0.4);
}

.cta.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--scar);
  box-shadow: none;
}

.hero-card {
  align-self: center;
}

.hero-card-inner {
  background: rgba(12, 12, 14, 0.85);
  color: var(--ink);
  padding: 32px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.6);
}

.hero-card-inner::before {
  content: "";
  position: absolute;
  inset: -60% -20% auto;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 59, 47, 0.4), transparent 70%);
  opacity: 0.8;
}

.card-title {
  font-family: "Unbounded", sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 1rem;
}

.card-body {
  font-size: 1.05rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(231, 227, 222, 0.7);
}

section {
  padding: 4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.section-head h2 {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 0.8rem;
}

.sub {
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.grid article {
  padding: 24px;
  border-radius: 14px;
  background: rgba(12, 12, 14, 0.7);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.3);
}

.grid h3 {
  font-family: "Unbounded", sans-serif;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.step {
  font-family: "Unbounded", sans-serif;
  font-size: 1.3rem;
  color: var(--scar);
}

.signal .ascii-shell {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(8, 8, 10, 0.9);
  box-shadow: inset 0 0 30px rgba(255, 59, 47, 0.15);
  padding: 18px;
}

.ascii-header {
  display: flex;
  justify-content: space-between;
  font-family: "Unbounded", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: rgba(231, 227, 222, 0.6);
}

#ascii {
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  color: #f5e6e6;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.03) 2px, transparent 2px, transparent 4px);
  padding: 16px;
  border-radius: 8px;
  min-height: 170px;
}

.contact {
  border-top: none;
}

.contact-inner {
  padding: 48px;
  border-radius: 16px;
  background: rgba(182, 28, 36, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.contact-inner h2 {
  font-family: "Unbounded", sans-serif;
  margin-bottom: 1rem;
}

.contact-inner p {
  max-width: 560px;
  margin: 0 auto 2rem;
  color: rgba(231, 227, 222, 0.8);
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 2rem 8vw 3rem;
  font-family: "Unbounded", sans-serif;
  font-size: 0.8rem;
  color: rgba(231, 227, 222, 0.5);
}

@media (max-width: 720px) {
  .nav {
    display: none;
  }

  .top {
    padding: 20px 6vw;
  }

  main {
    padding: 0 6vw 4rem;
  }

  .hero {
    padding: 5rem 0 3rem;
  }

  footer {
    flex-direction: column;
    gap: 10px;
  }

  .ascii-header {
    flex-direction: column;
    gap: 6px;
  }
}
