/* Quanira: ortak stil (ana sayfa + gizlilik/şartlar/destek + qubice.com giriş) */
:root {
  --ink: #050a22;
  --deep: #0a1846;
  --navy: #10297a;
  --royal: #1e5cff;
  --ice: #5fdcff;
  --ice-2: #b8f1ff;
  --gold: #ffc534;
  --gold-2: #ff9a1f;
  --gem: #7b47ff;
  --cream: #f7e6c6;
  --text: #eef3ff;
  --muted: #a9b8e6;
  --line: rgba(160, 200, 255, .14);
  --display: "Unbounded", "Arial Black", sans-serif;
  --body: "Figtree", "Segoe UI", sans-serif;
  --r: 28px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: var(--ice); text-decoration: none; }
a:hover { color: var(--ice-2); }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ---------- üst menü ---------- */
.nav {
  position: fixed; inset: 14px 0 auto; z-index: 50; pointer-events: none;
}
.nav .bar {
  pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 12px 10px 22px; border-radius: 999px;
  background: rgba(6, 14, 46, .62); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--line); box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
}
.nav .brand img { height: 30px; width: auto; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav ul a {
  display: block; padding: 9px 16px; border-radius: 999px; color: var(--text);
  font: 600 14px/1 var(--body); letter-spacing: .02em; transition: background .2s;
}
.nav ul a:hover { background: rgba(255, 255, 255, .08); }
.nav ul a.cta { background: var(--gold); color: #3a1d00; }
.nav .lang {
  margin: 0 6px; padding: 8px 12px; border-radius: 999px; cursor: pointer; background: transparent; color: var(--ice-2);
  border: 1.5px solid rgba(160, 200, 255, .3); font: 700 13px/1 var(--body); letter-spacing: .08em; transition: border-color .2s, color .2s;
}
.nav .lang:hover { border-color: var(--ice); color: #fff; }
.nav ul a.cta:hover { background: #ffd65f; }

/* ---------- butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 16px 26px; border-radius: 999px;
  font: 700 16px/1 var(--body); transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), box-shadow .2s;
}
.btn:hover { transform: translateY(-3px); }
.btn.gold { background: linear-gradient(180deg, #ffd85a, var(--gold) 55%, var(--gold-2)); color: #3a1d00; box-shadow: 0 6px 0 #c76a00, 0 18px 40px rgba(255, 170, 30, .35); }
.btn.gold:hover { color: #3a1d00; box-shadow: 0 9px 0 #c76a00, 0 24px 50px rgba(255, 170, 30, .45); }
.btn.ghost { border: 1.5px solid rgba(255, 255, 255, .25); color: var(--text); }
.btn.ghost:hover { border-color: var(--ice); color: var(--ice-2); }
.btn svg { width: 20px; height: 20px; }

/* ---------- giriş (hero) ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 120px 0 80px; isolation: isolate; overflow: hidden; }
.hero::before { /* oyun ikonundaki gibi ışın patlaması */
  content: ""; position: absolute; inset: -40%; z-index: -2;
  background:
    radial-gradient(closest-side at 68% 46%, rgba(95, 220, 255, .55), rgba(30, 92, 255, .25) 45%, transparent 75%),
    repeating-conic-gradient(from 0deg at 68% 46%, rgba(120, 200, 255, .09) 0 6deg, transparent 6deg 18deg),
    radial-gradient(120% 90% at 50% 0%, var(--navy), var(--deep) 55%, var(--ink));
  animation: spin 120s linear infinite;
}
.hero::after { /* zemindeki kat tahtası */
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -2px; height: 34%; z-index: -1;
  background:
    linear-gradient(to bottom, var(--ink), transparent 40%),
    repeating-linear-gradient(90deg, rgba(247, 230, 198, .10) 0 2px, transparent 2px 84px),
    repeating-linear-gradient(0deg, rgba(247, 230, 198, .10) 0 2px, transparent 2px 84px);
  transform: perspective(500px) rotateX(58deg); transform-origin: bottom;
  mask-image: linear-gradient(to top, #000 10%, transparent 90%);
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero .wrap { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .07); border: 1px solid var(--line); font: 600 14px/1 var(--body); color: var(--ice-2);
}
.eyebrow b { background: var(--gem); color: #fff; padding: 6px 10px; border-radius: 999px; font-size: 12px; letter-spacing: .08em; }
.hero h1 {
  font: 800 clamp(40px, 5.3vw, 80px)/1 var(--display); letter-spacing: -.035em; margin: 26px 0 22px;
}
.hero h1 em {
  font-style: normal; display: inline-block;
  background: linear-gradient(180deg, #fff2a8, var(--gold) 45%, var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 0 rgba(140, 60, 0, .55));
}
.hero .lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 30em; margin: 0 0 34px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

.stage { position: relative; justify-self: center; width: min(400px, 100%); aspect-ratio: 400 / 700; }
.phone {
  position: absolute; top: 0; left: 12.5%; width: 78%; border-radius: 44px; padding: 10px;
  background: linear-gradient(160deg, #2a3a7a, #0b1236); box-shadow: 0 40px 80px rgba(0, 0, 0, .55), inset 0 0 0 2px rgba(255, 255, 255, .12);
  transform: rotate(6deg); animation: bob 7s ease-in-out infinite;
}
.phone img { width: 100%; height: auto; aspect-ratio: 660 / 1434; border-radius: 35px; }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; translate: -50%; width: 30%; height: 22px; border-radius: 99px; background: #050a22; z-index: 2; }
.float { position: absolute; z-index: 3; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .45)); animation: bob 6s ease-in-out infinite; }
.float.hero-c { width: 46%; left: -14%; bottom: 4%; animation-delay: -1s; }
.float.coin { width: 22%; right: -6%; top: 8%; animation-delay: -3s; animation-duration: 5s; }
.float.gem { width: 20%; left: 0; top: 4%; animation-delay: -2s; rotate: -14deg; }
.float.heart { width: 16%; right: 0; bottom: 22%; animation-delay: -4s; animation-duration: 5.5s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -16px; } }

/* yükleme sırası */
.rise { opacity: 0; transform: translateY(26px); animation: rise .9s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--d, 0) * 110ms + 150ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- kayan şerit ---------- */
.ribbon { position: relative; z-index: 2; background: var(--gold); color: #3a1d00; transform: rotate(-2.2deg); margin: -30px -20px 0; border-block: 4px solid #3a1d00; overflow: hidden; }
.ribbon .track { display: flex; width: max-content; animation: slide 38s linear infinite; }
.ribbon span { display: inline-flex; align-items: center; gap: 22px; padding: 16px 22px; font: 800 22px/1 var(--display); letter-spacing: -.01em; text-transform: uppercase; white-space: nowrap; }
.ribbon img { width: 40px; height: 40px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- bölümler ---------- */
section.block { padding: 130px 0 40px; position: relative; }
.kicker { font: 700 13px/1 var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--ice); margin: 0 0 18px; }
h2.title { font: 800 clamp(34px, 5vw, 64px)/1 var(--display); letter-spacing: -.03em; margin: 0 0 18px; }
.sub { color: var(--muted); font-size: 19px; max-width: 34em; margin: 0; }

/* oyun vitrini */
.showcase {
  position: relative; margin-top: 56px; border-radius: 40px; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1fr 1fr; min-height: 640px;
  background: linear-gradient(135deg, #1b6cff, #0d39b8 50%, #0a2378);
  box-shadow: 0 50px 100px rgba(0, 10, 60, .6), inset 0 0 0 1px rgba(255, 255, 255, .15);
}
.showcase::before {
  content: ""; position: absolute; inset: -50%; z-index: -1;
  background: repeating-conic-gradient(from 0deg at 75% 50%, rgba(255, 255, 255, .07) 0 7deg, transparent 7deg 20deg);
  animation: spin 160s linear infinite reverse;
}
.showcase .info { padding: 64px 56px; display: flex; flex-direction: column; gap: 22px; }
.game-id { display: flex; align-items: center; gap: 20px; }
.game-id img { width: 104px; height: 104px; border-radius: 26px; box-shadow: 0 14px 30px rgba(0, 0, 0, .35), 0 0 0 3px rgba(255, 255, 255, .5); }
.game-id h3 { font: 800 50px/1 var(--display); letter-spacing: -.03em; margin: 0; }
.game-id h3 .glogo { height: 92px; width: auto; filter: drop-shadow(0 8px 14px rgba(0, 20, 80, .45)); }
.game-id p { margin: 6px 0 0; color: var(--ice-2); font-weight: 600; }
.showcase .desc { font-size: 19px; color: #e4edff; margin: 0; max-width: 28em; }
.stats { display: flex; gap: 12px; flex-wrap: wrap; }
.stat { background: rgba(4, 16, 70, .45); border: 1px solid rgba(255, 255, 255, .16); border-radius: 18px; padding: 14px 18px; min-width: 128px; }
.stat b { display: block; font: 800 26px/1.1 var(--display); color: var(--gold); }
.stat span { font-size: 14px; color: var(--ice-2); }
.soon { display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; padding: 12px 20px 12px 14px; border-radius: 16px; background: #000; color: #fff; font: 600 14px/1.2 var(--body); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .35); }
.soon svg { width: 26px; height: 26px; }
.soon small { display: block; font-size: 11px; opacity: .7; letter-spacing: .04em; }
.soon strong { font-size: 17px; }
.screens { position: relative; }
.screens img {
  position: absolute; width: 46%; border-radius: 26px; border: 6px solid #0b1236;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45); transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.screens img:nth-child(1) { left: 2%; top: 16%; transform: rotate(-9deg); z-index: 1; }
.screens img:nth-child(2) { left: 28%; top: 6%; transform: rotate(0deg); z-index: 3; }
.screens img:nth-child(3) { left: 54%; top: 16%; transform: rotate(9deg); z-index: 2; }
.showcase:hover .screens img:nth-child(1) { transform: rotate(-13deg) translate(-12px, 6px); }
.showcase:hover .screens img:nth-child(3) { transform: rotate(13deg) translate(12px, 6px); }
.showcase:hover .screens img:nth-child(2) { transform: translateY(-10px); }

/* mekanik kartları */
.mechs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 22px; }
.mech {
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); border: 1px solid var(--line);
  border-radius: 24px; padding: 22px 18px 20px; text-align: center; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), border-color .3s;
}
.mech:hover { transform: translateY(-8px) rotate(-1.5deg); border-color: rgba(95, 220, 255, .5); }
.mech img { width: 78px; height: 78px; margin: 0 auto 12px; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .4)); }
.mech b { display: block; font: 700 16px/1.2 var(--display); letter-spacing: -.01em; }
.mech span { font-size: 14px; color: var(--muted); }

/* sıradaki oyun */
.next {
  margin-top: 16px; display: flex; align-items: center; gap: 26px; padding: 26px 30px; border-radius: 28px;
  border: 2px dashed rgba(160, 200, 255, .25); background: rgba(123, 71, 255, .08);
}
.next img { width: 70px; height: 70px; animation: wiggle 3.5s ease-in-out infinite; }
.next b { font: 700 20px/1.2 var(--display); display: block; }
.next p { margin: 4px 0 0; color: var(--muted); }
@keyframes wiggle { 0%, 80%, 100% { rotate: 0deg; } 85% { rotate: -10deg; } 90% { rotate: 9deg; } 95% { rotate: -5deg; } }

/* stüdyo */
.studio { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.word { font: 800 clamp(40px, 5vw, 72px)/.98 var(--display); letter-spacing: -.05em; margin: 0; color: var(--cream); }
.word small { display: block; font: 500 18px/1.4 var(--body); letter-spacing: 0; color: var(--muted); margin-top: 18px; }
.values { display: grid; gap: 16px; }
.value { display: grid; grid-template-columns: 76px 1fr; gap: 20px; align-items: center; padding: 22px 24px; border-radius: 24px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.value img { width: 76px; height: 76px; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .4)); }
.value h3 { font: 700 21px/1.2 var(--display); margin: 0 0 6px; letter-spacing: -.01em; }
.value p { margin: 0; color: var(--muted); }

/* iletişim */
.contact {
  position: relative; margin: 130px auto 0; padding: 80px 40px; text-align: center; border-radius: 40px; overflow: hidden; isolation: isolate;
  background: radial-gradient(80% 120% at 50% 0%, #2a1a8a, #120a4a 60%, #0a0730);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.contact h2 { font: 800 clamp(36px, 6vw, 76px)/1 var(--display); letter-spacing: -.035em; margin: 0 0 16px; }
.contact p { color: #cdd3ff; font-size: 19px; margin: 0 0 30px; }
.contact .actions { justify-content: center; }
.contact .deco { position: absolute; z-index: -1; width: 120px; opacity: .9; animation: bob 7s ease-in-out infinite; }
.contact .d1 { left: 5%; top: 18%; rotate: -16deg; }
.contact .d2 { right: 6%; top: 12%; width: 140px; animation-delay: -2s; }
.contact .d3 { right: 14%; bottom: 8%; width: 90px; animation-delay: -4s; }
.contact .d4 { left: 12%; bottom: 6%; width: 100px; animation-delay: -3s; rotate: 12deg; }

/* alt bilgi */
footer { padding: 70px 0 40px; margin-top: 70px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
footer img { height: 34px; width: auto; opacity: .9; }
footer nav { display: flex; gap: 26px; flex-wrap: wrap; }
footer nav a { color: var(--muted); font-weight: 600; font-size: 15px; }
footer nav a:hover { color: #fff; }
footer .copy { width: 100%; color: #6f7fb0; font-size: 14px; }

/* kaydırınca görünme */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s cubic-bezier(.2, .8, .2, 1), transform .9s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- metin sayfaları (gizlilik/şartlar/destek) ---------- */
.doc-head { padding: 150px 0 50px; position: relative; overflow: hidden; isolation: isolate; }
.doc-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 120% at 80% 0%, rgba(30, 92, 255, .45), transparent 70%); }
.doc-head h1 { font: 800 clamp(40px, 7vw, 84px)/1 var(--display); letter-spacing: -.04em; margin: 0 0 14px; }
.doc-head p { color: var(--muted); margin: 0; font-size: 18px; }
.doc { width: min(780px, 100% - 32px); margin: 0 auto; }
.doc section { padding: 26px 30px; border-radius: 24px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); margin-bottom: 14px; }
.doc h2 { font: 700 21px/1.3 var(--display); letter-spacing: -.01em; margin: 0 0 8px; color: #fff; }
.doc p, .doc li { color: #d3dcf5; }
.doc p { margin: 0 0 10px; }
.doc p:last-child { margin-bottom: 0; }
.doc ul { margin: 0; padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc .mail { font: 700 clamp(20px, 3.4vw, 30px)/1.2 var(--display); color: var(--gold); word-break: break-all; }
.muted { color: var(--muted); }

/* ---------- mobil ---------- */
@media (max-width: 960px) {
  .hero .wrap, .showcase, .studio { grid-template-columns: 1fr; }
  .hero { padding-top: 110px; text-align: left; }
  .stage { width: min(330px, 80%); margin-top: 20px; }
  .showcase .info { padding: 40px 26px 10px; }
  .screens { min-height: 520px; }
  .mechs { grid-template-columns: repeat(2, 1fr); }
  .mech:last-child { grid-column: span 2; }
  .studio { gap: 30px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav ul a:not(.cta) { display: none; }
  .nav .brand img { height: 24px; }
  .game-id img { width: 78px; height: 78px; border-radius: 20px; }
  .game-id h3 { font-size: 38px; }
  .game-id h3 .glogo { height: 66px; }
  .screens { min-height: 420px; }
  .screens img { width: 50%; border-width: 4px; border-radius: 18px; }
  .screens img:nth-child(1) { left: 0; } .screens img:nth-child(2) { left: 25%; } .screens img:nth-child(3) { left: 50%; }
  .ribbon span { font-size: 17px; padding: 12px 16px; gap: 14px; }
  .ribbon img { width: 30px; height: 30px; }
  .value { grid-template-columns: 56px 1fr; padding: 18px; }
  .value img { width: 56px; height: 56px; }
  .contact { padding: 60px 20px; border-radius: 30px; }
  .contact .deco { width: 70px; opacity: .45; }
  .next { flex-direction: column; text-align: center; gap: 14px; }
  .doc section { padding: 22px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise, .reveal { opacity: 1; transform: none; }
}
