/* ==========================================================================
   Emergen · Artificial Life — site
   Tokens vindos do protótipo do jogo (tema.js): Soul é o padrão.
   ========================================================================== */

:root {
  --a: #4f6fc4; --b: #7d78cf; --c: #c79bd9;
  --glow: 233,214,255; --lav: 240,228,255;
  --rim1: #d9b8ff; --rim2: #f1dcff;
  --deep: 14,12,48; --ink: 40,37,102; --ink2: 80,74,170;
  --l1: #46408f; --l2: #302c76; --l3: #26235f;
  --mute: #d4cff0; --soft: #ece8ff;

  --warm: 255,245,236;            /* vidro quente dos botões do jogo */
  --warm-line: 255,248,240;
  --gen: linear-gradient(90deg, #bdeaff 0%, #a8f0e4 55%, #d2f5c4 100%);
  --ease: cubic-bezier(.25,.8,.25,1);
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --depth: 0;
}
[data-theme="abissal"] { --a:#173a57; --b:#2a5f78; --c:#5b97a0; --glow:200,238,240; --lav:220,242,244; --rim1:#9fdcdc; --rim2:#d8f4f2; --deep:4,16,24; --ink:12,42,60; --ink2:34,92,112; --l1:#24586c; --l2:#173f55; --l3:#0f2c40; --mute:#c4dfe2; --soft:#e2f2f3; }
[data-theme="ardosia"] { --a:#2a3a55; --b:#475d80; --c:#8399b5; --glow:222,232,246; --lav:228,236,248; --rim1:#b6c9e6; --rim2:#e4ecf8; --deep:8,12,22; --ink:26,38,60; --ink2:66,86,122; --l1:#415678; --l2:#2c3b58; --l3:#1f2a40; --mute:#c9d4e4; --soft:#e6ecf5; }
[data-theme="noturno"] { --a:#1a2249; --b:#344686; --c:#6787c0; --glow:206,220,255; --lav:222,230,255; --rim1:#aabcff; --rim2:#dfe6ff; --deep:6,8,24; --ink:18,24,64; --ink2:52,68,140; --l1:#303f7c; --l2:#1f2858; --l3:#141a3e; --mute:#c6cff0; --soft:#e4e9ff; }
[data-theme="musgo"]   { --a:#1f3833; --b:#3a6255; --c:#86a487; --glow:226,242,222; --lav:228,242,228; --rim1:#bfe0c3; --rim2:#e6f4e4; --deep:6,16,14; --ink:20,44,38; --ink2:54,98,86; --l1:#365a4e; --l2:#243e37; --l3:#182c27; --mute:#cbdccc; --soft:#e6f0e4; }
[data-theme="grafite"] { --a:#23262f; --b:#3c4350; --c:#727c8c; --glow:232,236,246; --lav:232,236,244; --rim1:#c8d0de; --rim2:#eef1f6; --deep:8,9,12; --ink:26,28,34; --ink2:70,78,92; --l1:#3a404c; --l2:#2a2e37; --l3:#1d2027; --mute:#cfd4dc; --soft:#eceff4; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  font-family: 'Manrope', -apple-system, 'Segoe UI', system-ui, sans-serif;
  font-weight: 400; line-height: 1.6; color: #fff;
  background: var(--l2);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, figure, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: rgba(var(--glow), .45); color: #fff; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 12px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: #fff; color: rgb(var(--ink)); font-weight: 600; transition: top .2s; }
.skip:focus { top: 16px; }

/* ---------- fundo: superfície (Soul) → profundidade (lâmina) ---------- */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.bg > * { position: absolute; inset: 0; }
.bg-surface { background: linear-gradient(-31deg, var(--a) 0%, var(--b) 55%, var(--c) 100%); transition: background .8s; }
.bg-deep { background: linear-gradient(-31deg, var(--l3) 0%, var(--l2) 55%, var(--l1) 100%); opacity: var(--depth); }
.bg-glow { background: radial-gradient(circle at 70% 46%, rgba(var(--glow), .3) 0%, rgba(var(--glow), 0) 52%); opacity: calc(1 - var(--depth) * .75); }
#particles { width: 100%; height: 100%; }
.bg-grain { opacity: .09; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' seed='8' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- tipografia ---------- */
.wordmark { display: inline-flex; font-weight: 300; letter-spacing: .3em; font-size: 17px; line-height: 1; white-space: nowrap; }
.wordmark b { font-weight: 300; background: var(--gen); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wordmark.sm { font-size: 14px; }

.eyebrow, .kicker { display: flex; align-items: center; gap: 12px; font-size: 11.5px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--soft); }
.eyebrow i { width: 28px; height: 1px; background: rgba(255,255,255,.7); }
.kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px rgba(var(--glow), 1), 0 0 22px rgba(var(--glow), .8); }

h1 { font-weight: 200; font-size: clamp(44px, 5.4vw, 84px); line-height: 1.02; letter-spacing: -.028em; text-wrap: balance; text-shadow: 0 2px 30px rgba(var(--deep), .22); }
h2 { font-weight: 200; font-size: clamp(36px, 4.7vw, 68px); line-height: 1.04; letter-spacing: -.025em; text-wrap: balance; }
h1 em, h2 em { font-style: normal; font-weight: 300; background: var(--gen); -webkit-background-clip: text; background-clip: text; color: transparent; }
h3 { font-weight: 300; letter-spacing: -.01em; }

/* ---------- botões ---------- */
.btn { position: relative; display: inline-flex; align-items: center; gap: 12px; border-radius: 999px; font-weight: 600; white-space: nowrap; cursor: pointer; isolation: isolate; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .35s var(--ease), background .3s; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.ico-heart path { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }
.btn-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.btn-text b { font-weight: 600; font-size: 16.5px; letter-spacing: .005em; }
.btn-text small { font-size: 10.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; opacity: .62; margin-top: 3px; }
.btn-orb { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: radial-gradient(circle at 38% 32%, rgba(var(--ink2), 1), rgba(var(--ink), 1)); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 4px 12px rgba(var(--ink), .35); }
.btn-orb.glass { background: radial-gradient(circle at 38% 32%, rgba(255,255,255,.42), rgba(255,255,255,.12)); border: 1px solid rgba(255,255,255,.65); box-shadow: 0 0 9px rgba(255,236,220,.13), inset 0 0 12px rgba(255,255,255,.18); }

.btn-pearl { color: rgb(var(--ink)); background: linear-gradient(180deg, #ffffff 0%, #f4eeff 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.95), 0 12px 32px rgba(var(--deep), .28), 0 0 42px rgba(var(--glow), .55); }
.btn-pearl::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(105deg, transparent 30%, rgba(var(--glow), .55) 48%, rgba(255,255,255,.9) 52%, transparent 70%);
  background-size: 260% 100%; background-position: 140% 0; animation: sheen 5.5s var(--ease) infinite 1.5s; }
.btn-pearl:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px #fff, 0 16px 40px rgba(var(--deep), .32), 0 0 60px rgba(var(--glow), .8); }
.btn-pearl:active { transform: translateY(0) scale(.985); }
@keyframes sheen { 0%, 62% { background-position: 140% 0; } 100% { background-position: -40% 0; } }

.btn-glass { color: #fff; background: rgba(var(--warm), .18); border: 1px solid rgba(var(--warm-line), .75);
  box-shadow: 0 0 14px rgba(255,236,220,.22), inset 0 1px 0 rgba(255,255,255,.32); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn-glass:hover { background: rgba(var(--warm), .3); transform: translateY(-2px); }

.btn-sm { height: 40px; padding: 0 18px 0 14px; font-size: 13.5px; gap: 8px; }
.btn-sm svg { width: 16px; height: 16px; }
.btn-md { height: 54px; padding: 0 26px 0 22px; font-size: 15.5px; }
.btn-lg { height: 66px; padding: 0 28px 0 10px; }
.btn-xl { height: 78px; padding: 0 36px 0 12px; }
.btn-xl .btn-orb { width: 56px; height: 56px; }
.btn-xl .btn-text b { font-size: 19px; }

/* ---------- topo ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 30; transition: background .4s, border-color .4s, backdrop-filter .4s; border-bottom: 1px solid transparent; }
.top.is-scrolled { background: rgba(var(--deep), .32); border-bottom-color: rgba(255,255,255,.1); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); }
.top-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.top .brand { opacity: 0; transform: translateY(-6px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.top.is-past-brand .brand { opacity: 1; transform: none; }
.brand img { width: 46px; height: auto; filter: drop-shadow(0 4px 12px rgba(var(--deep), .3)); }
.top-nav { display: flex; gap: 6px; }
.top-nav a { padding: 8px 14px; border-radius: 14px; font-size: 13.5px; color: var(--soft); transition: background .25s, color .25s; }
.top-nav a:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; min-height: max(680px, 100vh); min-height: max(680px, 100svh); display: flex; align-items: center; padding: 108px 0 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: clamp(24px, 4vw, 72px); align-items: center; }
.hero-copy { position: relative; display: flex; flex-direction: column; gap: 24px; }
.hero-copy::before { content: ""; position: absolute; inset: -18% -14% -18% -30%; z-index: -1; background: radial-gradient(ellipse at 40% 50%, rgba(var(--deep), .22), rgba(var(--deep), 0) 68%); }
.hero-brand { display: flex; align-items: center; gap: clamp(16px, 2vw, 26px); margin-bottom: 6px; }
.hero-brand img { width: clamp(96px, 10vw, 148px); flex-shrink: 0; filter: drop-shadow(0 10px 26px rgba(var(--deep), .35)); animation: float 9s ease-in-out infinite; }
.hero-brand-text { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.hero-wordmark { display: flex; font-weight: 300; font-size: clamp(30px, 3.6vw, 54px); letter-spacing: .3em; line-height: 1; white-space: nowrap; }
.hero-wordmark b { font-weight: 300; background: var(--gen); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(10.5px, .9vw, 13px); font-weight: 500; letter-spacing: .5em; text-transform: uppercase; color: var(--soft); white-space: nowrap; }
.lead { font-size: clamp(16.5px, 1.3vw, 19px); line-height: 1.6; max-width: 34em; color: #fff; font-weight: 400; opacity: .94; text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.hero-note { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); opacity: .85; }

.hero-dish { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.dish { position: relative; width: min(620px, 100%); aspect-ratio: 1; touch-action: manipulation; cursor: crosshair; }
.dish-halo { position: absolute; inset: -14%; border-radius: 50%; background: radial-gradient(circle, rgba(var(--glow), .34) 0%, rgba(var(--glow), 0) 62%); pointer-events: none; }
.dish-glass { position: absolute; inset: 0; border-radius: 50%; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  background: radial-gradient(circle at 46% 42%, rgba(var(--lav), .18) 0%, rgba(var(--lav), .26) 72%, rgba(var(--lav), .46) 100%);
  box-shadow: 0 40px 90px rgba(var(--deep), .3); }
#sim { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; }
.dish-rim { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.dish-rim .rim1 { stroke: var(--rim1); } .dish-rim .rim2 { stroke: var(--rim2); }
.dish-pill { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; border-radius: 999px; font-size: 12.5px; color: #fff;
  background: rgba(var(--ink), .32); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: opacity .6s; }
.dish-pill i { width: 7px; height: 7px; border-radius: 50%; background: #bff0c8; box-shadow: 0 0 8px #bff0c8; animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }

.scroll-cue { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; width: 26px; height: 42px; border-radius: 14px; border: 1.5px solid rgba(255,255,255,.55); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- seções ---------- */
.sec { position: relative; padding-block: clamp(64px, 8vw, 120px); }
.sec-head { display: flex; flex-direction: column; gap: 20px; max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head.center { align-items: center; text-align: center; margin-inline: auto; }
.sec-head p, .split-copy p { font-size: clamp(16px, 1.2vw, 18px); line-height: 1.7; color: var(--soft); max-width: 36em; text-wrap: pretty; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.split-rev > :first-child { order: 2; }
.split-copy { display: flex; flex-direction: column; gap: 20px; }
.split-copy h2 { margin-bottom: 4px; }

/* ---------- mídia (vídeo / GIF / trailer) e placeholders ---------- */
.media { position: relative; border-radius: 30px; overflow: hidden; isolation: isolate;
  border: 1px solid rgba(255,255,255,.16);
  background: radial-gradient(ellipse at 50% 28%, rgba(var(--ink2), .55) 0%, rgba(var(--ink), .65) 55%, rgba(var(--deep), .8) 100%);
  box-shadow: 0 34px 90px rgba(var(--deep), .45), inset 0 1px 0 rgba(255,255,255,.14); }
.media-wide { aspect-ratio: 16 / 9; }
.media-video { aspect-ratio: 16 / 10; }
.media > video, .media > img.media-el, .media > iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.media.is-loaded .ph { display: none; }
.ph { position: absolute; inset: 0; display: grid; place-items: center; }
.ph::after { content: ""; position: absolute; inset: 14px; border-radius: 20px; border: 1px dashed rgba(255,255,255,.16); pointer-events: none; }
.ph-art { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.ph-art img { width: 54%; opacity: .16; filter: blur(1.5px) saturate(.85); animation: float 9s ease-in-out infinite; }
.ph-art-logo img { width: 30%; opacity: .22; filter: blur(1px); }
.ph-art-colony img { width: 58%; }
.ph-art-cell img { width: 62%; }
.ph-art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(var(--ink), .55) 0%, rgba(var(--ink), 0) 46%); }
.ph-body { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 24px; }
.ph-body b { font-weight: 300; font-size: clamp(18px, 2vw, 26px); letter-spacing: -.01em; }
.ph-play { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 38% 32%, rgba(255,255,255,.42), rgba(255,255,255,.1)); border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 0 24px rgba(var(--glow), .35), inset 0 0 14px rgba(255,255,255,.2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ph-play svg { width: 28px; height: 28px; margin-left: 3px; }
.ph-chip { font-size: 10.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; background: rgba(var(--warm), .14); border: 1px solid rgba(var(--warm-line), .5); }
.ph-file { display: none; font: 500 12px/1.4 ui-monospace, 'SFMono-Regular', Menlo, monospace; padding: 4px 10px; border-radius: 8px; background: rgba(0,0,0,.35); color: #ffe7c7; }
.show-placeholders .ph-file { display: block; }
.media.has-poster { cursor: pointer; }
.media .yt-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* mitose */
#mitose { overflow: hidden; }
.scope-fig { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.scope { position: relative; width: min(560px, 100%); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 46% 42%, rgba(var(--lav), .1) 0%, rgba(var(--lav), .18) 72%, rgba(var(--lav), .34) 100%);
  box-shadow: 0 0 0 1.6px rgba(255,255,255,.9), 0 0 34px rgba(var(--glow), .5), inset 0 0 50px rgba(var(--lav), .18), 0 40px 90px rgba(var(--deep), .4); }
.scope::before { content: ""; position: absolute; inset: -16%; border-radius: 50%; z-index: -1; background: radial-gradient(circle, rgba(var(--glow), .22), rgba(var(--glow), 0) 62%); }
.scope img { width: 96%; }
.scope-fig figcaption { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); opacity: .75; }

/* ---------- catálogo de células ---------- */
.cells { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: stretch; }
.cells-tabs { display: flex; flex-direction: column; gap: 6px; }
.cells-tabs button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 18px; border-radius: 18px; border: 1px solid transparent; background: transparent; cursor: pointer; text-align: left; font-size: 15.5px; color: var(--soft); transition: background .25s, border-color .25s, color .25s; }
.cells-tabs button::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 10px var(--dot); flex-shrink: 0; }
.cells-tabs button:hover { background: rgba(255,255,255,.07); color: #fff; }
.cells-tabs button[aria-selected="true"] { color: #fff; background: rgba(var(--warm), .14); border-color: rgba(var(--warm-line), .6); box-shadow: 0 0 14px rgba(255,236,220,.12), inset 0 1px 0 rgba(255,255,255,.2); }

.cells-stage { position: relative; min-height: 560px; border-radius: 34px; overflow: hidden; border: 1px solid rgba(255,255,255,.14);
  background: radial-gradient(ellipse at 50% 50%, rgba(var(--ink2), .35), rgba(var(--deep), .35)); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 30px 80px rgba(var(--deep), .35); }
.stage-scope { position: absolute; left: 30%; top: 50%; width: 0; height: 0; pointer-events: none; }
.stage-scope span { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid rgba(255,255,255,.07); translate: -50% -50%; }
.stage-scope span:nth-child(1) { width: 340px; height: 340px; }
.stage-scope span:nth-child(2) { width: 520px; height: 520px; border-style: dashed; border-color: rgba(255,255,255,.05); }
.stage-scope span:nth-child(3) { width: 760px; height: 760px; }
.cell-panel { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: center; min-height: 560px; padding: clamp(24px, 4vw, 48px);
  background: radial-gradient(circle at 30% 50%, rgba(var(--tint), .26) 0%, rgba(var(--tint), 0) 50%); }
.cell-panel.is-entering .cell-art img { animation: cellIn .8s var(--ease) both, float 8s ease-in-out .8s infinite; }
.cell-panel.is-entering .cell-info > * { animation: fadeUp .7s var(--ease) both; }
.cell-panel.is-entering .cell-info > :nth-child(2) { animation-delay: .06s; }
.cell-panel.is-entering .cell-info > :nth-child(3) { animation-delay: .12s; }
.cell-panel.is-entering .cell-info > :nth-child(4) { animation-delay: .18s; }
.cell-art { display: grid; place-items: center; }
.cell-art img { width: min(100%, 400px); animation: float 8s ease-in-out infinite; filter: drop-shadow(0 20px 40px rgba(var(--deep), .25)); }
.cell-art.wide img { width: min(100%, 520px); }
.cell-info { display: flex; flex-direction: column; gap: 16px; max-width: 400px; }
.cell-num { font-size: 12px; font-weight: 600; letter-spacing: .3em; color: rgba(var(--tint), 1); }
.cell-num::after { content: " / 08"; color: rgba(255,255,255,.4); }
.cell-info h3 { font-size: clamp(38px, 4vw, 56px); font-weight: 200; line-height: 1; }
.cell-info p { font-size: 16.5px; line-height: 1.65; color: var(--soft); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tags li { font-size: 12.5px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(var(--tint), .55); background: rgba(var(--tint), .12); }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes cellIn { from { opacity: 0; transform: scale(.82) rotate(-6deg); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- evolução ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); margin-top: clamp(32px, 4vw, 56px); counter-reset: s; }
.steps li { position: relative; padding-top: 22px; display: flex; flex-direction: column; gap: 8px; }
.steps li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,.55), rgba(255,255,255,.06)); }
.steps span { font-size: 12px; font-weight: 600; letter-spacing: .26em; color: #a8f0e4; }
.steps b { font-size: 22px; font-weight: 300; }
.steps p { font-size: 15px; color: var(--soft); line-height: 1.6; }

/* ---------- aprendizado ---------- */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.duo-item { display: flex; flex-direction: column; gap: 16px; }
.duo-cap { font-size: 15px; line-height: 1.6; color: var(--soft); padding-inline: 6px; }
.duo-cap b { display: inline-block; margin-right: 8px; font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: #fff; }

/* ---------- faixa de CTA ---------- */
.band { padding-block: 24px; }
.band-inner { position: relative; display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); padding: 28px clamp(24px, 4vw, 48px) 28px clamp(110px, 12vw, 170px); border-radius: 36px; overflow: hidden;
  background: linear-gradient(110deg, rgba(var(--warm), .16), rgba(var(--warm), .06)); border: 1px solid rgba(var(--warm-line), .45); box-shadow: 0 0 30px rgba(255,236,220,.1), inset 0 1px 0 rgba(255,255,255,.22);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.band-cell { position: absolute; left: -30px; top: 50%; width: clamp(140px, 15vw, 210px); translate: 0 -50%; animation: float 8s ease-in-out infinite; }
.band-inner p { flex: 1; font-size: clamp(20px, 2vw, 26px); font-weight: 300; line-height: 1.3; }
.band-inner p span { display: block; margin-top: 6px; font-size: 15px; font-weight: 400; color: var(--soft); }

/* ---------- neurocell ---------- */
.nn { position: relative; aspect-ratio: 1; width: min(100%, 600px); justify-self: center; }
.nn canvas { width: 100%; height: 100%; }
.nn figcaption, .lab-cap { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); opacity: .7; text-align: center; margin-top: 4px; }
.gen-readout { display: flex; gap: clamp(20px, 3vw, 40px); margin-top: 12px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); }
.gen-readout div { display: flex; flex-direction: column; gap: 4px; }
.gen-readout span { font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--soft); }
.gen-readout b { font-size: clamp(30px, 3vw, 40px); font-weight: 200; font-variant-numeric: tabular-nums; line-height: 1; }

/* ---------- ecossistema ---------- */
.eco { position: relative; aspect-ratio: 5 / 4; border-radius: 34px; overflow: hidden; border: 1px solid rgba(255,255,255,.14);
  background: radial-gradient(ellipse at 50% 40%, rgba(var(--lav), .1), rgba(var(--deep), .4)); box-shadow: 0 30px 80px rgba(var(--deep), .35), inset 0 1px 0 rgba(255,255,255,.12); }
.eco canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.legend li { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }
.legend i { width: 10px; height: 10px; border-radius: 50%; }
.lg-o2 { background: #9ff0d4; box-shadow: 0 0 10px #9ff0d4; }
.lg-co2 { background: #f5c39f; box-shadow: 0 0 10px #f5c39f; }
.lg-light { background: #fff4cf; box-shadow: 0 0 10px #fff4cf; }

/* ---------- laboratório ---------- */
.lab { display: flex; flex-direction: column; gap: 18px; }
.lab-tabs { display: inline-flex; align-self: center; gap: 4px; padding: 4px; border-radius: 18px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); }
.lab-tabs button { display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px 8px 9px; border-radius: 14px; border: 1px solid transparent; background: transparent; font-size: 14px; cursor: pointer; color: var(--soft); transition: background .25s, border-color .25s, color .25s; }
.lab-tabs button span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 700; background: rgba(255,255,255,.14); }
.lab-tabs button[aria-selected="true"] { color: #fff; background: rgba(var(--warm), .16); border-color: rgba(var(--warm-line), .7); box-shadow: 0 0 12px rgba(255,236,220,.18); }
.lab-tabs button[aria-selected="true"] span { background: #fff; color: rgb(var(--ink)); }
.lab-frame { position: relative; border-radius: 26px; padding: 8px; background: linear-gradient(160deg, rgba(255,255,255,.22), rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 50px 120px rgba(var(--deep), .55), 0 0 80px rgba(var(--glow), .14); }
.lab-shot { border-radius: 19px; overflow: hidden; aspect-ratio: 8 / 5; background: rgb(var(--ink)); }
.lab-shot img { width: 100%; height: 100%; object-fit: cover; }
.lab-shot.is-entering img { animation: fadeIn .6s var(--ease) both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- modos ---------- */
.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); }
.mode { display: flex; flex-direction: column; gap: 22px; padding: clamp(24px, 3vw, 36px); border-radius: 32px; border: 1px solid rgba(var(--warm-line), .4);
  background: linear-gradient(160deg, rgba(var(--warm), .14), rgba(var(--warm), .05)); box-shadow: inset 0 1px 0 rgba(255,255,255,.2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.mode-art { width: 100%; height: auto; border-radius: 22px; background: rgba(var(--deep), .18); border: 1px solid rgba(255,255,255,.1); }
.mode-head { display: flex; gap: 18px; align-items: flex-start; }
.mode-head h3 { font-size: 30px; line-height: 1.1; margin-bottom: 6px; }
.mode-head p { font-size: 15.5px; color: var(--soft); line-height: 1.6; }
.mode-ico { width: 60px; height: 60px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 38% 32%, rgba(255,255,255,.42), rgba(255,255,255,.12)); border: 1px solid rgba(255,255,255,.65); box-shadow: 0 0 9px rgba(255,236,220,.13), inset 0 0 12px rgba(255,255,255,.18); }
.mode-ico svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.mode-ico .fill { fill: #fff; stroke: none; }

.atmos { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(20px, 3vw, 48px); align-items: center; margin-top: clamp(18px, 2.4vw, 28px);
  padding: clamp(24px, 3vw, 36px); border-radius: 32px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); }
.atmos-copy { display: flex; flex-direction: column; gap: 12px; }
.atmos-copy h3 { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.15; }
.atmos-copy p { font-size: 15px; color: var(--soft); line-height: 1.6; }
.themes-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.themes-row button { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 4px 12px; border-radius: 20px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.05); font-size: 12.5px; cursor: pointer; transition: background .25s, border-color .25s, box-shadow .25s, transform .25s; }
.themes-row button i { width: 44px; height: 44px; border-radius: 50%; background: var(--sw); border: 1px solid rgba(255,255,255,.6); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 6px 16px rgba(var(--deep), .3); }
.themes-row button:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.themes-row button[aria-checked="true"] { border-color: rgba(255,255,255,.95); background: rgba(255,255,255,.18); box-shadow: 0 0 14px rgba(255,255,255,.3); }

/* ---------- CTA final ---------- */
.final { position: relative; min-height: max(680px, 100vh); display: flex; align-items: center; padding: 120px 0; text-align: center; }
.final-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.final-logo { position: relative; width: clamp(150px, 16vw, 220px); margin-bottom: 6px; }
.final-logo::before { content: ""; position: absolute; inset: -60%; border-radius: 50%; background: radial-gradient(circle, rgba(var(--glow), .45), rgba(var(--glow), 0) 62%); z-index: -1; }
.final-logo img { width: 100%; animation: float 9s ease-in-out infinite; filter: drop-shadow(0 18px 30px rgba(var(--deep), .3)); }
.final-wordmark { display: flex; font-weight: 300; font-size: clamp(34px, 5vw, 64px); letter-spacing: .34em; padding-left: .34em; line-height: 1; }
.final-wordmark b { font-weight: 300; background: var(--gen); -webkit-background-clip: text; background-clip: text; color: transparent; }
.final-sub { font-size: 12px; font-weight: 500; letter-spacing: .5em; padding-left: .5em; text-transform: uppercase; color: var(--soft); margin-top: -6px; }
.final h2 { margin: 28px 0 14px; font-size: clamp(30px, 3.6vw, 52px); }
.final-note { max-width: 30em; font-size: 14.5px; color: var(--soft); text-wrap: pretty; }

/* ---------- rodapé ---------- */
.foot { position: relative; border-top: 1px solid rgba(255,255,255,.14); padding: 30px 0 calc(30px + env(safe-area-inset-bottom)); font-size: 13px; color: var(--soft); }
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; }
.foot .brand img { width: 36px; }

/* ---------- dock (CTA fixo no celular) e toast ---------- */
.dock { position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 40; display: none; align-items: center; gap: 10px; height: 54px; padding: 0 24px 0 20px; border-radius: 999px;
  color: rgb(var(--ink)); font-weight: 600; font-size: 15.5px; background: linear-gradient(180deg, #fff, #f4eeff); box-shadow: 0 12px 30px rgba(var(--deep), .35), 0 0 30px rgba(var(--glow), .5);
  translate: -50% 140%; transition: translate .5s var(--ease); white-space: nowrap; }
.dock svg { width: 18px; height: 18px; }
.dock.is-on { translate: -50% 0; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 60; max-width: min(440px, 100% - 32px); padding: 14px 20px; border-radius: 18px; font-size: 14.5px; text-align: center;
  background: rgba(var(--ink), .82); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 20px 50px rgba(var(--deep), .4);
  translate: -50% 20px; opacity: 0; pointer-events: none; transition: opacity .35s, translate .35s var(--ease); }
.toast.is-on { opacity: 1; translate: -50% 0; }

/* ---------- revelação ao rolar ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- responsivo ---------- */
@media (max-width: 1080px) {
  .top-nav { display: none; }
  .cells { grid-template-columns: 1fr; }
  .cells-tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .cells-tabs::-webkit-scrollbar { display: none; }
  .cells-tabs button { width: auto; white-space: nowrap; padding: 11px 16px; font-size: 14.5px; }
  .modes { grid-template-columns: 1fr; }
  .hero-brand img { width: 88px; }
}
@media (max-width: 860px) {
  .hero { padding-top: 100px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { align-items: flex-start; }
  .dish { width: min(520px, 100%); }
  .scroll-cue { display: none; }
  .split, .split-rev { grid-template-columns: 1fr; }
  .split-rev > :first-child { order: 0; }
  .cell-panel { grid-template-columns: 1fr; min-height: 0; text-align: left; padding-top: 36px; }
  .cell-art img { width: min(78%, 320px); }
  .cell-art.wide img { width: min(100%, 420px); }
  .cells-stage { min-height: 0; }
  .stage-scope { left: 50%; top: 32%; }
  .steps { grid-template-columns: 1fr; }
  .duo { grid-template-columns: 1fr; }
  .band-inner { flex-direction: column; align-items: flex-start; padding: 120px 24px 28px; }
  .band-cell { left: 50%; top: -30px; translate: -50% 0; width: 150px; }
  .atmos { grid-template-columns: 1fr; }
  .themes-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dock { display: inline-flex; }
  .top .btn-sm { display: none; }
  .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (max-width: 520px) {
  .btn-lg { height: 60px; }
  .cta-row { flex-direction: column; align-items: stretch; width: 100%; }
  .cta-row .btn { justify-content: flex-start; }
  .gen-readout { gap: 18px; }
  .ph-play { width: 60px; height: 60px; }
  .final-wordmark { letter-spacing: .24em; padding-left: .24em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
