/* ===============================
   KANGURU – ANA STILLER
   =============================== */

/* 1. DEĞİŞKENLER */
:root {
  --purple:       #51379c;
  --purple-light: #dad9e8;
  --cream:        #fef7ea;
  --yellow:       #feb90e;
  --black:        #000000;
  --white:        #ffffff;
  --text:         #3a3a3a;
  --text-muted:   #666666;
  --font:         'Rubik', sans-serif;
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --container:    1160px;
}

/* 2. RESET & TEMEL */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; }
body  { font-family: var(--font); font-weight: 400; color: var(--text); background: var(--white); overflow-x: hidden; line-height: 1.6; }
img   { max-width: 100%; height: auto; display: block; }
a     { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
ul, ol { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}


/* ───────── 3. HEADER ───────── */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.header.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.07);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 24px;
}
.header-nav {
  flex: 1;
  justify-content: center;
}
.header-logo img { height: 46px; width: auto; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 44px;
}
.header-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--purple);
  position: relative;
  transition: color 0.25s;
}
.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 2px;
  background: var(--purple);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
  transform-origin: center;
}
.header-nav a:hover            { color: var(--purple); }
.header-nav a:hover::after     { transform: scaleX(1); }

.header-store-buttons {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.btn-store-sm {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: var(--purple);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 7px;
  transition: background 0.25s, transform 0.25s var(--ease);
  white-space: nowrap;
}
.btn-store-sm img {
  width: 14px;
  height: 14px;
  filter: brightness(10);
  flex-shrink: 0;
}
.btn-store-sm:hover {
  background: #3e2a7a;
  transform: translateY(-2px);
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.menu-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--black);
  transition: transform 0.3s var(--ease), opacity 0.3s;
  transform-origin: center;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ───────── 4. HERO ───────── */
.hero {
  min-height: 100vh;
  background: var(--cream);
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
  position: relative;
}
/* Dekoratif bloblar */
.hero::before {
  content: '';
  position: absolute;
  right: -80px; top: -120px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(254,185,14,0.22) 0%, transparent 68%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  left: -100px; bottom: -100px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(218,217,232,0.45) 0%, transparent 70%);
  pointer-events: none;
}
.hero .container {
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative; z-index: 1;
  padding-top: 40px; padding-bottom: 60px;
}
.hero-content  { flex: 0 0 auto; max-width: 500px; }

.hero-badge {
  display: inline-block;
  background: var(--purple);
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 26px;
  letter-spacing: 0.03em;
}
.hero-title {
  font-size: clamp(2.4rem, 4.2vw, 3.8rem);
  font-weight: 500;
  line-height: 1.14;
  color: var(--purple);
  margin-bottom: 22px;
  letter-spacing: -0.02em;
}
.hero-sub {
  font-size: 1rem;
  line-height: 1.78;
  color: #555;
  margin-bottom: 38px;
  max-width: 430px;
}
.btn-primary {
  display: inline-block;
  padding: 14px 44px;
  background: var(--purple);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  border-radius: 7px;
  transition: background 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.btn-primary:hover {
  background: #3e2a7a;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(81,55,156,0.35);
}
.store-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-store {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 24px;
  background: var(--purple);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 500;
  border: 2px solid var(--purple);
  border-radius: 10px;
  min-width: 170px;
  transition: background 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.btn-store img {
  width: 22px;
  height: 22px;
  filter: brightness(10);
  flex-shrink: 0;
}
.btn-store:hover {
  background: #3e2a7a;
  border-color: #3e2a7a;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(81,55,156,0.35);
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
}
.hero-phone {
  position: relative; z-index: 1;
  max-width: 500px; width: 100%;
  filter: drop-shadow(0 30px 70px rgba(0,0,0,0.18));
  animation: heroFloat 4.5s ease-in-out infinite;
}
.hero-tubitak {
  position: absolute;
  bottom: 32px;
  left: -20px;
  width: 72px;
  z-index: 2;
}
@keyframes heroFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-18px); }
}


/* ───────── 5. BİR AİLE, İKİ UYGULAMA ───────── */
.two-app {
  padding: 100px 0;
  background: var(--white);
}
.section-header        { text-align: center; margin-bottom: 64px; }
.section-header h2     { font-size: clamp(1.7rem, 2.8vw, 2.3rem); font-weight: 500; color: var(--black); margin-bottom: 14px; letter-spacing: -0.01em; }
.two-app .section-header h2 { color: var(--purple); }
.section-header p      { font-size: 0.97rem; color: #555; max-width: 560px; margin: 0 auto; line-height: 1.78; }

.two-app-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 56px;
  align-items: center;
}
.two-app-left, .two-app-right { display: flex; flex-direction: column; gap: 18px; }
.two-app-left { text-align: right; }
.two-app-left p, .two-app-right p { font-size: 0.94rem; color: #444; line-height: 1.8; }
.two-app-image { display: flex; justify-content: center; }
.two-app-image img { max-width: 420px; width: 100%; }


/* ───────── 6. ÖZELLİKLER ───────── */
.feature-row { padding: 88px 0; }
.feature-row:nth-child(odd)  { background: var(--cream); }
.feature-row:nth-child(even) { background: var(--white); }

.feature-row .container {
  display: flex;
  align-items: center;
  gap: 80px;
}
.feature-row.reverse .container { flex-direction: row-reverse; }

.feature-image {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
}
.feature-image img {
  max-width: 220px; width: 100%;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.12));
}
.feature-text { flex: 1; }

.feature-icon {
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  background: var(--purple-light);
  border-radius: 14px;
  margin-bottom: 20px;
  padding: 11px;
}
.feature-icon img { width: 28px; height: 28px; }

.feature-text h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 500;
  color: var(--black);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.feature-text p {
  font-size: 0.94rem;
  color: #444;
  line-height: 1.82;
  max-width: 520px;
}


/* ───────── 6b. STEPS BÖLÜMÜ ───────── */
.steps-section {
  padding: 80px 0;
  background: var(--cream);
  text-align: center;
}
.steps-image {
  max-width: 820px;
  margin: 0 auto 64px;
}
.steps-image img { width: 100%; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 860px;
  margin: 0 auto;
}
.step-item { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.step-number {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 500;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-item h4 { font-size: 0.95rem; font-weight: 500; color: var(--black); }
.step-item p  { font-size: 0.88rem; color: #555; line-height: 1.7; }

@media (max-width: 768px) {
  .steps-grid { grid-template-columns: 1fr; max-width: 320px; }
  .steps-image { margin-bottom: 44px; }
}

/* ───────── 7. SSS ACCORDION ───────── */
.sss {
  padding: 100px 0;
  background: var(--purple-light);
}
.accordion { max-width: 760px; margin: 0 auto; }

.accordion-item { border-bottom: 1px solid rgba(81,55,156,0.18); }

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  cursor: pointer;
  gap: 20px;
  user-select: none;
}
.accordion-question {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--black);
  line-height: 1.45;
  transition: color 0.25s;
}
.accordion-header:hover .accordion-question { color: var(--purple); }

.accordion-toggle {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 300; line-height: 1;
  transition: transform 0.35s var(--ease), background 0.25s;
}
.accordion-item.open .accordion-toggle {
  transform: rotate(45deg);
  background: #333;
}
.accordion-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s var(--ease);
}
.accordion-body-inner { padding-bottom: 22px; }
.accordion-body-inner p { font-size: 0.93rem; color: #555; line-height: 1.8; }


/* ───────── 8. FOOTER ───────── */
.footer {
  background: var(--purple);
  color: var(--white);
  padding: 64px 0 32px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  margin-bottom: 28px;
}
.footer-brand { flex-shrink: 0; }
.footer-logo  { height: 60px; width: auto; margin-bottom: 14px; }
.footer-tagline { font-size: 0.83rem; color: rgba(255,255,255,0.62); max-width: 200px; line-height: 1.65; }

.footer-nav { display: flex; gap: 56px; }
.footer-nav-col h4 {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}
.footer-nav-col a {
  display: block;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 10px;
  transition: color 0.25s;
}
.footer-nav-col a:hover { color: var(--white); }

.footer-social { flex-shrink: 0; }
.footer-social-title {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}
.footer-social-links { display: flex; gap: 10px; }
.footer-social-links a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s, transform 0.25s var(--ease);
}
.footer-social-links a:hover { background: rgba(255,255,255,0.24); transform: translateY(-3px); }
.footer-social-links img { width: 18px; height: 18px; filter: brightness(10); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copyright { font-size: 0.78rem; color: rgba(255,255,255,0.42); }
.footer-legal { display: flex; gap: 22px; }
.footer-legal a { font-size: 0.78rem; color: rgba(255,255,255,0.55); transition: color 0.25s; }
.footer-legal a:hover { color: var(--white); }


/* ───────── 9. ANİMASYONLAR ───────── */

/* Hero – sayfa yüklenirken çalışan animasyonlar */
.hero-badge   { animation: fadeUp 0.7s var(--ease) 0.15s both; }
.hero-title   { animation: fadeUp 0.75s var(--ease) 0.3s  both; }
.hero-sub     { animation: fadeUp 0.7s var(--ease) 0.48s both; }
.btn-primary  { animation: fadeUp 0.7s var(--ease) 0.62s both; }
.hero-visual  { animation: fadeRight 1s var(--ease) 0.35s both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(44px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeRight {
  from { opacity: 0; transform: translateX(70px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Scroll animasyonları – başlangıç durumları */
.anim-fade-up    { opacity: 0; transform: translateY(48px); }
.anim-slide-left { opacity: 0; transform: translateX(-64px); }
.anim-slide-right{ opacity: 0; transform: translateX(64px); }
.anim-scale      { opacity: 0; transform: scale(0.9); }

.anim-fade-up,
.anim-slide-left,
.anim-slide-right,
.anim-scale {
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }
.delay-4 { transition-delay: 0.48s; }

/* Görünür olunca tüm animasyonlar aynı sona çıkar */
.anim-fade-up.visible,
.anim-slide-left.visible,
.anim-slide-right.visible,
.anim-scale.visible {
  opacity: 1;
  transform: none;
}


/* ───────── 10. ALT SAYFA STİLLERİ ───────── */

/* Alt sayfalarda header her zaman beyaz (scroll pozisyonundan bağımsız) */
body.subpage .header {
  background: rgba(255,255,255,0.97) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: 0 2px 24px rgba(0,0,0,0.07) !important;
}

.subpage-header {
  background: var(--purple);
  padding: 120px 0 56px;
}
.subpage-header h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500;
  color: var(--white);
  margin-bottom: 10px;
}
.subpage-header .date {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.55);
}
.subpage-body { padding: 64px 0 96px; }
.subpage-body .container { max-width: 760px; }
.subpage-body h2 {
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--purple);
  margin: 36px 0 10px;
}
.subpage-body h2:first-child { margin-top: 0; }
.subpage-body p,
.subpage-body li {
  font-size: 0.94rem;
  color: #444;
  line-height: 1.82;
  margin-bottom: 10px;
}
.subpage-body ul {
  padding-left: 20px;
  list-style: disc;
  margin-bottom: 10px;
}


/* ───────── 11. RESPONSIVE ───────── */
@media (max-width: 1024px) {
  .hero .container     { gap: 40px; }
  .two-app-grid        { gap: 36px; }
  .feature-row .container { gap: 52px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }

  /* Header nav – mobil overlay */
  .header-nav {
    position: fixed;
    top: 80px; left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 16px 0 24px;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.38s var(--ease), opacity 0.3s;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  }
  .header-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .header-nav a {
    padding: 13px 24px;
    font-size: 1rem;
    width: 100%;
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }
  .header-nav a::after { display: none; }
  .menu-toggle { display: flex; }

  /* Hero */
  .hero .container {
    flex-direction: column;
    text-align: center;
    gap: 44px;
    padding-top: 28px;
  }
  .hero-content { max-width: 100%; }
  .hero-sub     { max-width: 100%; }
  .hero-visual  { width: 100%; justify-content: center; }
  .hero-phone   { max-width: 280px; margin: 0 auto; }
  .hero::before, .hero::after { display: none; }

  /* Two-app */
  .two-app { padding: 72px 0; }
  .two-app-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }
  .two-app-image       { order: -1; }
  .two-app-image img   { max-width: 240px; margin: 0 auto; }

  /* Features */
  .feature-row { padding: 60px 0; }
  .feature-row .container,
  .feature-row.reverse .container {
    flex-direction: column;
    gap: 36px;
    text-align: center;
  }
  .feature-image img  { max-width: 230px; margin: 0 auto; }
  .feature-icon       { margin: 0 auto 20px; }
  .feature-text p     { max-width: 100%; }

  /* SSS */
  .sss { padding: 72px 0; }

  /* Footer */
  .footer { padding: 52px 0 28px; }
  .footer-top {
    flex-direction: column;
    gap: 36px;
  }
  .footer-nav { flex-wrap: wrap; gap: 28px; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
