/* TRADEXA tanıtım sitesi. Renkler oyunun arayüzüyle aynıdır (lib/tradexa_palette.dart). */
@font-face { font-family: "Outfit"; src: url("fonts/Outfit-600.ttf") format("truetype"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("fonts/Outfit-800.ttf") format("truetype"); font-weight: 700 900; font-display: swap; }

:root {
  --bg: #0a0e17;
  --surface: #141d31;
  --surface-2: #1b2640;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --amber: #fbbf24;
  --amber-deep: #f59e0b;
  --amber-edge: #b45309;
  --gold: #fcd34d;
  --teal: #2dd4bf;
  --sky: #38bdf8;
  --radius: 22px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--gold); }
h1, h2, h3 { line-height: 1.12; margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: #0f172a; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Üst çubuk ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
  padding: 18px 0;
}
.nav.scrolled { background: rgba(10, 14, 23, 0.86); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); padding: 10px 0; }
.nav .wrap { display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 800; font-size: 1.35rem; letter-spacing: 0.04em; }
.brand img { width: 42px; height: 42px; border-radius: 12px; box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35); }
.brand:hover { color: var(--text); }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: #cbd5e1; font-weight: 600; font-size: 0.98rem; }
.nav-links a:hover { color: var(--amber); }
.lang { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; color: var(--text); font-weight: 700; font-size: 0.9rem; }
.lang:hover { border-color: var(--amber); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 12px; padding: 8px 12px; font: inherit; cursor: pointer; }

/* ---------- Düğmeler ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 16px; font-weight: 800; font-size: 1.05rem;
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
  border: 0; cursor: pointer; font-family: inherit;
}
.btn-primary {
  background: linear-gradient(180deg, var(--amber), var(--amber-deep));
  color: #0f172a;
  box-shadow: 0 6px 0 var(--amber-edge), 0 18px 40px rgba(245, 158, 11, 0.35);
}
.btn-primary:hover { color: #0f172a; transform: translateY(-2px); filter: brightness(1.05); }
.btn-primary:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--amber-edge), 0 8px 20px rgba(245, 158, 11, 0.3); }
.btn-ghost { background: rgba(255, 255, 255, 0.06); color: var(--text); border: 1px solid rgba(255, 255, 255, 0.16); backdrop-filter: blur(6px); }
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, 0.12); transform: translateY(-2px); }
.btn svg { width: 22px; height: 22px; flex: none; }

.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 20px 10px 16px; border-radius: 14px;
  background: #000; border: 1px solid rgba(255, 255, 255, 0.22); color: #fff;
}
.store-badge svg { width: 26px; height: 26px; }
.store-badge small { display: block; font-size: 0.72rem; color: #cbd5e1; font-weight: 600; letter-spacing: 0.02em; }
.store-badge b { display: block; font-size: 1.08rem; line-height: 1.1; }
.store-badge .soon { margin-left: 8px; background: var(--amber); color: #0f172a; font-size: 0.7rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; }

/* ---------- Giriş bölümü ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: -4%; z-index: -3; background: url("img/hero.webp") center / cover no-repeat; animation: kenburns 28s ease-in-out infinite alternate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 60% 55% at 78% 30%, rgba(251, 191, 36, 0.18), transparent 70%),
    linear-gradient(90deg, rgba(10, 14, 23, 0.94) 0%, rgba(10, 14, 23, 0.72) 45%, rgba(10, 14, 23, 0.25) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; padding: 130px 0 90px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; background: rgba(251, 191, 36, 0.12); border: 1px solid rgba(251, 191, 36, 0.35); color: var(--gold); font-weight: 700; font-size: 0.92rem; margin-bottom: 22px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7); animation: pulse 1.8s infinite; }
.hero h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); }
.hero h1 .glow { background: linear-gradient(90deg, var(--gold), var(--amber-deep) 60%, var(--gold)); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
.hero .lead { font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: #cbd5e1; max-width: 34em; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-art { position: relative; justify-self: center; width: min(420px, 100%); }
.hero-art .logo-big { width: 100%; border-radius: 22%; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(251, 191, 36, 0.25), 0 0 90px rgba(245, 158, 11, 0.35); animation: float 6s ease-in-out infinite; }
.coin { position: absolute; width: 74px; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.5)); animation: float 5s ease-in-out infinite; }
.coin.c1 { top: -26px; left: -30px; animation-delay: -1s; }
.coin.c2 { bottom: 40px; right: -36px; width: 64px; animation-delay: -2.5s; }
.coin.c3 { bottom: -28px; left: 30px; width: 58px; animation-delay: -3.6s; }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; translate: -50% 0; color: var(--muted); font-size: 0.85rem; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.scroll-hint span { width: 22px; height: 36px; border: 2px solid rgba(255, 255, 255, 0.3); border-radius: 12px; position: relative; }
.scroll-hint span::after { content: ""; position: absolute; left: 50%; top: 6px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--amber); animation: wheel 1.6s infinite; }

/* ---------- Sayaçlar ---------- */
.stats { margin-top: -40px; position: relative; z-index: 2; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; text-align: center; }
.stat b { display: block; font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 800; color: var(--gold); line-height: 1.1; }
.stat span { color: var(--muted); font-weight: 600; }

/* ---------- Bölümler ---------- */
section { padding: 110px 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 60px; }
.kicker { display: inline-block; color: var(--amber); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.82rem; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
.section-head p { color: var(--muted); font-size: 1.12rem; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-bottom: 110px; }
.feature:last-child { margin-bottom: 0; }
.feature.flip .feature-art { order: 2; }
.feature-art { position: relative; aspect-ratio: 1 / 0.82; border-radius: 30px; background: radial-gradient(circle at 50% 60%, rgba(251, 191, 36, 0.22), transparent 62%), linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.feature-art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.07), transparent 40%); pointer-events: none; }
.feature-art img { width: 70%; filter: drop-shadow(0 28px 36px rgba(0, 0, 0, 0.55)); transition: transform 0.5s; }
.feature:hover .feature-art img { transform: scale(1.05) rotate(-1deg); }
.feature-art.duo img { position: absolute; width: 52%; }
.feature-art.duo img:first-child { left: 6%; bottom: 10%; }
.feature-art.duo img:last-child { right: 6%; top: 10%; }
.feature-art.photo img { width: 100%; height: 100%; object-fit: cover; filter: none; }
.feature-art .chip { position: absolute; z-index: 2; background: rgba(10, 14, 23, 0.82); border: 1px solid rgba(251, 191, 36, 0.4); color: var(--gold); padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 0.9rem; backdrop-filter: blur(6px); }
.feature-art .chip.tl { top: 18px; left: 18px; }
.feature-art .chip.br { bottom: 18px; right: 18px; }
.feature-text h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.feature-text p { color: #cbd5e1; font-size: 1.1rem; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: #e2e8f0; }
.ticks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 7px; background: linear-gradient(180deg, var(--amber), var(--amber-deep)) center / 100% no-repeat; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 3h16a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zm4.3 8.3L6.9 12.7l3.6 3.6 6.6-6.6-1.4-1.4-5.2 5.2z'/></svg>") center / contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 3h16a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zm4.3 8.3L6.9 12.7l3.6 3.6 6.6-6.6-1.4-1.4-5.2 5.2z'/></svg>") center / contain no-repeat; }

/* ---------- Nasıl oynanır ---------- */
.steps-bg { background: linear-gradient(180deg, var(--bg), #0d1422 30%, #0d1422 70%, var(--bg)); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 28px; transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s; }
.step:hover { transform: translateY(-6px); border-color: rgba(251, 191, 36, 0.45); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45); }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 18px; left: 18px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(180deg, var(--amber), var(--amber-deep)); color: #0f172a; font-weight: 800; box-shadow: 0 4px 0 var(--amber-edge); }
.step img { height: 170px; width: auto; margin: 0 auto 16px; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.5)); }
.step h3 { font-size: 1.3rem; }
.step p { color: var(--muted); margin: 0; }

/* ---------- Mağaza vitrini ---------- */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee + .marquee { margin-top: 18px; }
.track { display: flex; gap: 18px; width: max-content; animation: slide 60s linear infinite; }
.marquee.reverse .track { animation-direction: reverse; animation-duration: 70s; }
.marquee:hover .track { animation-play-state: paused; }
.shop { width: 190px; flex: none; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: 20px; padding: 14px 12px 12px; text-align: center; }
.shop img { width: 150px; height: 150px; margin: 0 auto 6px; object-fit: contain; }
.shop span { font-weight: 700; color: #e2e8f0; font-size: 0.95rem; }

/* ---------- Çağrı ---------- */
.cta { position: relative; overflow: hidden; border-radius: 34px; padding: 70px 60px; background: radial-gradient(circle at 85% 40%, rgba(251, 191, 36, 0.28), transparent 55%), linear-gradient(135deg, #1b2640, #0f172a); border: 1px solid rgba(251, 191, 36, 0.25); display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 40px; align-items: center; }
.cta h2 { font-size: clamp(2rem, 4vw, 3rem); }
.cta p { color: #cbd5e1; font-size: 1.12rem; }
.cta img { width: 100%; max-width: 300px; justify-self: center; border-radius: 22%; box-shadow: 0 0 80px rgba(245, 158, 11, 0.4); animation: float 7s ease-in-out infinite; }

/* ---------- SSS ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 4px 22px; transition: border-color 0.2s, background 0.2s; }
.faq details[open] { border-color: rgba(251, 191, 36, 0.4); background: var(--surface-2); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 34px 18px 0; font-weight: 700; font-size: 1.1rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; translate: 0 -50%; font-size: 1.6rem; color: var(--amber); transition: rotate 0.25s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { color: #cbd5e1; padding-bottom: 8px; }

/* ---------- Alt bilgi ---------- */
footer { border-top: 1px solid var(--line); padding: 60px 0 40px; background: #080b13; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot h4 { margin: 0 0 14px; font-size: 1rem; color: var(--text); }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--amber); }
.foot ul a { display: inline-flex; align-items: center; gap: 10px; }
.foot ul svg { width: 18px; height: 18px; flex: none; }
.socials { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.socials a { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); transition: color 0.2s, border-color 0.2s, transform 0.2s; }
.socials a:hover { color: var(--amber); border-color: var(--amber); transform: translateY(-2px); }
.socials svg { width: 20px; height: 20px; }
.foot .note { color: var(--muted); font-size: 0.95rem; max-width: 28em; margin-top: 14px; }
.copy { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: #64748b; font-size: 0.9rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Yasal sayfalar ---------- */
.legal { padding: 140px 0 90px; }
.legal .doc { max-width: 820px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: clamp(28px, 5vw, 56px); }
.legal h1 { font-size: clamp(2rem, 4vw, 2.7rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2em; color: var(--gold); }
.legal p, .legal li { color: #d6dde7; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 0.5em; }
.legal .updated { color: var(--muted); font-size: 0.95rem; }
.legal .box { background: rgba(251, 191, 36, 0.08); border: 1px solid rgba(251, 191, 36, 0.3); border-radius: 16px; padding: 18px 20px; margin: 22px 0; }
.legal ol.steps-list { padding-left: 1.3em; }
.legal ol.steps-list li { margin-bottom: 0.8em; }
.err { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.err img { width: 140px; margin: 0 auto 24px; border-radius: 22%; }
.err h1 { font-size: clamp(2.4rem, 6vw, 4rem); }

/* ---------- Görünüm hareketleri ---------- */
.rise { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.rise.r1 { animation-delay: 0.12s; } .rise.r2 { animation-delay: 0.24s; } .rise.r3 { animation-delay: 0.36s; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.1s; } .reveal.d2 { transition-delay: 0.2s; } .reveal.d3 { transition-delay: 0.3s; }

@keyframes kenburns { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.1) translate(-1.5%, -1%); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(251, 191, 36, 0); } 100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); } }
@keyframes shine { to { background-position: 200% center; } }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(12px); } }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Ekran boyutları ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-top: 120px; }
  .hero::before { background: radial-gradient(ellipse 80% 40% at 50% 20%, rgba(251, 191, 36, 0.14), transparent 70%), linear-gradient(180deg, rgba(10, 14, 23, 0.55) 0%, rgba(10, 14, 23, 0.86) 45%, var(--bg) 100%); }
  .hero .lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-art { width: min(180px, 50%); order: -1; }
  .coin { width: 48px; } .coin.c2 { width: 42px; } .coin.c3 { width: 38px; }
  .feature, .cta { grid-template-columns: 1fr; gap: 34px; }
  .feature.flip .feature-art { order: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid .stat:last-child { grid-column: 1 / -1; }
  .foot { grid-template-columns: 1fr 1fr; }
  .cta { padding: 48px 30px; text-align: center; }
  .cta .socials { justify-content: center; }
}
@media (max-width: 760px) {
  .hero-inner { padding-top: 92px; gap: 26px; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(10, 14, 23, 0.97); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav.open .nav-links { display: flex; }
  .nav.open { background: rgba(10, 14, 23, 0.97); }
  .menu-btn { display: inline-block; }
  .nav .lang { order: 3; }
  section { padding: 80px 0; }
  .steps { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
  .scroll-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
