/* ==========================================================================
   YNCTR — site stylesheet
   Source of truth: YNCTR Website Master Design & Development Reference v1.0
   (Visual Identity v2.0 · Typography v2.0 · Brand Motion v1.0)
   Direction: PLAYGROUND core · SIGNAL discipline · PULSE moments
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  /* canonical colors (locked) */
  --ynctr-ink: #15161A;
  --ynctr-white: #F7F6F1;
  --ynctr-blue: #5865F2;
  --ynctr-lime: #BDF34B;
  --ynctr-coral: #FF6C5C;
  --ynctr-violet: #B9A7FF;
  --ynctr-sky: #59C7FF;
  --ink-800: #1C1E23;
  --ink-700: #252830;
  --grey-500: #737780;
  --grey-300: #B9BBC1;
  --grey-150: #DFE0E2;
  --pure-white: #FFFFFF;
  --success: #7ED957;
  --warning: #F5B942;
  --error: #F05B63;

  /* dark theme (default) */
  --bg: var(--ynctr-ink);
  --surface: var(--ink-800);
  --card: var(--ink-700);
  --text: var(--ynctr-white);
  --text-2: var(--grey-300);
  --text-3: var(--grey-500);
  --border: #343740;
  --border-strong: #454956;
  --accent: var(--ynctr-blue);
  --accent-ink: #FFFFFF;
  --mark: var(--ynctr-white);
  --node-line: rgba(247, 246, 241, 0.16);
  --node-dot: rgba(247, 246, 241, 0.55);
  --scrim: rgba(21, 22, 26, 0.72);

  /* spacing */
  --space-1: 4px;  --space-2: 8px;   --space-3: 16px; --space-4: 24px; --space-5: 32px;
  --space-6: 48px; --space-7: 64px;  --space-8: 96px; --space-9: 128px;

  /* radius */
  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px; --radius-xl: 24px; --radius-full: 999px;

  /* motion */
  --motion-instant: 100ms; --motion-fast: 160ms; --motion-standard: 240ms; --motion-slow: 400ms; --motion-brand: 1200ms;
  --ease-ui: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-fast: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-ambient: cubic-bezier(0.45, 0, 0.55, 1);

  /* type */
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --content-max: 1280px;
  --gutter: 32px;

  color-scheme: dark;
}

[data-theme="light"] {
  --bg: var(--ynctr-white);
  --surface: #FFFFFF;
  --card: #EFEFEA;
  --text: var(--ynctr-ink);
  --text-2: #5C6068;
  --text-3: var(--grey-500);
  --border: var(--grey-150);
  --border-strong: #C9CBD0;
  --accent: var(--ynctr-blue);
  --accent-ink: #FFFFFF;
  --mark: var(--ynctr-ink);
  --node-line: rgba(21, 22, 26, 0.12);
  --node-dot: rgba(21, 22, 26, 0.45);
  --scrim: rgba(247, 246, 241, 0.78);
  color-scheme: light;
}

/* ---------- reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 25px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color var(--motion-standard) var(--ease-ui), color var(--motion-standard) var(--ease-ui);
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-sm); }
::selection { background: var(--ynctr-blue); color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- typography ---------- */
.display-xl, .display, .h1, .h2, .h3 {
  font-family: var(--font-display);
  margin: 0;
  color: var(--text);
  text-wrap: balance;
}
.display-xl { font-size: 96px; line-height: 96px; font-weight: 700; letter-spacing: -0.025em; }
.display    { font-size: 72px; line-height: 76px; font-weight: 700; letter-spacing: -0.02em; }
.h1         { font-size: 56px; line-height: 62px; font-weight: 700; letter-spacing: -0.02em; }
.h2         { font-size: 40px; line-height: 48px; font-weight: 600; letter-spacing: -0.015em; }
.h3         { font-size: 28px; line-height: 36px; font-weight: 600; letter-spacing: -0.01em; }
.lead  { font-size: 20px; line-height: 30px; color: var(--text-2); margin: 0; text-wrap: pretty; max-width: 34ch; }
.body  { font-size: 16px; line-height: 25px; color: var(--text-2); margin: 0; max-width: 60ch; text-wrap: pretty; }
.small { font-size: 14px; line-height: 21px; color: var(--text-3); margin: 0; }
.caption { font-size: 12px; line-height: 18px; font-weight: 500; color: var(--text-3); margin: 0; }
.label {
  font-family: var(--font-body);
  font-size: 12px; line-height: 18px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-3); margin: 0;
}
.label--accent { color: var(--accent); }
.label::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; margin-right: 10px; vertical-align: 2px;
}
.label--plain::before { display: none; }
strong { font-weight: 600; color: var(--text); }

@media (max-width: 900px) {
  .display-xl { font-size: 52px; line-height: 54px; }
  .display    { font-size: 52px; line-height: 54px; }
  .h1         { font-size: 40px; line-height: 44px; }
  .h2         { font-size: 32px; line-height: 38px; }
  .h3         { font-size: 24px; line-height: 30px; }
  .lead       { font-size: 18px; line-height: 28px; }
  body        { line-height: 24px; }
}

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--content-max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 1440px) { .container { padding: 0 64px; max-width: calc(var(--content-max) + 128px); } }
@media (max-width: 720px)  { :root { --gutter: 24px; } }
@media (max-width: 720px)  {
  .world--games .world__visual img { left: 68%; width: 42%; top: 24px; }
  .world--games .world__visual img:nth-child(2) { left: 5%; width: 36%; top: 70px; }
}
@media (max-width: 420px)  { :root { --gutter: 20px; } }

.section { padding: var(--space-9) 0; }
.section--tight { padding: var(--space-8) 0; }
.section--flush-top { padding-top: 0; }
@media (max-width: 900px) { .section { padding: var(--space-8) 0; } .section--tight { padding: var(--space-7) 0; } }
@media (max-width: 600px) { .section { padding: var(--space-7) 0; } .section--tight { padding: var(--space-6) 0; } }

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-4); }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); } }

.section-head { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-7); max-width: 720px; }
.section-head .h2 { margin-top: var(--space-1); }
@media (max-width: 900px) { .section-head { margin-bottom: var(--space-6); } }

.rule { height: 1px; background: var(--border); border: 0; margin: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 22px; border-radius: var(--radius-md);
  font-family: var(--font-body); font-size: 15px; font-weight: 600; line-height: 1;
  white-space: nowrap; user-select: none;
  transition: transform var(--motion-fast) var(--ease-fast), background-color var(--motion-fast) var(--ease-ui),
              border-color var(--motion-fast) var(--ease-ui), color var(--motion-fast) var(--ease-ui);
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #4B58E6; color: #fff; }
.btn--secondary { background: transparent; color: var(--text); border: 1px solid var(--border-strong); }
.btn--secondary:hover { border-color: var(--text-2); }
.btn:active { transform: scale(0.97); }
.btn--snap { animation: snap 170ms var(--ease-fast); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn .arrow { transition: transform var(--motion-fast) var(--ease-fast); }
.btn:hover .arrow { transform: translateX(3px); }
.btn--store { height: 52px; padding: 0 18px 0 14px; gap: 12px; background: var(--text); color: var(--bg); }
.btn--store:hover { background: var(--text-2); color: var(--bg); }
.btn--store .store-lines { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.btn--store .store-lines small { font-size: 10px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.75; }
.btn--store .store-lines span { font-size: 15px; font-weight: 600; }

.text-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--text);
  border-bottom: 1px solid transparent;
  transition: color var(--motion-fast) var(--ease-ui);
}
.text-cta svg { width: 18px; height: 18px; flex: none; }
.text-cta .arrow { transition: transform var(--motion-fast) var(--ease-fast); }
.text-cta:hover { color: var(--accent); }
.text-cta:hover .arrow { transform: translateX(4px); }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

/* ---------- navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--motion-standard) var(--ease-ui);
}
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: var(--space-4); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.brand__mark { width: 30px; height: 30px; color: var(--mark); flex: none; }
.brand__word { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: 0.02em; line-height: 1; }
.brand__desc { font-family: var(--font-body); font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); line-height: 1; margin-top: 3px; }
.brand__text { display: flex; flex-direction: column; }
.nav__links { display: flex; align-items: center; gap: var(--space-5); list-style: none; margin: 0; padding: 0; }
.nav__links a { font-size: 14px; font-weight: 500; color: var(--text-2); padding: 8px 0; position: relative; transition: color var(--motion-fast) var(--ease-ui); }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--motion-standard) var(--ease-ui); }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--text); }
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: var(--space-3); }
.nav__cta { height: 40px; padding: 0 16px; font-size: 14px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: var(--radius-md); display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-2); border: 1px solid transparent;
  transition: color var(--motion-fast) var(--ease-ui), border-color var(--motion-fast) var(--ease-ui), transform var(--motion-fast) var(--ease-fast);
}
.icon-btn:hover { color: var(--text); border-color: var(--border); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .sun { display: none; }
[data-theme="light"] .theme-toggle .sun { display: block; }
[data-theme="light"] .theme-toggle .moon { display: none; }
.nav__burger { display: none; }

.nav__drawer { display: none; }
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: inline-flex; }
  .nav__drawer {
    display: block; position: fixed; inset: 72px 0 0 0; z-index: 49;
    background: var(--bg); padding: var(--space-4) var(--gutter) var(--space-6);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity var(--motion-standard) var(--ease-ui), transform var(--motion-standard) var(--ease-ui);
  }
  .nav__drawer.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__drawer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
  .nav__drawer li a { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; font-family: var(--font-display); font-size: 24px; font-weight: 600; border-bottom: 1px solid var(--border); }
  .nav__drawer li a[aria-current="page"] { color: var(--accent); }
  .nav__drawer .btn { margin-top: var(--space-4); width: 100%; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: var(--space-8) 0 var(--space-9); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-6); align-items: center; }
.hero__copy { display: flex; flex-direction: column; gap: var(--space-4); }
.hero__copy .lead { margin-top: var(--space-2); }
.hero__copy .cta-row { margin-top: var(--space-3); }
.hero__art { position: relative; aspect-ratio: 760 / 540; }
.constellation { display: block; width: 124%; height: auto; margin: -8% 0 0 -12%; overflow: visible; }
/* satellites: thin, low-contrast, large-scale */
.constellation .hl { stroke: var(--node-line); stroke-width: 1.5; stroke-linecap: round; }
.constellation .hn { fill: var(--node-dot); }
.constellation .hn--soft { fill: var(--node-line); }
.constellation .hsq { stroke: var(--node-dot); stroke-width: 1.5; fill: none; }
/* the mark */
.constellation .ml { stroke: var(--mark); stroke-width: 22; stroke-linecap: round; }
.constellation .mn { fill: var(--mark); transform-box: fill-box; transform-origin: center; }
.constellation .mn0 { fill: var(--ynctr-blue); }
.constellation .mring { stroke: var(--ynctr-blue); stroke-width: 2.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.constellation .hglow { opacity: 0.9; }
/* choreography: ENTER (nodes) → CONNECT (lines) → SNAP (center) → PULSE (ring) → ambient drift */
@media (prefers-reduced-motion: no-preference) {
  .constellation .mn1, .constellation .mn2, .constellation .mn3 { animation: c-enter var(--motion-slow) var(--ease-fast) both; }
  .constellation .mn2 { animation-delay: 80ms; } .constellation .mn3 { animation-delay: 160ms; }
  .constellation .ml { stroke-dasharray: 1; stroke-dashoffset: 1; animation: c-draw 420ms var(--ease-ui) 260ms both; }
  .constellation .ml2 { animation-delay: 340ms; } .constellation .ml3 { animation-delay: 420ms; }
  .constellation .mn0 { animation: c-snap 520ms var(--ease-fast) 620ms both; }
  .constellation .mring { animation: c-pulse 3.6s var(--ease-ambient) 900ms infinite; }
  .constellation .hglow { animation: c-glow 6s var(--ease-ambient) 900ms infinite alternate; }
  .constellation .hl { stroke-dasharray: 1; stroke-dashoffset: 1; animation: c-draw 900ms var(--ease-ui) both; }
  .drift--a .hl { animation-delay: 700ms; } .drift--b .hl { animation-delay: 900ms; } .drift--c .hl { animation-delay: 1100ms; }
  .constellation .hn, .constellation .hsq { animation: c-fade 600ms var(--ease-ui) both; }
  .drift--a .hn { animation-delay: 600ms; } .drift--b .hn { animation-delay: 800ms; } .drift--c .hn, .drift--c .hsq { animation-delay: 1000ms; }
  .drift { animation: c-drift 14s var(--ease-ambient) infinite alternate; }
  .drift--b { animation-duration: 11s; animation-direction: alternate-reverse; }
  .drift--c { animation-duration: 16s; animation-delay: -6s; }
}
@keyframes c-enter { from { transform: scale(0); } 70% { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes c-draw { to { stroke-dashoffset: 0; } }
@keyframes c-snap { from { transform: scale(0); } 62% { transform: scale(1.14); } 82% { transform: scale(0.98); } to { transform: scale(1); } }
@keyframes c-pulse { 0% { transform: scale(0.62); opacity: 0; } 12% { opacity: 0.55; } 48% { transform: scale(1.32); opacity: 0; } 100% { transform: scale(1.32); opacity: 0; } }
@keyframes c-glow { from { opacity: 0.55; } to { opacity: 1; } }
@keyframes c-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes c-drift { from { transform: translate(0, 0); } to { transform: translate(7px, -9px); } }
@media (max-width: 900px) {
  .hero { padding: var(--space-6) 0 var(--space-8); }
  .hero__grid { grid-template-columns: 1fr; gap: var(--space-5); }
  .hero__art { order: 2; }
  .constellation { width: 112%; margin: -4% 0 0 -6%; }
}

/* ---------- worlds (two doors) ---------- */
.worlds { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-4); }
.world { position: relative; overflow: hidden; border: 1px solid var(--border); background: var(--surface); display: grid; grid-template-rows: auto minmax(340px, 1fr); min-height: 640px; transition: transform var(--motion-standard) var(--ease-ui), border-color var(--motion-standard) var(--ease-ui); }
.world--games { grid-column: span 7; border-radius: 0; }
.world--apps  { grid-column: span 5; border-radius: var(--radius-xl); }
.world:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.world__body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); }
.world__body .h2 { margin-top: var(--space-2); }
.world__body .text-cta { margin-top: var(--space-2); }
.world__visual { position: relative; min-height: 340px; }
/* 9 Eyl: iki telefon da TAM görünür (eskiden height:150% + cover ile kırpılıyordu; soldaki yarım kalıyordu) */
.world--games .world__visual { background: #0B1230; min-height: 460px; }
.world--games .world__visual img { position: absolute; left: 60%; top: 28px; width: min(40%, 190px); height: auto; transform: translateX(-50%) rotate(-4deg); border-radius: 22px; box-shadow: 0 30px 60px rgba(0,0,0,0.45); }
.world--games .world__visual img:nth-child(2) { left: 9%; top: 52px; width: min(34%, 160px); transform: rotate(5deg); opacity: 0.94; }
.world--apps .world__visual { display: grid; place-items: center; }
.modules { display: grid; grid-template-columns: repeat(4, 44px); gap: 12px; }
.modules span { width: 44px; height: 44px; border-radius: 10px; background: var(--card); border: 1px solid var(--border); }
.modules span:nth-child(3) { background: var(--accent); border-color: transparent; }
.modules span:nth-child(6) { border-radius: 50%; }
.modules span:nth-child(8) { background: var(--ynctr-lime); border-color: transparent; }
.modules span:nth-child(9) { border-radius: 50%; background: var(--text); border-color: transparent; }
.modules span:nth-child(12) { border-radius: 999px; grid-column: span 2; width: 100px; }
.pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: var(--radius-full); border: 1px solid var(--border-strong); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.pill--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 25%, transparent); }
.pill--dev::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--warning); }
@media (max-width: 900px) {
  .worlds { grid-template-columns: 1fr; }
  .world--games, .world--apps { grid-column: auto; min-height: 0; }
  .world__body { padding: var(--space-5); }
}

/* ---------- product feature ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-7); align-items: center; }
.feature__copy { display: flex; flex-direction: column; gap: var(--space-4); }
.feature__meta { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.feature__visual { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); align-items: end; }
.phone { position: relative; border-radius: 28px; overflow: hidden; background: #000; border: 1px solid var(--border-strong); box-shadow: 0 16px 40px rgba(0,0,0,0.10); }
.phone img { width: 100%; height: auto; }
.phone--lift { transform: translateY(-40px); }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: var(--space-6); }
  .feature__visual { gap: var(--space-3); }
  .phone--lift { transform: translateY(-16px); }
}

/* ---------- studio / principles ---------- */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.principle { padding: var(--space-5); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); display: flex; flex-direction: column; gap: var(--space-3); transition: transform var(--motion-standard) var(--ease-ui), border-color var(--motion-standard) var(--ease-ui); }
.principle:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.principle .glyph { width: 40px; height: 40px; color: var(--accent); }
.principle .h3 { font-size: 22px; line-height: 28px; }
@media (max-width: 900px) { .principles { grid-template-columns: 1fr; } }

.studio { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-7); align-items: start; }
.studio__copy { display: flex; flex-direction: column; gap: var(--space-4); }
.studio__facts { display: grid; gap: 0; border-top: 1px solid var(--border); }
.fact { display: grid; grid-template-columns: 140px 1fr; gap: var(--space-4); padding: var(--space-4) 0; border-bottom: 1px solid var(--border); }
.fact dt { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin: 0; padding-top: 3px; }
.fact dd { margin: 0; color: var(--text-2); }
@media (max-width: 900px) { .studio { grid-template-columns: 1fr; } .fact { grid-template-columns: 110px 1fr; } }

/* ---------- updates ---------- */
.updates { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-7); }
.update { display: grid; grid-template-columns: 120px 1fr; gap: var(--space-4); padding: var(--space-5) 0; border-top: 1px solid var(--border); }
.update:last-child { border-bottom: 1px solid var(--border); }
.update__when { font-size: 13px; font-weight: 500; color: var(--text-3); padding-top: 4px; }
.update__body { display: flex; flex-direction: column; gap: var(--space-2); }
.update__body ul { margin: var(--space-2) 0 0; padding: 0; list-style: none; display: grid; gap: 6px; color: var(--text-2); }
.update__body li { padding-left: 18px; position: relative; }
.update__body li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@media (max-width: 900px) { .updates { grid-template-columns: 1fr; gap: var(--space-5); } .update { grid-template-columns: 1fr; gap: var(--space-2); } }

/* ---------- big CTA ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--border); padding: var(--space-8) var(--space-7); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-6); align-items: center; }
.cta-band canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cta-band > * { position: relative; }
.cta-band__copy { display: flex; flex-direction: column; gap: var(--space-4); }
.cta-band__side { display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-start; }
@media (max-width: 900px) { .cta-band { grid-template-columns: 1fr; padding: var(--space-6) var(--space-5); } }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); padding: var(--space-7) 0 var(--space-6); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: var(--space-5); }
.footer__brand { display: flex; flex-direction: column; gap: var(--space-3); }
.footer h4 { font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin: 0 0 var(--space-3); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer li a { font-size: 14px; color: var(--text-2); transition: color var(--motion-fast) var(--ease-ui); }
.footer li a:hover { color: var(--text); }
.footer__bottom { margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.footer__tag { font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: span 2; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } .footer__brand { grid-column: auto; } }

/* ---------- product page (GlowCubes) ---------- */
.product-hero { position: relative; overflow: hidden; padding: var(--space-7) 0 var(--space-8); }
.product-hero__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-6); align-items: center; }
.product-hero__copy { display: flex; flex-direction: column; gap: var(--space-4); }
.product-hero__wordmark { width: min(100%, 520px); }
.product-hero__art { position: relative; display: flex; justify-content: center; }
.product-hero__art .phone { width: min(100%, 340px); }
.bridge { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.gc-accent { --gc-a: #8B5CF6; --gc-b: #22D3EE; --gc-c: #34D399; --gc-d: #FBBF24; --gc-e: #FB7185; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: var(--radius-full); background: var(--surface); border: 1px solid var(--border); font-size: 13px; font-weight: 600; }
.chip i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.feature-card { padding: var(--space-5); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: var(--space-2); transition: transform var(--motion-standard) var(--ease-ui), border-color var(--motion-standard) var(--ease-ui); }
.feature-card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.feature-card .swatch { width: 36px; height: 36px; border-radius: 10px; margin-bottom: var(--space-2); }
.feature-card .h3 { font-size: 20px; line-height: 26px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

.modes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-3); }
.mode { padding: var(--space-4); border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--surface); display: flex; flex-direction: column; gap: 6px; }
.mode strong { font-family: var(--font-display); font-weight: 600; font-size: 16px; margin-top: 6px; }
.mode .mode__ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--card); color: var(--accent); }
.mode__ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.mode span { font-size: 13px; color: var(--text-3); }
@media (max-width: 1100px) { .modes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.gallery { display: flex; gap: var(--space-4); overflow-x: auto; scroll-snap-type: x mandatory; padding: var(--space-2) var(--gutter) var(--space-4); margin: 0 calc(-1 * var(--gutter)); scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { flex: 0 0 auto; width: min(72vw, 300px); margin: 0; scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; }
.gallery figcaption { font-size: 13px; color: var(--text-3); }
.gallery .phone { border-radius: 22px; }

.store-band { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-6); align-items: center; padding: var(--space-7); border-radius: 0; background: #0B1230; color: #F7F6F1; border: 1px solid #1f2a52; }
.store-band .h2, .store-band .lead { color: #F7F6F1; }
.store-band .lead { color: rgba(247,246,241,0.7); }
.store-band__side { display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-start; }
.store-band .small { color: rgba(247,246,241,0.55); }
@media (max-width: 900px) { .store-band { grid-template-columns: 1fr; padding: var(--space-6) var(--space-5); } }

/* ---------- apps / studio pages ---------- */
.page-hero { padding: var(--space-8) 0 var(--space-7); }
.page-hero__copy { display: flex; flex-direction: column; gap: var(--space-4); max-width: 820px; }
.stack-lines { font-family: var(--font-display); font-size: 40px; line-height: 48px; font-weight: 600; letter-spacing: -0.015em; color: var(--text-3); margin: 0; }
.stack-lines em { font-style: normal; color: var(--text); }
@media (max-width: 900px) { .stack-lines { font-size: 32px; line-height: 38px; } .page-hero { padding: var(--space-6) 0; } }

.two-col { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-7); align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: var(--space-5); } }

.concept-card { border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); background: transparent; }

.contact-form { display: grid; gap: var(--space-3); }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 500; color: var(--text-2); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 12px 14px; min-height: 48px;
  transition: border-color var(--motion-fast) var(--ease-ui), box-shadow var(--motion-fast) var(--ease-ui);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
@media (max-width: 600px) { .contact-form .row { grid-template-columns: 1fr; } }

/* ---------- legal ---------- */
.legal { max-width: 760px; }
.legal h1 { font-family: var(--font-display); font-size: 40px; line-height: 48px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 var(--space-2); }
.legal h2 { font-family: var(--font-display); font-size: 22px; line-height: 30px; font-weight: 600; margin: var(--space-6) 0 var(--space-2); }
.legal h3 { font-family: var(--font-display); font-size: 17px; line-height: 26px; font-weight: 600; margin: var(--space-4) 0 var(--space-1); }
.legal p, .legal li { color: var(--text-2); }
.legal ul { padding-left: 20px; }
.legal a { color: var(--accent); }
.legal code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.92em; background: var(--surface); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; }
.legal .box { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-4) var(--space-5); background: var(--surface); }

/* ---------- reveal / motion ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--motion-slow) var(--ease-ui), transform var(--motion-slow) var(--ease-ui); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 60ms; }
.reveal[data-delay="2"] { transition-delay: 120ms; }
.reveal[data-delay="3"] { transition-delay: 180ms; }
.reveal[data-delay="4"] { transition-delay: 240ms; }
@keyframes snap { 0% { transform: scale(1); } 55% { transform: scale(1.02); } 100% { transform: scale(1); } }

/* ---------- studio intro (≈1.25 s) ---------- */
.intro { position: fixed; inset: 0; z-index: 100; background: var(--ynctr-ink); display: grid; place-items: center; color: var(--ynctr-white); }
.intro.is-done { animation: intro-out 260ms var(--ease-ui) forwards; }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }
.intro__stage { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.intro__mark { width: 168px; height: 168px; overflow: visible; }
.intro__mark .n { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: n-in 180ms var(--ease-fast) forwards; }
.intro__mark .n1 { animation-delay: 120ms; } .intro__mark .n2 { animation-delay: 160ms; } .intro__mark .n3 { animation-delay: 200ms; }
.intro__mark .n0 { animation-delay: 430ms; }
.intro__mark .l { stroke-dasharray: 120; stroke-dashoffset: 120; animation: l-in 190ms var(--ease-ui) forwards; }
.intro__mark .l1, .intro__mark .l2, .intro__mark .l3 { animation-delay: 470ms; }
.intro__mark .snap { transform-box: fill-box; transform-origin: center; animation: mark-snap 150ms var(--ease-fast) 620ms both; }
.intro__mark .pulse { transform-box: fill-box; transform-origin: center; opacity: 0; animation: pulse 380ms var(--ease-ui) 760ms both; }
.intro__word { font-family: var(--font-display); font-weight: 700; font-size: 34px; letter-spacing: 0.08em; opacity: 0; animation: word-in 200ms var(--ease-ui) 900ms forwards; }
.intro__sig { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey-500); opacity: 0; animation: word-in 180ms var(--ease-ui) 1080ms forwards; }
@keyframes n-in { to { transform: scale(1); } }
@keyframes l-in { to { stroke-dashoffset: 0; } }
@keyframes mark-snap { 0% { transform: scale(1); } 50% { transform: scale(1.03); } 100% { transform: scale(1); } }
@keyframes pulse { 0% { opacity: 0.9; transform: scale(0.6); } 100% { opacity: 0; transform: scale(1.9); } }
@keyframes word-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .intro { display: none; }
}

.legal .meta { color: var(--text-3); font-size: 14px; }

/* ---------- apps: module grid hero (square = module) ---------- */
.hero--apps .hero__grid { align-items: center; }
.hero__art--grid { aspect-ratio: auto; display: flex; flex-direction: column; align-items: center; gap: var(--space-4); }
.modgrid { display: grid; grid-template-columns: repeat(4, 64px); grid-auto-rows: 64px; gap: 14px; }
.mod { display: block; border-radius: var(--radius-md); border: 1.5px solid var(--border-strong); background: var(--surface); }
.mod--b { background: var(--accent); border-color: var(--accent); }
.mod--l { background: var(--ynctr-lime); border-color: var(--ynctr-lime); }
.mod--o { background: transparent; border-style: dashed; }
.modgrid__cap { letter-spacing: 0.08em; text-transform: uppercase; }
@media (prefers-reduced-motion: no-preference) {
  .mod { animation: mod-in 360ms var(--ease-fast) both; animation-delay: calc(120ms + var(--i) * 45ms); }
  .mod--b { animation: mod-in 360ms var(--ease-fast) both, mod-breathe 5s var(--ease-ambient) 1.4s infinite; animation-delay: calc(120ms + var(--i) * 45ms), 1.4s; }
  .modgrid__cap { animation: c-fade 600ms var(--ease-ui) 1000ms both; }
}
@keyframes mod-in { from { opacity: 0; transform: scale(0.6); } 70% { transform: scale(1.03); } to { opacity: 1; transform: scale(1); } }
@keyframes mod-breathe { 0%, 100% { box-shadow: 0 0 0 0 rgba(88, 101, 242, 0); } 50% { box-shadow: 0 0 0 10px rgba(88, 101, 242, 0.14); } }
@media (max-width: 900px) {
  .modgrid { grid-template-columns: repeat(4, 56px); grid-auto-rows: 56px; gap: 12px; }
}

/* ---------- numbered rules ---------- */
.rules { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rules li { display: grid; grid-template-columns: 48px 1fr; gap: var(--space-3); padding: var(--space-4) 0; border-top: 1px solid var(--border); }
.rules li:last-child { border-bottom: 1px solid var(--border); }
.rules__n { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--accent); padding-top: 3px; }
.rules strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 26px; margin-bottom: 4px; }

/* ---------- compact product row ---------- */
.product-row { display: grid; grid-template-columns: 64px 1fr auto; gap: var(--space-3); align-items: center; padding: var(--space-3) var(--space-4) var(--space-3) var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); transition: transform var(--motion-standard) var(--ease-ui), border-color var(--motion-standard) var(--ease-ui); }
.product-row:hover { transform: translateY(-3px); border-color: var(--accent); }
.product-row img { width: 64px; height: 64px; border-radius: 14px; }
.product-row__text { display: flex; flex-direction: column; gap: 2px; }
.product-row__text strong { font-family: var(--font-display); font-size: 20px; line-height: 28px; }
.product-row__arrow { color: var(--accent); display: inline-flex; }
.product-row__arrow svg { width: 22px; height: 22px; }

/* while the studio intro plays, hold the hero choreography at frame 0 */
.intro-playing .constellation .mn, .intro-playing .constellation .ml, .intro-playing .constellation .hl,
.intro-playing .constellation .hn, .intro-playing .constellation .hsq, .intro-playing .constellation .mring { animation-play-state: paused; }

/* ---------- contact form status ---------- */
.form-msg { transition: color var(--motion-fast) var(--ease-ui); }
.form-msg.is-ok { color: var(--success); }
.form-msg.is-err { color: var(--error); }
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; }

/* ---------- GlowCubes lockup: layered so the wide wordmark fills its column without distortion ---------- */
.lockup { position: relative; width: 100%; max-width: 620px; height: 300px; --lk-board: 208px; --lk-text: 420px; --lk-tx: 168px; --lk-ty: 148px; }
.lockup--sm { max-width: 460px; height: 220px; --lk-board: 150px; --lk-text: 310px; --lk-tx: 120px; --lk-ty: 108px; }
.lockup > img { position: absolute; height: auto; }
.lockup__glow { position: absolute; inset: -30% -30% -40% -30%; pointer-events: none;
  background:
    radial-gradient(closest-side at 32% 44%, rgba(255, 214, 66, 0.22), rgba(255, 214, 66, 0.06) 55%, transparent 100%),
    radial-gradient(closest-side at 64% 62%, rgba(89, 199, 255, 0.18), rgba(89, 199, 255, 0.05) 55%, transparent 100%),
    radial-gradient(closest-side at 80% 34%, rgba(255, 108, 92, 0.14), rgba(255, 108, 92, 0.04) 55%, transparent 100%);
  background-size: 46% 62%, 42% 58%, 34% 48%; background-repeat: no-repeat;
  background-position: 18% 30%, 74% 76%, 90% 12%; }
[data-theme="light"] .lockup__glow { opacity: 0.7; }
.lockup__board { left: 0; top: 8px; width: var(--lk-board); transform: rotate(-6deg); filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.42)); z-index: 2; }
.lockup__text { left: var(--lk-tx); top: var(--lk-ty); width: var(--lk-text); filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.38)); z-index: 3; }
.lockup__cube { width: 44px; z-index: 1; opacity: 0.95; }
.lockup__cube--1 { left: 72%; top: 6%; width: 52px; transform: rotate(14deg); }
.lockup__cube--2 { left: 46%; top: 14%; width: 30px; transform: rotate(-18deg); filter: blur(0.6px); opacity: 0.8; }
.lockup__cube--3 { left: 30%; top: 82%; width: 38px; transform: rotate(22deg); z-index: 4; }
.lockup__cube--4 { left: 94%; top: 68%; width: 26px; transform: rotate(-10deg); filter: blur(0.8px); opacity: 0.75; }
@media (prefers-reduced-motion: no-preference) {
  .lockup__board { animation: lk-in 700ms var(--ease-fast) both; }
  .lockup__text { animation: lk-in 700ms var(--ease-fast) 120ms both; }
  .lockup__cube { animation: lk-float 9s var(--ease-ambient) infinite alternate; }
  .lockup__cube--2 { animation-duration: 12s; animation-delay: -3s; }
  .lockup__cube--3 { animation-duration: 10s; animation-delay: -6s; }
  .lockup__cube--4 { animation-duration: 13s; animation-delay: -2s; }
}
@keyframes lk-in { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@keyframes lk-float { from { translate: 0 0; } to { translate: 0 -12px; } }
@media (max-width: 900px) {
  .product-hero__grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .product-hero__art .phone { width: min(100%, 300px); }
  .lockup { max-width: 100%; height: 200px; --lk-board: 132px; --lk-text: calc(100% - 100px); --lk-tx: 100px; --lk-ty: 108px; }
  .lockup--sm { height: 190px; --lk-board: 124px; --lk-text: calc(100% - 92px); --lk-tx: 92px; --lk-ty: 100px; }
  .lockup__board { filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.4)); }
  .lockup__cube--1 { width: 40px; left: 62%; }
  .lockup__cube--3 { top: 78%; }
}
