:root {
  --bg: #050404;
  --panel: rgba(10, 9, 9, 0.92);
  --blood: #a4031f;
  --blood-soft: #d7263d;
  --text: #f8f3f2;
  --muted: rgba(248, 243, 242, 0.72);
  font-family: "Space Grotesk", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

.grid {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, rgba(167, 12, 28, 0.35), transparent 60%),
    radial-gradient(circle at bottom, rgba(167, 12, 28, 0.18), transparent 70%);
  opacity: 0.7;
  pointer-events: none;
}

.grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 100px 100px;
  mix-blend-mode: screen;
}

.container {
  width: min(1180px, 100% - 48px);
  margin: 0 auto;
  padding: 48px 0 120px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.brand-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blood-soft), var(--blood));
  box-shadow: 0 0 18px rgba(167, 12, 28, 0.8);
}

.brand h1 {
  font-size: 1.6rem;
  margin: 0;
  letter-spacing: 0.08em;
}

.han {
  font-size: 1rem;
  margin-left: 8px;
  color: var(--muted);
}

nav {
  display: flex;
  justify-content: center;
  gap: 18px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.08em;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blood-soft), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

nav a:hover::after,
nav a:focus-visible::after {
  opacity: 1;
}

.cta,
button.cta {
  background: linear-gradient(110deg, var(--blood), var(--blood-soft));
  border: none;
  border-radius: 999px;
  color: #0b0304;
  padding: 11px 26px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 18px 48px rgba(167, 12, 28, 0.55);
  cursor: pointer;
}

.ghost,
button.ghost {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  padding: 11px 24px;
  font-weight: 600;
  cursor: pointer;
}

.hero {
  position: relative;
  padding: 60px 0 40px;
  min-height: 460px;
}

.hero-stage {
  position: absolute;
  inset: -120px -220px auto auto;
  width: 520px;
  height: 520px;
  pointer-events: none;
  filter: drop-shadow(0 0 60px rgba(167, 12, 28, 0.45));
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  animation: orbit 18s linear infinite;
}
.orbit-one { inset: 0; }
.orbit-two { inset: 40px; animation-duration: 22s; animation-direction: reverse; opacity: 0.6; }
.orbit-three { inset: 80px; animation-duration: 26s; opacity: 0.4; }

.relay-core {
  width: 260px;
  height: 260px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform-style: preserve-3d;
  transform: translate(-50%, -50%);
  animation: coreSpin 14s linear infinite;
}

.blade {
  position: absolute;
  width: 200px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(167, 12, 28, 0.8), rgba(5, 4, 4, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 25px rgba(167, 12, 28, 0.4);
}

.blade-a { transform: rotateY(0deg) rotateX(16deg) translateZ(80px); }
.blade-b { transform: rotateY(120deg) rotateX(-12deg) translateZ(80px); }
.blade-c { transform: rotateY(240deg) rotateX(4deg) translateZ(80px); }

.hero-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
  margin: 0 auto;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.5em;
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.hero h2 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  margin: 0 0 16px;
}

.dual-line {
  color: var(--muted);
  line-height: 1.7;
}

.alt-line {
  display: block;
  margin-top: 6px;
  color: rgba(248, 243, 242, 0.6);
  font-size: 0.95rem;
}

.hero-cta {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.panel {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  padding: 36px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.panel-head h3 {
  margin: 12px 0 0;
  font-size: 2.2rem;
}

.line-grid,
.workflow-grid,
.log-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.line-grid article,
.workflow-grid article,
.log-grid article {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px;
  background: rgba(7, 4, 5, 0.9);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.workflow-grid article:hover,
.log-grid article:hover {
  border-color: rgba(167, 12, 28, 0.5);
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(167, 12, 28, 0.25);
}

.line-grid article::after,
.workflow-grid article::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 20px;
  border: 1px solid rgba(167, 12, 28, 0.3);
  opacity: 0.4;
}
.line-grid article::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(167, 12, 28, 0.15), transparent, rgba(255, 255, 255, 0.08));
  opacity: 0;
  animation: sheen 5s linear infinite;
  pointer-events: none;
  mix-blend-mode: screen;
}

.line-grid article {
  animation: float 6s ease-in-out infinite;
}

.line-grid article:nth-child(2) { animation-delay: 1s; }
.line-grid article:nth-child(3) { animation-delay: 2s; }

.line-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(167, 12, 28, 0.4));
  margin-bottom: 16px;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.6);
}
.line-icon::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.icon-grid { position: relative; }
.icon-grid::before {
  content: "";
  position: absolute;
  inset: 16px;
  background-image: linear-gradient(rgba(255, 255, 255, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.4) 1px, transparent 1px);
  background-size: 10px 10px;
}
.icon-pulse { position: relative; }
.icon-pulse::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 12px rgba(167, 12, 28, 0.6);
}
.icon-strike { position: relative; }
.icon-strike::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-left: 2px solid rgba(255, 255, 255, 0.6);
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(167, 12, 28, 0.4);
}

.workflow-grid .step {
  font-size: 0.9rem;
  letter-spacing: 0.4em;
  color: var(--blood-soft);
  margin-bottom: 12px;
}

.log-grid article span {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--muted);
}

.contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

footer {
  text-align: center;
  color: var(--muted);
}

@keyframes orbit {
  from { transform: rotateX(65deg) rotateZ(0deg); }
  to { transform: rotateX(65deg) rotateZ(360deg); }
}

@keyframes coreSpin {
  from { transform: translate(-50%, -50%) rotateX(0deg) rotateY(0deg); }
  to { transform: translate(-50%, -50%) rotateX(360deg) rotateY(360deg); }
}

@keyframes sheen {
  0% { opacity: 0; transform: translateX(-50%); }
  40% { opacity: 0.4; }
  100% { opacity: 0; transform: translateX(50%); }
}

@keyframes scan {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 0.7; }
  100% { opacity: 0; transform: translateY(-40px); }
}

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

@media (max-width: 720px) {
  header {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .hero-stage {
    position: absolute;
    inset: -40px calc(50% - 200px) auto calc(50% - 200px);
  }
  .contact {
    flex-direction: column;
    align-items: flex-start;
  }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(167, 12, 28, 0.12), transparent 70%);
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0.7;
  animation: scan 6s linear infinite;
}
.hero-copy, .hero-cta { position: relative; z-index: 1; }
