/* ==========================================================================
   KENT OYUNU LANDING PAGE - PRODUCTION STYLESHEET
   1:1 Pixel-Faithful Figma First Page (Node 1:2) + Clean Web Experience
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS RESET & DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  --color-parchment-light: #fdf6ea;
  --color-parchment: #dfc7a7;
  --color-parchment-dark: #c5a47e;
  --color-antique-brown: #372515;
  --color-dark-wood: #180f08;
  --color-dark-surface: #22150c;
  --color-gold-ribbon: #e0ac69;
  --color-gold-ribbon-light: #eec48d;
  --color-gold-ribbon-dark: #a6723a;
  --color-gold-accent: #f2c98a;
  --color-cyber-gold: #ffbe53;
  --color-white: #ffffff;

  --font-headline: 'Orbitron', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-subtitle: 'MedievalSharp', Georgia, serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

  --poster-width: 1366px;
  --poster-height: 768px;
  --header-height: 60px;
  --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--color-dark-wood);
  color: var(--color-antique-brown);
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: #e6cca8;
  color: var(--color-antique-brown);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

:focus-visible {
  outline: 3px solid var(--color-cyber-gold);
  outline-offset: 3px;
}

.skip-to-content {
  position: fixed;
  top: -100px;
  left: 16px;
  background: var(--color-dark-wood);
  color: var(--color-gold-accent);
  font-family: var(--font-headline);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 8px;
  border: 2px solid var(--color-gold-ribbon);
  z-index: 3000;
  transition: top 0.2s ease;
}

.skip-to-content:focus {
  top: 16px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* --------------------------------------------------------------------------
   2. ADAPTIVE NAVIGATION BAR
   - Hidden at scrollY=0 on desktop so the 16:9 Figma poster is 100% pure.
   - Slides in smoothly when scrolling down.
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(18, 11, 6, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(224, 172, 105, 0.45);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.65);
  z-index: 1000;
  padding: 0 28px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.site-header:not(.scrolled) {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.site-header.scrolled {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  gap: 20px;
}

.header-brand {
  display: flex;
  align-items: center;
}

.header-kent-logo {
  height: 40px;
  width: auto;
  transition: transform 0.2s ease;
}

.header-kent-logo:hover {
  transform: scale(1.04);
}

.main-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-parchment-light);
  letter-spacing: 0.02em;
  position: relative;
  padding: 4px 0;
  opacity: 0.92;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-gold-accent);
  opacity: 1;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-gold-accent);
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
}

.mobile-menu-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: var(--color-gold-accent);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* --------------------------------------------------------------------------
   3. HERO SECTION: 1:1 FULL-BLEED FIGMA REPLICA (Node 1:2 - 1366x768)
   -------------------------------------------------------------------------- */
.poster-hero-section {
  position: relative;
  width: 100%;
  margin-top: 0;
  background-color: #d6bc99;
  overflow: hidden;
  z-index: 1;
}

.poster-canvas {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1366 / 768;
  background-image: url('../assets/images/figma_hero_bg.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% 100%;
  overflow: hidden;
}

.poster-top-center-brand,
.poster-headline-container {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Clickable Hit-Area over Top-Left "sakin okul" Logo (Figma: x=54.7, y=53.3, w=127.6, h=27.9) */
.poster-top-left-brand {
  position: absolute;
  left: 4.00%;
  top: 6.94%;
  width: 9.34%;
  height: 3.63%;
  z-index: 10;
}

.poster-top-left-brand a {
  display: block;
  width: 100%;
  height: 100%;
}

.sakin-logo-img {
  opacity: 0;
  width: 100%;
  height: 100%;
}

.poster-center-phone {
  display: none;
}

.phone-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Right: 2 Store Badges in the Exact 2 Figma Slots:
   - Slot 1 (Google Play TR): x=861.9 (63.10%), y=278.9 (36.32%), w=175.4 (12.84%), h=52.1 (6.78%)
   - Slot 2 (Web'de Oyna):    x=861.9 (63.10%), y=354.5 (46.16%), w=175.4 (12.84%), h=55.6 (7.24%)
     (Pointed to directly by the Figma arrow click cursor at x=1024, y=405.3!) */
.poster-right-badges {
  position: absolute;
  left: 63.10%;
  top: 36.32%;
  width: 12.84%;
  height: 17.08%;
  z-index: 9;
}

.hero-action-badge {
  position: absolute;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 7%;
  background: #000000;
  border: 1.5px solid #a6a6a6;
  border-radius: 7px;
  padding: 0 7%;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-action-badge.badge-slot-1 {
  top: 0;
  height: 39.7%;
}

.hero-action-badge.badge-slot-2 {
  bottom: 0;
  height: 42.4%;
}

.hero-action-badge:hover {
  transform: scale(1.04) translateY(-2px);
  border-color: var(--color-gold-ribbon);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.42);
}

.badge-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.badge-icon-wrap svg {
  width: clamp(20px, 1.9vw, 32px);
  height: clamp(20px, 1.9vw, 32px);
}

.web-icon-gold {
  color: var(--color-gold-ribbon);
}

.badge-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
  text-align: left;
}

.badge-label-top {
  font-family: var(--font-body);
  font-size: clamp(0.46rem, 0.54vw, 0.72rem);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #e5e5e5;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-label-main {
  font-family: var(--font-body);
  font-size: clamp(0.84rem, 1.06vw, 1.42rem);
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* Bottom: Golden Ribbon Banner (Figma 1:642 -> y=718.1 / 93.5%, h=49.9 / 6.5%) */
.poster-bottom-ribbon {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 6.5%;
  background: transparent;
  z-index: 7;
}

.ribbon-inner {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  width: 100%;
}

/* Clickable Hit-Area over Instagram Icon + SAKİNOKUL (Figma: x=43.9, y=728.6) */
.ribbon-instagram-brand {
  position: absolute;
  left: 3.21%;
  top: 15%;
  width: 18%;
  height: 70%;
  opacity: 0;
}

/* --------------------------------------------------------------------------
   4. SECTION: GAMEPLAY FEATURES
   -------------------------------------------------------------------------- */
.section-features {
  padding: 88px 0;
  position: relative;
  z-index: 2;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 252, 245, 0.8) 0%, transparent 70%),
    linear-gradient(180deg, #f5e8d3 0%, #e7d1b1 100%);
  border-bottom: 1px solid rgba(166, 114, 58, 0.25);
}

.section-header {
  margin-bottom: 52px;
}

.text-center {
  text-align: center;
}

.section-badge {
  display: inline-block;
  background: #23160c;
  color: var(--color-gold-accent);
  font-family: var(--font-headline);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 14px;
  text-transform: uppercase;
  border: 1px solid rgba(229, 180, 122, 0.45);
}

.section-title {
  font-family: var(--font-headline);
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  font-weight: 800;
  color: var(--color-antique-brown);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #523922;
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 500;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.feature-card {
  background: rgba(255, 252, 247, 0.94);
  padding: 34px 26px;
  border-radius: 20px;
  border: 1.5px solid rgba(212, 168, 118, 0.55);
  box-shadow: 0 12px 30px rgba(45, 28, 15, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-gold-ribbon) 0%, #aa7233 100%);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(45, 28, 15, 0.16);
  border-color: var(--color-gold-ribbon-dark);
}

.feature-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, #26170d 0%, #3a2414 100%);
  color: var(--color-gold-accent);
  border: 1.5px solid rgba(224, 172, 105, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform 0.25s ease;
}

.feature-card:hover .feature-icon-box {
  transform: scale(1.06);
  background: linear-gradient(135deg, #e0ac69 0%, #aa7233 100%);
  color: #180f08;
}

.feature-card h3 {
  font-family: var(--font-headline);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--color-antique-brown);
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.95rem;
  color: #4f3824;
  line-height: 1.62;
}

/* --------------------------------------------------------------------------
   5. SECTION: HOW TO PLAY
   -------------------------------------------------------------------------- */
.section-how {
  padding: 88px 0;
  position: relative;
  z-index: 2;
  background:
    radial-gradient(circle at 50% 50%, rgba(224, 172, 105, 0.1) 0%, transparent 70%),
    linear-gradient(180deg, #1b1109 0%, #24170d 100%);
  color: var(--color-parchment-light);
  border-top: 2px solid rgba(224, 172, 105, 0.35);
}

.section-how .section-badge {
  background: rgba(224, 172, 105, 0.18);
  color: var(--color-gold-accent);
  border-color: rgba(224, 172, 105, 0.45);
}

.section-how .section-title {
  color: var(--color-white);
}

.section-how .section-subtitle {
  color: rgba(253, 246, 234, 0.82);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.step-card {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 36px 28px;
  border-radius: 20px;
  border: 1.5px solid rgba(224, 172, 105, 0.3);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.step-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-gold-ribbon);
}

.step-badge-number {
  font-family: var(--font-headline);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--color-gold-ribbon);
  line-height: 1;
  margin-bottom: 14px;
}

.step-content h3 {
  font-family: var(--font-headline);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 10px;
}

.step-content p {
  font-size: 0.95rem;
  color: rgba(253, 246, 234, 0.84);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   6. SITE FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: #120a05;
  color: var(--color-parchment-light);
  border-top: 2px solid var(--color-gold-ribbon-dark);
  padding-top: 52px;
  position: relative;
  z-index: 2;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}

.footer-kent-logo {
  height: 88px;
  width: auto;
}

.footer-tagline {
  font-size: 0.92rem;
  color: rgba(245, 233, 211, 0.75);
  max-width: 420px;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-headline);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-gold-accent);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  font-size: 0.9rem;
  color: rgba(245, 233, 211, 0.8);
}

.footer-col ul a:hover {
  color: var(--color-gold-accent);
  padding-left: 4px;
}

.footer-bottom-bar {
  background: #0b0603;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
  font-size: 0.84rem;
  color: rgba(245, 233, 211, 0.6);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom-inner .credit a {
  color: var(--color-gold-accent);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   7. RESPONSIVE BREAKPOINTS — MOBILE FIGMA POSTER (NODE 18:9 — 360 x 800)
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 767px) {
  :root {
    --header-height: 56px;
  }

  .header-kent-logo {
    height: 36px;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: #180f08;
    padding: 22px 24px;
    border-bottom: 2px solid var(--color-gold-ribbon);
    transform: translateY(-130%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.75);
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .main-nav .nav-list {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  /* 1:1 Mobile Figma Frame (Node 18:9: width="360" height="800") */
  .poster-hero-section {
    width: 100%;
    background-color: #d8be9c;
  }

  .poster-canvas {
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    aspect-ratio: 360 / 800;
    background-image: url('../assets/images/figma_mobile_bg.jpg');
    background-size: 100% 100%;
    background-position: center top;
    background-repeat: no-repeat;
  }

  /* Node 18:1174 - Sakin Okul clickable hit-area: x=21.83, y=50.67, w=74, h=16 in 360x800 */
  .poster-top-left-brand {
    left: 6.06%;
    top: 6.33%;
    width: 20.56%;
    height: 2.00%;
  }

  /* Node 18:1277 & 18:1265 - 2 Store Badges in 360x800:
     Slot 1 (Google Play): x=113.33, y=608.24, w=111.90, h=33.00
     Slot 2 (Web'de Oyna): x=113.33, y=652.00, w=111.90, h=36.99 */
  .poster-right-badges {
    left: 31.48%;
    top: 76.03%;
    width: 31.11%;
    height: 10.09%;
  }

  .hero-action-badge.badge-slot-1 {
    top: 0;
    left: 0;
    width: 100%;
    height: 42.5%;
    padding: 0 7%;
    gap: 6%;
    border-radius: 6px;
  }

  .hero-action-badge.badge-slot-2 {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 44.5%;
    padding: 0 7%;
    gap: 6%;
    border-radius: 6px;
  }

  .badge-icon-wrap svg {
    width: clamp(14px, 4.2vw, 22px);
    height: clamp(14px, 4.2vw, 22px);
  }

  .badge-label-top {
    font-size: clamp(0.38rem, 1.35vw, 0.52rem);
    letter-spacing: 0.04em;
  }

  .badge-label-main {
    font-size: clamp(0.68rem, 2.5vw, 0.96rem);
  }

  /* Node 18:725 & 18:1175 - Bottom Golden Ribbon & SAKINOKUL Instagram hit-area */
  .poster-bottom-ribbon {
    top: 93.50%;
    height: 6.50%;
  }

  .ribbon-instagram-brand {
    left: 4.44%;
    top: 20%;
    width: 43%;
    height: 60%;
  }

  .features-grid,
  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
