:root {
  --bg: #0c0b0a;
  --panel: rgba(18, 17, 16, 0.92);
  --terracotta: #c9673b;
  --terracotta-soft: #e89a72;
  --steel: #7c7c84;
  --text: #f8f5f2;
  --muted: rgba(248, 245, 242, 0.72);
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

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

.frame-grid {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, rgba(201, 103, 59, 0.18), transparent 55%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.05), transparent 45%);
  opacity: 0.8;
  pointer-events: none;
}

.frame-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: 120px 120px;
  mix-blend-mode: screen;
  mask-image: linear-gradient(#000, transparent 80%);
}

.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;
  gap: 8px;
  align-items: center;
}

.brand-mark {
  width: 74px;
  height: 74px;
  border-radius: 18px;
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-mark img {
  width: 100%;
  height: auto;
  display: block;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 0.68rem;
  color: var(--steel);
  margin: 0 0 4px;
}

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

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--terracotta), 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(120deg, var(--terracotta), var(--terracotta-soft));
  color: #1a100b;
  padding: 11px 26px;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 20px 45px rgba(201, 103, 59, 0.45);
}

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

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

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

.hero-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
  margin: 0 auto;
}
.hero h2 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin: 0 0 18px;
}

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

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

.hero-stage {
  position: absolute;
  inset: -60px -160px auto auto;
  width: 420px;
  height: 420px;
  perspective: 1200px;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

.forge-core {
  width: 220px;
  height: 220px;
  position: relative;
  transform-style: preserve-3d;
  animation: spin 12s linear infinite;
}

.forge-face {
  position: absolute;
  width: 220px;
  height: 220px;
  background: linear-gradient(145deg, rgba(201, 103, 59, 0.85), rgba(12, 11, 10, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.4);
}

.front { transform: translateZ(90px); }
.back { transform: rotateY(180deg) translateZ(90px); }
.left { transform: rotateY(-90deg) translateZ(90px); }
.right { transform: rotateY(90deg) translateZ(90px); }
..top { transform: rotateX(90deg) translateZ(90px); }
.bottom { transform: rotateX(-90deg) translateZ(90px); }

/* hero-holo removed */

.hero-holo p {
  margin: 4px 0;
  font-size: 0.95rem;
}

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

.panel-head {
  width: 100%;
}

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

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

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

.line-grid article {
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(201, 103, 59, 0.18), rgba(12, 11, 10, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  animation: cardFloat 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.15), rgba(201, 103, 59, 0.5));
  margin-bottom: 18px;
  transform: translateZ(30px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}
.line-icon svg { width: 32px; height: 32px; }

.workflow-head h3 {
  margin-bottom: 8px;
}

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

.workflow-grid article {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(12, 11, 10, 0.85);
  position: relative;
}

.step-id {
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  color: var(--terracotta-soft);
  margin-bottom: 14px;
}

.ops-log .log-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.ops-log article {
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(15, 14, 13, 0.9);
  min-height: 160px;
  position: relative;
}

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

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

.contact .cta {
  flex-shrink: 0;
}

footer {
  text-align: center;
  color: var(--steel);
  font-size: 0.9rem;
}

@keyframes spin {
  0% { transform: rotateX(0) rotateY(0); }
  50% { transform: rotateX(180deg) rotateY(0deg); }
  100% { transform: rotateX(360deg) rotateY(360deg); }
}

@keyframes hover {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -12px); }
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.01); }
}

@media (max-width: 720px) {
  header {
    grid-template-columns: 1fr;
    text-align: left;
  }
  nav { justify-content: flex-start; flex-wrap: wrap; }
  .contact { flex-direction: column; align-items: flex-start; }
  .hero-stage { order: -1; }
}

.engage-pin {
  position: absolute;
  top: -32px;
  right: -32px;
  z-index: 1;
}
@media (max-width: 720px) {
  .engage-pin { position: static; margin-bottom: 18px; }
}
