/* Homepage — gentlestories.com.tr
   Tema: "gece, okuma lambası, çocuğun kendi kitabının kahramanı olması"
   (pitch-deck kapağının kendi dünyası). Soğuk cyan çıkarıldı;
   marka logosunun sıcak turuncu + altın lamba ışığı geldi. */

:root {
  /* renk — logodan türetilmiş (yanık turuncu + beyaz çizgi-sanat) */
  --ink-950:  #0A1326;   /* en koyu gece */
  --ink-900:  #101A33;   /* sayfa zemini (sıcak gece laciverti) */
  --ink-800:  #17244A;   /* koyu üzeri yüzey */
  --ember:      #D95F01; /* LOGO yanık turuncusu — birincil */
  --ember-bright:#F5852A; /* parıltı / gradyan üst */
  --ember-600:  #B44E00; /* ember hover (koyu) */
  --lamp:     #F6B64A;   /* altın lamba ışığı — ikincil */
  --paper:    #FBF3E7;   /* sıcak krem — "kitap sayfası" yüzeyleri */
  --mist:     #C7D2EC;   /* muted metin */
  --text:     #F1F4FB;   /* ana metin */
  --line:     rgba(199,210,236,0.12);

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans:    'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* boşluk ritmi 4/8/12/16/24/32/48/64/96 */
  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px; --sp-6: 24px;
  --sp-8: 32px; --sp-12: 48px; --sp-16: 64px; --sp-24: 96px;
}

html, body { overflow-x: hidden; }

body {
  background: var(--ink-900);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: 6px;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lamp);
}

/* ── NAV ─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10,19,39,0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.01em;
  color: var(--text);
  flex-shrink: 0;
}
.nav-logo b { color: var(--ember); font-weight: 600; }
.nav-mark {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 8px; overflow: hidden;
}
.nav-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }

.nav-links { display: flex; gap: var(--sp-2); align-items: center; min-width: 0; }

.nav-link {
  padding: 9px 18px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  opacity: 0.78;
  transition: all 0.2s;
  border: 1.5px solid transparent;
}
.nav-link:hover { opacity: 1; border-color: var(--line); }

.nav-link.cta {
  background: var(--ember);
  color: #fff;
  opacity: 1;
  border-color: var(--ember);
}
.nav-link.cta:hover { background: var(--ember-600); border-color: var(--ember-600); }

/* ── HERO (tez: motto + sohbet başlatıcı) ────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 150px 24px 90px;
}

/* okuma lambası parıltısı — üstten sıcak ışık düşüyor */
.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  width: 940px; height: 760px;
  transform: translateX(-30%);
  background:
    radial-gradient(closest-side, rgba(246,182,74,0.18) 0%, transparent 72%),
    radial-gradient(closest-side, rgba(217,95,1,0.20) 34%, transparent 70%);
  pointer-events: none;
  filter: blur(6px);
}

.hero-inner {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--sp-16);
  align-items: center;
}
@media (max-width: 900px) {
  .hero { padding: 120px 20px 64px; }
  .hero-inner { display: block; text-align: center; }
  .hero-visual { margin-top: var(--sp-12); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(240,102,46,0.12);
  border: 1px solid rgba(240,102,46,0.34);
  color: var(--lamp);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: var(--sp-6);
}

.hero-text { min-width: 0; }
.hero-visual { min-width: 0; }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(27px, 6.6vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-6);
  overflow-wrap: break-word;
}
.hero h1 .accent {
  color: var(--ember);
  font-style: italic;
}

.hero-lead {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--mist);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: var(--sp-8);
}
@media (max-width: 900px) { .hero-lead { margin-left: auto; margin-right: auto; } }

.hero-cta { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
@media (max-width: 900px) { .hero-cta { justify-content: center; } }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 30px;
  background: var(--ember);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  border-radius: 100px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--ember-600); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(240,102,46,0.35); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-weight: 700;
  font-size: 16px;
  border-radius: 100px;
  border: 1.5px solid var(--line);
  transition: all 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: rgba(201,212,238,0.3); }

/* hero görsel — logonun amblemi (wordmark'sız; logo bozulmadan kırpıldı) */
.hero-logo {
  justify-self: center;
  width: min(360px, 84vw);
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 30px 70px rgba(217,95,1,0.30),
    0 0 0 1px rgba(255,255,255,0.08);
}
.hero-logo img { width: 100%; height: auto; display: block; }

/* ── SECTION COMMON ────────────────────────────── */
.section {
  padding: var(--sp-24) 24px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 640px) { .section { padding: var(--sp-16) 16px; } }

.section-head { max-width: 640px; margin-bottom: var(--sp-12); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-label {
  font-size: 12px; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--lamp); margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(27px, 3.6vw, 40px);
  line-height: 1.16;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.section-title em { color: var(--ember); font-style: italic; }

.section-sub {
  font-size: 17px;
  color: var(--mist);
  max-width: 560px;
  line-height: 1.7;
}
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }

/* ── SOHBET BAŞLATICI — imza dönüşüm şeridi ──────── */
.dialog {
  background:
    radial-gradient(1200px 400px at 50% -10%, rgba(240,102,46,0.08), transparent 60%),
    var(--ink-950);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.dialog-inner { max-width: 1100px; margin: 0 auto; padding: var(--sp-24) 24px; }
@media (max-width: 640px) { .dialog-inner { padding: var(--sp-16) 16px; } }

.dialog-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
  position: relative;
  margin-top: var(--sp-12);
}
/* adımları birbirine bağlayan ışıyan çizgi */
.dialog-flow::before {
  content: '';
  position: absolute;
  top: 34px; left: 12%; right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--ember), var(--lamp));
  opacity: 0.5;
  z-index: 0;
}
@media (max-width: 760px) {
  .dialog-flow { grid-template-columns: 1fr; gap: var(--sp-4); }
  .dialog-flow::before { display: none; }
}

.flow-step { position: relative; z-index: 1; text-align: center; }
@media (max-width: 760px) {
  .flow-step { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; text-align: left; }
}

.flow-node {
  width: 70px; height: 70px; margin: 0 auto 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 35%, rgba(217,95,1,0.22), var(--ink-800) 70%);
  border: 2px solid rgba(217,95,1,0.55);
  box-shadow: 0 0 0 7px var(--ink-950), 0 8px 20px rgba(0,0,0,0.4);
}
.flow-node svg {
  width: 34px; height: 34px;
  stroke: var(--lamp); fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
@media (max-width: 760px) { .flow-node { margin: 0; width: 58px; height: 58px; box-shadow: none; } .flow-node svg { width: 28px; height: 28px; } }

.flow-step h3 {
  font-family: var(--font-display);
  font-weight: 600; font-size: 19px; margin-bottom: 6px;
}
.flow-step p { color: var(--mist); font-size: 14px; line-height: 1.6; }

.dialog-close {
  margin-top: var(--sp-12);
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--lamp);
  font-style: italic;
}

/* ── ÖNCE / SONRA görselleri ─────────────────────── */
.beforeafter { max-width: 900px; margin: var(--sp-12) auto 0; }

.ba-item {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(0,0,0,0.42);
}
.ba-item img { width: 100%; height: auto; display: block; }

/* "Önce": görselin laciverti şeffaf → sayfa zemini iki fotoğrafın arasından
   görünür. Kart çerçevesi/gölge yok; yazı ortadaki boşluğa yerleşir. */
.ba-item.before {
  border: 0; border-radius: 0; overflow: visible; box-shadow: none; background: none;
}
.ba-item.before figcaption {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 2; width: min(30%, 300px); text-align: center;
  font-family: var(--font-display);
  font-weight: 500; font-style: italic;
  font-size: clamp(15px, 1.9vw, 21px); line-height: 1.4;
  color: var(--text);
  text-shadow: 0 2px 18px rgba(10,19,38,0.9), 0 1px 3px rgba(10,19,38,0.9);
}

/* "Sonra": görsel tam görünsün — çocuğun elindeki tablet kırpılmasın */
.ba-item.after { max-width: 560px; margin: 0 auto; }
.ba-item.after figcaption {
  position: static; background: none; padding: 20px 18px 4px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 500; font-style: italic;
  font-size: clamp(17px, 2.1vw, 23px); line-height: 1.45;
  color: var(--lamp);
}

.ba-chip {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 100px;
  backdrop-filter: blur(4px);
}
.ba-item.before .ba-chip { color: #fff; background: rgba(16,26,51,0.66); border: 1px solid rgba(255,255,255,0.25); }
.ba-item.after  .ba-chip { color: #fff; background: rgba(217,95,1,0.9); border: 1px solid rgba(255,255,255,0.35); }

/* Dar ekran: ortadaki boşluk küçülür → "Önce" yazısı görselin altına iner */
@media (max-width: 720px) {
  .ba-item.before figcaption {
    position: static; transform: none; width: auto;
    margin-top: 14px; padding: 0 12px;
    font-size: 17px;
  }
}

.ba-sep { text-align: center; margin: 20px 0; }
.ba-sep span {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ember); color: #fff; font-weight: 800; font-size: 13px;
  padding: 9px 20px; border-radius: 100px;
  box-shadow: 0 10px 24px rgba(217,95,1,0.42);
}

/* ── MANİFESTO (kahraman çocuk) ─────────────────── */
.manifesto {
  margin: 0 auto;
  max-width: 860px;
  padding: var(--sp-12) clamp(24px, 6vw, 72px);
  border-left: 3px solid var(--ember);
  background: linear-gradient(135deg, rgba(240,102,46,0.07) 0%, rgba(240,102,46,0.01) 100%);
  border-radius: 0 24px 24px 0;
}
.manifesto p {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 3vw, 29px);
  line-height: 1.42;
  color: var(--text);
}
.manifesto cite { display: block; margin-top: 18px; font-family: var(--font-sans); font-style: normal; font-size: 14px; font-weight: 700; letter-spacing: 0.06em; color: var(--lamp); }

/* ── FELSEFE SÜTUNLARI ─────────────────────────── */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
@media (max-width: 800px) { .pillars { grid-template-columns: 1fr; gap: var(--sp-4); } }

.pillar {
  background: rgba(255,255,255,0.035);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 34px 28px;
  transition: transform 0.2s, border-color 0.2s;
}
.pillar:hover { transform: translateY(-4px); border-color: rgba(240,102,46,0.4); }
.pillar-icon { font-size: 34px; display: block; margin-bottom: 16px; }
.pillar h3 { font-family: var(--font-display); font-weight: 600; font-size: 21px; margin-bottom: 10px; line-height: 1.3; }
.pillar p { color: var(--mist); font-size: 14.5px; line-height: 1.72; }

/* ── PRODUCT CARDS ─────────────────────────────── */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--sp-6); }

.product-card {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(0,0,0,0.5); }

.product-card-header { padding: 36px 30px 30px; position: relative; overflow: hidden; }
.product-card-emoji { font-size: 44px; display: block; margin-bottom: 14px; }
.product-card-flag {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--lamp);
  background: rgba(246,182,74,0.14); border: 1px solid rgba(246,182,74,0.34);
  padding: 4px 11px; border-radius: 100px; margin-bottom: 14px;
}
.product-card-title { font-family: var(--font-display); font-weight: 600; font-size: 26px; margin-bottom: 10px; color: #fff; }
.product-card-tagline { color: rgba(238,242,251,0.72); font-size: 14px; line-height: 1.6; }

.product-card-body { padding: 26px 30px; background: rgba(255,255,255,0.035); flex: 1; display: flex; flex-direction: column; }
.product-card-desc { font-size: 14px; line-height: 1.7; color: var(--mist); margin-bottom: 22px; flex: 1; }

.product-card-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 100px; font-weight: 800; font-size: 14px;
  transition: all 0.2s; align-self: flex-start;
}
.product-card-link:hover { transform: translateX(4px); }

.card-sel .product-card-header { background: linear-gradient(135deg, #1c1030 0%, #34204f 100%); }
.card-sel .product-card-link { background: rgba(240,102,46,0.16); border: 1.5px solid rgba(240,102,46,0.42); color: var(--ember); }
.card-sel .product-card-link:hover { background: rgba(240,102,46,0.26); }

.card-turkiye .product-card-header { background: linear-gradient(135deg, #0b2038 0%, #124a5e 100%); }
.card-turkiye .product-card-link { background: rgba(246,182,74,0.16); border: 1.5px solid rgba(246,182,74,0.42); color: var(--lamp); }
.card-turkiye .product-card-link:hover { background: rgba(246,182,74,0.26); }

.card-soon { border-style: dashed; border-color: rgba(201,212,238,0.22); }
.card-soon .product-card-header { background: linear-gradient(135deg, rgba(201,212,238,0.06) 0%, rgba(201,212,238,0.01) 100%); }
.card-soon .product-card-link { background: rgba(201,212,238,0.1); border: 1.5px solid rgba(201,212,238,0.28); color: var(--mist); }
.card-soon .product-card-link:hover { background: rgba(201,212,238,0.18); }

/* ── STİL GALERİSİ ─────────────────────────────── */
.style-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 800px) { .style-gallery { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

.style-item {
  position: relative; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.25s, box-shadow 0.25s;
  aspect-ratio: 4 / 3; background: rgba(255,255,255,0.03);
}
.style-item:hover { transform: translateY(-5px) scale(1.015); box-shadow: 0 18px 50px rgba(0,0,0,0.55); }
.style-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.style-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 12px;
  background: linear-gradient(to top, rgba(10,19,39,0.94) 0%, transparent 100%);
  font-size: 14px; font-weight: 700; letter-spacing: 0.03em; color: var(--text);
}

/* ── NASIL ÇALIŞIR ─────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-8); }
@media (max-width: 700px) { .steps { grid-template-columns: 1fr; gap: var(--sp-6); } }

.step { background: rgba(255,255,255,0.035); border: 1px solid var(--line); border-radius: 20px; padding: 30px 26px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(240,102,46,0.15); border: 1.5px solid rgba(240,102,46,0.4);
  color: var(--ember); font-weight: 800; font-size: 16px; margin-bottom: 18px;
}
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; margin-bottom: 10px; }
.step p { color: var(--mist); font-size: 14px; line-height: 1.7; }

/* ── GÜVEN ŞERİDİ ──────────────────────────────── */
.trust-strip {
  margin-top: var(--sp-12);
  display: flex; justify-content: center; gap: clamp(20px, 5vw, 56px);
  flex-wrap: wrap; padding: 22px 20px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: 100px;
}
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--mist); }
.trust-item .icon { font-size: 18px; }
@media (max-width: 600px) { .trust-strip { border-radius: 20px; flex-direction: column; gap: 14px; align-items: flex-start; } }

/* ── FOOTER ────────────────────────────────────── */
footer { border-top: 1px solid var(--line); padding: 48px 24px; text-align: center; color: var(--mist); font-size: 14px; }
footer a { color: var(--lamp); opacity: 0.85; }
footer a:hover { opacity: 1; }
.footer-logo { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--text); margin-bottom: 6px; display: block; letter-spacing: 0.01em; }
.footer-logo b { color: var(--ember); font-weight: 600; }
.footer-motto { font-family: var(--font-display); font-style: italic; font-size: 16px; color: var(--text); margin-bottom: 16px; }
.footer-links { margin-top: 10px; }
.footer-copy { margin-top: 12px; font-size: 12px; opacity: 0.45; }

/* ── GİRİŞ ANİMASYONU (reveal) ─────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: none; }
.pillars .reveal:nth-child(2), .style-gallery .reveal:nth-child(2), .products .reveal:nth-child(2), .steps .reveal:nth-child(2), .dialog-flow .reveal:nth-child(2) { transition-delay: 0.08s; }
.pillars .reveal:nth-child(3), .style-gallery .reveal:nth-child(3), .products .reveal:nth-child(3), .steps .reveal:nth-child(3), .dialog-flow .reveal:nth-child(3) { transition-delay: 0.16s; }
.dialog-flow .reveal:nth-child(4), .style-gallery .reveal:nth-child(4) { transition-delay: 0.24s; }
.style-gallery .reveal:nth-child(5) { transition-delay: 0.32s; }
.style-gallery .reveal:nth-child(6) { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn-primary:hover, .pillar:hover, .product-card:hover, .style-item:hover { transform: none; }
}

/* ── RESPONSIVE NAV ────────────────────────────── */
@media (max-width: 680px) {
  .nav { padding: 12px 14px; }
  .nav-logo { font-size: 19px; }
  .nav-links .nav-link:not(.cta) { display: none; }
  .nav-link.cta { padding: 8px 14px; font-size: 14px; }
}
