/* ===========================================================================
   SYMBIOSIS — cosy "Living DNA / Bioluminescent Aurora" theme (standalone).
   Deep-indigo night, soft aurora ribbons, the 6-gene spectrum as the signature
   accent, rounded organic forms. Built to feel calm and alive — nothing like
   the Cosmic Glutton arcade site.
   ========================================================================= */

:root {
  --bg: #0a0b1c;
  --bg-2: #0d0f24;
  --ink: #eef1fb;
  --muted: #b3b9d6;
  --muted-2: #7e85a8;
  --line: rgba(150,160,210,0.16);
  --card: rgba(20,23,48,0.55);
  --card-2: rgba(26,30,60,0.7);

  /* The genetic palette (src/engine/constants.js) */
  --ember: #ff5a5f;  --solar: #ffb13b;  --spore: #74dd6a;
  --tide:  #2ed3c6;  --abyss: #4f7cff;  --orchid: #b46cff;

  --spectrum: linear-gradient(90deg, #ff5a5f, #ffb13b, #74dd6a, #2ed3c6, #4f7cff, #b46cff);
  --spectrum-soft: linear-gradient(120deg, #b46cff, #4f7cff, #2ed3c6);

  --font-display: 'Fredoka', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;
  --ease: cubic-bezier(.22,.61,.36,1);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.62;
  overflow-x: hidden; position: relative;
}
.shell { width: min(1200px, calc(100% - 2.4rem)); margin-inline: auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }

.spectrum-text {
  background: var(--spectrum); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ── Aurora backdrop ──────────────────────────────────────────────────────── */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; background:
  radial-gradient(120% 90% at 50% -10%, #15183a 0%, var(--bg) 55%) , var(--bg); }
.aur { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; mix-blend-mode: screen; }
.aur.a1 { width: 60vw; height: 60vw; left: -15vw; top: -10vw; background: radial-gradient(circle, rgba(116,221,106,0.55), transparent 65%); animation: drift1 24s ease-in-out infinite; }
.aur.a2 { width: 55vw; height: 55vw; right: -12vw; top: 8vh; background: radial-gradient(circle, rgba(180,108,255,0.55), transparent 65%); animation: drift2 30s ease-in-out infinite; }
.aur.a3 { width: 50vw; height: 50vw; left: 25vw; top: 45vh; background: radial-gradient(circle, rgba(79,124,255,0.4), transparent 65%); animation: drift1 34s ease-in-out infinite reverse; }
@keyframes drift1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(6vw, 5vh); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-7vw, 4vh); } }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: 16px; padding: 13px 24px;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .3s var(--ease), filter .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-play { color: #0a0b1c; background: var(--spectrum); background-size: 180% 100%;
  box-shadow: 0 8px 26px rgba(180,108,255,0.4), 0 4px 14px rgba(46,211,198,0.3);
  animation: shimmer 7s ease infinite; }
.btn-play svg { width: 18px; height: 18px; }
.btn-play:hover { box-shadow: 0 12px 34px rgba(180,108,255,0.55), 0 6px 18px rgba(46,211,198,0.4); }
@keyframes shimmer { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.btn-ghost { color: var(--ink); background: rgba(255,255,255,0.04); border-color: var(--line); }
.btn-ghost:hover { background: rgba(255,255,255,0.09); border-color: rgba(180,108,255,0.5); }

/* ── Header ───────────────────────────────────────────────────────────────── */
.sym-header { position: fixed; top: 0; left: 0; right: 0; z-index: 60; padding: 16px 0;
  transition: background .3s, backdrop-filter .3s, border-color .3s; border-bottom: 1px solid transparent; }
.sym-header.is-scrolled { background: rgba(10,11,28,0.72); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line); }
.sym-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.sym-brand { display: inline-flex; align-items: center; gap: 11px; }
.sym-brand img { width: 42px; height: 42px; border-radius: 13px; box-shadow: 0 4px 14px rgba(0,0,0,0.45); }
.sym-brand .wm { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: 0.04em;
  background: var(--spectrum); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.sym-nav { display: flex; gap: 26px; margin-left: auto; }
.sym-nav a { font-family: var(--font-display); font-weight: 500; font-size: 15px; color: var(--muted);
  white-space: nowrap; transition: color .2s; }
.sym-nav a:hover { color: var(--ink); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.header-cta .btn { padding: 10px 18px; font-size: 14px; }
.header-cta .btn-ghost { display: none; }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 4px; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 150px 0 70px; }
.hero-inner { display: grid; grid-template-columns: 1.02fr 1.1fr; gap: clamp(24px, 4vw, 60px); align-items: center; }
.eyebrow { display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: 12.5px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--orchid);
  padding: 6px 14px; border: 1px solid rgba(180,108,255,0.32); border-radius: 999px;
  background: rgba(180,108,255,0.08); margin-bottom: 20px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 700; }
.tagline { font-size: clamp(1.05rem, 1.7vw, 1.32rem); color: var(--muted); margin: 22px 0 14px; max-width: 30ch; }
.solve-evolve { font-family: var(--font-display); letter-spacing: 0.04em; color: var(--muted-2); margin: 0 0 28px; }
.solve-evolve b { color: var(--tide); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 13px; align-items: center; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.pill { font-family: var(--font-display); font-size: 13px; font-weight: 500; color: var(--muted);
  padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,0.03); }
.pill b { color: var(--ink); font-weight: 600; }

.hero-art { position: relative; }
.hero-art img { width: 100%; border-radius: 26px; border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.hero-bloom { position: absolute; inset: -8% -8% -14% -8%; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle at 60% 40%, rgba(180,108,255,0.35), transparent 60%);
  filter: blur(40px); animation: breathe 8s ease-in-out infinite; }
@keyframes breathe { 0%,100% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.07); opacity: 1; } }

.dna-rail { height: 4px; margin-top: 56px; border-radius: 4px; background: var(--spectrum);
  background-size: 200% 100%; opacity: 0.85; animation: shimmer 9s ease infinite; }

/* ── Sections ─────────────────────────────────────────────────────────────── */
.section { padding: 84px 0; position: relative; }
.section-head { max-width: 720px; margin: 0 auto 50px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 700; margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 1.06rem; }

/* ── Feature grid ─────────────────────────────────────────────────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-card { padding: 26px 22px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--card); position: relative; overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.feature-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--spectrum-soft); opacity: 0; transition: opacity .3s; }
.feature-card:hover { transform: translateY(-5px); border-color: rgba(180,108,255,0.4);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35); }
.feature-card:hover::before { opacity: 1; }
.feature-ico { font-size: 1.9rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.12rem; margin-bottom: 9px; }
.feature-card p { font-size: 0.93rem; color: var(--muted); margin: 0; }
.feature-card i { color: var(--tide); font-style: italic; }

/* ── How you play = what you grow (interactive) ───────────────────────────── */
.grow-feature { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px, 5vw, 64px);
  align-items: center; margin-bottom: 46px; }
.grow-stage { position: relative; display: grid; place-items: center; min-height: 340px; }
.grow-stage .bloom { position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(116,221,106,0.4), rgba(180,108,255,0.18), transparent 68%);
  filter: blur(26px); animation: breathe 7s ease-in-out infinite; }
.grow-mug { position: relative; width: 78%; max-width: 340px; border-radius: 28px;
  filter: drop-shadow(0 18px 44px rgba(0,0,0,0.5));
  transition: opacity .2s var(--ease), transform .2s var(--ease); }
.grow-mug.is-swapping { opacity: 0; transform: scale(.86); }
.grow-mug.pop { animation: facepop .5s var(--ease); }
@keyframes facepop { 0% { transform: scale(.86); } 55% { transform: scale(1.05); } 100% { transform: scale(1); } }

.style-list { display: flex; flex-direction: column; gap: 12px; }
.style { display: flex; align-items: flex-start; gap: 14px; text-align: left; cursor: pointer;
  padding: 16px 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--card);
  font: inherit; color: inherit; transition: border-color .25s, background .25s, transform .2s var(--ease); }
.style:hover { transform: translateX(4px); border-color: rgba(180,108,255,0.4); }
.style.is-active { border-color: transparent; background: var(--card-2);
  box-shadow: inset 0 0 0 1.5px rgba(180,108,255,0.7), 0 10px 26px rgba(0,0,0,0.3); }
.style-dot { width: 16px; height: 16px; border-radius: 50%; margin-top: 4px; flex-shrink: 0;
  box-shadow: 0 0 12px currentColor; }
.s-warm { color: var(--ember); background: var(--ember); }
.s-gentle { color: var(--abyss); background: var(--abyss); }
.s-winged { color: var(--solar); background: var(--solar); }
.s-lumino { color: var(--orchid); background: var(--orchid); }
.style-body { display: flex; flex-direction: column; gap: 3px; }
.style-body b { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; }
.style-body span { font-size: 0.9rem; color: var(--muted); }
.grow-hint { font-size: 0.85rem; color: var(--muted-2); margin: 16px 0 0; }

.grow-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 26px; max-width: 880px; margin: 0 auto; }
.grow-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.02); }
.grow-row .did { font-family: var(--font-display); font-weight: 500; color: var(--ink); flex: 1; font-size: 0.95rem; }
.grow-row .arrow { color: var(--orchid); font-weight: 700; }
.grow-row .gets { color: var(--muted); flex: 1; font-size: 0.92rem; }
.grow-row .gets b { color: var(--tide); }

/* ── Genetic palette tiles ────────────────────────────────────────────────── */
.tile-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.gene-tile { text-align: center; }
.tile-chip { aspect-ratio: 1; border-radius: 24px; display: grid; place-items: center;
  background: linear-gradient(160deg, color-mix(in srgb, var(--tile) 90%, white 18%), var(--tile) 55%, color-mix(in srgb, var(--tile) 75%, black 25%));
  box-shadow: 0 12px 28px color-mix(in srgb, var(--tile) 45%, transparent), inset 0 2px 6px rgba(255,255,255,0.45), inset 0 -6px 14px rgba(0,0,0,0.25);
  transition: transform .3s var(--ease); position: relative; }
.tile-chip::after { content: ''; position: absolute; inset: 8% 8% 50% 8%; border-radius: 18px 18px 40% 40%;
  background: linear-gradient(180deg, rgba(255,255,255,0.4), transparent); pointer-events: none; }
.gene-tile:hover .tile-chip { transform: translateY(-6px) scale(1.04); }
.pip { font-size: 1.7rem; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.3)); }
.tile-name { font-family: var(--font-display); font-weight: 600; margin-top: 12px; font-size: 1rem; }
.tile-warm { font-size: 0.78rem; color: var(--muted-2); margin-top: 2px; }
.tile-warm.warm { color: var(--solar); }
.tile-warm.cool { color: var(--tide); }

/* ── Steps ────────────────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { padding: 30px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.num { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; color: #0a0b1c; background: var(--spectrum-soft); margin-bottom: 18px; }
.step h3 { font-size: 1.2rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 0.96rem; margin: 0; }
.step b { color: var(--tide); }
.step i { color: var(--muted); font-style: italic; }

/* ── Modes ────────────────────────────────────────────────────────────────── */
.mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mode-card { display: flex; gap: 16px; padding: 24px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--card);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.mode-card:hover { transform: translateY(-4px); border-color: rgba(46,211,198,0.4); box-shadow: 0 16px 36px rgba(0,0,0,0.32); }
.mode-ico { font-size: 1.7rem; flex-shrink: 0; }
.mode-card h3 { font-size: 1.1rem; margin-bottom: 7px; }
.mode-card p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ── Rarity ladder + creature showcase ────────────────────────────────────── */
.rarity-ladder { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-bottom: 40px; }
.rarity { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--rc);
  padding: 7px 16px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--rc) 50%, transparent);
  background: color-mix(in srgb, var(--rc) 12%, transparent); }
.rsep { color: var(--muted-2); }
.creature-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.creature-card { text-align: center; padding: 18px 12px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--card);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.creature-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,0.4); }
.creature-orb { aspect-ratio: 1; border-radius: 18px; overflow: hidden; margin-bottom: 12px;
  background: radial-gradient(circle at 50% 45%, rgba(180,108,255,0.14), rgba(10,11,28,0.6)); }
.creature-orb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.creature-card:hover .creature-orb img { transform: scale(1.08); }
.cname { font-family: var(--font-display); font-weight: 600; font-size: 1rem; font-style: italic; }
.crarity { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.r-common:hover { border-color: rgba(154,163,189,0.5); }
.r-uncommon:hover { border-color: rgba(116,221,106,0.5); }
.r-rare:hover { border-color: rgba(79,156,255,0.5); }
.r-legendary:hover { border-color: rgba(255,177,59,0.6); }
.r-legendary .crarity { color: var(--solar); }
.r-rare .crarity { color: #4f9cff; }
.r-uncommon .crarity { color: var(--spore); }

/* ── Screenshots ──────────────────────────────────────────────────────────── */
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 760px; margin: 0 auto; }
.shot { margin: 0; }
.shot img { width: 100%; border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 22px 50px rgba(0,0,0,0.45); }
.shot figcaption { text-align: center; color: var(--muted); font-size: 0.92rem; margin-top: 14px; }

/* ── Final CTA ────────────────────────────────────────────────────────────── */
.cta-final { padding: 30px 0 96px; }
.cta-card { position: relative; text-align: center; padding: clamp(40px, 6vw, 72px) 28px;
  border-radius: 30px; border: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(120% 130% at 50% 0%, rgba(180,108,255,0.16), rgba(13,15,36,0.7)); }
.cta-card .bloom { position: absolute; inset: -30% 30% auto 30%; height: 60%; border-radius: 50%;
  background: radial-gradient(circle, rgba(46,211,198,0.3), transparent 65%); filter: blur(40px); }
.cta-card h2 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; margin-bottom: 14px; position: relative; }
.cta-card p { color: var(--muted); max-width: 52ch; margin: 0 auto 28px; position: relative; }
.cta-card .hero-cta { justify-content: center; position: relative; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.sym-footer { border-top: 1px solid var(--line); padding: 44px 0 38px; background: rgba(8,9,22,0.6); }
.sym-footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.sym-footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.sym-footer-links a { color: var(--muted); font-size: 0.92rem; transition: color .2s; }
.sym-footer-links a:hover { color: var(--ink); }
.sym-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 0.86rem; }

/* ── Reveal-on-scroll ─────────────────────────────────────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero { padding-top: 124px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 540px; margin: 0 auto; }
  .tagline { max-width: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .grow-feature { grid-template-columns: 1fr; }
  .grow-grid { grid-template-columns: 1fr; }
  .mode-grid { grid-template-columns: repeat(2, 1fr); }
  .creature-grid { grid-template-columns: repeat(3, 1fr); }
  .tile-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .sym-nav { position: fixed; inset: 64px 12px auto 12px; flex-direction: column; gap: 4px;
    background: rgba(13,15,36,0.96); backdrop-filter: blur(16px); border: 1px solid var(--line);
    border-radius: 18px; padding: 14px; transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .25s, transform .25s; }
  .sym-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-toggle { display: inline-flex; }
  .feature-grid, .steps, .mode-grid { grid-template-columns: 1fr; }
  .creature-grid, .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .shots { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.3rem, 11vw, 3rem); }
}

/* ── Reduced motion ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, .aur, .btn-play, .dna-rail, .hero-bloom, .grow-stage .bloom, .grow-mug { animation: none !important; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
