:root {
  --night: #100a20;
  --plum: #2a1650;
  --turq: #38dddf;
  --blue: #2a6ef2;
  --deep-blue: #0a3fb0;
  --ink: #0d1216;
  --paper: #f3fbff;
  --glass: rgba(6, 12, 40, .6);
  --line: rgba(255, 255, 255, .18);
  --gutter: clamp(18px, 5vw, 64px);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: #fff;
  background: var(--night);
}
h1, h2, h3 { font-family: "Sora", "DM Sans", sans-serif; margin: 0 0 .5em; line-height: 1.08; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 700; line-height: 1.15; }
h3 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0 0 1em; max-width: 60ch; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--turq); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--turq); color: var(--ink); padding: 8px 14px; z-index: 20; border-radius: 10px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 20px;
  padding: 10px var(--gutter);
  background: rgba(16, 10, 32, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.25rem; }
.brand img { width: 44px; height: 44px; border-radius: 12px; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.site-header nav a { text-decoration: none; font-weight: 600; padding: 8px 2px; opacity: .9; }
.site-header nav a:hover { color: var(--turq); opacity: 1; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(48px, 9vw, 110px) var(--gutter) clamp(64px, 10vw, 130px);
  background:
    radial-gradient(60% 55% at 78% 40%, rgba(56, 221, 223, .28), transparent 70%),
    radial-gradient(50% 60% at 12% 0%, rgba(42, 110, 242, .35), transparent 70%),
    linear-gradient(160deg, var(--plum), var(--night) 70%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background: repeating-radial-gradient(circle at 85% 110%, transparent 0 22px, rgba(255, 255, 255, .05) 22px 23px);
}
.hero-inner {
  position: relative; max-width: var(--max); margin: 0 auto;
  display: grid; gap: 48px; align-items: center;
}
@media (min-width: 860px) { .hero-inner { grid-template-columns: 1.15fr .85fr; } }
.hero .lead { font-size: clamp(1.15rem, 2vw, 1.45rem); color: var(--turq); font-weight: 500; max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.logo-tile {
  width: min(440px, 80vw); aspect-ratio: 1; margin: 0 auto;
  border-radius: 56px; overflow: hidden;
  box-shadow: 0 0 0 3px var(--turq), 0 28px 60px rgba(0, 0, 0, .5);
  animation: float 6s ease-in-out infinite;
}
.logo-tile img { width: 100%; height: 100%; object-fit: cover; }
@keyframes float { 50% { transform: translateY(-12px); } }

.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 14px 28px; border-radius: 999px;
  background: var(--turq); color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
.btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); }
.btn.ghost:hover { box-shadow: inset 0 0 0 2px var(--turq); }

/* Sections */
.band { padding: clamp(56px, 9vw, 112px) var(--gutter); }
.band-inner { max-width: var(--max); margin: 0 auto; }
.band-intro { margin-bottom: 40px; }
.band-intro p { color: rgba(255, 255, 255, .85); font-size: 1.15rem; }

.apps-band { background: linear-gradient(135deg, var(--deep-blue) 0%, #0a62b8 60%, #0a78a6 100%); }
.games-band { background: linear-gradient(180deg, var(--night), var(--plum)); }

.bento { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .bento .span-6 { grid-column: span 6; }
  .bento .span-4 { grid-column: span 4; }
  .bento .span-3 { grid-column: span 3; }
  .bento .span-2 { grid-column: span 2; }
}

.card {
  position: relative; overflow: hidden;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: clamp(22px, 3vw, 36px);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex; flex-direction: column; gap: 18px;
}
.card .head { display: flex; align-items: center; gap: 18px; }
.card .icon { width: 84px; height: 84px; border-radius: 22px; object-fit: cover; flex: none; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.card h3 { margin: 0; }
.card .tagline { font-family: "Sora", sans-serif; font-weight: 700; font-size: 1.35rem; line-height: 1.35; color: #fff; margin: 0; max-width: 34ch; }
.card.feature { justify-content: space-between; }
.card.feature .icon { width: 132px; height: 132px; border-radius: 32px; }
.card.feature .tagline { font-size: clamp(1.5rem, 3vw, 2.2rem); }
@media (max-width: 599px) { .card.feature .icon { width: 84px; height: 84px; border-radius: 22px; } }
.card .kicker { margin: 0; font-weight: 600; color: var(--turq); font-size: .95rem; }
.card p { color: rgba(255, 255, 255, .88); }
.card .stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; align-items: center; }
.card .stores img { height: 46px; width: auto; }
.card .stores a { border-radius: 10px; transition: transform .15s ease; }
.card .stores a:hover { transform: translateY(-2px); }

.card.art { padding: 0; }
.card.art .art-img { aspect-ratio: 1; width: 100%; object-fit: cover; }
.card.art .body { padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; gap: 14px; flex: 1; }

.shots { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.shots img { height: 380px; width: auto; border-radius: 20px; scroll-snap-align: start; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }

.game-card .art-img { aspect-ratio: 16 / 10; object-position: center; }

/* Contact */
.contact { background: var(--night); text-align: center; }
.contact .band-inner { display: flex; flex-direction: column; align-items: center; }
.contact a.mail { font-family: "Sora", sans-serif; font-weight: 700; font-size: clamp(1.4rem, 4vw, 2.4rem); color: var(--turq); text-decoration: none; word-break: break-word; }
.contact a.mail:hover { text-decoration: underline; text-underline-offset: 8px; }

.site-footer {
  padding: 28px var(--gutter);
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px;
  max-width: none; background: var(--night); color: rgba(255, 255, 255, .8);
}
.site-footer a { font-weight: 600; margin-right: 16px; }

/* Inner pages */
.doc-wrap { background: var(--night); min-height: 70vh; }
.doc { max-width: 760px; margin: 0 auto; padding: 48px var(--gutter) 90px; }
.doc h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); }
.doc h2 { font-size: 1.5rem; margin-top: 1.8em; color: var(--turq); }
.doc p, .doc li { color: rgba(255, 255, 255, .88); }

/* ---- Ortalanmış kart düzeni ---- */
.card { align-items: center; text-align: center; transition: transform .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-4px); border-color: rgba(56, 221, 223, .6); }
.card .head { flex-direction: column; gap: 14px; }
.card p, .card .tagline { margin-left: auto; margin-right: auto; }
.card .stores { justify-content: center; }
.card.art .body { align-items: center; text-align: center; }
.card.feature { justify-content: center; gap: 18px; width: 100%; max-width: 780px; justify-self: center; padding-block: clamp(32px, 5vw, 56px); }
.card.feature p { margin-bottom: 0; }
.card.feature .stores { margin-top: 6px; }
.shots { justify-content: safe center; width: 100%; padding: 6px 4px 12px; }
.shots img { height: clamp(340px, 42vw, 460px); }
.band-intro { text-align: center; }
.band-intro p { margin-left: auto; margin-right: auto; }
.card.span-6 > p { max-width: 64ch; }

/* ---- Arka plan hareketi ---- */
.band { position: relative; overflow: hidden; }
.band-inner { position: relative; z-index: 1; }
.apps-band { padding-top: clamp(110px, 12vw, 150px); padding-bottom: clamp(110px, 12vw, 150px); background-size: 220% 220%; animation: flow 20s ease-in-out infinite alternate; }
@keyframes flow { from { background-position: 0% 40%; } to { background-position: 100% 60%; } }

.aurora, .bubbles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.aurora span { position: absolute; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; border-radius: 50%; animation: drift 22s ease-in-out infinite alternate; }
.aurora span:nth-child(1) { top: -20%; left: -10%; background: radial-gradient(circle, rgba(56, 221, 223, .32), transparent 65%); }
.aurora span:nth-child(2) { bottom: -30%; right: -10%; background: radial-gradient(circle, rgba(122, 60, 255, .38), transparent 65%); animation-duration: 28s; animation-direction: alternate-reverse; }
.aurora span:nth-child(3) { top: 10%; right: 25%; background: radial-gradient(circle, rgba(42, 110, 242, .35), transparent 65%); animation-duration: 18s; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(8vw, 6vh) scale(1.25); } }

.bubbles span {
  position: absolute; left: var(--x); bottom: -70px; width: var(--s); height: var(--s);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .4), rgba(255, 255, 255, .04) 62%);
  animation: rise var(--d) linear infinite;
}
@keyframes rise {
  0% { transform: translate(0, 0); opacity: 0; }
  8% { opacity: 1; }
  50% { transform: translate(var(--sway), -70vh); }
  92% { opacity: .8; }
  100% { transform: translate(0, -150vh); opacity: 0; }
}

.waves { position: absolute; left: 0; width: 100%; height: clamp(50px, 7vw, 100px); pointer-events: none; overflow: hidden; z-index: 0; }
.waves.top { top: -1px; }
.waves.bottom { bottom: -1px; }
.waves svg { position: absolute; left: 0; width: 200%; height: 100%; animation: slide 24s linear infinite; }
.waves svg:nth-child(2) { animation-duration: 15s; animation-direction: reverse; }
.waves path { fill: var(--night); }
.waves svg:nth-child(2) path { fill-opacity: .5; }
.waves.top svg { top: 0; }
.waves.bottom svg { bottom: 0; }
@keyframes slide { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora span, .bubbles span, .waves svg, .apps-band { animation: none; }
  .card { transition: none; }
  .logo-tile { animation: none; }
  .btn, .card .stores a { transition: none; }
}
