/* ══════════════════════════════════════════════════════════
   Xalveon Studios — site.css
   Black & white. Two themes, one signature.
   Fonts: Manrope (SIL OFL 1.1) — self-hosted, /fonts/OFL.txt
   ══════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/manrope-v20-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/manrope-v20-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/manrope-v20-latin-800.woff2') format('woff2');
}

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

:root {
  --bg: #0A0A0A;
  --fg: #F5F7FA;
  --muted: #8B909A;
  --text-2: rgba(245,247,250,0.64);
  --border: rgba(255,255,255,0.09);
  --border-strong: rgba(255,255,255,0.22);
  --surface: rgba(255,255,255,0.032);
  --surface-2: rgba(255,255,255,0.06);
  --accent: #FFFFFF;
  --on-accent: #0A0A0A;
  --spot: rgba(255,255,255,0.055);
  --shadow-glow: rgba(255,255,255,0.06);
  --ease: cubic-bezier(0.33, 1, 0.68, 1);
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #F6F6F3;
  --fg: #0C0C0C;
  --muted: #62666D;
  --text-2: rgba(12,12,12,0.68);
  --border: rgba(10,10,10,0.11);
  --border-strong: rgba(10,10,10,0.3);
  --surface: rgba(10,10,10,0.03);
  --surface-2: rgba(10,10,10,0.055);
  --accent: #0C0C0C;
  --on-accent: #F6F6F3;
  --spot: rgba(10,10,10,0.05);
  --shadow-glow: rgba(10,10,10,0.05);
  color-scheme: light;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color 420ms var(--ease), color 420ms var(--ease);
}

::selection { background: var(--fg); color: var(--bg); }

a { color: inherit; }

/* ── Skip link ── */
.skip-link {
  position: absolute;
  left: 1rem; top: -3.5rem;
  z-index: 200;
  background: var(--accent); color: var(--on-accent);
  padding: 0.6rem 1.1rem;
  border-radius: 10px;
  font-size: 0.8rem; font-weight: 600;
  text-decoration: none;
  transition: top 200ms var(--ease);
}
.skip-link:focus-visible { top: 1rem; }

/* ── Focus states ── */
:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Grain overlay ── */
body::after {
  content: '';
  position: fixed; inset: 0;
  z-index: 1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.35;
  mix-blend-mode: overlay;
}

/* ── Particles ── */
#particles {
  position: fixed; inset: 0;
  z-index: 0; pointer-events: none;
}

/* ══════════════ NAV ══════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem clamp(1rem, 4vw, 2.5rem);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms var(--ease), background-color 300ms var(--ease);
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .nav.scrolled { background: var(--bg); }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--fg);
  min-height: 44px;
}
.brand svg { width: 26px; height: 26px; display: block; }
.brand .word { font-size: 0.95rem; font-weight: 800; letter-spacing: -0.01em; }
.brand .word span { font-weight: 400; color: var(--muted); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2.5vw, 1.75rem);
}
.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.6rem 0.2rem;
  transition: color 200ms var(--ease);
}
.nav-links a:hover { color: var(--fg); }

.nav-actions { display: flex; align-items: center; gap: 0.35rem; }

@media (max-width: 720px) {
  .nav { padding: 0.5rem 0.9rem; }
  .nav .brand .word { display: none; }
  .nav-links { gap: 0.9rem; }
  .nav-links a { font-size: 0.78rem; }
  .lang-switch { min-width: 38px; }
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px; min-height: 44px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  border-radius: 10px;
  transition: color 200ms var(--ease), background-color 200ms var(--ease);
}
.lang-switch:hover { color: var(--fg); background: var(--surface-2); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: transparent;
  color: var(--text-2);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: color 200ms var(--ease), background-color 200ms var(--ease);
}
.theme-toggle:hover { color: var(--fg); background: var(--surface-2); }
.theme-toggle svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-sun { display: none; }
html[data-theme="light"] .theme-toggle .icon-sun { display: block; }
html[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ══════════════ LAYOUT ══════════════ */
.page { position: relative; z-index: 2; }
.wrap { width: min(1080px, 100% - 3rem); margin-inline: auto; }

section { position: relative; }

.eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head .eyebrow { margin-bottom: 0.9rem; }
.section-head h2 {
  font-size: clamp(1.7rem, 4.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.section-head .section-sub {
  margin-top: 0.9rem;
  max-width: 560px;
  color: var(--text-2);
  font-size: 0.98rem;
}

/* ══════════════ HERO ══════════════ */
.hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 1.5rem 4rem;
  overflow: hidden;
}

.hero-watermark {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}
.js .hero-watermark { opacity: 1; }
.hero-watermark svg {
  width: min(150vmin, 1300px);
  height: auto;
  color: var(--fg);
  opacity: 0.05;
}
.js .hero-watermark {
  -webkit-mask-image: radial-gradient(340px circle at var(--mx, 50%) var(--my, 42%), rgba(0,0,0,0.9), transparent 72%);
  mask-image: radial-gradient(340px circle at var(--mx, 50%) var(--my, 42%), rgba(0,0,0,0.9), transparent 72%);
}

.hero-spot {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 42%), var(--spot), transparent 68%);
}

.hero-inner { position: relative; z-index: 2; max-width: 880px; }

.hero-logo { width: clamp(88px, 15vw, 128px); margin: 0 auto 2.2rem; }
.hero-logo svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 0 44px var(--shadow-glow)); }

.hero .eyebrow {
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 1.55s forwards;
  margin-bottom: 1.4rem;
}

.hero h1 {
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 1.7s forwards;
  font-size: clamp(2.1rem, 6.4vw, 4.3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.06;
  margin-bottom: 1.5rem;
}

.hero .lede {
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 1.9s forwards;
  max-width: 620px;
  margin: 0 auto 2.5rem;
  color: var(--text-2);
  font-size: clamp(0.95rem, 2vw, 1.08rem);
}

.cta-row {
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 2.1s forwards;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0;
  animation: fadeIn 0.8s ease 2.7s forwards;
}
.scroll-cue a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: color 200ms var(--ease);
}
.scroll-cue a:hover { color: var(--fg); }
.scroll-cue svg {
  width: 15px; height: 15px;
  stroke: currentColor; fill: none; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
  animation: bob 2.2s ease-in-out infinite;
}

/* ── Logo build animation (hero) ── */
.xlogo .xblade { fill: currentColor; transform-origin: 0 0; }
.js .xlogo .xg0 { animation: xspin0 1.15s var(--ease) 0.15s both; }
.js .xlogo .xg1 { animation: xspin1 1.15s var(--ease) 0.15s both; }
.js .xlogo .xg2 { animation: xspin2 1.15s var(--ease) 0.15s both; }
.js .xlogo .xg3 { animation: xspin3 1.15s var(--ease) 0.15s both; }
.xlogo .xvoid { fill: var(--bg); transition: fill 420ms var(--ease); }
.js .xlogo .xvoid { animation: xvoidgrow 0.25s var(--ease) 1.3s both; }
@keyframes xspin0 { 0% { transform: rotate(45deg) scale(0); } 100% { transform: rotate(765deg) scale(1); } }
@keyframes xspin1 { 0% { transform: rotate(135deg) scale(0); } 100% { transform: rotate(855deg) scale(1); } }
@keyframes xspin2 { 0% { transform: rotate(225deg) scale(0); } 100% { transform: rotate(945deg) scale(1); } }
@keyframes xspin3 { 0% { transform: rotate(315deg) scale(0); } 100% { transform: rotate(1035deg) scale(1); } }
@keyframes xvoidgrow { from { r: 0; } to { r: 34; } }

/* ══════════════ BUTTONS ══════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 50px;
  padding: 0 1.8rem;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms var(--ease), opacity 180ms var(--ease), background-color 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease);
  will-change: transform;
}
.btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 180ms var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent); }
.btn-primary:hover { opacity: 0.88; }

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

/* ══════════════ STATEMENT BAND (inversion) ══════════════ */
.band {
  background: var(--fg);
  color: var(--bg);
  padding: clamp(5rem, 12vw, 9rem) 0;
  text-align: center;
  transition: background-color 420ms var(--ease), color 420ms var(--ease);
}
.js .band .band-inner {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.1s var(--ease);
}
.js .band.in-view .band-inner { clip-path: inset(0 0 -8% 0); }

.band .eyebrow { color: color-mix(in srgb, var(--bg) 55%, var(--fg)); margin-bottom: 1.6rem; }
.band h2 {
  font-size: clamp(2.2rem, 7vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin-bottom: 1.8rem;
}
.band p.band-text {
  max-width: 700px;
  margin: 0 auto;
  font-size: clamp(0.98rem, 2.2vw, 1.15rem);
  line-height: 1.75;
  color: color-mix(in srgb, var(--bg) 82%, var(--fg));
}
@supports not (color: color-mix(in srgb, red 50%, blue)) {
  .band .eyebrow, .band p.band-text { color: inherit; opacity: 0.75; }
}

/* ══════════════ REVEAL ══════════════ */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(5px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease), filter 700ms var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.in-view { opacity: 1; transform: translateY(0); filter: blur(0); }

/* ══════════════ SERVICES ══════════════ */
.services { padding: clamp(5rem, 11vw, 8.5rem) 0; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 720px) { .services-grid { grid-template-columns: 1fr; } }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem 1.9rem 1.9rem;
  overflow: hidden;
  transition: border-color 250ms var(--ease), transform 250ms var(--ease), background-color 250ms var(--ease);
}
.card:hover { border-color: var(--border-strong); transform: translateY(-3px); background: var(--surface-2); }

.card .card-icon {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 1.3rem;
  transition: border-color 250ms var(--ease);
}
.card:hover .card-icon { border-color: var(--border-strong); }
.card .card-icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.card h3 { font-size: 1.08rem; font-weight: 800; letter-spacing: -0.015em; margin-bottom: 0.5rem; }
.card p { font-size: 0.9rem; line-height: 1.7; color: var(--text-2); }

.card .card-index {
  position: absolute;
  top: 1.5rem; right: 1.7rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--muted);
  opacity: 0.6;
}

/* ══════════════ PROCESS ══════════════ */
.process { padding: clamp(5rem, 11vw, 8.5rem) 0; border-top: 1px solid var(--border); }

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
@media (max-width: 820px) { .process-grid { grid-template-columns: 1fr; } }

.step {
  position: relative;
  padding: 1.9rem 1.8rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  transition: border-color 250ms var(--ease), transform 250ms var(--ease);
}
.step:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.step .step-num {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--muted);
  margin-bottom: 1.1rem;
}
.step h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 0.45rem; letter-spacing: -0.01em; }
.step p { font-size: 0.88rem; line-height: 1.7; color: var(--text-2); }

/* ══════════════ WHY ══════════════ */
.why { padding: clamp(5rem, 11vw, 8.5rem) 0; border-top: 1px solid var(--border); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.6rem, 4vw, 3rem) clamp(1.6rem, 4vw, 3.5rem);
}
@media (max-width: 720px) { .why-grid { grid-template-columns: 1fr; } }

.why-item { display: flex; gap: 1.1rem; align-items: flex-start; }
.why-item .why-mark {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  margin-top: 0.15rem;
}
.why-item .why-mark svg { width: 100%; height: 100%; color: var(--fg); }
.why-item h3 { font-size: 1.02rem; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 0.4rem; }
.why-item p { font-size: 0.9rem; line-height: 1.7; color: var(--text-2); }

/* ══════════════ APPS / CONFLUO ══════════════ */
.apps { padding: clamp(5rem, 11vw, 8.5rem) 0; border-top: 1px solid var(--border); }

.app-card {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: clamp(1.8rem, 4vw, 3rem);
  transition: border-color 250ms var(--ease);
}
.app-card:hover { border-color: var(--border-strong); }
@media (max-width: 720px) { .app-card { flex-direction: column; text-align: center; } }

.app-icon {
  flex: 0 0 auto;
  width: 92px; height: 92px;
  border-radius: 22px;
  box-shadow: 0 0 36px var(--shadow-glow);
}
.app-body h3 { font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.6rem; }
.app-body p { font-size: 0.92rem; line-height: 1.75; color: var(--text-2); max-width: 520px; margin-bottom: 1.3rem; }

.chips { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 1.6rem; }
@media (max-width: 720px) { .chips { justify-content: center; } }
.chip {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.38rem 0.85rem;
}
.app-cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }
@media (max-width: 720px) { .app-cta-row { justify-content: center; } }
.store-note { font-size: 0.7rem; letter-spacing: 0.08em; color: var(--muted); }

.app-card.upcoming { margin-top: 1rem; border-style: dashed; }
.app-card.upcoming .app-body p { margin-bottom: 1rem; }
.app-icon-draw {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--border-strong);
  background: var(--surface-2);
  color: var(--fg);
  box-shadow: none;
}
.app-icon-draw svg { width: 42px; height: 42px; stroke: currentColor; fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* ══════════════ FAQ ══════════════ */
.faq { padding: clamp(5rem, 11vw, 8.5rem) 0; border-top: 1px solid var(--border); }
.faq-list { max-width: 760px; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  margin-bottom: 0.8rem;
  transition: border-color 250ms var(--ease);
}
.faq-item:hover, .faq-item[open] { border-color: var(--border-strong); }

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-x {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  position: relative;
  transition: transform 300ms var(--ease);
}
.faq-item summary .faq-x::before,
.faq-item summary .faq-x::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 14px; height: 1.6px;
  background: var(--muted);
  transform: translate(-50%, -50%);
  transition: background 200ms var(--ease);
}
.faq-item summary .faq-x::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] summary .faq-x { transform: rotate(45deg); }
.faq-item summary:hover .faq-x::before, .faq-item summary:hover .faq-x::after { background: var(--fg); }

.faq-item .faq-a { padding: 0 1.4rem 1.3rem; font-size: 0.9rem; line-height: 1.75; color: var(--text-2); max-width: 640px; }

/* ══════════════ FINAL CTA ══════════════ */
.final-cta {
  padding: clamp(6rem, 13vw, 10rem) 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.final-cta h2 {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  max-width: 760px;
  margin: 0 auto 1.1rem;
}
.final-cta p { color: var(--text-2); font-size: 1rem; margin-bottom: 2.4rem; }

/* ══════════════ FOOTER ══════════════ */
.site-footer {
  position: relative; z-index: 2;
  border-top: 1px solid var(--border);
  padding: 3rem 0 2.5rem;
}
.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.2rem;
}
.footer-brand { max-width: 320px; }
.footer-brand .brand { margin-bottom: 0.8rem; min-height: 0; }
.footer-brand p { font-size: 0.82rem; line-height: 1.7; color: var(--muted); }

.footer-nav { display: flex; gap: clamp(2rem, 5vw, 4rem); flex-wrap: wrap; }

.footer-5col .footer-brand { max-width: 230px; }
.footer-5col .footer-brand p { font-size: 0.78rem; }
.footer-5col .footer-nav { gap: clamp(1.1rem, 2.6vw, 2.4rem); }
.footer-col h4 {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.footer-col a {
  display: block;
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.84rem;
  padding: 0.28rem 0;
  transition: color 200ms var(--ease);
}
.footer-col a:hover { color: var(--fg); }

.social-row { display: flex; gap: 0.6rem; padding-top: 0.28rem; }
.footer-col a.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-2);
  transition: color 200ms var(--ease), border-color 200ms var(--ease), transform 200ms var(--ease);
}
.footer-col a.social-link:hover { color: var(--fg); border-color: var(--border-strong); transform: translateY(-2px); }
.social-link svg { width: 17px; height: 17px; display: block; }

.footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--muted);
}
.footer-meta a { color: var(--muted); text-decoration: none; transition: color 200ms var(--ease); }
.footer-meta a:hover { color: var(--fg); }

/* ══════════════ SUBPAGES (studio / placeholder) ══════════════ */
.subpage { padding: clamp(9rem, 16vw, 12rem) 0 clamp(4rem, 8vw, 6rem); }
.subpage-narrow { max-width: 760px; }

.subpage h1 {
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0.9rem 0 1.4rem;
}
.subpage .lede { font-size: clamp(1rem, 2.2vw, 1.12rem); color: var(--text-2); max-width: 640px; }

.prose { margin-top: clamp(2.5rem, 6vw, 4rem); }
.prose h2 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 3rem 0 1.1rem;
}
.prose p { font-size: 0.96rem; line-height: 1.8; color: var(--text-2); margin-bottom: 1rem; max-width: 660px; }
.prose p strong { color: var(--fg); font-weight: 700; }

.manifest-list { display: grid; gap: 0.9rem; margin-top: 0.4rem; }
.manifest-item {
  display: flex; gap: 1.2rem; align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  padding: 1.4rem 1.5rem;
  transition: border-color 250ms var(--ease);
}
.manifest-item:hover { border-color: var(--border-strong); }
.manifest-item .m-num {
  flex: 0 0 auto;
  font-size: 1.6rem; font-weight: 800; line-height: 1.2;
  color: transparent;
  -webkit-text-stroke: 1px var(--muted);
}
.manifest-item h3 { font-size: 1rem; font-weight: 800; margin-bottom: 0.35rem; letter-spacing: -0.01em; }
.manifest-item p { font-size: 0.9rem; line-height: 1.7; color: var(--text-2); }

/* ── App landing (Confluo & Co.) ── */
.app-hero-icon {
  width: clamp(92px, 14vw, 116px);
  height: auto;
  border-radius: 26px;
  display: block;
  margin: 0 auto 2rem;
  box-shadow: 0 0 48px var(--shadow-glow);
}
.store-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
}
.store-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 172px;
  padding: 0.7rem 1.3rem;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  text-decoration: none;
  color: var(--fg);
  transition: border-color 200ms var(--ease), background-color 200ms var(--ease);
}
.store-badge:hover { border-color: var(--fg); background: var(--surface); }
.store-badge .sb-soon {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.store-badge .sb-name { font-size: 0.98rem; font-weight: 800; letter-spacing: -0.01em; }

.app-disclaimer {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 14px;
  padding: 1.1rem 1.35rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
.app-disclaimer p { font-size: 0.8rem; line-height: 1.7; color: var(--muted); margin: 0; }

/* ── Legal pages ── */
.legal-content { max-width: 720px; }
.legal-content h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 0.6rem;
}
.legal-content .last-updated {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 3rem;
}
.legal-content section { margin-bottom: 2.5rem; }
.legal-content h2 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.legal-content p { font-size: 0.92rem; line-height: 1.8; color: var(--text-2); margin-bottom: 0.6rem; }
.legal-content strong { color: var(--fg); }
.legal-content ul, .legal-content ol { padding-left: 1.25rem; margin-bottom: 0.75rem; }
.legal-content li { font-size: 0.92rem; line-height: 1.8; color: var(--text-2); margin-bottom: 0.25rem; }
.legal-content a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border-strong);
  transition: text-decoration-color 200ms var(--ease);
}
.legal-content a:hover { text-decoration-color: var(--fg); }
.legal-content .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
}
.legal-content .card p { margin: 0; }
.legal-content .card p + p { margin-top: 0.25rem; }
.legal-content .translation-notice {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 2.5rem;
}
.legal-content .translation-notice p { font-size: 0.8rem; color: var(--muted); margin: 0; line-height: 1.7; }
.legal-content .notice {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 2.5rem 0 0;
}
.legal-content .notice p { font-size: 0.8rem; color: var(--muted); margin: 0; line-height: 1.7; }

/* ── Placeholder (coming soon) ── */
.placeholder-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 1.5rem 4rem;
}
.placeholder-page .badge {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  margin-bottom: 1.8rem;
}
.placeholder-page h1 {
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 1.2rem;
  max-width: 720px;
}
.placeholder-page p { color: var(--text-2); font-size: 1rem; max-width: 520px; margin-bottom: 2.4rem; }
.placeholder-page .mark { width: 74px; margin-bottom: 2.4rem; }
.placeholder-page .mark svg { width: 100%; height: auto; color: var(--fg); }

/* ══════════════ KEYFRAMES ══════════════ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ══════════════ 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;
  }
  .hero .eyebrow, .hero h1, .hero .lede, .cta-row, .scroll-cue { opacity: 1; animation: none; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .js .band .band-inner { clip-path: none; }
  .js .hero-watermark {
    -webkit-mask-image: radial-gradient(46% 46% at 50% 42%, rgba(0,0,0,0.9), transparent 78%);
    mask-image: radial-gradient(46% 46% at 50% 42%, rgba(0,0,0,0.9), transparent 78%);
  }
  #particles { display: none; }
}
