:root {
  --ink: #010807;
  --panel: rgba(5, 10, 9, 0.92);
  --jade: #106855;
  --jade-soft: #1f8a71;
  --gold: #c2a569;
  --text: #f6f5f0;
  --muted: rgba(246, 245, 240, 0.75);
  font-family: "Space Grotesk", system-ui, sans-serif;
}

* { box-sizing: border-box; }

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

.grid {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(16, 104, 85, 0.25), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(194, 165, 105, 0.18), transparent 60%);
  pointer-events: none;
}

.grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 110px 110px;
  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;
  gap: 12px;
  align-items: center;
}

.brand-mark {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
}
.brand-mark img { width: 100%; height: auto; display: block; }

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

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(--jade-soft), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

nav a:hover::after { opacity: 1; }

.cta {
  background: linear-gradient(120deg, var(--jade), var(--gold));
  color: #020402;
  border-radius: 999px;
  padding: 11px 28px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 20px 45px rgba(17, 104, 85, 0.4);
}

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

.hero {
  position: relative;
  padding: 30px 0 40px;
  min-height: 480px;
}

.hero-stage {
  position: absolute;
  inset: -140px -200px auto auto;
  width: 500px;
  height: 500px;
  pointer-events: none;
  filter: drop-shadow(0 0 60px rgba(16, 104, 85, 0.4));
}

.compass {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: compassSpin 20s linear infinite;
}

.compass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transform: rotateX(65deg);
}

.arm {
  position: absolute;
  width: 4px;
  height: 220px;
  top: 50%;
  left: 50%;
  transform-origin: center 90%;
  background: linear-gradient(180deg, rgba(194, 165, 105, 0), rgba(194, 165, 105, 0.7));
}

.arm-n { transform: translate(-50%, -100%) rotateX(60deg); }
.arm-e { transform: translate(-50%, -100%) rotateX(60deg) rotateZ(90deg); }
.arm-s { transform: translate(-50%, -100%) rotateX(60deg) rotateZ(180deg); }
.arm-w { transform: translate(-50%, -100%) rotateX(60deg) rotateZ(270deg); }

.core {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(194, 165, 105, 0.5), rgba(16, 104, 85, 0.6));
  box-shadow: 0 0 40px rgba(194, 165, 105, 0.5);
}

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

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

.hero h2 { font-size: clamp(2.3rem, 4vw, 3.6rem); }

.dual-line { color: var(--muted); line-height: 1.7; }
.alt-line { display: block; margin-top: 6px; color: rgba(246, 245, 240, 0.62); font-size: 0.95rem; }

.hero-cta {
  margin-top: 28px;
  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.45);
}

.line-grid,
.workflow-grid,
.log-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  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(5, 12, 10, 0.92);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.line-grid article::after,
.workflow-grid article::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 18px;
  border: 1px solid rgba(16, 104, 85, 0.35);
}

.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-grid article:hover,
.workflow-grid article:hover,
.log-grid article:hover {
  transform: translateY(-8px);
  border-color: rgba(194, 165, 105, 0.45);
  box-shadow: 0 24px 50px rgba(16, 104, 85, 0.35);
}

.line-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(16, 104, 85, 0.5), rgba(194, 165, 105, 0.4));
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}
.line-icon svg { width: 28px; height: 28px; }

.icon-north { position: relative; }



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

.log-grid 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 compassSpin {
  from { transform: rotateX(55deg) rotateZ(0deg); }
  to { transform: rotateX(55deg) rotateZ(360deg); }
}

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

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