/* ============================================================
   MODUS NUCLEUS — org root holding page
   Same brand DNA as modus|converge / modus|msp (turbo gradient,
   near-black, Space Grotesk / Inter / JetBrains Mono).
   No build step — plain HTML/CSS. Zero JS.
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;450;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---------- Tokens ---------- */
:root {
  --pink:   #e92a67;
  --purple: #a853ba;
  --blue:   #2a8af6;
  --grad: linear-gradient(110deg, #e92a67 0%, #a853ba 48%, #2a8af6 100%);

  --bg:      #07080b;
  --panel:   rgba(14, 17, 23, 0.72);
  --line:    rgba(255,255,255,0.08);
  --line-2:  rgba(255,255,255,0.045);

  --fg:      #eef1f6;
  --fg-2:    #aab2c0;
  --fg-3:    #6b7585;
  --fg-faint:#424a58;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: rgba(42,138,246,0.32); color: #fff; }

/* ============================================================
   Ambient field
   ============================================================ */
.field { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.field-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 38%, black 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 38%, black 0%, transparent 78%);
}
.field-glow {
  position: absolute; left: 50%; top: 34%;
  width: min(920px, 130vw); aspect-ratio: 1.6;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(ellipse at 42% 50%, rgba(233,42,103,0.10), transparent 55%),
    radial-gradient(ellipse at 58% 50%, rgba(42,138,246,0.12), transparent 55%),
    radial-gradient(ellipse at 50% 50%, rgba(168,83,186,0.08), transparent 62%);
  filter: blur(24px);
}

/* ============================================================
   Stage
   ============================================================ */
.stage {
  flex: 1;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(48px, 9vh, 110px) 28px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ============================================================
   The atom — core + orbits (pure CSS)
   ============================================================ */
.atom {
  position: relative;
  width: clamp(210px, 30vw, 280px);
  aspect-ratio: 1;
  /* tilted orbits leave dead space top/bottom of the square box — pull the
     composition together instead of spacing off the box edge */
  margin: clamp(-40px, -5vh, -56px) 0 clamp(-24px, -3vh, -36px);
}

.core {
  position: absolute; inset: 50%;
  width: 86px; height: 86px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 38% 32%, #171b24, #0a0c11 68%);
  border: 1px solid var(--line);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.02),
    0 0 42px rgba(168,83,186,0.28),
    0 0 90px rgba(42,138,246,0.14),
    inset 0 0 22px rgba(233,42,103,0.06);
  animation: corePulse 5.2s ease-in-out infinite;
}
.core-mark {
  width: 44px; height: 44px;
  color: var(--fg-2);
  opacity: 0.9;
}

@keyframes corePulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255,255,255,0.02), 0 0 42px rgba(168,83,186,0.28), 0 0 90px rgba(42,138,246,0.14), inset 0 0 22px rgba(233,42,103,0.06); }
  50%      { box-shadow: 0 0 0 1px rgba(255,255,255,0.03), 0 0 58px rgba(168,83,186,0.42), 0 0 120px rgba(42,138,246,0.22), inset 0 0 26px rgba(233,42,103,0.10); }
}

/* orbit rings — tilted planes, each carrying one electron */
.orbit {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.11);
}
.orbit-a { transform: rotate(-24deg) scaleY(0.42); }
.orbit-b { transform: rotate(28deg)  scaleY(0.48); inset: 7%; }
.orbit-c { transform: rotate(84deg)  scaleY(0.30); inset: 16%; border-color: rgba(255,255,255,0.05); }

/* electrons ride a rotating carrier inside the tilted plane */
.electron {
  position: absolute; left: 50%; top: 50%;
  width: 100%; height: 100%;
  transform: translate(-50%, -50%);
  animation: orbitSpin 9s linear infinite;
}
.electron::after {
  content: '';
  position: absolute; left: 50%; top: 0;
  width: 9px; height: 9px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}
.electron-a::after {
  background: var(--pink);
  box-shadow: 0 0 12px 2px rgba(233,42,103,0.65);
}
.electron-b { animation-duration: 13s; animation-direction: reverse; }
.electron-b::after {
  background: var(--blue);
  box-shadow: 0 0 12px 2px rgba(42,138,246,0.65);
}

@keyframes orbitSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .electron { animation: none; }
  .core { animation: none; }
  .electron-a { transform: translate(-50%, -50%) rotate(40deg); }
  .electron-b { transform: translate(-50%, -50%) rotate(230deg); }
}

/* ============================================================
   Identity
   ============================================================ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 18px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 7.5vw, 4.6rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
}
.wordmark .pipe {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  font-weight: 400;
  padding: 0 0.06em;
}

.tagline {
  margin-top: 18px;
  max-width: 44ch;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--fg-2);
}
.tagline strong { color: var(--fg); font-weight: 600; }

/* ============================================================
   The two lines
   ============================================================ */
.lines {
  margin-top: clamp(40px, 7vh, 72px);
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  text-align: left;
}
@media (max-width: 640px) { .lines { grid-template-columns: 1fr; } }

.line-card {
  position: relative;
  display: flex; flex-direction: column; gap: 8px;
  padding: 26px 26px 22px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.line-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.16);
}
.card-converge:hover { box-shadow: 0 18px 50px -18px rgba(233,42,103,0.35); }
.card-msp:hover      { box-shadow: 0 18px 50px -18px rgba(42,138,246,0.35); }

/* colour keys matching the electrons */
.line-orbit-key {
  width: 9px; height: 9px; border-radius: 50%;
  margin-bottom: 6px;
}
.card-converge .line-orbit-key { background: var(--pink); box-shadow: 0 0 10px 2px rgba(233,42,103,0.5); }
.card-msp .line-orbit-key      { background: var(--blue); box-shadow: 0 0 10px 2px rgba(42,138,246,0.5); }

.line-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.line-pipe {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  font-weight: 400;
  padding: 0 0.05em;
}
.line-desc {
  color: var(--fg-2);
  font-size: 0.95rem;
  line-height: 1.55;
}
.line-go {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--fg-3);
  transition: color 0.3s var(--ease);
}
.line-card:hover .line-go { color: var(--fg); }

/* ============================================================
   Footer
   ============================================================ */
.foot {
  display: flex; justify-content: center; align-items: center; gap: 10px;
  padding: 26px 28px 30px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fg-faint);
}
.foot-dot { color: var(--fg-faint); }
