/* ============================================================
   MANIFORIA — tasarım sistemi
   Tüm sayfalar bu dosyayı kullanır.
   ============================================================ */

:root {
  /* Marka değerleri — brief'ten birebir */
  --bg-gradient: linear-gradient(135deg, #F7CFD5 0%, #DCC7E8 50%, #F2D3DB 100%);
  --brand-gradient: linear-gradient(120deg, #F0A8BE 0%, #D7A9DE 34%, #EDAFD2 67%, #D3A5DB 100%);

  --ink: #3A2A22;          /* ana metin */
  --ink-soft: #8A776D;     /* ikincil metin */
  --accent: #8E5C7E;       /* gradyan üstü vurgu */
  --gold: #C29162;         /* eyebrow / rozet */

  --surface: rgba(255, 248, 242, 0.85);
  --surface-strong: rgba(255, 248, 242, 0.95);
  --line: rgba(58, 42, 34, 0.08);

  --radius-card: 26px;
  --radius-phone: 36px;

  --shadow-soft: 0 16px 40px rgba(142, 92, 126, 0.13);
  --shadow-lift: 0 24px 55px rgba(142, 92, 126, 0.18);

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Temel ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Sabit zemin: iOS Safari'de background-attachment:fixed güvenilir olmadığı
   için gradyan, fixed konumlu bir katman olarak çizilir — içerik uzasa da
   asla tekrar etmez. */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--bg-gradient);
  overflow: hidden;
}

/* Büyülü ışık lekeleri */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
}
.glow-1 { width: 46vw; height: 46vw; top: -12vw; left: -10vw;  background: rgba(255, 236, 230, 0.9); }
.glow-2 { width: 40vw; height: 40vw; top: 30vh;  right: -14vw; background: rgba(222, 190, 235, 0.55); }
.glow-3 { width: 36vw; height: 36vw; bottom: -10vw; left: 20vw; background: rgba(250, 216, 226, 0.7); }

.spark {
  position: absolute;
  color: rgba(255, 252, 248, 0.85);
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.9);
  font-size: 14px;
  animation: sparkle 7s ease-in-out infinite;
}
.spark-1 { top: 16%; left: 12%; animation-delay: 0s;   font-size: 12px; }
.spark-2 { top: 24%; right: 14%; animation-delay: 1.8s; font-size: 16px; }
.spark-3 { top: 58%; left: 7%;  animation-delay: 3.4s;  font-size: 11px; }
.spark-4 { top: 70%; right: 9%; animation-delay: 5s;    font-size: 14px; }

@keyframes sparkle {
  0%, 100% { opacity: 0.25; transform: scale(0.85); }
  50%      { opacity: 0.95; transform: scale(1.12); }
}

/* ---------- Ortak parçalar ---------- */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 10px;
}

/* Dil anahtarı */
.lang-switch {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 10;
  display: flex;
  gap: 2px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}
.lang-btn {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 6px 13px;
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease;
}
.lang-btn:hover { color: var(--accent); }
.lang-btn.is-active {
  color: #fff;
  background: var(--brand-gradient);
}
.lang-btn:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Hero ---------- */
main { display: block; }

.hero {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(88px, 14vh, 150px) 22px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  width: clamp(72px, 9vw, 96px);
  height: auto;
  margin-bottom: 22px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(44px, 9vw, 88px);
  letter-spacing: 0.06em;
  line-height: 1.05;
  margin: 0 0 34px;
  /* Logo altını: koyu sarıyla başlar, ortaya doğru hafifçe açılır */
  background: linear-gradient(90deg,
              #A77F24 0%,
              #B08829 28%,
              #BD9530 50%,
              #B08829 72%,
              #A77F24 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Akış satırları */
.flows {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  align-items: center;
  margin-bottom: 30px;
}

.flow {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  position: relative;
}

/* Satırın arkasında yumuşak pembe ışık */
.flow::before {
  content: "";
  position: absolute;
  inset: -14px -30px;
  background: radial-gradient(ellipse at center,
              rgba(240, 168, 190, 0.22) 0%,
              rgba(215, 169, 222, 0.12) 45%,
              transparent 75%);
  border-radius: 999px;
  z-index: -1;
  pointer-events: none;
}

.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 11px 20px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  /* Krem yüzey + gradyan çerçeve tek arka planda */
  background:
    linear-gradient(rgba(255, 248, 242, 0.92), rgba(255, 248, 242, 0.92)) padding-box,
    var(--brand-gradient) border-box;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  box-shadow:
    0 6px 20px rgba(240, 168, 190, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Küçük altın yıldız */
.chip::before {
  content: "✦";
  font-size: 10px;
  color: var(--gold);
  line-height: 1;
  flex: 0 0 auto;
}

/* Nazik ışık süpürmesi */
.chip::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(105deg,
              transparent 0%,
              rgba(255, 255, 255, 0.55) 50%,
              transparent 100%);
  transform: skewX(-18deg);
  animation: chip-shimmer 6.5s ease-in-out infinite;
  pointer-events: none;
}
/* Süpürmeler sırayla gelsin */
.flow .chip:nth-of-type(1)::after { animation-delay: 0s; }
.flow .chip:nth-of-type(2)::after { animation-delay: 0.7s; }
.flow .chip:nth-of-type(3)::after { animation-delay: 1.4s; }
.flow:nth-of-type(2) .chip::after { animation-delay: 2.4s; }
.flow:nth-of-type(2) .chip:nth-of-type(2)::after { animation-delay: 3.1s; }
.flow:nth-of-type(2) .chip:nth-of-type(3)::after { animation-delay: 3.8s; }

@keyframes chip-shimmer {
  0%       { left: -80%; opacity: 0; }
  8%       { opacity: 1; }
  22%      { left: 120%; opacity: 1; }
  23%, 100% { left: 120%; opacity: 0; }
}

.chip:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 12px 30px rgba(240, 168, 190, 0.45),
    0 4px 12px rgba(142, 92, 126, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.flow-arrow {
  width: 26px;
  height: 12px;
  flex: 0 0 auto;
  color: var(--accent);
  opacity: 0.75;
  filter: drop-shadow(0 1px 3px rgba(240, 168, 190, 0.5));
  animation: arrow-drift 3.2s ease-in-out infinite;
}
.flow .flow-arrow:nth-of-type(2) { animation-delay: 0.5s; }

@keyframes arrow-drift {
  0%, 100% { transform: translateX(0);   opacity: 0.55; }
  50%      { transform: translateX(4px); opacity: 1; }
}

/* Mobilde akışlar tek satırda yatay kaydırılır */
@media (max-width: 720px) {
  .flow {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 22px;
    width: 100vw;
    scrollbar-width: none;
    /* Kenarlarda hafif solma: kaydırılabilir olduğunu ima eder */
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 30px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 30px), transparent 100%);
  }
  .flow::-webkit-scrollbar { display: none; }
  /* Chip'ler sola hizalı snap olur: ilk chip tam görünür, bir sonrakinin
     ucu sağda görünüp kaydırılabilir olduğunu hissettirir. */
  .chip { scroll-snap-align: start; scroll-snap-stop: always; font-size: 12.5px; padding: 9px 16px; }
  .flow .chip:first-child { scroll-margin-left: 22px; }
}

/* Özellik şeridi */
.feature-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 38px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}
.feature-strip .sep {
  color: var(--gold);
  font-size: 11px;
}

/* App Store / Google Play rozetleri */
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.appstore {
  display: inline-block;
  text-decoration: none;
  border-radius: 16px;
  cursor: default;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.appstore:hover { transform: translateY(-3px) scale(1.03); }

.appstore-placeholder {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 26px;
  background: var(--brand-gradient);
  color: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}
.appstore:hover .appstore-placeholder { box-shadow: var(--shadow-lift); }

.apple-mark { width: 26px; height: 26px; }

.appstore-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
  text-align: left;
}
.appstore-text small {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.6px;
  opacity: 0.9;
}
.appstore-text strong {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

/* ---------- Galeri ---------- */
.gallery-section {
  padding: clamp(50px, 9vh, 100px) 0 30px;
  text-align: center;
}

.gallery-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 4.4vw, 40px);
  margin: 0 0 40px;
  color: var(--ink);
}
.gallery-title em {
  font-style: italic;
  color: var(--accent);
}

.gallery {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 26px;
  padding: 10px 22px 34px;
}

.phone-card {
  margin: 0;
  flex: 0 0 auto;
  width: min(260px, 68vw);
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-phone);
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.phone-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

.phone-card img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;               /* asla upscale yok, oran korunur */
  aspect-ratio: 1206 / 2622;  /* dosya yüklenmeden de doğru yerleşim */
  border-radius: calc(var(--radius-phone) - 10px);
  background: rgba(255, 255, 255, 0.4);
}

/* Mobil: yatay kaydırmalı vitrin */
@media (max-width: 900px) {
  .gallery {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .phone-card { scroll-snap-align: center; }
}

/* Masaüstünde 4.-5. kartlar sığmazsa alta değil, satırda kalsın */
@media (min-width: 901px) {
  .gallery { flex-wrap: nowrap; overflow-x: auto; }
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 40px 22px 46px;
}

.footer-card {
  max-width: 880px;
  margin: 0 auto;
  padding: 36px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.footer-logo { width: 34px; height: auto; }

.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.08em;
  background: linear-gradient(90deg,
              #A77F24 0%,
              #B08829 28%,
              #BD9530 50%,
              #B08829 72%,
              #A77F24 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-bottom: 20px;
}
.footer-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.25s ease;
}
.footer-links a:hover { color: var(--accent); }

.socials {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}
.socials a {
  color: var(--gold);
  transition: color 0.25s ease, transform 0.25s ease;
}
.socials a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}
.socials svg { width: 19px; height: 19px; display: block; }

.copyright {
  margin: 0;
  font-size: 12px;
  color: var(--ink-soft);
}

/* ---------- Yasal / destek sayfaları ---------- */
.page-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 22px 0;
}
.page-header a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.header-logo { width: 34px; height: auto; }
.header-wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: 0.08em;
  background: linear-gradient(90deg,
              #A77F24 0%,
              #B08829 28%,
              #BD9530 50%,
              #B08829 72%,
              #A77F24 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.legal-main {
  max-width: 820px;
  margin: 0 auto;
  padding: 34px 22px 20px;
}

.legal-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: clamp(28px, 5vw, 52px);
}

.legal-card .legal-socials {
  justify-content: flex-start;
  margin: 4px 0 24px;
}
.legal-card .legal-socials svg { width: 21px; height: 21px; }

.legal-card h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 4.5vw, 36px);
  margin: 0 0 6px;
  color: var(--ink);
}
.legal-card h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  margin: 34px 0 10px;
  color: var(--ink);
}
.legal-card h2:first-of-type { margin-top: 30px; }
.legal-card p,
.legal-card li {
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.75;
}
.legal-card p { margin: 0 0 12px; }
.legal-card p strong {
  display: block;
  margin: 18px 0 6px;
  font-weight: 600;
  color: var(--accent);
  font-size: 13.5px;
  letter-spacing: 0.2px;
}
.legal-card p:first-of-type strong { margin-top: 0; }
.legal-card ul {
  margin: 0 0 16px;
  padding-left: 20px;
}
.legal-card li { margin: 0 0 6px; }
.legal-card li::marker { color: var(--gold); }
.legal-card .muted { color: var(--ink-soft); font-size: 13px; margin: 0 0 26px; }
.legal-card a { color: var(--accent); }

/* ---------- Giriş animasyonları ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Hareket azaltma ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spark { animation: none; opacity: 0.5; }
  .chip::after { animation: none; opacity: 0; }
  .flow-arrow { animation: none; opacity: 0.75; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .chip, .phone-card, .appstore, .socials a, .lang-btn {
    transition: none;
  }
}
