* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 72% 18%, rgba(217, 186, 140, 0.22), transparent 34%),
    radial-gradient(circle at 20% 80%, rgba(85, 114, 154, 0.16), transparent 32%),
    linear-gradient(135deg, #06101f 0%, #0f172a 48%, #111827 100%);
  color: #f8fafc;
  overflow-x: hidden;
}

body.lightbox-open {
  overflow: hidden;
}

#pelvis-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.72;
}

.background-noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent 85%);
}

main,
.topbar,
.model-note {
  position: relative;
  z-index: 2;
}

.topbar {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 28px));
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(245, 222, 179, 0.18);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

.topbar strong {
  color: #f8dbac;
  margin-right: 10px;
}

.topbar span {
  color: #cbd5e1;
  font-size: 14px;
}

.topbar a {
  color: #07111f;
  background: #f8dbac;
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
}

.hero {
  min-height: 100vh;
  width: min(1120px, 92%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
}

.hero-copy {
  max-width: 780px;
  padding: 42px;
  border-radius: 34px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(245, 222, 179, 0.22);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 100px rgba(0,0,0,0.45);
}

.eyebrow {
  margin: 0 0 14px;
  color: #e6c99d;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
}

h1,
h2 {
  margin: 0;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

h1 {
  max-width: 860px;
  font-size: clamp(46px, 7vw, 86px);
  margin-bottom: 22px;
}

h2 {
  font-size: clamp(30px, 4vw, 54px);
  margin-bottom: 20px;
}

p {
  margin: 0;
  font-size: 20px;
  line-height: 1.7;
  color: #dbe5f2;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-badges span,
.timeline span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(230, 201, 157, 0.1);
  border: 1px solid rgba(230, 201, 157, 0.24);
  color: #f8dbac;
  font-weight: 700;
  font-size: 14px;
}

.intro-section {
  width: min(1120px, 92%);
  margin: 0 auto;
  padding: 90px 0 50px;
}

.section-title {
  max-width: 850px;
  padding: 34px;
  border-radius: 30px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(18px);
}

.timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.process-section {
  width: min(1320px, 94%);
  margin: 0 auto;
  padding: 30px 0 90px;
}

.process-card {
  min-height: 92vh;
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 34px;
  align-items: center;
  padding: 70px 0;
  border-bottom: 1px solid rgba(245, 222, 179, 0.12);
}

.process-card:last-child {
  border-bottom: 0;
}

.process-text {
  padding: 34px;
  border-radius: 30px;
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid rgba(245, 222, 179, 0.17);
  box-shadow: 0 28px 90px rgba(0,0,0,0.35);
  backdrop-filter: blur(18px);
}

.step {
  display: inline-block;
  margin-bottom: 18px;
  color: #07111f;
  background: #f8dbac;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-top: 24px;
}

.format-grid div {
  padding: 15px;
  border-radius: 18px;
  background: rgba(230, 201, 157, 0.1);
  border: 1px solid rgba(230, 201, 157, 0.2);
}

.format-grid strong {
  display: block;
  color: #f8dbac;
  font-size: 20px;
  margin-bottom: 4px;
}

.format-grid span {
  color: #cbd5e1;
  font-size: 14px;
}

.screenshot-card,
.video-frame {
  margin: 0;
  padding: 14px;
  border-radius: 28px;
  background: rgba(8, 13, 23, 0.78);
  border: 1px solid rgba(245, 222, 179, 0.20);
  box-shadow: 0 30px 100px rgba(0,0,0,0.48);
  backdrop-filter: blur(16px);
}

.open-media {
  width: 100%;
  padding: 0;
  border: 0;
  background: #05070c;
  border-radius: 20px;
  cursor: zoom-in;
  display: block;
  overflow: auto;
  max-height: 78vh;
}

.screenshot-card img {
  width: 100%;
  height: auto;
  min-height: 260px;
  display: block;
  object-fit: contain;
  background: #05070c;
  border-radius: 20px;
}

.screenshot-card.wide .open-media {
  max-height: 82vh;
}

.screenshot-card.wide img {
  min-height: 420px;
}

.screenshot-card.tall .open-media {
  max-height: 82vh;
}

figcaption {
  padding: 13px 6px 2px;
  color: #b7c4d8;
  font-size: 14px;
  line-height: 1.5;
}

.wide-card {
  grid-template-columns: 0.72fr 1.28fr;
}

.video-card {
  grid-template-columns: 0.82fr 1.18fr;
}

.video-frame video {
  width: 100%;
  max-height: 78vh;
  display: block;
  border-radius: 20px;
  background: #000;
}

.closing-section {
  width: min(1050px, 92%);
  margin: 0 auto;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 90px 0;
}

.closing-card {
  width: 100%;
  text-align: center;
  padding: 42px;
  border-radius: 34px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(245, 222, 179, 0.22);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 100px rgba(0,0,0,0.45);
}

.closing-card p {
  max-width: 850px;
  margin: 0 auto;
}

.model-note {
  position: fixed;
  right: 22px;
  bottom: 22px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid rgba(230, 201, 157, 0.28);
  color: #f8dbac;
  font-size: 14px;
  backdrop-filter: blur(14px);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 26px;
  background: rgba(0, 0, 0, 0.88);
}

.lightbox.is-open {
  display: flex;
}

.lightbox-content {
  width: min(1500px, 96vw);
  max-height: 92vh;
  overflow: auto;
  padding: 16px;
  border-radius: 26px;
  background: #080d17;
  border: 1px solid rgba(245, 222, 179, 0.22);
}

.lightbox-content img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  background: #000;
}

.lightbox-content p {
  color: #f8dbac;
  padding: 14px 4px 0;
  font-size: 15px;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 26px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: #f8dbac;
  color: #07111f;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 950px) {
  .topbar {
    display: none;
  }

  #pelvis-canvas {
    opacity: 0.42;
  }

  .hero {
    padding-top: 60px;
  }

  .hero-copy,
  .process-text,
  .section-title,
  .closing-card {
    padding: 25px;
  }

  .process-card,
  .wide-card,
  .video-card {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 40px 0;
  }

  .open-media {
    max-height: none;
    overflow: visible;
  }

  .screenshot-card img,
  .screenshot-card.wide img {
    min-height: 0;
  }

  p {
    font-size: 18px;
  }

  .model-note {
    display: none;
  }
}

/* --- FIX 01: Üst kart yerine gerçek içindekiler menüsü --- */
@media (min-width: 1181px) {
  body {
    padding-left: 268px;
  }
}

.contents-panel {
  position: fixed;
  left: 18px;
  top: 18px;
  bottom: 18px;
  width: 232px;
  z-index: 12;
  padding: 16px;
  border-radius: 28px;
  background: rgba(8, 13, 23, 0.82);
  border: 1px solid rgba(245, 222, 179, 0.22);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
  overflow: auto;
}

.contents-brand {
  display: block;
  text-decoration: none;
  padding: 12px 12px 16px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(245, 222, 179, 0.16);
}

.contents-brand strong {
  display: block;
  color: #f8dbac;
  font-size: 16px;
  line-height: 1.2;
}

.contents-brand span {
  display: block;
  color: #b7c4d8;
  font-size: 12px;
  line-height: 1.35;
  margin-top: 6px;
}

.contents-list {
  display: grid;
  gap: 7px;
}

.contents-list a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 14px;
  text-decoration: none;
  color: #dbe5f2;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.075);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.contents-list a:hover {
  transform: translateX(3px);
  background: rgba(230, 201, 157, 0.13);
  border-color: rgba(230, 201, 157, 0.32);
}

.contents-list span {
  flex: 0 0 auto;
  width: 29px;
  height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #07111f;
  background: #f8dbac;
  font-size: 12px;
  font-weight: 900;
}

#baslangic,
.process-card,
.closing-section {
  scroll-margin-top: 28px;
}

/* --- FIX 02: Mobilde içindekiler üstte yatay menü olur, kartların üstüne binmez --- */
@media (max-width: 1180px) {
  .contents-panel {
    left: 12px;
    right: 12px;
    top: 12px;
    bottom: auto;
    width: auto;
    height: auto;
    max-height: 86px;
    border-radius: 22px;
    padding: 10px;
    overflow: hidden;
  }

  .contents-brand {
    display: none;
  }

  .contents-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  .contents-list a {
    white-space: nowrap;
    min-height: 42px;
    padding-right: 14px;
  }

  #baslangic,
  .process-card,
  .closing-section {
    scroll-margin-top: 108px;
  }

  .hero {
    padding-top: 118px;
  }
}
