/* =========================================================
   DIMENXO — core stylesheet
   Design tokens live at the top so the brand can be re-themed
   from one place. Layout/component rules follow, top to bottom
   in the same order sections appear on the page.
   ========================================================= */

:root {
  /* Base palette */
  --bg: #08090c;
  --bg-elevated: #0d0f15;
  --surface: #12141b;
  --surface-hover: #171a23;
  --text: #f2f3f6;
  --muted: #8b90a3;
  --muted-dim: #565a68;

  /* Accent — used sparingly: hero field, links on hover, small marks */
  --accent: #4c7cff;
  --accent-secondary: #9b7bff;
  --accent-tertiary: #5eead4;
  --accent-gradient: linear-gradient(120deg, var(--accent) 0%, var(--accent-secondary) 55%, var(--accent-tertiary) 100%);

  --border: rgba(242, 243, 246, 0.08);
  --border-strong: rgba(242, 243, 246, 0.16);

  /* Type */
  --font-display: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  /* Layout */
  --container: 1280px;
  --gutter: clamp(24px, 5vw, 64px);
  --section-pad: clamp(88px, 12vw, 176px);

  --ease-out: cubic-bezier(0.22, 0.9, 0.32, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
html, body { height: 100%; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

::selection { background: var(--accent); color: #06070a; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--text);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 6px;
  z-index: 999;
  font-size: 14px;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Layout helpers ---------- */
section {
  position: relative;
  padding: var(--section-pad) var(--gutter);
}

.section-head { max-width: var(--container); margin: 0 auto clamp(40px, 6vw, 72px); }

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-bottom: 16px;
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
  transition: transform 0.45s var(--ease-out), background 0.3s var(--ease-out), color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
  will-change: transform;
}
.btn svg { transition: transform 0.35s var(--ease-out); flex-shrink: 0; }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--text);
  color: var(--bg);
}
.btn-primary:hover { background: var(--accent); color: #06070a; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { border-color: var(--text); }

/* ---------- Custom cursor ---------- */
#cursor-dot, #cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  border-radius: 50%;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
#cursor-dot { width: 6px; height: 6px; background: var(--text); }
#cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid var(--text);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}
#cursor-ring.is-hovering { width: 56px; height: 56px; }
body.no-custom-cursor #cursor-dot,
body.no-custom-cursor #cursor-ring { display: none; }

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 22px var(--gutter);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.5s var(--ease-out), border-color 0.5s var(--ease-out), backdrop-filter 0.5s var(--ease-out), padding 0.4s var(--ease-out);
}
.site-nav.is-scrolled {
  background: rgba(8, 9, 12, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
  padding-top: 16px;
  padding-bottom: 16px;
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}

.nav-logo { display: inline-flex; margin-right: auto; }
.nav-logo-img { height: 22px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.nav-links a { position: relative; padding: 4px 0; transition: color 0.3s var(--ease-out); }
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-explore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.nav-explore svg { transition: transform 0.3s var(--ease-out); }
.nav-explore:hover svg { transform: translateX(3px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  z-index: 620;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--text);
  transition: transform 0.4s var(--ease-in-out), opacity 0.3s var(--ease-out);
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: var(--bg-elevated);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 110px var(--gutter) 48px;
  visibility: hidden;
  pointer-events: none;
}
.mobile-menu.is-open { visibility: visible; pointer-events: auto; }

.mobile-menu-links { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu-links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(38px, 11vw, 56px);
  letter-spacing: -0.02em;
  color: var(--text);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 18px;
}
.mobile-menu-links a::before {
  content: attr(data-index);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted-dim);
}

.mobile-menu-footer { font-size: 14px; color: var(--muted); }

/* ---------- Loader ---------- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
#loader img { width: 120px; height: auto; opacity: 0.92; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 80px;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 28px;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 8.4vw, 122px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 16ch;
}
.hero-headline .line { display: block; overflow: visible; }
.hero-headline .line-inner { display: block; }

.hero-description {
  margin-top: 32px;
  max-width: 46ch;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
  color: var(--muted);
}

.hero-actions { margin-top: 44px; display: flex; gap: 16px; flex-wrap: wrap; }

.hero-scroll-cue {
  position: absolute;
  bottom: 40px;
  left: var(--gutter);
  z-index: 2;
  width: 1px;
  height: 56px;
  background: var(--border-strong);
  overflow: hidden;
}
.hero-scroll-cue span {
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--text);
  animation: scrollCue 2.2s var(--ease-in-out) infinite;
}
@keyframes scrollCue {
  0% { top: -100%; }
  50% { top: 0%; }
  100% { top: 100%; }
}

/* ---------- Introduction ---------- */
.intro { padding-top: var(--section-pad); padding-bottom: var(--section-pad); }
.intro-inner { max-width: 980px; margin: 0 auto; }

.intro-statement {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4.6vw, 58px);
  line-height: 1.18;
  letter-spacing: -0.02em;
}
.intro-statement .word { color: var(--muted-dim); transition: color 0.1s linear; }
.intro-statement .word.is-lit { color: var(--text); }

.intro-support {
  margin-top: clamp(32px, 5vw, 56px);
  max-width: 56ch;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.65;
  color: var(--muted);
}

/* ---------- Ventures ---------- */
.ventures-list { max-width: var(--container); margin: 0 auto; border-top: 1px solid var(--border); }

.venture-row {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr auto auto;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  padding: clamp(28px, 3.4vw, 44px) clamp(16px, 2vw, 28px);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  transition: padding-left 0.5s var(--ease-out), background 0.5s var(--ease-out);
}
.venture-row::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
  pointer-events: none;
}
.venture-row:hover::before { opacity: 0.05; }
.venture-row:hover { padding-left: clamp(28px, 3.6vw, 48px); background: var(--surface); }

.venture-number {
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  color: var(--muted-dim);
  transition: color 0.4s var(--ease-out);
}
.venture-row:hover .venture-number { color: var(--accent); }

.venture-main { min-width: 0; }
.venture-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: -0.01em;
  transition: transform 0.5s var(--ease-out);
}
.venture-row:hover .venture-name { transform: translateX(6px); }
.venture-category {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}
.venture-description {
  margin-top: 14px;
  max-width: 56ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out), opacity 0.4s var(--ease-out), margin-top 0.5s var(--ease-out);
}
.venture-row:hover .venture-description,
.venture-row:focus-within .venture-description {
  max-height: 6em;
  opacity: 1;
}

.venture-status {
  justify-self: end;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  padding: 7px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  white-space: nowrap;
}

.venture-arrow {
  display: inline-flex;
  transition: transform 0.5s var(--ease-out);
  color: var(--muted);
}
.venture-row:hover .venture-arrow { transform: translate(4px, -4px); color: var(--text); }

/* ---------- Built across dimensions ---------- */
.dimensions-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.dimension-tile {
  background: var(--bg);
  padding: clamp(28px, 3vw, 40px);
  grid-column: span 3;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.4s var(--ease-out);
}
.dimension-tile:hover { background: var(--surface); }
.dimension-tile[data-size="lg"] { grid-column: span 4; }
.dimension-tile[data-size="md"] { grid-column: span 3; }
.dimension-tile[data-size="sm"] { grid-column: span 2; }

.dimension-mark {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  position: relative;
}
.dimension-mark::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-gradient);
  transform: translate(-50%, -50%);
}

.dimension-label {
  margin-top: 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 1.6vw, 22px);
  letter-spacing: -0.01em;
}
.dimension-description {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 32ch;
}

/* ---------- How we build (process timeline) ---------- */
.process-timeline {
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
}

.process-rail {
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 1px;
  background: var(--border);
}
.process-rail-fill {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: 0%;
  background: var(--accent-gradient);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(16px, 2vw, 28px);
  padding-top: 40px;
}

.process-step {
  padding-top: 24px;
  opacity: 0.35;
  transition: opacity 0.5s var(--ease-out);
}
.process-step.is-active { opacity: 1; }

.process-step-number {
  font-size: 13px;
  color: var(--muted-dim);
  font-variant-numeric: tabular-nums;
}
.process-step.is-active .process-step-number { color: var(--accent); }

.process-step-name {
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(19px, 1.8vw, 24px);
}
.process-step-description {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 26ch;
}

/* ---------- Cinematic vision ---------- */
.vision {
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--bg-elevated);
  overflow: hidden;
}
.vision-field {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 30%, rgba(76, 124, 255, 0.16), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(155, 123, 255, 0.14), transparent 55%);
  filter: blur(40px);
  will-change: transform;
}
.vision-inner {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
}
.vision-line {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 3.6vw, 44px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--muted);
  margin-bottom: clamp(20px, 3vw, 32px);
}
.vision-final {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 5vw, 64px);
  letter-spacing: -0.02em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- About ---------- */
.about-inner { max-width: 900px; margin: 0 auto; }
.about-copy { margin-top: clamp(32px, 5vw, 48px); display: flex; flex-direction: column; gap: 20px; }
.about-copy p {
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 58ch;
}
.about-tags { margin-top: 40px; display: flex; gap: 12px; flex-wrap: wrap; }
.about-tags span {
  font-size: 13px;
  font-weight: 500;
  padding: 9px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  color: var(--text);
}

/* ---------- Ideas -> Products -> Companies -> Ecosystems ---------- */
.progression { padding-top: var(--section-pad); padding-bottom: var(--section-pad); }
.progression-track {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 1.4vw, 16px);
}
.progression-stage {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 8vw, 96px);
  letter-spacing: -0.03em;
  color: var(--muted-dim);
  opacity: 0.3;
  transition: opacity 0.5s var(--ease-out), color 0.5s var(--ease-out);
}
.progression-stage.is-active { color: var(--text); opacity: 1; }
.progression-connector {
  width: 1px;
  height: clamp(24px, 4vw, 48px);
  background: var(--border-strong);
}

/* ---------- Final CTA ---------- */
.cta { text-align: center; }
.cta-inner { max-width: 780px; margin: 0 auto; }
.cta-heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 6vw, 76px);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.cta-support {
  margin-top: 24px;
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--muted);
  max-width: 46ch;
  margin-left: auto;
  margin-right: auto;
}
.cta-actions {
  margin-top: 44px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: clamp(56px, 8vw, 96px) var(--gutter) 40px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-logo { height: auto; width: 135px; opacity: 0.9; }
.footer-brand p { font-size: 13px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; color: var(--muted); }
.footer-links a { transition: color 0.3s var(--ease-out); }
.footer-links a:hover { color: var(--text); }
.footer-copyright {
  width: 100%;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted-dim);
}
