/* ==========================================================
   NuveWorks — styles
   Neutral graphite palette; the only blue on the page is nuve.
   ========================================================== */
:root {
  --bg: #0b0c0e;
  --bg-2: #131518;
  --panel: #1a1c20;
  --text: #f3f4f5;
  --muted: #a0a5ab;
  --dim: #6a6f76;
  --line: rgba(170, 176, 186, 0.24);
  --node: #5d636b;
  --btn: #2a2d31;
  --btn-hover: #383c41;
  --tile: #0f1113;
  --tile-line: rgba(170, 176, 186, 0.16);

  --gut: 24px;          /* page gutter line */
  --colA: 256px;        /* left column line */
  --colB: 140px;        /* secondary column line */
  --hdr: 90px;          /* header height */
  --rowA: 65%;          /* hero headline row */
  --band: 88px;         /* hero bottom band */

  --ease: cubic-bezier(.22, .8, .2, 1);
  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (max-width: 900px) {
  :root { --gut: 16px; --colA: 16px; --colB: 16px; --hdr: 72px; --band: 132px; --rowA: 58%; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.5; letter-spacing: .01em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; font-weight: 400; }
::selection { background: #f3f4f5; color: #0b0c0e; }

/* ---------- Grid primitives ---------- */
.ln { position: absolute; display: block; background: var(--line); pointer-events: none; }
.ln--h { left: 0; right: 0; top: var(--y, 0); height: 1px; transform-origin: left center; }
.ln--v { top: 0; bottom: 0; left: var(--x, 0); width: 1px; transform-origin: center top; }
.ln--light { background: rgba(255, 255, 255, .55); }
.nd {
  position: absolute; left: var(--x, 0); top: var(--y, 100%); width: 7px; height: 7px;
  margin: -3px 0 0 -3px; border-radius: 50%; background: var(--node); pointer-events: none; z-index: 2;
}
.nd--light { background: #fff; }

.gutters { position: fixed; inset: 0; z-index: 45; pointer-events: none; }
.gutters i { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); transform-origin: top; }
.gutters i:first-child { left: var(--gut); }
.gutters i:last-child { right: var(--gut); }

.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* Square tile overlay used by the "kare" transitions */
.tiles {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  display: grid; grid-template-columns: repeat(var(--tc, 8), 1fr); grid-template-rows: repeat(var(--tr, 8), 1fr);
}
.tiles i { background: var(--tile); outline: 1px solid var(--tile); box-shadow: inset 0 0 0 .5px var(--tile-line); opacity: 0; }

/* ---------- Cursor follower ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; opacity: 0; transition: opacity .3s; will-change: transform; }
.cursor.is-on { opacity: 1; }
.cursor__ring, .cursor__dot { position: absolute; left: 0; top: 0; border-radius: 50%; display: block; }
.cursor__ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid rgba(255, 255, 255, .75); transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s; }
.cursor__dot { width: 4px; height: 4px; margin: -2px 0 0 -2px; background: #fff; }
.cursor.is-hover .cursor__ring { width: 68px; height: 68px; margin: -34px 0 0 -34px; background: rgba(255, 255, 255, .08); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 45px; padding: 0 20px;
  background: var(--btn); color: var(--text); border: 0; border-radius: 3px; cursor: pointer;
  font: 400 15px/1 var(--font); letter-spacing: .01em; transition: background .3s, color .3s;
}
.btn:hover { background: var(--btn-hover); }
.btn svg { width: 11px; height: 11px; }
.btn--light { background: #eceef0; color: #0b0c0e; }
.btn--light:hover { background: #fff; }

/* ---------- Header ---------- */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; height: var(--hdr); z-index: 50;
  display: grid; grid-template-columns: var(--colA) 1fr var(--colA);
  background: rgba(14, 15, 17, .55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.hdr__line { top: auto; bottom: 0; }
.hdr .nd { top: 100%; }
.hdr__cell { display: flex; align-items: center; position: relative; }
.hdr__brand { padding-left: calc(var(--gut) + 24px); border-right: 1px solid var(--line); }
.hdr__nav { justify-content: flex-end; gap: 32px; padding-right: 32px; }
.hdr__nav a { font-size: 15px; color: var(--text); position: relative; }
.hdr__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.hdr__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.hdr__mcta { display: none; }
.hdr__cta { justify-content: center; border-left: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; border-radius: 50%; }
.brand b { font-weight: 300; margin-left: 3px; color: #d6d9dd; }
.hdr__toggle { display: none; }

@media (max-width: 900px) {
  .hdr { grid-template-columns: 1fr auto; }
  .hdr__brand { border-right: 0; padding-left: calc(var(--gut) + 12px); }
  .hdr__cta { border-left: 0; padding-right: calc(var(--gut) + 4px); }
  .hdr__cta .btn { display: none; }
  .hdr .nd:nth-of-type(2), .hdr .nd:nth-of-type(3) { display: none; }
  .hdr__toggle { display: block; width: 44px; height: 44px; background: none; border: 0; position: relative; cursor: pointer; }
  .hdr__toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--text); transition: transform .4s var(--ease), top .4s var(--ease); }
  .hdr__toggle span:first-child { top: 18px; }
  .hdr__toggle span:last-child { top: 25px; }
  .hdr.is-open .hdr__toggle span:first-child { top: 21.5px; transform: rotate(45deg); }
  .hdr.is-open .hdr__toggle span:last-child { top: 21.5px; transform: rotate(-45deg); }
  .hdr__nav {
    position: fixed; top: var(--hdr); left: 0; right: 0; height: calc(100svh - var(--hdr));
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: 12px calc(var(--gut) + 12px); background: rgba(11, 12, 14, .97);
    opacity: 0; pointer-events: none; transition: opacity .35s;
  }
  .hdr.is-open .hdr__nav { opacity: 1; pointer-events: auto; }
  .hdr__nav a { font-size: 30px; letter-spacing: -.02em; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .hdr__nav a::after { display: none; }
  .hdr__mcta { display: block; }
}

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; background: #08090a; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 9, 10, .8) 0%, rgba(8, 9, 10, .35) 38%, rgba(8, 9, 10, 0) 60%),
    linear-gradient(180deg, rgba(8, 9, 10, .5) 0%, rgba(8, 9, 10, 0) 22%, rgba(8, 9, 10, 0) 70%, rgba(8, 9, 10, .75) 100%);
}
.no-webgl .hero__bg {
  background:
    radial-gradient(circle at 70% 45%, rgba(255, 255, 255, .08) 0 2px, transparent 3px) 0 0 / 56px 48px,
    radial-gradient(circle at 72% 42%, rgba(60, 120, 255, .35), transparent 30%), #0b0c0e;
}
.hero__grid { position: absolute; inset: var(--hdr) 0 0 0; pointer-events: none; }
.hero__grid .ln--short { top: var(--rowA); bottom: var(--band); }
.hero__title {
  position: absolute; left: calc(var(--colA) + 24px); bottom: calc((100% - var(--hdr)) * .35 + 26px);
  max-width: 11.5em; font-size: clamp(40px, 4.8vw, 69px); line-height: 1; letter-spacing: -.01em;
}
.eco {
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--band);
  display: grid; grid-template-columns: var(--colA) 1fr; align-items: center;
}
.eco__label { padding-left: calc(var(--gut) + 24px); font-size: 16px; }
.eco__logos { list-style: none; margin: 0; padding: 0 0 0 24px; display: flex; align-items: center; gap: 40px; overflow: hidden; }
.eco__logos li { flex: none; }
.eco__logo { display: inline-flex; align-items: center; gap: 10px; }
.eco__logo img {
  height: 40px; width: auto; filter: grayscale(1) brightness(1.2) contrast(1.15); opacity: .82;
  transition: filter .5s, opacity .5s, transform .5s var(--ease);
}
.eco__logo--icon img { width: 34px; height: 34px; border-radius: 9px; }
.eco__logo--icon span { font-size: 21px; font-weight: 500; letter-spacing: -.02em; color: #d2d5d9; transition: color .4s; }
.eco__logo:hover img { filter: none; opacity: 1; transform: translateY(-2px); }
.eco__logo:hover span { color: #fff; }

@media (max-width: 900px) {
  .hero__title { left: calc(var(--gut) + 16px); right: calc(var(--gut) + 16px); bottom: calc(var(--band) + 36px); font-size: clamp(36px, 10vw, 52px); }
  .hero__grid .ln--v, .hero__grid .nd { display: none; }
  .hero__grid .ln--h:nth-of-type(2) { display: none; }
  .eco { grid-template-columns: 1fr; align-content: center; gap: 14px; }
  .eco__label { padding-left: calc(var(--gut) + 16px); font-size: 13px; color: var(--muted); }
  .eco__logos { padding: 0 calc(var(--gut) + 16px); gap: 26px; overflow-x: auto; scrollbar-width: none; }
  .eco__logos::-webkit-scrollbar { display: none; }
  .eco__logo img { height: 32px; }
  .eco__logo--icon img { width: 28px; height: 28px; }
  .eco__logo--icon span { font-size: 17px; }
}

/* ---------- Company intro ---------- */
.intro { position: relative; height: 652px; }
.intro__grid { position: absolute; inset: 0; pointer-events: none; }
.intro__diag { position: absolute; left: var(--colB); top: 50%; width: calc(50% - var(--colB)); height: 50%; }
.intro__diag svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.intro__diag line { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.intro__runner {
  position: absolute; left: 0; top: 100%; width: 9px; height: 9px; margin: -4px 0 0 -4px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .08), 0 0 18px rgba(255, 255, 255, .6); opacity: 0;
}
.intro__copy { position: absolute; left: calc(50% + 48px); right: calc(var(--gut) + 48px); top: 50%; bottom: 0; display: flex; flex-direction: column; justify-content: center; gap: 20px; max-width: 560px; }
.intro__text { font-size: 19px; line-height: 1.5; color: #d9dce0; }
@media (max-width: 900px) {
  .intro { height: auto; padding: 96px 0 72px; }
  .intro__grid .ln--v, .intro__grid .nd, .intro__diag, .intro__grid .ln--h:nth-child(2) { display: none; }
  .intro__copy { position: relative; left: auto; right: auto; top: auto; padding: 0 calc(var(--gut) + 16px); }
  .intro__text { font-size: 18px; }
}

/* ---------- Apps: pinned stage ---------- */
.apps { position: relative; }
.apps__stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.apps__lines { position: absolute; inset: 0; pointer-events: none; }
.apps__lines .ln--h { top: 0; will-change: transform; }
.apps__lines .ln--v { left: 0; will-change: transform; }
.apps__lines .nd { left: 0; top: 0; will-change: transform; }
.apps__cell { position: absolute; left: 0; top: 0; width: 0; height: 0; overflow: hidden; background: var(--tile); will-change: transform; }
.apps__cell > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.apps__cell > img[data-i="0"] { opacity: 1; }
.apps__kicker { position: absolute; left: calc(var(--gut) + 24px); top: calc(var(--hdr) + 28px); }

.app {
  position: absolute; top: 50%; width: min(440px, 30vw); translate: 0 -50%;
  display: flex; flex-direction: column; gap: 18px; opacity: 0; visibility: hidden;
}
.app[data-side="left"] { left: calc(var(--gut) + 6vw); }
.app[data-side="right"] { left: 56vw; }
.app:first-of-type { opacity: 1; visibility: visible; }
.app__m { display: none; margin: 0; position: relative; }
.app__brand { height: 120px; display: flex; align-items: flex-end; }
.app__brand img { max-height: 120px; max-width: 100%; width: auto; object-fit: contain; object-position: left bottom; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .45)); }
.app__brand--icon { gap: 18px; align-items: center; }
.app__brand--icon img { width: 64px; height: 64px; border-radius: 16px; filter: none; }
.app__name { font-size: clamp(38px, 3.6vw, 54px); line-height: 1; letter-spacing: -.02em; }
.app__cat { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.app__desc { font-size: 17px; line-height: 1.55; color: #d9dce0; }

.apps__index {
  position: absolute; left: calc(var(--gut) + 24px); bottom: 30px; display: flex; align-items: center; gap: 16px;
  font-family: var(--mono); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums;
}
.apps__count b { color: var(--text); font-weight: 400; }
.apps__bar { width: 140px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.apps__bar i { position: absolute; inset: 0; background: var(--text); transform: scaleX(.2); transform-origin: left; }
.apps__name { color: var(--text); letter-spacing: .08em; text-transform: uppercase; }

/* Stacked layout: phones, and the no-animation fallback */
.stacked .apps__stage, .no-js .apps__stage { height: auto; overflow: visible; padding: 96px 0 40px; }
.stacked .apps__lines, .stacked .apps__cell, .stacked .apps__index,
.no-js .apps__lines, .no-js .apps__cell, .no-js .apps__index { display: none; }
.stacked .apps__kicker, .no-js .apps__kicker { position: static; padding: 0 calc(var(--gut) + 24px); margin-bottom: 40px; }
.stacked .app, .no-js .app {
  position: relative; top: auto; left: auto !important; width: auto; translate: none; opacity: 1; visibility: visible;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; row-gap: 18px; align-content: center;
  padding: 0 calc(var(--gut) + 24px) 96px;
}
.stacked .app > :not(.app__m), .no-js .app > :not(.app__m) { grid-column: 2; }
.stacked .app__m, .no-js .app__m { display: block; grid-column: 1; grid-row: 1 / span 4; aspect-ratio: 1; overflow: hidden; border: 1px solid var(--line); }
.stacked .app[data-side="right"] > :not(.app__m), .no-js .app[data-side="right"] > :not(.app__m) { grid-column: 2; }
.stacked .app[data-side="left"] .app__m, .no-js .app[data-side="left"] .app__m { grid-column: 2; }
.stacked .app[data-side="left"] > :not(.app__m), .no-js .app[data-side="left"] > :not(.app__m) { grid-column: 1; }
.stacked .app__m img, .no-js .app__m img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .stacked .apps__kicker { padding: 0 calc(var(--gut) + 16px); margin-bottom: 28px; }
  .stacked .app { grid-template-columns: 1fr; padding: 0 calc(var(--gut) + 16px) 72px; }
  .stacked .app > *, .stacked .app[data-side] > *, .stacked .app[data-side] .app__m { grid-column: 1 !important; grid-row: auto; }
  .stacked .app__m { margin: 0 calc(-1 * (var(--gut) + 16px)) 6px; border-inline: 0; }
  .app__brand { height: 92px; }
  .app__brand img { max-height: 92px; }
}

/* Store buttons */
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px 0 14px;
  background: var(--btn); border-radius: 3px; color: var(--text); transition: background .3s;
}
.store:hover { background: var(--btn-hover); }
.store svg { width: 20px; height: 20px; flex: none; }
.store__txt { display: flex; flex-direction: column; line-height: 1.15; }
.store__txt small { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.store__txt strong { font-size: 15px; font-weight: 400; }
.store.is-soon { cursor: default; }
.store.is-soon:hover { background: var(--btn); }

/* ---------- Vision (expanding image + metrics) ---------- */
.vision { position: relative; }
.vision__frame { position: relative; height: 112vh; min-height: 760px; overflow: hidden; clip-path: inset(0 var(--gut)); }
.vision__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.7) brightness(.62); transform-origin: 50% 40%; }
.vision__tint {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 12, 14, .55) 0%, rgba(11, 12, 14, .15) 35%, rgba(11, 12, 14, .35) 70%, rgba(11, 12, 14, .85) 100%);
}
.vision__frame > .tiles { z-index: 4; }
.vision__title {
  position: absolute; left: 50%; top: 22%; translate: -50% 0; width: min(900px, 86vw); z-index: 5;
  text-align: center; font-size: clamp(32px, 3.4vw, 50px); line-height: 1.1; letter-spacing: -.015em;
}
.metrics {
  position: absolute; left: var(--gut); right: var(--gut); top: 50%; height: 216px; z-index: 5;
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.metrics__lines { position: absolute; inset: 0; pointer-events: none; }
.metric { padding: 40px 24px 0; }
.metric__num { display: flex; align-items: baseline; gap: 6px; font-size: clamp(56px, 6vw, 84px); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.metric__num small { font-size: 26px; letter-spacing: -.01em; }
.metric__label { margin-top: 20px; font-size: 19px; }
.vision__btn { position: absolute; left: 50%; top: calc(50% + 216px + 88px); translate: -50% 0; z-index: 5; }
@media (max-width: 900px) {
  .vision__frame { height: auto; min-height: 0; padding: 120px 0 96px; }
  .vision__title { position: relative; left: auto; top: auto; translate: none; margin: 0 auto; padding: 0 calc(var(--gut) + 16px); width: auto; }
  .metrics { position: relative; left: auto; right: auto; top: auto; height: auto; margin: 56px var(--gut) 0; grid-template-columns: 1fr; }
  .metrics__lines .ln--v:not(:first-child):not(:last-child), .metrics__lines .nd { display: none; }
  .metric { padding: 28px 20px; border-bottom: 1px solid rgba(255, 255, 255, .4); }
  .metric:last-of-type { border-bottom: 0; }
  .vision__btn { position: relative; left: auto; top: auto; translate: none; margin: 40px auto 0; display: flex; width: max-content; }
}

/* ---------- Contact ---------- */
.contact { position: relative; padding: 150px 0 120px; }
.contact::before, .contact::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--line); }
.contact::before { top: 0; }
.contact::after { bottom: 0; }
.contact__head { padding: 0 calc(var(--gut) + 24px); margin-bottom: 56px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.contact__title { font-size: clamp(56px, 7vw, 104px); line-height: .95; letter-spacing: -.03em; }
.contact__mail { font-family: var(--mono); font-size: 14px; letter-spacing: .06em; }
.contact__mail a { border-bottom: 1px solid var(--line); padding-bottom: 4px; transition: border-color .3s; }
.contact__mail a:hover { border-color: var(--text); }
.form { position: relative; margin: 0 var(--gut); display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.fcell { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 48px 22px; border-bottom: 1px solid var(--line); transition: background .3s; }
.fcell:nth-of-type(odd):not(.fcell--wide) { border-right: 1px solid var(--line); }
.fcell--wide { grid-column: 1 / -1; }
.fcell:focus-within { background: rgba(255, 255, 255, .025); }
.fcell > span { font-family: var(--mono); font-size: 11.5px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.fcell input, .fcell select, .fcell textarea {
  width: 100%; background: transparent; border: 0; outline: none; color: var(--text);
  font: 400 20px/1.4 var(--font); letter-spacing: -.01em; padding: 0; resize: vertical;
}
.fcell select { appearance: none; cursor: pointer; }
.fcell select option { background: var(--bg-2); }
.fcell input::placeholder, .fcell textarea::placeholder { color: #4b5056; }
.fcell.is-invalid > span { color: #ff8a9b; }
.fcell--foot { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 0; }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--muted); cursor: pointer; max-width: 520px; }
.check input { width: 16px; height: 16px; margin-top: 2px; accent-color: #e9ebee; flex: none; }
.check.is-invalid span { color: #ff8a9b; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__status { grid-column: 1 / -1; margin: 0; padding: 0 48px; font-size: 14px; }
.form__status:not(:empty) { padding: 16px 48px; border-top: 1px solid var(--line); }
.form__status.ok { color: #7ee2a8; }
.form__status.err { color: #ff8a9b; }
@media (max-width: 900px) {
  .contact { padding: 110px 0 72px; }
  .contact__head { padding: 0 calc(var(--gut) + 16px); }
  .form { grid-template-columns: 1fr; }
  .fcell { padding: 22px 20px 18px; }
  .fcell:nth-of-type(odd):not(.fcell--wide) { border-right: 0; }
  .fcell--foot { flex-direction: column; align-items: stretch; }
  .fcell--foot .btn { justify-content: center; }
  .form__status, .form__status:not(:empty) { padding-left: 20px; padding-right: 20px; }
}

/* ---------- Footer ---------- */
.ftr { position: relative; overflow: hidden; background: #090a0b; }
.ftr__bg { position: absolute; inset: 0; pointer-events: none; }
/* nuve mark with a glowing, rotating rim and orbiting electrons (canvases behind and in front) */
.ftr__atom { grid-column: 2; grid-row: 1; align-self: center; position: relative; width: min(300px, 21vw); aspect-ratio: 1; }
.ftr__atom::before {
  content: ""; position: absolute; inset: -32%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(60, 130, 255, .42), rgba(60, 130, 255, .12) 55%, transparent 76%);
  animation: atomGlow 3.4s ease-in-out infinite;
}
.ftr__atom::after {
  content: ""; position: absolute; inset: -2.5%; border-radius: 50%; z-index: 3; pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0 58%, rgba(170, 210, 255, 0) 62%, rgba(200, 225, 255, .95) 70%, rgba(110, 165, 255, 0) 80%, transparent 100%);
  -webkit-mask: radial-gradient(closest-side, transparent 94%, #000 95.5%, #000 99%, transparent 100%);
  mask: radial-gradient(closest-side, transparent 94%, #000 95.5%, #000 99%, transparent 100%);
  animation: atomSpin 4.5s linear infinite;
}
@keyframes atomGlow { 50% { opacity: .6; transform: scale(.93); } }
@keyframes atomSpin { to { transform: rotate(360deg); } }
.ftr__orb {
  position: relative; z-index: 1; display: block; width: 100%; height: 100%; border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(150, 190, 255, .28), 0 0 46px rgba(60, 130, 255, .5);
}
.atom__cv { position: absolute; left: -45%; top: -45%; width: 190%; height: 190%; pointer-events: none; }
.atom__cv--back { z-index: 0; }
.atom__cv--front { z-index: 2; }
.ftr__bg::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(30% 45% at 58% 45%, rgba(40, 100, 255, .14), transparent 70%);
}
.ftr__bg > .tiles { z-index: 2; --tile: #090a0b; }
.ftr__grid {
  position: relative; z-index: 2; min-height: 100vh; padding: calc(var(--hdr) + 120px) calc(var(--gut) + 24px) 64px;
  display: grid; grid-template-columns: 1.2fr auto 1fr; grid-template-rows: 1fr auto; column-gap: 56px; row-gap: 56px; align-items: center;
}
.ftr__head { grid-column: 1; grid-row: 1 / span 2; align-self: center; display: flex; flex-direction: column; gap: 22px; }
.ftr__title { font-size: clamp(56px, 7vw, 104px); line-height: .98; letter-spacing: -.03em; }
.ftr__tr { font-size: clamp(22px, 2vw, 30px); color: var(--muted); letter-spacing: -.01em; }
.ftr__slogan { font-size: 17px; color: #d9dce0; max-width: 30em; padding-top: 22px; border-top: 1px solid var(--line); }
.ftr__links { grid-column: 3; grid-row: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-self: center; }
.ftr__links div { display: flex; flex-direction: column; gap: 18px; }
.ftr__links a { font-size: 15px; color: #e3e5e8; }
.ftr__links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.ftr__actions { grid-column: 2 / span 2; grid-row: 2; display: flex; justify-content: space-between; align-items: center; gap: 24px; align-self: end; }
.ftr__actions .btn { justify-self: start; }
.socials { display: flex; gap: 22px; }
.socials a { color: #e3e5e8; transition: color .3s; }
.socials a:hover { color: #fff; }
.socials svg { width: 22px; height: 22px; display: block; }
.ftr__bottom {
  position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 26px calc(var(--gut) + 24px) 30px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; color: var(--dim);
}
@media (max-width: 900px) {
  .ftr__grid { grid-template-columns: 1fr; min-height: 0; padding: 120px calc(var(--gut) + 16px) 56px; row-gap: 48px; }
  .ftr__head, .ftr__atom, .ftr__links, .ftr__actions { grid-column: auto; grid-row: auto; }
  .ftr__title { font-size: clamp(48px, 15vw, 72px); }
  .ftr__actions { flex-direction: column; align-items: flex-start; }
  .ftr__atom { width: 150px; margin: 30px 0 0 60px; }
  .ftr__bottom { padding: 22px calc(var(--gut) + 16px) 26px; }
}

/* ---------- Split text helpers ---------- */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .1em .03em .14em; margin: -.1em -.03em -.14em; }
.w__i { display: inline-block; will-change: transform; }

/* ---------- Hidden until the intro runs ---------- */
.js-motion .hero__title, .js-motion .eco, .js-motion .hdr__nav a, .js-motion .hdr__cta .btn, .js-motion .brand { visibility: hidden; }
.js-motion.is-ready .hero__title, .js-motion.is-ready .eco, .js-motion.is-ready .hdr__nav a, .js-motion.is-ready .hdr__cta .btn, .js-motion.is-ready .brand { visibility: visible; }

/* ==========================================================
   Content sections: slogans, mission & vision, Nuve Puan,
   Nuve Market, roadmap, goals, FAQ
   ========================================================== */

/* Company: slogan in the top-right cell */
.intro__lead { position: absolute; left: calc(50% + 48px); right: calc(var(--gut) + 48px); top: 0; height: 50%; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.intro__slogan { font-size: clamp(30px, 3vw, 46px); line-height: 1.08; letter-spacing: -.02em; max-width: 14em; }
@media (max-width: 900px) {
  .intro__lead { position: relative; left: auto; right: auto; height: auto; padding: 0 calc(var(--gut) + 16px); margin-bottom: 28px; }
}

/* Slogan band: outlined type moving with scroll */
.band { position: relative; overflow: hidden; padding: 34px 0; border-block: 1px solid var(--line); }
.band__track { display: flex; align-items: center; gap: 44px; width: max-content; will-change: transform; }
.band__track span { font-size: clamp(36px, 5vw, 76px); letter-spacing: -.03em; line-height: 1; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(243, 244, 245, .55); }
.band__track span:nth-of-type(odd) { color: var(--text); -webkit-text-stroke: 0; }
.band__track b { font-size: 14px; color: var(--muted); font-weight: 400; }

/* Vision panel subtitle */
.vision__sub { display: block; margin: 20px auto 0; max-width: 640px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.45; color: rgba(243, 244, 245, .82); letter-spacing: 0; }

/* Generic section with blueprint cells */
.sec { position: relative; padding: 140px 0 0; }
.sec::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); }
.sec__head { padding: 0 calc(var(--gut) + 24px); margin-bottom: 72px; max-width: 980px; display: flex; flex-direction: column; gap: 22px; }
.sec__title { font-size: clamp(40px, 5.4vw, 80px); line-height: 1; letter-spacing: -.03em; }
.sec__lead { font-size: 19px; line-height: 1.55; color: #c9cdd2; max-width: 720px; }
.sec__lead strong { color: var(--text); font-weight: 500; }

.cells { position: relative; display: grid; margin: 0 var(--gut); }
.cells--2 { grid-template-columns: repeat(2, 1fr); }
.cells--3 { grid-template-columns: repeat(3, 1fr); }
.cells--4 { grid-template-columns: repeat(4, 1fr); }
.cell { position: relative; padding: 44px 40px 52px; display: flex; flex-direction: column; gap: 16px; }
/* cell borders are drawn in when the grid enters the viewport */
.cell::before, .cell::after { content: ""; position: absolute; background: var(--line); transition: transform 1.4s var(--ease); transition-delay: var(--d, 0s); }
.cell::before { left: 0; right: 0; top: 0; height: 1px; transform: scaleX(0); transform-origin: left; }
.cell::after { top: 0; bottom: 0; left: 0; width: 1px; transform: scaleY(0); transform-origin: top; }
.cells.is-drawn .cell::before { transform: scaleX(1); }
.cells.is-drawn .cell::after { transform: scaleY(1); }
.cells::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) .2s; }
.cells.is-drawn::after { transform: scaleX(1); }
.no-js .cell::before, .no-js .cell::after, .no-js .cells::after { transform: none; }
.cn { position: absolute; left: -3px; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--node); transform: scale(0); transition: transform .6s cubic-bezier(.3, 1.8, .5, 1); transition-delay: calc(var(--d, 0s) + .4s); z-index: 2; }
.cells.is-drawn .cn, .no-js .cn { transform: scale(1); }
.cell__no { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cell__title { font-size: clamp(24px, 2.1vw, 32px); line-height: 1.1; letter-spacing: -.02em; }
.cell__title--lg { font-size: clamp(34px, 3.4vw, 52px); }
.cell p:not(.cell__no):not(.goal__no) { font-size: 16.5px; line-height: 1.6; color: #c9cdd2; }
.cell em { font-style: normal; color: var(--text); }
.ticks { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; font-size: 15.5px; line-height: 1.5; color: #d9dce0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .72em; width: 12px; height: 1px; background: var(--text); }
.mv .cells--3 .cell { min-height: 340px; justify-content: flex-end; }

/* Nuve Puan flow diagram */
.flow__diagram { margin: 0 var(--gut); padding: 40px 24px 56px; border-top: 1px solid var(--line); }
.flow__svg { display: block; width: 100%; max-width: 1100px; margin: 0 auto; height: auto; overflow: visible; }
.flow__paths path { stroke: rgba(243, 244, 245, .32); stroke-width: 1.2; }
.flow__dots circle { fill: #f3f4f5; }
.flow__dots .flow__dot--big { fill: #6ea0ff; }
.flow__ring { fill: #121417; stroke: rgba(243, 244, 245, .3); stroke-width: 1; }
.flow__core .flow__ring { stroke: rgba(110, 160, 255, .55); }
.flow__pulse { fill: none; stroke: rgba(70, 130, 255, .45); stroke-width: 1; transform-origin: center; transform-box: fill-box; animation: flowPulse 2.6s ease-out infinite; }
@keyframes flowPulse { from { transform: scale(.75); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.flow__labels text { fill: var(--muted); font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.step { min-height: 420px; }

/* Market */
.cat { min-height: 300px; }
.principles { margin: 0 var(--gut); display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.principle { padding: 28px 40px 32px; display: flex; flex-direction: column; gap: 8px; border-left: 1px solid var(--line); }
.principle:first-child { border-left: 0; }
.principle b { font-weight: 500; font-size: 17px; }
.principle span { color: var(--muted); font-size: 15px; line-height: 1.5; }

/* Roadmap */
.road { position: relative; border-top: 1px solid var(--line); }
.road__stage { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--hdr) + 20px) 0 20px; }
.road__head { padding: 0 calc(var(--gut) + 24px); max-width: 1180px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.road .sec__title { font-size: clamp(36px, 4.2vw, 64px); }
.road .sec__lead { font-size: 17px; max-width: 760px; }
.road__viewport { position: relative; overflow: hidden; margin: 0 var(--gut); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 64px, #000 calc(100% - 64px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 64px, #000 calc(100% - 64px), transparent); }
.road__track { position: relative; display: flex; width: max-content; padding-top: 40px; will-change: transform; }
.road__rail { position: absolute; left: 0; right: 0; top: 40px; height: 1px; background: var(--line); }
.road__rail i { position: absolute; inset: 0; background: var(--text); transform: scaleX(0); transform-origin: left; }
.phase { position: relative; width: min(440px, 80vw); padding: 40px 40px 28px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.phase:last-child { border-right: 1px solid var(--line); }
.phase__node { position: absolute; left: -6px; top: -6px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1px solid var(--text); transition: background .4s, box-shadow .4s; }
.phase.is-active .phase__node { background: var(--text); box-shadow: 0 0 0 6px rgba(243, 244, 245, .08), 0 0 22px rgba(243, 244, 245, .45); }
.phase__time { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--text); }
.phase__title { font-size: clamp(28px, 2.6vw, 40px); line-height: 1.05; letter-spacing: -.02em; display: flex; flex-direction: column; gap: 10px; }
.phase__title span { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.phase > p { color: #c9cdd2; font-size: 16px; line-height: 1.55; }

/* Goals */
.goal { min-height: 280px; }
.goal__no { font-size: clamp(48px, 4.6vw, 72px); line-height: 1; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px rgba(243, 244, 245, .5); }

/* FAQ */
.faq { padding-bottom: 120px; }
.faq__list { margin: 0 var(--gut); border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 30px 24px; font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -.01em; transition: background .3s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 22px; color: var(--muted); transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--text); }
.faq summary:hover { background: rgba(255, 255, 255, .02); }
.faq details p { padding: 0 24px 32px; max-width: 820px; color: #c9cdd2; font-size: 17px; line-height: 1.6; }
.faq__note { margin: 28px calc(var(--gut) + 24px) 0; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--dim); }

@media (max-width: 1100px) {
  .cells--4 { grid-template-columns: repeat(2, 1fr); }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .principle:nth-child(3) { border-left: 0; }
}
@media (max-width: 900px) {
  .sec { padding-top: 96px; }
  .sec__head, .road__head { padding: 0 calc(var(--gut) + 16px); margin-bottom: 48px; }
  .sec__title { font-size: clamp(36px, 10vw, 52px); }
  .sec__lead { font-size: 17px; }
  .cells--2, .cells--3, .cells--4 { grid-template-columns: 1fr; }
  .cell { padding: 32px 20px 40px; min-height: 0 !important; }
  .flow__diagram { padding: 24px 0 32px; overflow-x: auto; }
  .flow__svg { min-width: 640px; }
  .principles { grid-template-columns: 1fr; }
  .principle { border-left: 0; border-top: 1px solid var(--line); padding: 22px 20px; }
  .road__stage { min-height: 0; padding: 96px 0 72px; }
  .road__viewport { overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .road__track { flex-direction: column; width: auto; padding-top: 0; transform: none !important; }
  .road__rail { left: 0; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .road__rail i { transform-origin: top; }
  .phase { width: auto; border-left: 0; border-right: 0 !important; border-top: 1px solid var(--line); padding: 36px 20px 40px 28px; }
  .phase__node { left: -5px; top: 40px; }
  .faq summary { padding: 24px 16px; }
  .faq details p { padding: 0 16px 24px; }
}

/* ==========================================================
   Site-wide square field, language, slogans, Turkish captions
   ========================================================== */
.squares { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: block; }
main, .ftr { position: relative; z-index: 1; }

/* Language switch */
.lang { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--dim); margin-right: 16px; }
.lang a { color: var(--dim); transition: color .3s; padding: 4px 2px; }
.lang a:hover { color: var(--text); }
html[lang="tr"] .lang [data-lang="tr"], html[lang="en"] .lang [data-lang="en"] { color: var(--text); }
@media (max-width: 900px) { .lang { margin-right: 6px; } }

/* Turkish captions under English phrases — hidden in the English version */
html[lang="en"] .tr-only { display: none !important; }
.cell__tr { display: block; margin-top: 8px; font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* Hero slogan: sits in the cell under the headline */
.hero__slogan {
  position: absolute; left: calc(var(--colA) + 24px); width: calc(50% - var(--colA) - 48px);
  top: calc(var(--hdr) + (100% - var(--hdr)) * .65); height: calc((100% - var(--hdr)) * .35 - var(--band));
  display: flex; align-items: center; font-size: clamp(17px, 1.45vw, 22px); line-height: 1.35; color: #e4e6e9; letter-spacing: -.005em;
}
.js-motion .hero__slogan { visibility: hidden; }
.js-motion.is-ready .hero__slogan { visibility: visible; }
@media (max-width: 900px) {
  .hero__title { bottom: calc(var(--band) + 96px); }
  .hero__slogan { left: calc(var(--gut) + 16px); right: calc(var(--gut) + 16px); width: auto; top: auto; bottom: calc(var(--band) + 20px); height: auto; font-size: 16px; color: var(--muted); }
}

/* Vision panel: animated square field instead of a photo */
.vision__frame { background: #0a0b0d; }
.vision__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.vision__tint { background: radial-gradient(70% 60% at 50% 45%, rgba(11, 12, 14, 0) 0%, rgba(11, 12, 14, .55) 70%, rgba(11, 12, 14, .9) 100%); }
.vision__main { display: block; }

/* Flow diagram: product nodes carry their logos */
.flow__apps rect.flow__ring { fill: #121417; }
.flow__name { fill: #f3f4f5; font-family: var(--font); font-size: 20px; font-weight: 500; letter-spacing: -.02em; }

/* Roadmap phase title text */
.phase__title em { font-style: normal; }


/* ==========================================================
   KVKK notice
   ========================================================== */
.kvkk-link {
  background: none; border: 0; padding: 0; font: inherit; color: var(--text); text-align: left; cursor: pointer;
  text-decoration: underline; text-decoration-color: rgba(243, 244, 245, .35); text-underline-offset: 4px; transition: text-decoration-color .3s;
}
.kvkk-link:hover { text-decoration-color: var(--text); }
.check.is-invalid .kvkk-link { color: #ff8a9b; }
.modal { padding: 0; border: 0; background: transparent; color: var(--text); width: 100%; height: 100%; max-width: none; max-height: none; }
.modal[open] { display: flex; align-items: center; justify-content: center; }
.modal::backdrop { background: rgba(5, 6, 7, .74); backdrop-filter: blur(6px); }
.modal__box {
  width: min(820px, calc(100% - 32px)); max-height: min(86vh, 900px); display: flex; flex-direction: column;
  background: #111316; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 40px 120px rgba(0, 0, 0, .6);
  animation: modalIn .55s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.modal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 28px 32px 20px; border-bottom: 1px solid var(--line); }
.modal__title { margin-top: 10px; font-size: clamp(24px, 2.3vw, 32px); line-height: 1.15; letter-spacing: -.02em; }
.modal__x { flex: none; width: 40px; height: 40px; display: grid; place-items: center; background: var(--btn); border: 0; border-radius: 3px; color: var(--text); cursor: pointer; transition: background .3s; }
.modal__x:hover { background: var(--btn-hover); }
.modal__body { overflow-y: auto; overscroll-behavior: contain; padding: 4px 32px 28px; }
.modal__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 18px 32px; border-top: 1px solid var(--line); }
.legal h3 { margin: 26px 0 10px; font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.legal p, .legal li { font-size: 15px; line-height: 1.65; color: #c9cdd2; }
.legal p { margin: 0 0 10px; }
.legal ul { margin: 0 0 10px; padding-left: 20px; }
.legal li { margin-bottom: 4px; }
.legal strong { color: var(--text); font-weight: 500; }
.legal a { color: var(--text); border-bottom: 1px solid var(--line); }
.legal__meta { margin-top: 24px !important; font-family: var(--mono); font-size: 12px !important; color: var(--dim) !important; }
html[lang="en"] .legal--tr, html[lang="tr"] .legal--en { display: none; }
@media (max-width: 600px) {
  .modal__head, .modal__body, .modal__foot { padding-left: 20px; padding-right: 20px; }
  .modal__foot { flex-direction: column-reverse; }
  .modal__foot .btn { justify-content: center; }
}
