.section {
  padding: var(--space-4) 0;
}

.section-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-6);
  text-align: center;
}

.hero {
  position: relative;
  width: 100%;
  /* ÖNEMLİ: yükseklik asla 100vh'i AŞMAMALI — alt sınır eklemek (clamp'in
     min'i) gerçek tarayıcıda (araç çubuğu/sekme payı yüzünden 100vh zaten
     ekrandan biraz küçük) hero'yu görünür alandan daha uzun yapıp istenmeyen
     kaydırmaya yol açtı. Bu yüzden sadece ÜST sınır var (min, asla max değil):
     56.25vw = 16:9 — çok geniş/kısa ekranlarda üstten-alttan aşırı kırpmayı
     engeller, ama hero'yu hiçbir zaman gerçek ekrandan uzun yapmaz */
  height: min(100vh, 56.25vw);
  overflow: hidden;
  background: var(--brand-600);
}

.hero-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  /* Hepsi aynı yerde üst üste duruyor, sadece opacity ile gösterilip
     gizleniyor — ama opacity:0 görünmez olsa da tıklanabilir kalıyordu.
     DOM'da en sonda olan slayt (en üstteki katman) görünmese bile tüm
     tıklamaları kapıp kendi linkine götürüyordu. pointer-events ile
     sadece aktif (görünen) slayt tıklanabilir kalıyor. */
  pointer-events: none;
  background-image: var(--hero-img-mobile);
  background-size: cover;
  background-position: center;
  transition: opacity 600ms ease;
}

@media (min-width: 761px) {
  .hero-slide {
    background-image: var(--hero-img-desktop);
  }
}

@media (max-width: 760px) {
  .hero {
    height: 85vh;
  }
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-dots {
  position: absolute;
  bottom: 45px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.hero-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .5);
  opacity: .5;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), opacity var(--transition);
}

.hero-dot:hover,
.hero-dot.active {
  background: #fff;
  opacity: 1;
}

.boxes-row {
  padding-top: var(--space-7);
  padding-bottom: var(--space-4);
}

.boxes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.cta-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 15px;
  min-height: 70px;
  border-radius: 15px;
  padding: 10px 20px;
  text-decoration: none;
  color: #fff;
  overflow: visible;
}

.cta-box-dealer {
  background: #fecc02;
  color: #101010;
}

.cta-box-store {
  background: var(--accent-500);
}

.cta-box-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 92px;
  height: 92px;
  margin-top: -40px;
}

.cta-box-badge img,
.cta-box-badge svg {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  color: #fff;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .3));
}


.cta-box-title {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 18px;
  display: inline-block;
  transition: transform var(--transition);
}

.cta-box-title strong {
  font-weight: 700;
}

.cta-box:hover .cta-box-title {
  transform: translateY(-4px);
}

.smartboard-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.smartboard-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  width: 172px;
  height: 172px;
  padding: 0 14px;
  border-radius: 18px;
  background: var(--neutral-100);
  text-decoration: none;
  color: var(--text-primary);
  text-align: center;
  transition: transform var(--transition), background var(--transition);
}

.smartboard-card:hover {
  transform: translateY(-4px);
}

.smartboard-card[data-tone="blue"]:hover { background: var(--grade-2-bg); }
.smartboard-card[data-tone="lightblue"]:hover { background: #EAF7FC; }
.smartboard-card[data-tone="yellow"]:hover { background: var(--highlight-50); }
.smartboard-card[data-tone="gray"]:hover { background: var(--neutral-200); }

.smartboard-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.smartboard-card img,
.smartboard-card-icon svg {
  width: 46px;
  height: 46px;
  object-fit: contain;
  color: var(--highlight-700);
}

.smartboard-card-icon-mask {
  width: 46px;
  height: 46px;
  background-color: var(--neutral-900);
  -webkit-mask-image: var(--icon-src);
  mask-image: var(--icon-src);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  transition: background-color var(--transition);
}

.smartboard-card[data-tone="blue"]:hover .smartboard-card-icon-mask { background-color: var(--grade-2); }
.smartboard-card[data-tone="lightblue"]:hover .smartboard-card-icon-mask { background-color: #6FC1E8; }
.smartboard-card[data-tone="yellow"]:hover .smartboard-card-icon-mask { background-color: var(--highlight-500); }

.smartboard-card span {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--text-secondary);
}

.smartboard-card span strong {
  font-weight: 700;
  color: var(--text-primary);
}


.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.promo-card {
  display: block;
  border-radius: var(--radius-lg);
  min-height: 400px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}

.promo-card:hover {
  box-shadow: var(--shadow-md);
}

.reviews-panel {
  position: relative;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  background: #2E5945;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .03) 0, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, .03) 0, transparent 45%);
  border-top: 10px solid #7A5230;
  border-bottom: 10px solid #7A5230;
  padding: 56px 0 64px;
}

.chalk-doodle {
  position: absolute;
  z-index: 0;
  font-family: 'Caveat', cursive;
  color: rgba(255, 255, 255, .35);
  font-weight: 700;
  pointer-events: none;
  transform: rotate(var(--r, -4deg));
}

/* top/bottom sabit px: yuzde kullanilsaydi panel yuksekligi (kartlardaki
   metin sarmasina gore) degistikce bu yazilar kartlara gore kayardi -
   bottom degerleri panelin sabit alt padding'ine gore, top degerleri de
   ust padding'ine gore olculdu, boylece boyut degisse de kartlara gore
   ayni yerde kalirlar. */
.chalk-1 { top: 65px;  left: 5%;  font-size: 2rem; }
.chalk-2 { top: 95px; right: 7%; font-size: 1.8rem; --r: 4deg; }
.chalk-3 { bottom: 110px; left: 9%; font-size: 2.6rem; --r: 8deg; }
.chalk-4 { bottom: 44px; right: 4%; font-size: 1.9rem; --r: -3deg; }
.chalk-5 { top: 342px; left: 2%; font-size: 2.4rem; --r: -8deg; }
/* chalk-6 digerleri gibi panele gore mutlak konumlanmiyor - grid'in
   kendisinin 2. satir/3-4. sutun hucresine yerlesip orada dikey
   ortalaniyor, boylece kartlarin metni ne kadar satira sarilirsa
   sarilsin (2. satirin yuksekligi degisse bile) hep o satirin tam
   ortasinda kalir. */
.chalk-6 {
  position: static;
  grid-column: 3 / 5;
  grid-row: 2;
  align-self: center;
  justify-self: start;
  font-size: 5.4rem;
  --r: -4deg;
  white-space: nowrap;
  color: rgba(255, 255, 255, .55);
}

.chalk-underline {
  position: absolute;
  z-index: 0;
  top: 20%;
  right: 20%;
  width: 90px;
  height: 12px;
  opacity: .3;
}

.reviews-panel-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-7);
}

.reviews-heading {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 5.2rem;
  line-height: 1.05;
  color: #fff;
}

.reviews-heading span {
  display: block;
  font-size: 1.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .7);
}

.reviews-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  background: #FEDA45;
  color: #4A3B00;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--text-base);
  padding: 12px 26px;
  border-radius: var(--radius-full);
  border: 2px dashed #fff;
  transform: rotate(3deg);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .25);
}

.reviews-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-7) var(--space-6);
  text-align: left;
}

.review-card {
  position: relative;
  --tilt: 0deg;
  --shift: 0px;
  transform: rotate(var(--tilt)) translateY(var(--shift));
  border-radius: 10px;
  border: 4px solid #fff;
  padding: var(--space-5);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  box-shadow: 0 12px 0 rgba(0, 0, 0, .18);
}

.review-card::before {
  content: "";
  position: absolute;
  top: -14px;
  left: calc(50% - 22px);
  width: 44px;
  height: 22px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(255, 255, 255, .7);
  transform: rotate(-4deg);
}

.review-card:nth-child(1) { --tilt: -4deg; --shift: 6px; }
.review-card:nth-child(2) { --tilt: 3deg;  --shift: -10px; }
.review-card:nth-child(3) { --tilt: -2deg; --shift: 14px; }
.review-card:nth-child(4) { --tilt: 5deg;  --shift: -4px; }
.review-card:nth-child(5) { --tilt: -5deg; --shift: 2px; }
.review-card:nth-child(6) { --tilt: 2deg;  --shift: -12px; }

.review-card-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.review-avatar {
  width: 48px;
  height: 48px;
  flex: none;
}

.review-avatar svg,
.review-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.review-card-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
}

.review-card-role {
  font-size: .74rem;
  opacity: .8;
}

.review-card p {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  margin: 0;
  opacity: .95;
}

@media (min-width: 761px) {
  .cta-box {
    padding-left: 48px;
    padding-right: 40px;
  }
}

@media (max-width: 760px) {
  .boxes-grid,
  .promo-grid {
    grid-template-columns: 1fr;
  }

  .smartboard-grid {
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .smartboard-card {
    flex-direction: row;
    justify-content: flex-start;
    width: 100%;
    height: auto;
    padding: 14px 16px;
    text-align: left;
    gap: var(--space-4);
  }

  .smartboard-card-icon {
    flex: none;
  }

  .reviews-panel {
    padding: 40px 0 32px;
  }

  .reviews-panel-head {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

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

  .chalk-doodle,
  .chalk-underline {
    display: none;
  }
}

.instagram-banner {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 64px 40px;
  min-height: 280px;
  text-align: center;
  background: #962FBF;
}

/* Platform başına ayrı, tam kaplayan bir gradyan katmanı — metin slaytlarıyla
   AYNI opacity-crossfade yöntemiyle geçiyor (.social-slide ile birebir aynı
   mantık), böylece renk değişimi de ani değil yumuşak oluyor. Baloncuklar
   (.ig-bubble) bunlardan tamamen BAĞIMSIZ, kendi elemanları/animasyonları var
   — bu katmanlar değişirken baloncuğun pozisyonuna/animasyonuna hiç dokunulmuyor,
   o yüzden hiçbir zaman "zıplamıyorlar", yollarına kesintisiz devam ediyorlar. */
.social-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  background-size: 400% 400%;
  animation: igGradient 14s ease infinite;
  transition: opacity 900ms ease;
}

.social-bg.active {
  opacity: 1;
}

.social-bg--instagram {
  background-image: linear-gradient(120deg, #4F5BD5, #962FBF, #D62976, #FA7E1E, #FEDA75, #D62976, #962FBF, #4F5BD5);
}

.social-bg--facebook {
  background-image: linear-gradient(120deg, #0A2F6B, #1877F2, #3B5998, #1877F2, #0A2F6B);
}

.social-bg--youtube {
  background-image: linear-gradient(120deg, #7A0C0C, #FF0000, #C4302B, #FF0000, #7A0C0C);
}

@keyframes igGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Instagram/Facebook/YouTube arasında geçiş yapan slaytlar — hero
   carousel'deki ile aynı, kanıtlanmış crossfade yöntemi (opacity + .active) */
.social-slide {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms ease;
}

.social-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.ig-eyebrow {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--text-2xl);
  color: rgba(255, 255, 255, .92);
}

.ig-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-4xl);
  color: #fff;
  margin-top: 2px;
}

.ig-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 14px 32px;
  border: 2px solid #fff;
  border-radius: var(--radius-full);
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--text-sm);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}

.ig-cta:hover {
  background: #fff;
  color: #D62976;
}

.social-slide[data-platform="facebook"] .ig-cta:hover {
  color: #1877F2;
}

.social-slide[data-platform="youtube"] .ig-cta:hover {
  color: #FF0000;
}

.ig-bubble {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  filter: blur(1px);
  animation: igFloat linear infinite;
}

@keyframes igFloat {
  0% { transform: translateY(20px) scale(1); opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { transform: translateY(-280px) translateX(24px) scale(1.2); opacity: 0; }
}

.ig-bubble:nth-child(1) { width: 42px; height: 42px; left: 6%;  bottom: -40px; animation-duration: 10s; animation-delay: 0s; }
.ig-bubble:nth-child(2) { width: 20px; height: 20px; left: 17%; bottom: -30px; animation-duration: 7.5s; animation-delay: 1.6s; }
.ig-bubble:nth-child(3) { width: 60px; height: 60px; left: 30%; bottom: -55px; animation-duration: 12s; animation-delay: .6s; }
.ig-bubble:nth-child(4) { width: 16px; height: 16px; left: 52%; bottom: -20px; animation-duration: 6.5s; animation-delay: 2.6s; }
.ig-bubble:nth-child(5) { width: 34px; height: 34px; left: 66%; bottom: -40px; animation-duration: 11s; animation-delay: 1s; }
.ig-bubble:nth-child(6) { width: 50px; height: 50px; left: 80%; bottom: -48px; animation-duration: 9s; animation-delay: 3.2s; }
.ig-bubble:nth-child(7) { width: 18px; height: 18px; left: 91%; bottom: -25px; animation-duration: 8s; animation-delay: 2s; }

@media (max-width: 640px) {
  .instagram-banner {
    padding: 48px 24px;
  }

  .ig-title {
    font-size: var(--text-3xl);
  }
}
