/* ============================================================
   RAFEN.DK — AI Mission Control
   ============================================================ */

:root {
  --bg: #050810;
  --bg-alt: #070B16;
  --panel: rgba(15, 23, 42, 0.55);
  --panel-border: rgba(148, 163, 184, 0.12);
  --text: #E7ECF4;
  --text-dim: #8B95A9;
  --cyan: #22D3EE;
  --green: #4ADE80;
  --purple: #A78BFA;
  --cyan-glow: rgba(34, 211, 238, 0.35);
  --green-glow: rgba(74, 222, 128, 0.3);
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --radius: 16px;
  --nav-h: 72px;
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- ambient background ---------- */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 80%);
}

main, .nav, .footer { position: relative; z-index: 1; }

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

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 700; margin-bottom: 16px; }
h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }

.gradient-text {
  background: linear-gradient(100deg, var(--cyan) 10%, var(--green) 55%, var(--purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.dim { color: var(--text-dim); }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.green-text { color: var(--green); }

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--cyan);
  margin-bottom: 14px;
  text-transform: uppercase;
}

.section-lead {
  color: var(--text-dim);
  font-size: 1.08rem;
  max-width: 640px;
  margin-bottom: 48px;
}

/* ---------- layout ---------- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.section { padding: 110px 0; position: relative; }

.section-alt {
  background: linear-gradient(180deg, transparent, rgba(13, 20, 38, 0.55) 18%, rgba(13, 20, 38, 0.55) 82%, transparent);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }

.btn-primary {
  background: linear-gradient(100deg, #0891B2, #0EA5A0);
  color: #F0FDFF;
  box-shadow: 0 0 24px var(--cyan-glow), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 42px var(--cyan-glow), 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-ghost {
  background: rgba(148, 163, 184, 0.06);
  color: var(--text);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.07);
  transform: translateY(-2px);
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 8, 16, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--panel-border);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo-dot { color: var(--cyan); }

.logo-mark {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--cyan);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px var(--cyan-glow);
}
.logo-core {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2.4s ease-in-out infinite;
}

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.btn) {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:not(.btn):hover { color: var(--cyan); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-burger span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 60px) 0 80px;
  position: relative;
}

.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--green);
  border: 1px solid rgba(74, 222, 128, 0.25);
  background: rgba(74, 222, 128, 0.06);
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 26px;
}

.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green-glow);
  animation: pulse 2s ease-in-out infinite;
}
.pulse-dot.green { background: var(--green); }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.78); }
}

.hero-sub {
  color: var(--text-dim);
  font-size: 1.12rem;
  max-width: 540px;
  margin: 22px 0 34px;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 52px; }

/* pipeline */
.pipeline { max-width: 560px; }

.pipeline-track {
  position: relative;
  height: 2px;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.12), rgba(74, 222, 128, 0.25));
  border-radius: 2px;
  margin: 0 8px 14px;
  overflow: visible;
}
.pipeline-runner {
  position: absolute;
  top: 50%;
  left: 0;
  width: 46px; height: 4px;
  transform: translateY(-50%);
  border-radius: 4px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--green));
  box-shadow: 0 0 16px var(--cyan-glow);
  animation: run 4.5s linear infinite;
}
@keyframes run {
  0% { left: -8%; opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { left: 102%; opacity: 0; }
}

.pipeline-nodes {
  display: flex;
  justify-content: space-between;
  gap: 4px;
}
.pnode {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  text-transform: uppercase;
  animation: nodeGlow 4.5s linear infinite;
  animation-delay: calc(var(--i) * 0.72s);
}
.pnode-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--cyan);
  background: var(--bg);
}
@keyframes nodeGlow {
  0%, 20%, 100% { color: var(--text-dim); }
  8% { color: var(--cyan); text-shadow: 0 0 12px var(--cyan-glow); }
}

/* cockpit */
.hero-cockpit {
  position: relative;
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.75), rgba(8, 12, 24, 0.85));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 22px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.cockpit-glow {
  position: absolute;
  inset: -60px;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 30% 20%, rgba(34, 211, 238, 0.14), transparent 70%),
    radial-gradient(ellipse 50% 45% at 80% 85%, rgba(167, 139, 250, 0.12), transparent 70%);
  pointer-events: none;
}

.cockpit-header, .cockpit-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--text-dim);
}
.cockpit-header { margin-bottom: 16px; }
.cockpit-footer { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--panel-border); }
.cockpit-title { color: var(--text); font-weight: 500; }
.cockpit-status { display: inline-flex; align-items: center; gap: 7px; color: var(--green); }
.cockpit-tick { color: var(--cyan); }

.cockpit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.ccard {
  border: 1px solid var(--panel-border);
  border-radius: 13px;
  background: rgba(20, 28, 48, 0.55);
  padding: 14px;
  transition: border-color 0.3s ease;
}
.ccard:hover { border-color: rgba(34, 211, 238, 0.35); }

.float-1 { animation: floaty 6s ease-in-out infinite; }
.float-2 { animation: floaty 7s ease-in-out 0.8s infinite; }
.float-3 { animation: floaty 6.5s ease-in-out 1.6s infinite; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.ccard-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.led {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2.6s ease-in-out infinite;
}
.led-cyan { background: var(--cyan); box-shadow: 0 0 8px var(--cyan-glow); }
.led-green { background: var(--green); box-shadow: 0 0 8px var(--green-glow); }
.led-purple { background: var(--purple); box-shadow: 0 0 8px rgba(167, 139, 250, 0.4); }

.ccard-metric {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.ccard-metric small {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-dim);
  margin-left: 4px;
}

.sparkline {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 26px;
}
.sparkline i {
  flex: 1;
  height: var(--h);
  border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan), rgba(34, 211, 238, 0.15));
  animation: barGrow 1.2s ease-out backwards;
}
.sparkline.green i { background: linear-gradient(180deg, var(--green), rgba(74, 222, 128, 0.15)); }
.sparkline.purple i { background: linear-gradient(180deg, var(--purple), rgba(167, 139, 250, 0.15)); }
.sparkline i:nth-child(2) { animation-delay: 0.08s; }
.sparkline i:nth-child(3) { animation-delay: 0.16s; }
.sparkline i:nth-child(4) { animation-delay: 0.24s; }
.sparkline i:nth-child(5) { animation-delay: 0.32s; }
.sparkline i:nth-child(6) { animation-delay: 0.4s; }
@keyframes barGrow { from { height: 0; } }

.flowbar {
  height: 6px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.12);
  overflow: hidden;
}
.flowbar span {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: 4px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  animation: fillIn 1.4s ease-out backwards;
}
.flowbar.cyan span { background: linear-gradient(90deg, #0891B2, var(--cyan)); }
.flowbar.green span { background: linear-gradient(90deg, #16A34A, var(--green)); }
@keyframes fillIn { from { width: 0; } }

.hero-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}

/* ---------- cards (problem / services / modules) ---------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pain-card, .service-card, .module-card {
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 28px 24px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.pain-card:hover, .service-card:hover, .module-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45), 0 0 32px rgba(34, 211, 238, 0.07);
}

.pain-card p, .service-card p, .module-card p { color: var(--text-dim); font-size: 0.94rem; }

.pain-icon, .service-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border: 1px solid var(--panel-border);
}
.pain-icon { color: #F87171; background: rgba(248, 113, 113, 0.07); }
.pain-icon svg, .service-icon svg { width: 24px; height: 24px; }

.service-icon.cyan { color: var(--cyan); background: rgba(34, 211, 238, 0.08); box-shadow: 0 0 22px rgba(34, 211, 238, 0.1); }
.service-icon.green { color: var(--green); background: rgba(74, 222, 128, 0.08); box-shadow: 0 0 22px rgba(74, 222, 128, 0.1); }
.service-icon.purple { color: var(--purple); background: rgba(167, 139, 250, 0.08); box-shadow: 0 0 22px rgba(167, 139, 250, 0.1); }

.service-tag {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 6px;
  padding: 4px 9px;
}

/* ---------- transformation flow ---------- */
.transform-flow {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex-wrap: wrap;
}

.tstep {
  flex: 1;
  min-width: 130px;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  background: var(--panel);
  backdrop-filter: blur(10px);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.tstep:hover { border-color: rgba(34, 211, 238, 0.4); transform: translateY(-4px); }

.tstep-num {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--cyan);
  letter-spacing: 0.14em;
}
.tstep strong { font-family: var(--font-display); font-size: 0.95rem; }
.tstep small { color: var(--text-dim); font-size: 0.76rem; }

.tstep-final {
  border-color: rgba(74, 222, 128, 0.4);
  box-shadow: 0 0 28px rgba(74, 222, 128, 0.1);
}
.tstep-final .tstep-num { color: var(--green); }

.tarrow {
  width: 34px;
  align-self: center;
  height: 2px;
  position: relative;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.15), rgba(34, 211, 238, 0.55));
  flex-shrink: 0;
}
.tarrow::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 7px; height: 7px;
  border-top: 2px solid rgba(34, 211, 238, 0.7);
  border-right: 2px solid rgba(34, 211, 238, 0.7);
}

/* ---------- process loop ---------- */
.loop-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.loop-engine {
  position: relative;
  width: 420px;
  height: 420px;
  margin: 0 auto;
}

.loop-ring {
  position: absolute;
  inset: 60px;
  border-radius: 50%;
  border: 1px dashed rgba(34, 211, 238, 0.3);
  animation: spin 40s linear infinite;
}
.loop-ring.ring-2 {
  inset: 90px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  animation: spin 60s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loop-core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 118px; height: 118px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 35% 30%, rgba(34, 211, 238, 0.22), rgba(8, 12, 24, 0.95) 65%);
  border: 1px solid rgba(34, 211, 238, 0.4);
  box-shadow: 0 0 50px rgba(34, 211, 238, 0.22), inset 0 0 30px rgba(34, 211, 238, 0.08);
  animation: corePulse 4s ease-in-out infinite;
}
@keyframes corePulse {
  0%, 100% { box-shadow: 0 0 40px rgba(34, 211, 238, 0.18), inset 0 0 30px rgba(34, 211, 238, 0.08); }
  50% { box-shadow: 0 0 70px rgba(34, 211, 238, 0.32), inset 0 0 36px rgba(34, 211, 238, 0.14); }
}
.loop-core-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-align: center;
  line-height: 1.4;
}

.loop-node {
  position: absolute;
  top: 50%; left: 50%;
  width: 128px;
  margin: -30px 0 0 -64px;
  transform: rotate(var(--a)) translate(172px) rotate(calc(-1 * var(--a)));
  text-align: center;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-dim);
  line-height: 1.35;
}
.loop-node span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  margin: 0 auto 6px;
  border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, 0.4);
  background: rgba(8, 12, 24, 0.9);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.15);
}

.loop-list { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.loop-list li { display: flex; gap: 16px; align-items: flex-start; }
.loop-list li > span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 8px;
  padding: 5px 9px;
  flex-shrink: 0;
  margin-top: 2px;
}
.loop-list strong { font-family: var(--font-display); font-size: 1rem; display: block; }
.loop-list p { color: var(--text-dim); font-size: 0.88rem; }

/* ---------- module cards ---------- */
.module-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.module-card:hover::before { opacity: 1; }

.module-head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.module-status {
  margin-left: auto;
  color: var(--green);
  border: 1px solid rgba(74, 222, 128, 0.25);
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 0.6rem;
}
.module-meta {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: rgba(139, 149, 169, 0.7);
}

/* ---------- why ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.why-grid .section-lead { margin-bottom: 0; }

.why-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.why-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.why-list li:hover {
  border-color: rgba(34, 211, 238, 0.25);
  background: rgba(34, 211, 238, 0.04);
  transform: translateX(6px);
}
.why-check { color: var(--green); font-size: 1.1rem; }

/* ---------- CTA / contact ---------- */
.cta-section { padding-bottom: 130px; }

.cta-box {
  position: relative;
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.8), rgba(8, 12, 24, 0.9));
  backdrop-filter: blur(16px);
  padding: 70px 40px;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 50% 0%, rgba(34, 211, 238, 0.12), transparent 70%),
    radial-gradient(ellipse 40% 50% at 85% 100%, rgba(167, 139, 250, 0.1), transparent 70%);
  pointer-events: none;
}

.cta-box h2 { max-width: 560px; }
.cta-box .section-lead { max-width: 520px; margin-bottom: 40px; }

.contact-form {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(8, 12, 24, 0.7);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  resize: vertical;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(139, 149, 169, 0.6); }
.contact-form input:focus, .contact-form textarea:focus {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

.form-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}

.form-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--green);
  min-height: 1.4em;
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--panel-border);
  background: rgba(5, 8, 16, 0.85);
  padding: 56px 0 28px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 36px;
}

.footer-tagline {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-top: 12px;
  max-width: 420px;
}

.footer-cta { text-align: right; }
.footer-cta p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.footer-legal {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.07);
  font-size: 0.78rem;
  color: rgba(139, 149, 169, 0.7);
}
.footer-sys { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; }

/* ---------- reveal animations ---------- */
.reveal, .reveal-stagger > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible, .reveal-stagger > .visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.42s; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero { min-height: auto; }
  .hero-cockpit { max-width: 560px; }
  .loop-wrap { grid-template-columns: 1fr; gap: 48px; }
  .why-grid { grid-template-columns: 1fr; gap: 36px; }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .transform-flow { flex-direction: column; }
  .tstep { min-width: 0; }
  .tarrow {
    width: 2px; height: 26px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(34, 211, 238, 0.15), rgba(34, 211, 238, 0.55));
  }
  .tarrow::after {
    right: 50%;
    top: auto; bottom: -1px;
    transform: translateX(50%) rotate(135deg);
  }
}

@media (max-width: 720px) {
  .section { padding: 76px 0; }
  .cards-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(5, 8, 16, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--panel-border);
    padding: 12px 24px 22px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links a:not(.btn) { padding: 13px 4px; font-size: 1rem; border-bottom: 1px solid rgba(148, 163, 184, 0.07); }
  .nav-links .btn { margin-top: 16px; justify-content: center; }
  .nav-burger { display: flex; }

  .loop-engine { display: none; }

  .pipeline-nodes { flex-wrap: wrap; row-gap: 12px; justify-content: flex-start; }
  .pnode { flex-direction: row; gap: 6px; }

  .cta-box { padding: 50px 22px; }
  .footer-cta { text-align: left; }
}

@media (max-width: 460px) {
  .hero-ctas .btn { width: 100%; }
  .cockpit-grid { grid-template-columns: 1fr; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.15s !important;
  }
  html { scroll-behavior: auto; }
  #particles { display: none; }
}

/* ============================================================
   V2 — Mission Control upgrade
   ============================================================ */

/* ---------- system spine (wide screens) ---------- */
.spine {
  position: fixed;
  top: 0; bottom: 0;
  left: 34px;
  width: 1px;
  z-index: 0;
  background: linear-gradient(180deg, transparent, rgba(34, 211, 238, 0.18) 12%, rgba(34, 211, 238, 0.18) 88%, transparent);
  pointer-events: none;
  display: none;
}
@media (min-width: 1440px) { .spine { display: block; } }

.spine-pulse {
  position: absolute;
  left: -2px;
  width: 5px; height: 42px;
  border-radius: 4px;
  background: linear-gradient(180deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 14px var(--cyan-glow);
  animation: spineRun 9s linear infinite;
}
.spine-pulse.p2 { animation-delay: 4.5s; background: linear-gradient(180deg, transparent, var(--green), transparent); box-shadow: 0 0 14px var(--green-glow); }
@keyframes spineRun {
  0% { top: -6%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 104%; opacity: 0; }
}

/* ---------- module bars ---------- */
.module-bar {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: rgba(8, 12, 24, 0.7);
  padding: 8px 14px;
  margin-bottom: 22px;
  position: relative;
}
.module-bar::before, .module-bar::after {
  content: '';
  position: absolute;
  width: 7px; height: 7px;
  border-color: rgba(34, 211, 238, 0.6);
  border-style: solid;
}
.module-bar::before { top: -3px; left: -3px; border-width: 1px 0 0 1px; }
.module-bar::after { bottom: -3px; right: -3px; border-width: 0 1px 1px 0; }

.module-id { color: var(--cyan); }
.module-title { color: var(--text); }
.module-state { color: var(--green); }
.module-state.red { color: #F87171; }
.module-state.cyan { color: var(--cyan); }
.module-state.amber { color: #FBBF24; animation: pulse 1.6s ease-in-out infinite; }
.center-bar { position: relative; left: 50%; transform: translateX(-50%); }

/* ---------- HUD corner brackets on cards ---------- */
.hud { position: relative; }
.hud::before, .hud::after {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
  border-color: rgba(34, 211, 238, 0);
  border-style: solid;
  transition: border-color 0.35s ease;
  pointer-events: none;
}
.hud::before { top: 7px; left: 7px; border-width: 1.5px 0 0 1.5px; }
.hud::after { bottom: 7px; right: 7px; border-width: 0 1.5px 1.5px 0; }
.hud:hover::before, .hud:hover::after { border-color: rgba(34, 211, 238, 0.7); }

/* ---------- boot terminal line ---------- */
.boot-line {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--green);
  background: rgba(8, 12, 24, 0.8);
  border: 1px solid rgba(74, 222, 128, 0.18);
  border-radius: 9px;
  padding: 10px 14px;
  margin-bottom: 26px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
}
.boot-prompt { color: var(--text-dim); }
.boot-cursor { animation: blink 1s step-end infinite; color: var(--green); }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- headline word stagger ---------- */
h1 .hw {
  display: inline-block;
  opacity: 0;
  transform: translateY(24px) rotate(1.5deg);
  animation: wordIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(0.25s + var(--w) * 0.09s);
}
@keyframes wordIn { to { opacity: 1; transform: translateY(0) rotate(0); } }

/* ---------- pulsing primary CTA ---------- */
.btn-pulse { position: relative; }
.btn-pulse::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 15px;
  border: 1.5px solid rgba(34, 211, 238, 0.5);
  animation: ctaPulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes ctaPulse {
  0% { opacity: 0.9; transform: scale(1); }
  70%, 100% { opacity: 0; transform: scale(1.12); }
}

/* ---------- floating CTA ---------- */
.fab-cta {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: #F0FDFF;
  text-decoration: none;
  background: linear-gradient(100deg, #0891B2, #0EA5A0);
  border-radius: 999px;
  padding: 13px 22px;
  box-shadow: 0 0 28px var(--cyan-glow), 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.fab-cta.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.fab-cta:hover { transform: translateY(-3px) scale(1.03); }

/* ---------- cockpit sweep + ticker ---------- */
.cockpit-sweep {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  overflow: hidden;
  pointer-events: none;
}
.cockpit-sweep::before {
  content: '';
  position: absolute;
  top: -60%; left: -60%;
  width: 220%; height: 220%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(34, 211, 238, 0.05) 18deg, transparent 42deg);
  animation: spin 7s linear infinite;
}

.cockpit-ticker {
  margin-top: 14px;
  overflow: hidden;
  border-top: 1px solid var(--panel-border);
  padding-top: 11px;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.ticker-track {
  display: flex;
  gap: 34px;
  width: max-content;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  animation: tickerRun 26s linear infinite;
}
.ticker-track span { white-space: nowrap; }
@keyframes tickerRun { to { transform: translateX(-50%); } }

.cockpit-footer { margin-top: 11px; padding-top: 11px; }

/* ---------- pain card diagnostics ---------- */
.pain-diag {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: #F87171;
  border: 1px solid rgba(248, 113, 113, 0.25);
  border-radius: 6px;
  padding: 4px 9px;
  display: inline-block;
  opacity: 0.8;
}

/* ---------- transformation flow stage ---------- */
.flow-stage {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.fstage {
  flex: 1;
  min-width: 0;
  opacity: 0.25;
  filter: saturate(0.4);
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease, filter 0.7s ease;
}
.fstage.live { opacity: 1; filter: none; transform: translateY(0); }

.fstage-label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  color: var(--cyan);
  margin-bottom: 14px;
  text-align: center;
}

.fconn {
  width: 44px;
  flex-shrink: 0;
  position: relative;
  align-self: center;
  height: 2px;
  margin-top: 26px;
  background: rgba(34, 211, 238, 0.14);
  opacity: 0;
  transition: opacity 0.6s ease;
}
.fconn.live { opacity: 1; }
.fconn span {
  position: absolute;
  top: 50%; left: 0;
  width: 12px; height: 4px;
  transform: translateY(-50%);
  border-radius: 3px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan-glow);
  animation: connRun 1.6s linear infinite;
}
@keyframes connRun {
  0% { left: -8%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* chaos */
.chaos-box {
  position: relative;
  height: 190px;
  border: 1px dashed rgba(248, 113, 113, 0.3);
  border-radius: 14px;
  background: rgba(248, 113, 113, 0.03);
  overflow: hidden;
}
.chip {
  position: absolute;
  left: var(--x); top: var(--y);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-dim);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  padding: 5px 10px;
  white-space: nowrap;
  animation: chipJitter 5s ease-in-out infinite;
  animation-delay: var(--d);
}
@keyframes chipJitter {
  0%, 100% { transform: translate(0, 0) rotate(-1.5deg); }
  25% { transform: translate(5px, -7px) rotate(1deg); }
  50% { transform: translate(-4px, 5px) rotate(-1deg); }
  75% { transform: translate(6px, 3px) rotate(1.5deg); }
}

/* engine */
.engine {
  position: relative;
  width: 150px; height: 150px;
  margin: 12px auto 0;
}
.engine-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(34, 211, 238, 0.4);
  animation: spin 14s linear infinite;
}
.engine-ring.r2 {
  inset: 18px;
  border: 1px solid rgba(167, 139, 250, 0.3);
  animation: spin 9s linear infinite reverse;
}
.engine-core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 74px; height: 74px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  background: radial-gradient(circle at 35% 30%, rgba(34, 211, 238, 0.3), rgba(8, 12, 24, 0.95) 70%);
  border: 1px solid rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.3);
  animation: corePulse 3s ease-in-out infinite;
}

/* outputs */
.out-stack { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.out-card {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  border: 1px solid var(--panel-border);
  border-radius: 11px;
  background: var(--panel);
  padding: 13px 15px;
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fs-out.live .out-card { opacity: 1; transform: translateX(0); }
.fs-out.live .out-card:nth-child(1) { transition-delay: 0.1s; }
.fs-out.live .out-card:nth-child(2) { transition-delay: 0.3s; }
.fs-out.live .out-card:nth-child(3) { transition-delay: 0.5s; }

/* revenue */
.rev-panel {
  border: 1px solid rgba(74, 222, 128, 0.35);
  border-radius: 14px;
  background: rgba(74, 222, 128, 0.05);
  padding: 18px 16px;
  text-align: center;
  box-shadow: 0 0 32px rgba(74, 222, 128, 0.09);
}
.rev-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  color: var(--green);
  margin-bottom: 8px;
}
.rev-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.1rem;
  color: var(--green);
  text-shadow: 0 0 22px rgba(74, 222, 128, 0.4);
  margin-bottom: 12px;
}
.rev-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 44px;
}
.rev-bars i {
  flex: 1;
  height: 0;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--green), rgba(74, 222, 128, 0.15));
  transition: height 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.fs-rev.live .rev-bars i { height: var(--h); }
.fs-rev.live .rev-bars i:nth-child(2) { transition-delay: 0.1s; }
.fs-rev.live .rev-bars i:nth-child(3) { transition-delay: 0.2s; }
.fs-rev.live .rev-bars i:nth-child(4) { transition-delay: 0.3s; }
.fs-rev.live .rev-bars i:nth-child(5) { transition-delay: 0.4s; }
.fs-rev.live .rev-bars i:nth-child(6) { transition-delay: 0.5s; }

/* ---------- loop orbiter ---------- */
.loop-orbit {
  position: absolute;
  inset: 60px;
  border-radius: 50%;
  animation: spin 12s linear infinite;
  pointer-events: none;
}
.loop-sat {
  position: absolute;
  top: -5px; left: 50%;
  width: 10px; height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px var(--green-glow), 0 0 4px var(--green);
}

/* ---------- flow responsive ---------- */
@media (max-width: 980px) {
  .flow-stage { flex-direction: column; gap: 0; }
  .fconn {
    width: 2px; height: 40px;
    margin: 8px auto;
    align-self: center;
  }
  .fconn span {
    top: 0; left: 50%;
    width: 4px; height: 12px;
    transform: translateX(-50%);
    animation: connRunV 1.6s linear infinite;
  }
  @keyframes connRunV {
    0% { top: -10%; opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
  }
  .engine { width: 130px; height: 130px; }
  .chaos-box { height: 150px; }
}

@media (max-width: 720px) {
  .boot-line { font-size: 0.66rem; padding: 8px 11px; }
  .fab-cta { right: 14px; bottom: 14px; font-size: 0.82rem; padding: 11px 18px; }
  .module-bar { gap: 9px; font-size: 0.6rem; padding: 7px 10px; }
}

/* grid-items maa ikke vokse med ticker-indholdet */
.hero-inner > * { min-width: 0; }
.cockpit-ticker { width: 100%; }

/* ---------- AI Control Tower banner ---------- */
.aict-strip { padding: 0 0 30px; }
.aict-banner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 34px;
  align-items: center;
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.85), rgba(8, 18, 24, 0.9));
  padding: 40px 38px;
  box-shadow: 0 0 50px rgba(74, 222, 128, 0.08);
}
.aict-banner h2 { margin-bottom: 10px; }
.aict-banner p { color: var(--text-dim); font-size: 1.02rem; max-width: 520px; }
.aict-banner-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.aict-banner-note { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; color: var(--green); }
.module-link { text-decoration: none; color: inherit; display: block; }
.module-link:hover { border-color: rgba(74, 222, 128, 0.5); }
@media (max-width: 860px) {
  .aict-banner { grid-template-columns: 1fr; padding: 30px 22px; }
  .aict-banner-cta { align-items: stretch; }
  .aict-banner-cta .btn { width: 100%; }
}
