/* ============================================================
   MetEcosystem — landing styles
   Palette: navy #2A3A67 · green #4E7B3C · orange #CD7730 · cream #FBF6EF
   ============================================================ */

:root {
  --navy:   #2A3A67;
  --green:  #4E7B3C;
  --orange: #CD7730;
  --cream:  #FBF6EF;
  --near:   #1A1B22;
  --blue:      #3E6FB0;   /* accent blue — main path / line system */
  --blue-pale: #A7C4E6;

  --ink:        #20242E;
  --ink-soft:   rgba(32, 36, 46, 0.66);
  --ink-faint:  rgba(32, 36, 46, 0.40);

  --line:       rgba(42, 58, 103, 0.14);

  /* glass (iOS-style milky frosted) */
  --glass-border: rgba(255, 255, 255, 0.72);
  --glass-shadow: 0 34px 80px -30px rgba(42, 58, 103, 0.30), 0 12px 30px -16px rgba(42, 58, 103, 0.17);
  --glass-blur:   28px;

  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:    'Manrope', ui-sans-serif, system-ui, sans-serif;

  --nav-h: 76px;
  --ease:  cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth; /* fallback; Lenis takes over when JS is on */
  -webkit-text-size-adjust: 100%;
}
/* Lenis owns scrolling once initialised */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(205, 119, 48, 0.24); }

a { color: inherit; text-decoration: none; }

/* ---------- atmosphere: soft gradients + grain ---------- */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 700px at 78% -6%, rgba(205, 119, 48, 0.12), transparent 60%),
    radial-gradient(900px 720px at 8% 8%,  rgba(78, 123, 60, 0.12),  transparent 62%),
    radial-gradient(1200px 900px at 50% 108%, rgba(42, 58, 103, 0.14), transparent 60%),
    var(--cream);
}
.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}


/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), height 0.4s var(--ease);
}
.nav__inner {
  width: min(1240px, 92vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
}
.nav.is-stuck {
  height: 64px;
  background: rgba(251, 246, 239, 0.72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 1px 0 rgba(42, 58, 103, 0.08), 0 18px 40px -30px rgba(42, 58, 103, 0.5);
}

.nav__links {
  margin-left: auto;
  display: flex;
  gap: clamp(1.4rem, 3vw, 2.6rem);
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
}
.nav__links a {
  position: relative;
  color: var(--ink-soft);
  transition: color 0.25s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__links a:hover { color: var(--navy); }
.nav__links a:hover::after { transform: scaleX(1); }

/* ---------- logo lockup ---------- */
.lockup {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}
.lockup__met { color: var(--navy); }
.lockup__eco { color: var(--green); }
.lockup--lg { font-size: 2.4rem; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  --pad-y: 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: var(--pad-y) 1.5rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease),
              background 0.3s var(--ease), color 0.3s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }

.btn--launch {
  background: var(--navy);
  color: var(--cream);
  padding: 0.62rem 1.3rem;
  box-shadow: 0 10px 24px -12px rgba(42, 58, 103, 0.8);
}
/* static "Coming Soon" label — no hover lift */
.btn--launch:hover { transform: none; }

.btn--solid {
  background: var(--navy);
  color: var(--cream);
  box-shadow: 0 14px 30px -14px rgba(42, 58, 103, 0.85);
}

.btn--data {
  margin-top: 1.4rem;
  padding: 0.6rem 1.2rem;
  background: transparent;
  border-color: var(--accent, var(--orange));
  color: var(--accent, var(--orange));
  font-size: 0.88rem;
}
.btn--data span { transition: transform 0.25s var(--ease); }
.btn--data:hover { background: var(--accent, var(--orange)); color: #fff; }
.btn--data:hover span { transform: translateX(4px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* bottom padding reserves room for the scroll cue so the card never overlaps it */
  padding: calc(var(--nav-h) + 3vh) 6vw max(8vh, 8rem);
  overflow: hidden;
}
.hero__helix {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: block;
}

.hero__glass.glass {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
  padding: clamp(2rem, 5vw, 3.6rem);
  text-align: center;
  /* hero card: same tinted glass + light-entry glow */
  background:
    radial-gradient(120% 95% at 20% -8%, rgba(120, 160, 205, 0.30), transparent 54%),
    linear-gradient(135deg,
      rgba(216, 229, 245, 0.30) 0%,
      rgba(255, 255, 255, 0.14) 55%,
      rgba(228, 238, 248, 0.26) 100%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  box-shadow:
    0 42px 96px -30px rgba(42, 58, 103, 0.36),
    0 14px 40px -18px rgba(42, 58, 103, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(255, 255, 255, 0.22),
    inset 0 0 66px 18px rgba(255, 255, 255, 0.6);
}

/* shared glass surface — translucent frosted glass with light-catch edges
   (used by the hero card + all four platform cards) */
.glass {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  /* translucent cool-blue tinted glass with a soft light-entry glow (clipped to the card) */
  background:
    radial-gradient(135% 115% at 16% -8%, rgba(120, 160, 205, 0.26), transparent 56%),
    linear-gradient(135deg,
      rgba(214, 228, 244, 0.28) 0%,
      rgba(255, 255, 255, 0.10) 55%,
      rgba(226, 236, 247, 0.24) 100%);
  box-shadow:
    0 22px 48px -14px rgba(42, 58, 103, 0.24),      /* float shadow */
    0 6px 18px -8px rgba(42, 58, 103, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),          /* top inner highlight */
    inset 0 -1px 0 rgba(255, 255, 255, 0.18),        /* bottom inner */
    inset 0 0 42px 14px rgba(255, 255, 255, 0.62);   /* strong frosted rim glow */
  backdrop-filter: blur(16px) saturate(185%);
  -webkit-backdrop-filter: blur(16px) saturate(185%);
}
/* bright specular light-catch along the top edge */
.glass::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
}
/* bright specular light-catch down the left edge */
.glass::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 1px; height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), transparent 55%, rgba(255, 255, 255, 0.3));
}

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.3rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 30px; height: 1px;
  background: var(--orange);
  vertical-align: middle;
  margin-right: 0.8em;
  opacity: 0.6;
}

.hero__title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.6rem, 7vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-shadow: 0 2px 22px rgba(251, 246, 239, 0.85), 0 1px 3px rgba(251, 246, 239, 0.9);
}
.hero__intro {
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: normal;
  color: var(--ink);
}
.hero__brand { display: inline-block; margin-top: 0.06em; }
/* "NEXUS" mirrors the tool-name treatment: elegant italic serif, medium weight */
.hero__brand em { font-style: italic; font-weight: 500; }
.c-navy { color: var(--navy); }
.c-green { color: var(--green); }

.hero__sub {
  max-width: 46ch;
  margin: 1.5rem auto 0;
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  color: var(--ink);
  text-shadow: 0 1px 12px rgba(251, 246, 239, 0.9);
}
.hero__actions {
  margin-top: 2.2rem;
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-cue {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink-faint);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.scroll-cue__line {
  width: 1px; height: 46px;
  background: linear-gradient(var(--ink-faint), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue__line::after {
  content: "";
  position: absolute;
  top: -50%; left: 0;
  width: 100%; height: 50%;
  background: var(--orange);
  animation: cue 2.1s var(--ease) infinite;
}
@keyframes cue {
  0%   { transform: translateY(-100%); opacity: 0; }
  40%  { opacity: 1; }
  100% { transform: translateY(300%); opacity: 0; }
}

/* ============================================================
   TIMELINE + SPINE
   ============================================================ */
.timeline {
  position: relative;
  width: min(1240px, 92vw);
  margin: 0 auto;
  padding: clamp(4rem, 12vh, 10rem) 0 clamp(4rem, 10vh, 8rem);
}

.spine {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  fill: none;
  overflow: visible;   /* lets the accent axis rise up into the hero */
}
.spine path { fill: none; }
/* continuous multi-line wave ribbon — thin pale-blue/white lines that fan and cross */
.spine__ln        { stroke: var(--blue-pale); stroke-width: 1; opacity: 0.42; }
.spine__ln--white { stroke: #ffffff;          stroke-width: 1; opacity: 0.60; }

/* ---------- tool row (zigzag) ---------- */
.tool {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(3rem, 9vw, 8rem);
  align-items: center;
  min-height: clamp(320px, 46vh, 460px);
}
.tool + .tool { margin-top: clamp(2rem, 6vh, 5rem); }

.tool--name-left  .tool__head { grid-column: 1; text-align: right; align-items: flex-end; }
.tool--name-left  .tool__card { grid-column: 2; }
.tool--name-right .tool__head { grid-column: 2; text-align: left;  align-items: flex-start; }
.tool--name-right .tool__card { grid-column: 1; grid-row: 1; }

.tool__head {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
}
.tool__label {
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
}
.tool__title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.tool__title em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}
/* small pill tag after a tool name, e.g. "DB" */
.tool__tag {
  display: inline-block;
  vertical-align: middle;
  padding: 0.35em 0.7em;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: max(0.2em, 0.8rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
  color: var(--accent);
}
.tool__index {
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  margin-top: 0.3rem;
}

.tool__card {
  padding: clamp(1.6rem, 3vw, 2.4rem);
  max-width: 480px;
  border-radius: 22px;
}
.tool--name-right .tool__card { margin-left: auto; }
.tool__card p {
  font-size: clamp(1rem, 1.3vw, 1.14rem);
  color: var(--ink-soft);
}
.tool__card .stat {
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  z-index: 1;
  width: min(1240px, 92vw);
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 5rem) 0 3.5rem;
  border-top: 1px solid var(--line);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}
.footer__copy {
  max-width: 60ch;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.footer__links {
  display: flex;
  gap: 2rem;
  font-weight: 600;
  font-size: 0.86rem;
}
.footer__links a { color: var(--ink-soft); transition: color 0.25s var(--ease); }
.footer__links a:hover { color: var(--orange); }

/* ============================================================
   REVEAL (JS adds .is-in)
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* hero stagger (children of .hero__glass in source order) */
.hero__glass [data-reveal]:nth-child(1) { transition-delay: 0.10s; }
.hero__glass [data-reveal]:nth-child(2) { transition-delay: 0.20s; }
.hero__glass [data-reveal]:nth-child(3) { transition-delay: 0.30s; }
.hero__glass [data-reveal]:nth-child(4) { transition-delay: 0.40s; }
/* timeline card trails its heading slightly */
.tool__card[data-reveal] { transition-delay: 0.12s; }

/* ============================================================
   CUSTOM CURSOR (fine-pointer devices only)
   ============================================================ */
/* native custom cursor — rounded white arrow with a black outline */
body {
  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 24 24"><path fill="%23FFF" stroke="%23000" stroke-width="1.5" d="M5.5 3.21V20.8c0 .45.54.67.85.35l4.86-4.86a.5.5 0 0 1 .35-.15h6.87a.5.5 0 0 0 .35-.85L6.35 2.85a.5.5 0 0 0-.85.35Z"></path></svg>') 4 2, auto;
}
a, button, [role="button"], input, textarea, select, .btn {
  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 24 24"><path fill="%23FFF" stroke="%23000" stroke-width="1.5" d="M5.5 3.21V20.8c0 .45.54.67.85.35l4.86-4.86a.5.5 0 0 1 .35-.15h6.87a.5.5 0 0 0 .35-.85L6.35 2.85a.5.5 0 0 0-.85.35Z"></path></svg>') 4 2, pointer;
}

/* glow aura + trail that follow the native cursor (fine-pointer devices only) */
.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  will-change: transform;
}
.cursor.is-on { opacity: 1; }

/* base glow: pale clinical blue only (no green/orange at rest) */
.cursor__aura {
  position: absolute;
  left: 0; top: 0;
  width: 46px; height: 46px;
  transform: translate(-50%, -50%) scale(1);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(150, 185, 225, 0.22), rgba(150, 185, 225, 0) 62%);
  filter: blur(5px);
  transition: transform 0.3s var(--ease), background 0.3s ease;
}
/* hover: gently expand + a very subtle green/orange glow shift */
.cursor.is-hover .cursor__aura {
  transform: translate(-50%, -50%) scale(1.75);
  background:
    radial-gradient(circle at 48% 48%, rgba(78, 123, 60, 0.24), rgba(78, 123, 60, 0) 60%),
    radial-gradient(circle at 60% 62%, rgba(205, 119, 48, 0.16), rgba(205, 119, 48, 0) 54%);
}
.cursor.is-down .cursor__aura { transform: translate(-50%, -50%) scale(1.25); }

.cursor__dot {
  position: fixed;
  top: 0; left: 0;
  z-index: 9999;
  width: 6px; height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  filter: blur(1px);
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
  .cursor__aura { transition: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__inner { justify-content: space-between; gap: 0.75rem; }
  .lockup { font-size: 1.18rem; }

  .spine { display: none; }
  .timeline { padding-left: 34px; }
  .timeline::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0; left: 10px;
    width: 2px;
    background: linear-gradient(var(--blue-pale), var(--blue), var(--navy));
    border-radius: 2px;
    opacity: 0.6;
  }

  .tool {
    grid-template-columns: 1fr;
    row-gap: 1.4rem;
    min-height: 0;
    padding-left: 8px;
  }
  .tool + .tool { margin-top: clamp(3rem, 9vh, 5rem); }
  .tool--name-left  .tool__head,
  .tool--name-right .tool__head { grid-column: 1; text-align: left; align-items: flex-start; }
  .tool--name-left  .tool__card,
  .tool--name-right .tool__card { grid-column: 1; grid-row: auto; margin-left: 0; }
  .tool__card { max-width: 100%; }

}

@media (max-width: 560px) {
  .hero__glass { border-radius: 22px; }
  .lockup { font-size: 1.04rem; letter-spacing: -0.03em; }
  .btn--launch { padding: 0.48rem 0.9rem; font-size: 0.82rem; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
      transition-duration: 0.001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .scroll-cue__line::after { display: none; }
}
