/* Meyverse sitesi. Renkler ve yazı tipleri oyunun tasarım belirteçlerinden
   (assets/config/design_tokens.json). Üç tema oyundaki temalarla aynıdır;
   sayfa [data-theme] ile yeniden boyanır. */
@font-face { font-family: "Stack Sans Notch"; src: url("fonts/StackSansNotch-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Stack Sans Notch"; src: url("fonts/StackSansNotch-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Stack Sans Text"; src: url("fonts/StackSansText-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Stack Sans Text"; src: url("fonts/StackSansText-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --bg: #07040f;
  --bg-glow: #341470;
  --bg-mid: #160930;
  --a1: #8b5cf6;
  --a2: #ff3ea5;
  --on-accent: #ffffff;
  --text: #f4f0ff;
  --muted: #a89bc9;
  --faint: #6e62a0;
  --card: rgba(42, 20, 88, 0.5);
  --card-strong: rgba(42, 20, 88, 0.78);
  --line: rgba(139, 92, 246, 0.26);
  --yellow: #ffd23f;
  --accent: linear-gradient(100deg, var(--a1), var(--a2));
  --heading: "Stack Sans Notch", "Stack Sans Text", system-ui, sans-serif;
  --body: "Stack Sans Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 28px;
}
:root[data-theme="neon"] {
  --bg: #030a06; --bg-glow: #0d4a2c; --bg-mid: #06140d;
  --a1: #2ef08a; --a2: #ffd23f; --on-accent: #06140d;
  --text: #ecfff4; --muted: #8fbfa5; --faint: #5a8a72;
  --card: rgba(10, 46, 28, 0.55); --card-strong: rgba(10, 46, 28, 0.82); --line: rgba(46, 240, 138, 0.24);
}
:root[data-theme="day"] {
  --bg: #120a1c; --bg-glow: #5a3070; --bg-mid: #2a1a3e;
  --a1: #ff8a3d; --a2: #ffd23f; --on-accent: #2a1a3e;
  --text: #fff6ec; --muted: #cbb3c9; --faint: #8d7696;
  --card: rgba(70, 40, 92, 0.5); --card-strong: rgba(70, 40, 92, 0.8); --line: rgba(255, 138, 61, 0.26);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; min-height: 100vh; color: var(--text);
  font: 400 17px/1.65 var(--body);
  background: radial-gradient(1100px 720px at 50% -120px, var(--bg-glow) 0, var(--bg-mid) 52%, transparent 100%) no-repeat, var(--bg);
  transition: background-color 0.5s ease, color 0.3s ease;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: color-mix(in srgb, var(--a1) 55%, white); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(1140px, 100%); margin: 0 auto; padding: 0 var(--gutter); }

/* ---- gezinme ---- */
.nav { position: sticky; top: 12px; z-index: 20; margin: 12px auto 0; width: min(1140px, calc(100% - 2 * var(--gutter))); display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 14px; border-radius: 999px; background: color-mix(in srgb, var(--bg-mid) 72%, transparent); border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.nav .brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 18px/1 var(--heading); margin-right: auto; }
.nav .brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav a.link { padding: 9px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.nav a.link:hover, .nav a.link[aria-current="page"] { color: var(--text); background: color-mix(in srgb, var(--a1) 18%, transparent); }
.nav a.lang { border: 1px solid var(--line); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 20px; border: 0; cursor: pointer; text-decoration: none; font: 700 16px/1.1 var(--heading); color: var(--on-accent); background: var(--accent); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.3), 0 8px 20px color-mix(in srgb, var(--a2) 32%, transparent); transition: transform 0.18s ease, filter 0.18s ease; }
.btn:hover { color: var(--on-accent); transform: translateY(-2px); filter: brightness(1.07); }
.btn.small { padding: 10px 16px; border-radius: 999px; font-size: 14px; box-shadow: none; }
.btn.ghost { color: var(--text); background: var(--card); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost small { display: block; font: 400 12px/1.2 var(--body); color: var(--muted); margin-bottom: 3px; }
.btn.ghost span { text-align: left; }

/* ---- zemin: oyunun taş deseni, sönük ve yavaşça kayan; üstünden ışık geçer ---- */
body::before, body::after { content: ""; position: fixed; inset: 0 0 -54px 0; z-index: -1; pointer-events: none; }
body::before { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='54' height='54'%3E%3Crect x='3.5' y='3.5' width='47' height='47' rx='9' fill='none' stroke='white' stroke-opacity='0.05'/%3E%3C/svg%3E") 0 0 / 54px 54px; -webkit-mask-image: radial-gradient(130% 95% at 50% 0%, #000 25%, transparent 100%); mask-image: radial-gradient(130% 95% at 50% 0%, #000 25%, transparent 100%); animation: drift 26s linear infinite; }
body::after { background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.13) 50%, transparent 58%) 150% 0 / 300% 100% no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='54' height='54'%3E%3Crect x='3.5' y='3.5' width='47' height='47' rx='9' fill='none' stroke='white' stroke-opacity='1'/%3E%3C/svg%3E") 0 0 / 54px 54px; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='54' height='54'%3E%3Crect x='3.5' y='3.5' width='47' height='47' rx='9' fill='none' stroke='white' stroke-opacity='1'/%3E%3C/svg%3E") 0 0 / 54px 54px; animation: drift 26s linear infinite, sweep 11s ease-in-out infinite; }
@keyframes drift { to { transform: translateY(-54px); } }
@keyframes sweep { 0% { background-position: 150% 0; } 70%, 100% { background-position: -50% 0; } }

/* ---- ortak parçalar ---- */
.dot { color: var(--yellow); font-style: normal; }
.tag { display: inline-flex; align-items: center; gap: 10px; color: color-mix(in srgb, var(--a2) 62%, white); font: 600 13px/1 var(--body); letter-spacing: 0.2em; text-transform: uppercase; }
.tag::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--a2); }
.pill { display: inline-block; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--a1) 22%, transparent); color: var(--text); font: 600 13px/1.2 var(--body); }
.sub { color: var(--muted); margin: 0; max-width: 34em; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: 14px; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--a2); }

/* Telefon: düz durur, ince koyu çerçeve; içinde oyunun kendi kaydı. */
.phone { position: relative; flex: none; margin: 0; width: var(--phone-w, clamp(210px, 23vw, 270px)); aspect-ratio: 443 / 960; padding: 1.9%; border-radius: 12.5% / 5.77%; background: #0e0a18; border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: 0 34px 70px rgba(0, 0, 0, 0.55); }
.phone > video, .phone > img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 11% / 4.98%; background: #08040f; }

/* ---- giriş ---- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(24px, 6vw, 88px); padding: clamp(28px, 5vw, 60px) 0 0; }
.hero .phone { --phone-w: clamp(240px, 27vw, 320px); }
.hero .logo { width: clamp(150px, 17vw, 210px); margin: 0 0 18px -6px; }
.hero h1 { font: 700 clamp(54px, 8.6vw, 112px)/0.94 var(--heading); margin: 16px 0 22px; letter-spacing: -0.03em; }
.hero h1 span { display: block; }
.hero p.lead { max-width: 30em; margin: 0 0 28px; color: var(--muted); font-size: clamp(16px, 1.9vw, 19px); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn.store { min-width: 168px; justify-content: flex-start; padding: 12px 20px; cursor: default; }
.btn.store:hover { transform: none; filter: none; color: var(--text); }
.note { margin: 16px 0 0; color: var(--faint); font-size: 14.5px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: clamp(36px, 6vw, 64px) 0 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.stats li { padding: 20px 22px; color: var(--muted); font-size: 14.5px; line-height: 1.4; border-left: 1px solid var(--line); }
.stats li:first-child { border-left: 0; }
.stats strong { display: block; color: var(--text); font: 700 clamp(22px, 2.6vw, 30px)/1.15 var(--heading); margin-bottom: 2px; }

/* ---- bölümler ---- */
section.block { padding: clamp(72px, 11vw, 136px) 0 0; }
.head { max-width: 40em; margin-bottom: 34px; }
h2 { font: 700 clamp(32px, 5vw, 56px)/1.02 var(--heading); margin: 16px 0 12px; letter-spacing: -0.025em; }
.head p { color: var(--muted); margin: 0; }

/* nasıl oynanır: üç telefon */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { display: flex; flex-direction: column; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 28px; }
.step .phone { align-self: center; margin-bottom: 26px; --phone-w: min(100%, 250px); }
.step h3 { font: 700 clamp(34px, 4vw, 46px)/1 var(--heading); margin: 14px 0 10px; letter-spacing: -0.02em; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }

/* güçlendiriciler: düğme seç, telefonda izle */
.show, .themes { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(24px, 6vw, 88px); background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) + 8px); padding: clamp(24px, 5vw, 60px); }
.show h2, .themes h2 { margin-top: 16px; }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 18px; }
.boost { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 112px; height: 54px; padding: 0 18px; border: 0; border-radius: 20px; cursor: pointer; color: #fff; font: 700 15px/1 var(--heading); opacity: 0.5; transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
.boost img { width: 22px; height: 22px; }
.boost.knife { background: linear-gradient(100deg, #0891b2, #5b2fd0); --glow: rgba(91, 47, 208, 0.32); }
.boost.bomb { background: linear-gradient(100deg, #5b2fd0, #c8167a); --glow: rgba(200, 22, 122, 0.32); }
.boost.refresh { background: linear-gradient(100deg, #c8167a, #e0560c); --glow: rgba(224, 86, 12, 0.32); }
.boost { box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.3), 0 8px 20px var(--glow); }
.boost:hover { opacity: 0.85; transform: translateY(-2px); }
.boost[aria-selected="true"] { opacity: 1; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.3), 0 0 0 2px #fff, 0 8px 20px var(--glow); }
.panes { min-height: 5em; }
.pane { margin: 0; max-width: 30em; color: var(--muted); font-size: 17px; }
.pane strong { color: var(--text); font-weight: 600; }
.fine { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); max-width: 30em; color: var(--faint); font-size: 14.5px; }

/* oyun türleri: dört kart, her birinde kendi ekranı */
.modes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.mode { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; }
.mode::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--tone, var(--accent)); }
.mode.brand { --tone: linear-gradient(100deg, #5b2fd0, #c8167a); }
.mode.cool { --tone: linear-gradient(100deg, #0891b2, #5b2fd0); }
.mode.warm { --tone: linear-gradient(100deg, #c8167a, #e0560c); }
.mode.plain { --tone: linear-gradient(100deg, #ffd23f, #e0560c); }
.mode .phone { --phone-w: clamp(150px, 15.5vw, 196px); box-shadow: 0 22px 44px rgba(0, 0, 0, 0.5); }
.mode h3 { font: 700 clamp(26px, 3vw, 34px)/1.08 var(--heading); margin: 16px 0 10px; letter-spacing: -0.015em; }
.mode p { margin: 0; color: var(--muted); font-size: 16px; }
.ticks { margin: 18px 0 0; padding: 0; list-style: none; color: var(--text); font-size: 15px; }
.ticks li { position: relative; padding-left: 20px; margin: 7px 0; line-height: 1.4; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 8px; height: 8px; border-radius: 2px; background: var(--yellow); }

/* temalar */
.chips { display: grid; gap: 12px; margin-top: 28px; max-width: 420px; }
.chip { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border-radius: 20px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; text-align: left; font: 600 17px/1.2 var(--heading); transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.chip small { display: block; font: 400 14px/1.3 var(--body); color: var(--muted); margin-top: 3px; }
.chip:hover { transform: translateX(4px); }
.chip[aria-pressed="true"] { background: var(--card-strong); border-color: var(--a1); box-shadow: 0 0 0 3px color-mix(in srgb, var(--a1) 22%, transparent); }
.sw { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 7px; }
.sw i { border-radius: 5px; }
.themes .phone img { transition: opacity 0.25s ease; }

/* tanıtım videosu */
.film { overflow: hidden; border-radius: calc(var(--radius) + 4px); border: 1px solid var(--line); background: #000; box-shadow: 0 34px 70px rgba(0, 0, 0, 0.5); }
.film video { display: block; width: 100%; aspect-ratio: 16 / 9; }

/* sorular */
.faq { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; align-items: start; }
.faq details { margin: 0; }
.more { margin: 22px 0 0; font-weight: 600; }
.more a { text-decoration: none; }

/* kapanış */
.final { text-align: center; padding: clamp(40px, 7vw, 84px) var(--gutter); border-radius: calc(var(--radius) + 8px); background: var(--card); border: 1px solid var(--line); }
.final .logo { width: clamp(180px, 24vw, 280px); margin: 0 auto 6px; }
.final h2 { margin-top: 10px; }
.final p { color: var(--muted); max-width: 34em; margin: 0 auto 26px; }
.final .cta { justify-content: center; }

/* ---- yazı sayfaları ---- */
.doc-hero { padding: clamp(28px, 6vw, 60px) 0 8px; }
.doc-hero h1 { font: 700 clamp(34px, 5.6vw, 58px)/1.05 var(--heading); margin: 14px 0 10px; letter-spacing: -0.02em; }
.doc-hero p { color: var(--muted); margin: 0; max-width: 42em; }
.doc-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: start; padding-top: 26px; }
.toc { position: sticky; top: 92px; padding: 16px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); font-size: 14.5px; max-height: calc(100vh - 120px); overflow: auto; }
.toc b { display: block; font: 600 13px/1 var(--heading); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin: 2px 8px 10px; }
.toc a { display: block; padding: 7px 8px; border-radius: 10px; color: var(--muted); text-decoration: none; line-height: 1.35; }
.toc a:hover, .toc a.on { color: var(--text); background: color-mix(in srgb, var(--a1) 16%, transparent); }
.doc { max-width: 760px; min-width: 0; }
.doc h2 { font-size: clamp(21px, 3vw, 27px); margin: 44px 0 10px; letter-spacing: 0; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font: 600 18px/1.3 var(--heading); margin: 24px 0 6px; }
.doc p, .doc li { color: color-mix(in srgb, var(--text) 86%, var(--muted)); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 20px 22px; margin: 0 0 26px; }
.box ul { margin: 0; }
.box p:first-child { margin-top: 0; }
.box p:last-child { margin-bottom: 0; }
.tablewrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 18px; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15.5px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { color: var(--text); font-weight: 600; background: color-mix(in srgb, var(--a1) 12%, transparent); }
tr:last-child td { border-bottom: 0; }
details { border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; margin: 10px 0; background: var(--card); }
details[open] { border-color: color-mix(in srgb, var(--a1) 55%, transparent); }
summary { cursor: pointer; font-weight: 600; color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::after { content: "+"; color: var(--a2); font: 700 20px/1 var(--heading); }
details[open] summary::after { content: "–"; }
summary::-webkit-details-marker { display: none; }
details p { margin: 10px 0 0; }

/* ---- alt bilgi ---- */
footer { margin-top: clamp(64px, 10vw, 120px); border-top: 1px solid var(--line); padding: 34px 0 44px; color: var(--faint); font-size: 15px; }
footer .cols { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }
footer .brand { display: flex; align-items: center; gap: 10px; color: var(--text); font: 700 17px/1 var(--heading); text-decoration: none; margin-right: auto; }
footer .brand img { width: 30px; height: 30px; border-radius: 8px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); text-decoration: underline; }
footer .copy { width: 100%; margin-top: 6px; }

/* ---- görünürken beliren öğeler ---- */
/* Yalnız betik çalışıyorsa gizlenir: betik yüklenmezse içerik görünür kalır. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .hero .logo { margin: 0 auto 18px; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero .cta { justify-content: center; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats li:nth-child(3) { border-left: 0; }
  .stats li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  /* Üç adım yan yana kaydırılır: üç uzun telefon alt alta dizilmez. */
  .steps { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 14px; scrollbar-width: none; }
  .steps::-webkit-scrollbar { display: none; }
  .step { flex: 0 0 min(78%, 320px); scroll-snap-align: center; }
  .show, .themes { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .show-copy, .themes > div { width: 100%; }
  .modes { grid-template-columns: minmax(0, 1fr); }
  .mode .phone { --phone-w: clamp(140px, 30vw, 196px); }
  .chips { max-width: none; }
  .faq { grid-template-columns: minmax(0, 1fr); }
  .doc-grid { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; max-height: none; }
  .nav a.link.hide-s { display: none; }
}
@media (max-width: 560px) {
  .nav .brand span { display: none; }
  .nav a.link { padding: 8px 10px; font-size: 14px; }
  .btn { width: 100%; }
  .btn.small, .btn.store { width: auto; }
  .btn.store { flex: 1 1 0; min-width: 0; }
  .mode { grid-template-columns: minmax(0, 1fr); justify-items: center; padding: 26px 22px 28px; }
  .mode-copy { width: 100%; }
  .mode .phone { --phone-w: min(64%, 220px); margin-top: 4px; }
  .boost { flex: 1 1 0; min-width: 0; padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before, body::after { animation: none; }
  body::after { display: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .boost, .chip { transition: none; }
}
