/* ============================================================
   LeylineAI — rebuilt landing
   Palette: white · ink #1a1a1a · blue #2563eb · sky #6ea8fe · navy #0a0f1e
   ============================================================ */

:root {
  --blue: #2563eb;
  --blue-bright: #3b82f6;
  --sky: #6ea8fe;
  --sky-soft: #cfe0ff;
  --navy: #0a0f1e;
  --navy-2: #0e1630;
  --navy-3: #131d3d;
  --ink: #1a1a1a;
  --ink-soft: #4b5563;
  --slate: #8093ad;
  --paper: #ffffff;
  --paper-tint: #eaf1ff;
  --paper-tint-2: #f4f8ff;
  --line: #dbe4f0;
  --line-dark: rgba(110, 168, 254, 0.16);

  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --radius: 18px;
  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: var(--font-mono); letter-spacing: 0.08em; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.02em; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.container--narrow { width: min(860px, calc(100% - 48px)); }

::selection { background: var(--blue); color: #fff; }

/* ---------- gradient text ---------- */
.grad {
  font-style: normal;
  background: linear-gradient(100deg, var(--blue) 0%, var(--sky) 50%, var(--blue-bright) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradShift 6s ease-in-out infinite;
}
@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 1001;
  background: transparent; pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--blue), var(--sky));
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.6);
}

/* ---------- pulse dots ---------- */
.pulse-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80; position: relative; flex: none;
}
.pulse-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: inherit; animation: pulseRing 2s ease-out infinite;
}
.pulse-dot--lg { width: 12px; height: 12px; background: var(--sky); }
.ghost-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  border: 1.5px dashed var(--slate); flex: none;
}
@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(3.2); opacity: 0; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: 14px 28px; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease,
              background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn svg { transition: transform 0.3s var(--ease-spring); }
.btn:hover svg { transform: translateX(4px); }

.btn--primary {
  background: linear-gradient(120deg, var(--blue), var(--blue-bright));
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}
.btn--primary::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.7s ease;
}
.btn--primary:hover { box-shadow: 0 12px 32px rgba(37, 99, 235, 0.5); }
.btn--primary:hover::before { transform: translateX(100%); }

.btn--ghost { border-color: var(--line); color: var(--ink); background: rgba(255,255,255,0.06); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }

.hero .btn--ghost { border-color: rgba(255,255,255,0.4); color: #fff; }
.hero .btn--ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.1); }

.btn--ghost-light { border-color: rgba(110,168,254,0.35); color: var(--sky-soft); }
.btn--ghost-light:hover { border-color: var(--sky); color: #fff; background: rgba(110,168,254,0.08); }

.btn--sm { padding: 10px 22px; font-size: 0.9rem; }
.btn--lg { padding: 16px 34px; font-size: 1.05rem; }
.btn--full { width: 100%; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
.nav.is-scrolled {
  background: rgba(10, 15, 30, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(110, 168, 254, 0.12);
}
.nav.is-light.is-scrolled {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner {
  width: min(1280px, calc(100% - 48px)); margin-inline: auto;
  height: var(--nav-h); display: flex; align-items: center; gap: 40px;
}
.nav__logo {
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
  display: inline-flex; align-items: center; gap: 10px; color: #fff;
  transition: color 0.4s ease;
}
.nav__logo em { font-style: normal; color: var(--sky); }
.nav.is-light .nav__logo { color: var(--ink); }
.nav.is-light .nav__logo em { color: var(--blue); }
.nav__logo-mark { width: 26px; height: 26px; color: var(--sky); animation: spinSlow 24s linear infinite; }
.nav.is-light .nav__logo-mark { color: var(--blue); }
@keyframes spinSlow { to { transform: rotate(360deg); } }

.nav__links { display: flex; gap: 30px; margin-left: auto; }
.nav__links a {
  font-size: 0.92rem; font-weight: 500; color: rgba(255,255,255,0.75);
  position: relative; padding: 6px 0; transition: color 0.3s ease;
}
.nav.is-light .nav__links a { color: var(--ink-soft); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--blue), var(--sky));
  transform: scaleX(0); transform-origin: right; transition: transform 0.35s var(--ease-out);
  border-radius: 2px;
}
.nav__links a:hover { color: #fff; }
.nav.is-light .nav__links a:hover { color: var(--blue); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__burger { display: none; flex-direction: column; gap: 5px; padding: 8px; margin-left: auto; }
.nav__burger span {
  width: 22px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}
.nav.is-light .nav__burger span { background: var(--ink); }
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none; flex-direction: column; gap: 4px; padding: 12px 24px 24px;
  background: rgba(10, 15, 30, 0.96); backdrop-filter: blur(16px);
}
.nav__mobile a { color: rgba(255,255,255,0.85); padding: 12px 0; font-weight: 500; border-bottom: 1px solid rgba(110,168,254,0.1); }
.nav__mobile .btn { margin-top: 16px; border-bottom: none; }
.nav__mobile.is-open { display: flex; animation: fadeSlideDown 0.35s var(--ease-out); }
@keyframes fadeSlideDown { from { opacity: 0; transform: translateY(-10px); } }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(180deg, #0d2f7d 0%, #1d4ed8 58%, #2563eb 100%);
  color: #fff; overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 0 120px;
}
#leylineCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  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: 64px 64px;
  mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 100%);
}
.hero__glow {
  position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none;
  animation: glowDrift 14s ease-in-out infinite alternate;
}
.hero__glow--a { width: 520px; height: 520px; top: -160px; left: -120px; background: rgba(255, 255, 255, 0.12); }
.hero__glow--b { width: 420px; height: 420px; bottom: -100px; right: -80px; background: rgba(110, 168, 254, 0.25); animation-delay: -7s; }

/* white-on-blue overrides for hero elements */
.hero .grad {
  background: linear-gradient(100deg, #ffffff 0%, var(--sky-soft) 50%, #ffffff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .btn--primary {
  background: #ffffff; color: var(--blue);
  box-shadow: 0 10px 28px rgba(4, 16, 48, 0.35);
}
.hero .btn--primary::before {
  background: linear-gradient(110deg, transparent 30%, rgba(37, 99, 235, 0.14) 50%, transparent 70%);
}
.hero .btn--primary:hover { box-shadow: 0 14px 36px rgba(4, 16, 48, 0.5); }
@keyframes glowDrift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(60px, 40px) scale(1.15); }
}

.hero__content {
  position: relative; z-index: 2; width: min(920px, calc(100% - 48px));
  margin-inline: auto; text-align: center;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px;
  padding: 9px 18px; margin-bottom: 34px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
}
.hero__title {
  font-size: clamp(2.6rem, 7.2vw, 5.4rem); font-weight: 700; margin-bottom: 28px;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > * , .hero__title .line { --stagger: 0; }
.hero__title .line {
  opacity: 0; transform: translateY(105%);
  animation: lineUp 0.9s var(--ease-out) forwards;
}
.hero__title .line:nth-child(1) { animation-delay: 0.15s; }
.hero__title .line:nth-child(2) { animation-delay: 0.3s; }
.hero__title .line:nth-child(3) { animation-delay: 0.45s; }
@keyframes lineUp { to { opacity: 1; transform: translateY(0); } }

.hero__sub {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: rgba(255, 255, 255, 0.82);
  max-width: 660px; margin: 0 auto 40px;
}
.hero__cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }

.hero__scan { max-width: 380px; margin: 0 auto; }
.hero__scan-label {
  font-size: 0.68rem; color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px; letter-spacing: 0.18em;
}
.hero__scan-track {
  height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.18); overflow: hidden;
}
.hero__scan-track span {
  display: block; height: 100%; width: 34%; border-radius: 3px;
  background: linear-gradient(90deg, transparent, #ffffff, transparent);
  animation: scanSweep 2.6s ease-in-out infinite;
}
@keyframes scanSweep {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(400%); }
}

.hero__scroll {
  position: absolute; z-index: 2; left: 50%; bottom: 92px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(255, 255, 255, 0.6); font-size: 0.65rem; letter-spacing: 0.3em;
  transition: color 0.3s ease;
}
.hero__scroll:hover { color: #fff; }
.hero__scroll-line {
  width: 1.5px; height: 44px; background: rgba(255, 255, 255, 0.3);
  position: relative; overflow: hidden;
}
.hero__scroll-line::after {
  content: ""; position: absolute; inset: 0; background: #fff;
  animation: scrollDrop 1.8s ease-in-out infinite;
}
@keyframes scrollDrop {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

/* ticker */
.ticker {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(13, 35, 100, 0.4); backdrop-filter: blur(8px);
  overflow: hidden; padding: 16px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track { display: flex; width: max-content; animation: tickerScroll 36s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__set { display: flex; }
.ticker__set span {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0 32px; color: rgba(255, 255, 255, 0.75); font-size: 0.9rem; white-space: nowrap;
}
.ticker__set b {
  color: #fff; font-weight: 700; font-size: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 6px; padding: 3px 7px;
}
@keyframes tickerScroll { to { transform: translateX(-50%); } }

/* ---------- stats ---------- */
.stats {
  background: var(--navy); color: #fff;
  border-top: 1px solid rgba(110, 168, 254, 0.1);
  padding: 64px 0;
}
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.stat { text-align: center; position: relative; }
.stat + .stat::before {
  content: ""; position: absolute; left: -16px; top: 15%; bottom: 15%;
  width: 1px; background: rgba(110, 168, 254, 0.14);
}
.stat__num {
  font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 700; color: #fff;
  display: flex; align-items: baseline; justify-content: center; gap: 2px;
}
.stat__num sup { font-size: 0.45em; color: var(--sky); }
.stat__label { color: rgba(207, 224, 255, 0.55); font-size: 0.9rem; margin-top: 6px; }

/* ---------- sections ---------- */
.section { padding: 130px 0; position: relative; }
.section--dark { background: var(--navy); color: #fff; }
.section--tint { background: var(--paper-tint-2); }

.section__head { max-width: 760px; margin-bottom: 72px; }
.section__head h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin: 18px 0 22px; }
.section__head p { color: var(--ink-soft); font-size: 1.08rem; }
.section__head--light p { color: rgba(207, 224, 255, 0.65); }

.eyebrow {
  font-size: 0.75rem; letter-spacing: 0.22em; color: var(--blue);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 34px; height: 1.5px; background: var(--blue); display: inline-block; }
.section--dark .eyebrow { color: var(--sky); }
.section--dark .eyebrow::before { background: var(--sky); }

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 1ms);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- cards (what we do) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px 34px; background: #fff; overflow: hidden;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s ease, border-color 0.35s ease;
  transform-style: preserve-3d;
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.45s ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(37, 99, 235, 0.07), transparent 65%);
  pointer-events: none;
}
.card:hover { border-color: rgba(37, 99, 235, 0.4); box-shadow: 0 24px 48px -20px rgba(15, 40, 100, 0.25); }
.card:hover::before { opacity: 1; }
.card__icon {
  width: 56px; height: 56px; color: var(--blue); margin-bottom: 26px;
  display: grid; place-items: center;
  background: var(--paper-tint); border-radius: 14px; padding: 12px;
  transition: transform 0.4s var(--ease-spring), background 0.3s ease, color 0.3s ease;
}
.card:hover .card__icon { transform: translateY(-4px) scale(1.06); background: var(--blue); color: #fff; }
.card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.card p { color: var(--ink-soft); font-size: 0.98rem; }
.card__num {
  position: absolute; top: 28px; right: 30px; font-size: 0.8rem;
  color: var(--slate); opacity: 0.7;
}

/* ---------- layers section ---------- */
.layers { overflow: hidden; }
.layers__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
}
.layers__copy h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 18px 0 20px; }
.layers__copy p { color: rgba(207, 224, 255, 0.65); font-size: 1.05rem; margin-bottom: 32px; }
.layers__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.layers__chips li {
  font-size: 0.72rem; color: var(--sky-soft);
  border: 1px solid rgba(110, 168, 254, 0.25); border-radius: 999px;
  padding: 8px 16px; background: rgba(110, 168, 254, 0.05);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease-spring),
              opacity 0.9s var(--ease-out);
}
.layers__chips li:hover {
  background: rgba(37, 99, 235, 0.25); border-color: var(--sky); transform: translateY(-3px);
}

.stack {
  position: relative; height: 460px; perspective: 1100px;
  display: grid; place-items: center;
}
.stack__layer {
  position: absolute; width: 300px; height: 190px;
  border: 1px solid var(--line-dark); border-radius: 12px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(110, 168, 254, 0.04));
  backdrop-filter: blur(2px);
  transform: rotateX(58deg) rotateZ(-42deg) translateZ(calc(var(--i) * 34px));
  transition: transform 0.6s var(--ease-out), border-color 0.3s ease, background 0.3s ease;
  display: flex; align-items: flex-end; padding: 10px 14px;
  animation: layerFloat 7s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.85s);
}
.stack__layer span { font-size: 0.6rem; color: rgba(207, 224, 255, 0.55); letter-spacing: 0.18em; }
.stack__layer:hover {
  border-color: var(--sky);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.3), rgba(110, 168, 254, 0.1));
}
@keyframes layerFloat {
  0%, 100% { transform: rotateX(58deg) rotateZ(-42deg) translateZ(calc(var(--i) * 34px)); }
  50% { transform: rotateX(58deg) rotateZ(-42deg) translateZ(calc(var(--i) * 34px + 10px)); }
}
.stack__beam {
  position: absolute; width: 3px; height: 340px; bottom: 40px;
  background: linear-gradient(180deg, var(--sky), transparent);
  filter: drop-shadow(0 0 8px var(--sky));
  animation: beamPulse 3s ease-in-out infinite;
}
@keyframes beamPulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}
.stack__target {
  position: absolute; bottom: 6px; display: flex; align-items: center; gap: 10px;
  font-size: 0.7rem; color: var(--sky);
  border: 1px solid rgba(110, 168, 254, 0.35); border-radius: 999px;
  padding: 8px 16px; background: rgba(10, 15, 30, 0.8);
}

/* ---------- timeline (how it works) ---------- */
.timeline { position: relative; max-width: 780px; margin-inline: auto; }
.timeline__line {
  position: absolute; left: 31px; top: 10px; bottom: 10px; width: 2px;
  background: var(--line); border-radius: 2px; overflow: hidden;
}
.timeline__line span {
  display: block; width: 100%; height: 0%;
  background: linear-gradient(180deg, var(--blue), var(--sky));
  transition: height 0.2s linear;
}
.step {
  position: relative; display: flex; gap: 40px; padding: 34px 0 34px;
}
.step__marker {
  flex: none; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; border: 2px solid var(--line);
  font-weight: 700; color: var(--slate); font-size: 0.95rem;
  position: relative; z-index: 1;
  transition: border-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease, transform 0.4s var(--ease-spring);
}
.step:hover .step__marker {
  border-color: var(--blue); color: var(--blue);
  box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.08); transform: scale(1.08);
}
.step__body h3 { font-size: 1.5rem; margin-bottom: 10px; }
.step__body p { color: var(--ink-soft); max-width: 560px; }
.step__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.step__tags span {
  font-size: 0.66rem; color: var(--blue); background: var(--paper-tint);
  border-radius: 6px; padding: 5px 10px; letter-spacing: 0.14em;
}

/* ---------- interlude ---------- */
.interlude {
  padding: 110px 0;
  background:
    radial-gradient(60% 120% at 50% 50%, rgba(37, 99, 235, 0.06), transparent),
    var(--paper-tint-2);
  text-align: center;
}
.interlude__text {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem); line-height: 1.3; color: var(--ink);
}

/* ---------- operations ---------- */
.ops { overflow: hidden; }
.ops__grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center;
}
.ops__map {
  position: relative; width: min(520px, 100%); margin-inline: auto;
  align-self: start;
}
#opsMap { width: 100%; display: block; }
.ops__markers { position: absolute; inset: 0; pointer-events: none; }

.map-marker { position: absolute; transform: translate(-50%, -50%); }
.map-marker i {
  display: block; width: 9px; height: 9px; border-radius: 50%;
  position: relative;
}
.map-marker--live i { background: var(--sky); box-shadow: 0 0 10px rgba(110, 168, 254, 0.9); }
.map-marker--live i::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--sky); animation: pulseRing 2.2s ease-out infinite;
}
.map-marker--pending i {
  background: transparent; border: 1.5px dashed rgba(255, 255, 255, 0.75);
  animation: pendingBlink 2.6s ease-in-out infinite;
}
@keyframes pendingBlink {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}
.map-marker span {
  position: absolute; white-space: nowrap;
  font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.16em;
  color: var(--sky-soft); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}
.map-marker--pending span { color: rgba(255, 255, 255, 0.75); }
.map-marker span::before { content: ""; }
.map-marker--right span { left: 15px; top: 50%; transform: translateY(-50%); }
.map-marker--left span { right: 15px; top: 50%; transform: translateY(-50%); }
.map-marker--top span { bottom: 12px; left: 50%; transform: translateX(-50%); }
.map-marker--bottom span { top: 12px; left: 50%; transform: translateX(-50%); }

.ops__legend {
  display: flex; gap: 26px; justify-content: center; margin-top: 18px;
  font-size: 0.62rem; color: rgba(207, 224, 255, 0.55); letter-spacing: 0.16em;
}
.ops__legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.legend-dot--live { background: var(--sky); box-shadow: 0 0 8px rgba(110, 168, 254, 0.8); }
.legend-dot--pending { border: 1.5px dashed rgba(255, 255, 255, 0.7); }

.ops__cards { display: grid; gap: 22px; }
.ops-card {
  border: 1px solid var(--line-dark); border-radius: var(--radius);
  background: linear-gradient(160deg, var(--navy-3), var(--navy-2));
  padding: 30px 32px; position: relative; overflow: hidden;
  transition: transform 0.45s var(--ease-out), border-color 0.35s ease, box-shadow 0.45s ease;
}
.ops-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.45s ease;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%), rgba(110, 168, 254, 0.1), transparent 60%);
  pointer-events: none;
}
.ops-card:hover { border-color: rgba(110, 168, 254, 0.45); box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.6); }
.ops-card:hover::before { opacity: 1; }
.ops-card header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.ops-card__status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.64rem; color: #4ade80; letter-spacing: 0.16em; order: 2;
}
.ops-card--ghost .ops-card__status { color: var(--slate); }
.ops-card h3 { font-size: 1.45rem; color: #fff; }
.ops-card p { color: rgba(207, 224, 255, 0.6); font-size: 0.95rem; margin-bottom: 18px; }
.ops-card ul { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.ops-card ul li {
  font-size: 0.62rem; color: var(--sky-soft); letter-spacing: 0.12em;
  border: 1px solid rgba(110, 168, 254, 0.2); border-radius: 6px; padding: 5px 10px;
}
.ops-card footer {
  font-size: 0.64rem; color: rgba(207, 224, 255, 0.4); letter-spacing: 0.16em;
  border-top: 1px solid rgba(110, 168, 254, 0.12); padding-top: 14px;
}
.ops-card--ghost { border-style: dashed; background: rgba(19, 29, 61, 0.4); }

/* ---------- minerals ---------- */
.minerals {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.mineral {
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
  padding: 24px 22px 20px; position: relative; overflow: hidden;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease, border-color 0.3s ease;
  transform-style: preserve-3d;
}
.mineral:hover {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 20px 44px -18px rgba(15, 40, 100, 0.28);
  z-index: 1;
}
.mineral--exploratory { border-style: dashed; background: var(--paper-tint-2); }
.mineral__symbol {
  font-family: var(--font-mono); font-weight: 700;
  font-size: 1.9rem; color: var(--blue); line-height: 1;
  transition: transform 0.35s var(--ease-spring);
}
.mineral:hover .mineral__symbol { transform: scale(1.12); }
.mineral__z {
  position: absolute; top: 18px; right: 18px;
  font-size: 0.6rem; color: var(--slate); letter-spacing: 0.2em;
}
.mineral h3 { font-size: 1.05rem; margin: 12px 0 2px; }
.mineral__where { font-size: 0.78rem; color: var(--ink-soft); min-height: 2.3em; }
.mineral__meter { margin-top: 16px; }
.mineral__meter-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 0.6rem; color: var(--slate); letter-spacing: 0.14em; margin-bottom: 6px;
}
.mineral__meter-head b { color: var(--blue); font-size: 0.82rem; }
.mineral__bar {
  height: 5px; border-radius: 5px; background: var(--paper-tint); overflow: hidden;
}
.mineral__bar span {
  display: block; height: 100%; width: 0; border-radius: 5px;
  background: linear-gradient(90deg, var(--blue), var(--sky));
  transition: width 1.3s var(--ease-out);
}
.mineral--exploratory .mineral__bar span {
  background: repeating-linear-gradient(90deg, var(--slate) 0 6px, transparent 6px 12px);
  opacity: 0.5;
}
.minerals__note {
  text-align: center; margin-top: 44px; font-size: 0.66rem; color: var(--slate);
  letter-spacing: 0.16em;
}

/* ---------- faq ---------- */
.faq { display: grid; gap: 14px; }
.faq__item {
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}
.faq__item[open] { border-color: rgba(37, 99, 235, 0.4); box-shadow: 0 16px 36px -20px rgba(15, 40, 100, 0.2); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 22px 26px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  transition: color 0.3s ease;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--blue); }
.faq__icon {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--line); position: relative;
  transition: transform 0.4s var(--ease-out), border-color 0.3s ease, background 0.3s ease;
}
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; background: var(--slate);
  top: 50%; left: 50%; transition: background 0.3s ease;
}
.faq__icon::before { width: 10px; height: 1.5px; transform: translate(-50%, -50%); }
.faq__icon::after { width: 1.5px; height: 10px; transform: translate(-50%, -50%); }
.faq__item[open] .faq__icon { transform: rotate(135deg); border-color: var(--blue); background: var(--paper-tint); }
.faq__item[open] .faq__icon::before, .faq__item[open] .faq__icon::after { background: var(--blue); }
.faq__body { padding: 0 26px; overflow: hidden; }
.faq__body p { color: var(--ink-soft); padding-bottom: 24px; max-width: 680px; }

/* ---------- contact ---------- */
.contact { overflow: hidden; }
.contact__glow {
  position: absolute; width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.16), transparent 65%);
  top: -260px; right: -200px; pointer-events: none;
  animation: glowDrift 16s ease-in-out infinite alternate;
}
.contact__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start;
  position: relative;
}
.contact__copy h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 18px 0 20px; }
.contact__copy p { color: rgba(207, 224, 255, 0.65); font-size: 1.05rem; margin-bottom: 34px; }
.contact__email {
  display: inline-block; font-size: 1.05rem; color: var(--sky);
  border-bottom: 1.5px solid rgba(110, 168, 254, 0.3); padding-bottom: 4px;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.contact__email:hover { color: #fff; border-color: var(--sky); }
.contact__meta { display: flex; gap: 28px; margin-top: 30px; flex-wrap: wrap; }
.contact__meta span {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.66rem; color: rgba(207, 224, 255, 0.5); letter-spacing: 0.16em;
}

.form {
  background: linear-gradient(160deg, var(--navy-3), var(--navy-2));
  border: 1px solid var(--line-dark); border-radius: var(--radius);
  padding: 40px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__field { position: relative; margin-bottom: 18px; }
.form__field input, .form__field textarea {
  width: 100%; font: inherit; color: #fff;
  background: rgba(10, 15, 30, 0.6); border: 1px solid rgba(110, 168, 254, 0.18);
  border-radius: 10px; padding: 16px 16px 14px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  resize: vertical;
}
.form__field input:focus, .form__field textarea:focus {
  outline: none; border-color: var(--blue-bright);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
}
.form__field label {
  position: absolute; left: 16px; top: 15px; color: var(--slate);
  pointer-events: none; font-size: 0.95rem;
  transition: transform 0.25s var(--ease-out), font-size 0.25s ease, color 0.25s ease, background 0.25s ease;
  transform-origin: left top;
}
.form__field input:focus + label,
.form__field input:not(:placeholder-shown) + label,
.form__field textarea:focus + label,
.form__field textarea:not(:placeholder-shown) + label {
  transform: translateY(-24px) translateX(-6px); font-size: 0.7rem; color: var(--sky);
  background: var(--navy-2); padding: 0 7px; border-radius: 4px;
}
.form__status { margin-top: 14px; font-size: 0.72rem; color: #4ade80; letter-spacing: 0.12em; min-height: 1.2em; }

/* ---------- footer ---------- */
.footer { background: var(--navy); color: #fff; border-top: 1px solid rgba(110, 168, 254, 0.1); }
.footer__inner {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 40px;
  padding: 64px 0 40px; flex-wrap: wrap;
}
.nav__logo--footer { font-size: 1.4rem; }
.footer__brand p { margin-top: 16px; font-size: 0.62rem; color: rgba(207, 224, 255, 0.4); letter-spacing: 0.16em; max-width: 360px; line-height: 1.9; }
.footer__links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer__links a { color: rgba(207, 224, 255, 0.65); font-size: 0.92rem; transition: color 0.3s ease; }
.footer__links a:hover { color: var(--sky); }
.footer__legal {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 24px 0 36px; border-top: 1px solid rgba(110, 168, 254, 0.08);
  font-size: 0.6rem; color: rgba(207, 224, 255, 0.35); letter-spacing: 0.16em;
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .cards { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .layers__grid, .ops__grid, .contact__grid { grid-template-columns: 1fr; gap: 56px; }
  .minerals { grid-template-columns: repeat(3, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .stat:nth-child(3)::before { display: none; }
  .ops__map { order: 2; }
}

@media (max-width: 760px) {
  .nav__links, .nav__inner > .btn { display: none; }
  .nav__burger { display: flex; }
  .minerals { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 90px 0; }
  .step { gap: 22px; }
  .step__marker { width: 48px; height: 48px; font-size: 0.8rem; }
  .timeline__line { left: 23px; }
  .form { padding: 28px 22px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .hero__scroll { display: none; }
  .stack { height: 380px; }
  .stack__layer { width: 240px; height: 150px; }
}

@media (max-width: 480px) {
  .minerals { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr; }
  .stat + .stat::before { display: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero__title .line { opacity: 1; transform: none; }
}
