/* Spacexel tanıtım sayfası: ethembudak.com/spacexel/
   Hungry Gorilla ve Gokki Island sayfalarıyla aynı yapı; renkler ve yazı tipi (Oxanium) oyundan. */

@font-face {
  font-family: "Oxanium";
  src: url("../fonts/Oxanium.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #07040f;
  --bg-2: #120826;
  --panel: #0e0b1f;
  --line: rgba(120, 140, 255, .18);
  --ink: #eef1ff;
  --ink-soft: #c3c8e6;
  --muted: #8d92b8;
  --cyan: #5af2ff;
  --magenta: #ff4dd8;
  --gold: #ffd14d;
  --violet: #8b5cff;
  --glow-cyan: 0 0 10px rgba(90, 242, 255, .55), 0 0 32px rgba(90, 242, 255, .3);
  --glow-magenta: 0 0 10px rgba(255, 77, 216, .55), 0 0 32px rgba(255, 77, 216, .3);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(139, 92, 255, .22), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(90, 242, 255, .10), transparent 60%),
    var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 "Oxanium", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}
img { max-width: 100%; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; border-radius: 6px; }
h1, h2, h3 { font-weight: 700; letter-spacing: .01em; }

/* --- header & footer ---------------------------------------------------- */

.sx-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 5;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sx-doc-page .sx-header { position: static; border-bottom: 1px solid var(--line); }
.sx-brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: .04em; text-decoration: none; min-height: 44px; }
.sx-brand img { border-radius: 11px; box-shadow: 0 0 0 1px rgba(90, 242, 255, .35), 0 0 18px rgba(90, 242, 255, .25); }
.sx-header nav { display: flex; gap: 20px; font-size: 14px; font-weight: 600; flex-wrap: wrap; justify-content: flex-end; }
.sx-header nav a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; color: var(--ink-soft); }
.sx-header nav a:hover { color: var(--cyan); }
.sx-lang { letter-spacing: .08em; font-size: 12px; text-transform: uppercase; }

.sx-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  color: var(--muted);
  font-size: 14px;
}
.sx-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.sx-footer a { text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.sx-footer a:hover { color: var(--cyan); }

/* --- shared bits -------------------------------------------------------- */

.sx-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.sx-label span { color: var(--magenta); font-variant-numeric: tabular-nums; }

.sx-button {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 52px;
  padding: .7rem 1.6rem;
  border: 2px solid var(--magenta);
  border-radius: 999px;
  background: rgba(255, 77, 216, .12);
  box-shadow: var(--glow-magenta), inset 0 0 18px rgba(255, 77, 216, .2);
  color: #fff;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.sx-button:hover { background: rgba(255, 77, 216, .24); transform: translateY(-1px); }
.sx-status { margin: 18px 0 0; color: var(--muted); font-size: 14px; font-weight: 600; letter-spacing: .04em; }
.sx-status .og-badge img { height: 48px; }

/* Telefon çerçevesi: oyun ekranları 720x1565 */
.sx-phone {
  margin: 0;
  width: min(300px, 70vw);
  aspect-ratio: 720 / 1565;
  border-radius: 38px;
  padding: 9px;
  background: linear-gradient(160deg, #2a2d48, #0b0b16 55%, #22253d);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 60px -20px rgba(0, 0, 0, .8), 0 0 60px -10px rgba(139, 92, 255, .45);
}
.sx-phone img { display: block; width: 100%; height: 100%; border-radius: 30px; object-fit: cover; }

/* --- hero --------------------------------------------------------------- */

.sx-hero {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: min(920px, 100svh);
  padding: 120px 0 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: 40px;
}
.sx-logo {
  margin: 0 0 18px;
  font-size: clamp(3.4rem, 9vw, 6.6rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: .02em;
}
.sx-space { color: var(--cyan); text-shadow: var(--glow-cyan); }
.sx-xel { color: var(--magenta); text-shadow: var(--glow-magenta); }
.sx-intro { margin: 0 0 28px; max-width: 34em; color: var(--ink-soft); font-size: clamp(1.05rem, 1.6vw, 1.2rem); }

.sx-stage { position: relative; display: flex; justify-content: center; align-items: center; min-height: 560px; }
.sx-hero-phone { position: relative; z-index: 2; width: min(320px, 72vw); transform: rotate(-3deg); }

/* Yüzen neon voxel'ler (oyundaki parlak kenarlı küpler) */
.sx-voxel {
  position: absolute;
  z-index: 1;
  width: 64px;
  aspect-ratio: 1;
  border: 3px solid var(--cyan);
  border-radius: 6px;
  background: rgba(90, 242, 255, .08);
  box-shadow: var(--glow-cyan), inset 0 0 14px rgba(90, 242, 255, .35);
  animation: sx-float 7s ease-in-out infinite;
}
.sx-v0 { top: 6%; left: 6%; }
.sx-v1 { top: 16%; right: 4%; width: 44px; border-color: var(--magenta); background: rgba(255, 77, 216, .08); box-shadow: var(--glow-magenta), inset 0 0 14px rgba(255, 77, 216, .35); animation-delay: -2s; }
.sx-v2 { bottom: 12%; left: 0; width: 52px; animation-delay: -4s; }
.sx-v3 { bottom: 4%; right: 12%; width: 72px; border-color: var(--violet); background: rgba(139, 92, 255, .1); box-shadow: 0 0 12px rgba(139, 92, 255, .6), inset 0 0 14px rgba(139, 92, 255, .4); animation-delay: -1s; }
.sx-v4 { top: 48%; left: 14%; width: 28px; border-color: var(--gold); background: rgba(255, 209, 77, .15); box-shadow: 0 0 12px rgba(255, 209, 77, .7); animation-delay: -3s; }
.sx-v5 { top: 40%; right: 10%; width: 22px; border-color: var(--gold); background: rgba(255, 209, 77, .15); box-shadow: 0 0 12px rgba(255, 209, 77, .7); animation-delay: -5s; }
@keyframes sx-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(6deg); }
}

/* --- chapters ----------------------------------------------------------- */

.sx-chapter { padding: clamp(56px, 8vw, 110px) 0; border-top: 1px solid var(--line); overflow-x: clip; }
.sx-hero, .sx-finale { overflow-x: clip; }
.sx-chapter-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}
.sx-chapter:nth-child(even) .sx-chapter-copy { order: 2; }
.sx-chapter-copy h2 { margin: 0 0 16px; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.12; }
.sx-chapter-copy p { margin: 0 0 14px; max-width: 34em; color: var(--ink-soft); }
.sx-chapter-stage { display: flex; justify-content: center; }
.sx-overdrive h2 { text-shadow: var(--glow-magenta); }

/* Hangar: üç roket ekranı yelpaze şeklinde */
.sx-hangar .sx-chapter-stage { position: relative; min-height: 600px; align-items: center; }
.sx-hangar .sx-phone { position: absolute; width: min(250px, 46vw); }
.sx-hangar .sx-ph0 { transform: translateX(-62%) rotate(-8deg); }
.sx-hangar .sx-ph1 { z-index: 2; }
.sx-hangar .sx-ph2 { transform: translateX(62%) rotate(8deg); }

/* --- promise grid ------------------------------------------------------- */

.sx-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 120px) 0;
  border-top: 1px solid var(--line);
}
.sx-section > h2 { margin: 0 0 10px; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.1; }
.sx-lead { margin: 0 0 36px; color: var(--ink-soft); font-size: 1.1rem; max-width: 40em; }
.sx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sx-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(139, 92, 255, .08), rgba(14, 11, 31, .9));
}
.sx-grid h3 { margin: 0 0 8px; color: var(--cyan); font-size: 1.15rem; }
.sx-grid p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* --- finale ------------------------------------------------------------- */

.sx-finale {
  padding: clamp(64px, 9vw, 120px) 0;
  background:
    linear-gradient(180deg, transparent, rgba(255, 77, 216, .07) 40%, rgba(90, 242, 255, .06)),
    repeating-linear-gradient(90deg, rgba(90, 242, 255, .05) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(90, 242, 255, .05) 0 1px, transparent 1px 64px);
  border-top: 1px solid var(--line);
}
.sx-finale-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}
.sx-finale h2 { margin: 0 0 14px; font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.08; }
.sx-finale p { margin: 0; max-width: 36em; color: var(--ink-soft); font-size: 1.1rem; }
.sx-stats { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; }
.sx-stats li {
  min-width: 110px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(14, 11, 31, .8);
}
.sx-stats strong { display: block; color: var(--gold); font-size: 2rem; line-height: 1.1; text-shadow: 0 0 14px rgba(255, 209, 77, .5); }
.sx-stats span { color: var(--muted); font-size: .9rem; font-weight: 600; }
.sx-finale .sx-phone { width: min(280px, 66vw); transform: rotate(3deg); }

/* "Diğer oyunlar": ortak açık kart tasarımı (other-games.css), koyu sayfada açık bir bant içinde */
.sx-others { background: #f4f3ef; }

/* --- privacy & support -------------------------------------------------- */

.sx-doc { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0 72px; }
.sx-doc h1 { margin: 0 0 8px; font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.1; color: var(--cyan); text-shadow: var(--glow-cyan); }
.sx-doc h2 { margin: 32px 0 8px; font-size: 1.25rem; }
.sx-doc p, .sx-doc li { color: var(--ink-soft); }
.sx-doc ul { padding-left: 1.2em; }
.sx-doc a { color: var(--cyan); text-underline-offset: 3px; }
.sx-updated { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.sx-doc .sx-lead { margin-bottom: 8px; }
.sx-contact { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }

/* --- responsive --------------------------------------------------------- */

@media (max-width: 900px) {
  .sx-hero { grid-template-columns: minmax(0, 1fr); padding-top: 104px; text-align: center; }
  .sx-intro { margin-left: auto; margin-right: auto; }
  .sx-stage { min-height: 520px; }
  .sx-chapter-inner, .sx-finale-inner { grid-template-columns: minmax(0, 1fr); }
  .sx-chapter:nth-child(even) .sx-chapter-copy { order: 0; }
  .sx-finale-inner { justify-items: center; }
  .sx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .sx-header nav { gap: 14px; }
  .sx-brand span { display: none; }
  .sx-grid { grid-template-columns: minmax(0, 1fr); }
  .sx-hangar .sx-chapter-stage { min-height: 440px; }
  .sx-hangar .sx-phone { width: 40vw; }
  .sx-hangar .sx-ph0 { transform: translateX(-52%) rotate(-8deg); }
  .sx-hangar .sx-ph2 { transform: translateX(52%) rotate(8deg); }
  .sx-voxel { width: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sx-voxel { animation: none; }
  .sx-button { transition: none; }
}
