/* =================================================================
   Halis: Yol Arkadaşın — Web Sitesi
   Sade · ferah · akıcı animasyonlu tasarım
   Renkler app'ten birebir (AppTheme.swift)
   ================================================================= */

/* ---------- Tasarım token'ları ---------- */
:root {
  --accent:        #DA914E;
  --accent-dark:   #AC6830;
  --accent-soft:   #FFEEDA;
  --accent-glow:   rgba(218, 145, 78, 0.22);

  --ink:           #251C14;
  --ink-soft:      #6F6256;
  --ink-faint:     #A99C8D;
  --bg:            #FFFCF7;
  --bg-alt:        #FBF3E8;
  --surface:       #FFFFFF;
  --line:          rgba(37, 28, 20, 0.07);

  --font-display:  "Fraunces", "Playfair Display", Georgia, serif;
  --font-body:     "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw:          1080px;
  --radius:        24px;
  --ease:          cubic-bezier(0.22, 1, 0.36, 1);
  --section-y:     clamp(5rem, 12vw, 9rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 1.0625rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- Tipografi ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); }
h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); font-weight: 600; }
.lead { font-size: clamp(1.08rem, 2vw, 1.3rem); color: var(--ink-soft); font-weight: 400; text-wrap: balance; }

/* ---------- Layout yardımcıları ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.5rem, 5vw, 2.5rem); }
.section { padding-block: var(--section-y); }
.section-head { max-width: 600px; margin: 0 auto clamp(3rem, 6vw, 5rem); text-align: center; }
.section-head .lead { margin-top: 1.1rem; }
.kicker {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent-dark); margin-bottom: 1.1rem;
}

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-weight: 500; font-size: 1rem; padding: .95rem 1.7rem; border-radius: 999px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s ease, color .3s ease;
  will-change: transform;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); box-shadow: 0 14px 30px var(--accent-glow); }
.btn-text { color: var(--ink); font-weight: 500; gap: .4rem; }
.btn-text .arrow { transition: transform .3s var(--ease); }
.btn-text:hover .arrow { transform: translateX(5px); }
.btn .icon { width: 1.15em; height: 1.15em; }

/* App Store rozeti */
.store-badge {
  display: inline-flex; align-items: center; gap: .7rem;
  background: var(--ink); color: #fff; padding: .8rem 1.4rem; border-radius: 16px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  will-change: transform;
}
.store-badge:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(37,28,20,.22); }
.store-badge .apple { width: 1.6rem; height: 1.6rem; }
.store-badge small { display: block; font-size: .64rem; opacity: .72; letter-spacing: .03em; }
.store-badge strong { display: block; font-size: 1.02rem; font-weight: 600; line-height: 1.1; }
.store-badge .soon-tag { margin-left: .3rem; font-size: .58rem; font-weight: 700; letter-spacing: .08em; background: var(--accent); padding: .22rem .5rem; border-radius: 6px; }

/* =================================================================
   HEADER
   ================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 252, 247, 0.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s ease, background .4s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.brand img { width: 40px; height: 40px; border-radius: 11px; flex: 0 0 auto; }
.brand > span { display: flex; flex-direction: column; justify-content: center; line-height: 1.05; }
.brand small { display: block; font-family: var(--font-body); font-size: .66rem; font-weight: 500; color: var(--ink-soft); letter-spacing: .02em; line-height: 1.1; margin-top: 1px; }
.nav-links { display: flex; align-items: center; gap: 2.2rem; }
.nav-links a { position: relative; font-weight: 500; font-size: .96rem; color: var(--ink-soft); transition: color .25s ease; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 100%; height: 1.5px; background: var(--accent-dark); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: flex; align-items: center; gap: 1.1rem; }
/* Dil değiştirici */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: transparent; border: 1px solid rgba(37,28,20,.1); font-size: .78rem; font-weight: 600; letter-spacing: .05em; }
.lang-switch button { color: var(--ink-soft); padding: .3rem .75rem; border-radius: 999px; line-height: 1; transition: color .2s ease, background .2s ease; }
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.active { color: #fff; background: var(--accent); box-shadow: none; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: .5rem; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
/* Hamburger → X (menü açıkken) */
.site-header.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* Menü içi ek blok (dil + CTA) — yalnızca mobil menüde görünür */
.menu-extra { display: none; }
body.nav-locked { overflow: hidden; }

/* =================================================================
   HERO
   ================================================================= */
.hero { position: relative; overflow: hidden; padding-top: clamp(3.5rem, 8vw, 6rem); padding-bottom: var(--section-y); }
.hero-aura {
  position: absolute; z-index: -1; top: -10%; right: -5%;
  width: 60vw; max-width: 760px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, rgba(218,145,78,0.06) 45%, transparent 70%);
  filter: blur(8px); animation: drift 16s ease-in-out infinite alternate;
}
@keyframes drift { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(-6%, 5%) scale(1.12); } }

.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(2rem, 5vw, 4.5rem); }
.hero-copy .bismillah { font-family: var(--font-display); font-style: italic; color: var(--accent-dark); font-size: 1.15rem; display: inline-block; }
.hero-copy h1 { margin-top: 1.1rem; }
.hero-copy h1 em { font-style: italic; color: var(--accent-dark); }
.hero-copy .lead { margin-top: 1.5rem; max-width: 29rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem; margin-top: 2.4rem; }
.hero-trust { display: flex; align-items: center; gap: .8rem; margin-top: 2.2rem; color: var(--ink-soft); font-size: .9rem; }
.hero-trust .stars { color: var(--accent); letter-spacing: .12em; }

/* Telefon — iPhone 15 Pro (titanyum gövde + Dynamic Island) */
.hero-visual { display: flex; justify-content: center; }
.phone {
  position: relative; width: min(300px, 78vw); aspect-ratio: 9 / 19.45;
  background: linear-gradient(150deg, #6e6e73 0%, #2b2b2e 18%, #1c1c1e 50%, #2b2b2e 82%, #6e6e73 100%);
  border-radius: 56px; padding: 12px;
  box-shadow: 0 40px 80px rgba(120,80,40,.20), inset 0 0 0 1.5px rgba(255,255,255,.10), 0 0 0 1px rgba(0,0,0,.35);
  will-change: transform;
}
/* Dynamic Island */
.phone::after {
  content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 31%; height: 27px; background: #000; border-radius: 999px; z-index: 6;
  box-shadow: inset -6px 0 0 -3px rgba(60,60,65,.5);
}
/* Yan tuşlar (titanyum) */
.phone::before {
  content: ""; position: absolute; z-index: -1; left: -2px; top: 24%; width: 3px; height: 30px;
  background: #4a4a4d; border-radius: 3px 0 0 3px;
  box-shadow: 0 44px 0 #4a4a4d, 0 92px 0 0 #4a4a4d, 304px 70px 0 #4a4a4d;
}
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 45px; overflow: hidden; background: linear-gradient(165deg, var(--accent-soft), #fff); display: flex; align-items: center; justify-content: center; }
/* Dynamic Island'ın kamera noktası */
.phone-screen::before { content: ""; position: absolute; top: 14px; left: calc(50% + 7%); width: 8px; height: 8px; border-radius: 50%; background: #0a0a14; box-shadow: inset 0 0 0 1px rgba(80,90,120,.5); z-index: 7; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.phone-screen .placeholder { color: var(--accent-dark); text-align: center; padding: 2rem; font-size: .9rem; opacity: .55; }

/* =================================================================
   HERO — Medya alanı (kullanıcının ekleyeceği görsel VEYA video)
   Çerçeve YOK; yuvarlak köşeli kutu. Dosya eklenince otomatik gösterilir.
   ================================================================= */
.hero-media {
  position: relative; width: min(300px, 78vw); aspect-ratio: 9 / 19.5;
  margin-inline: auto; border-radius: 34px; overflow: hidden;
  background: linear-gradient(165deg, var(--accent-soft), #fff);
  box-shadow: 0 40px 80px rgba(120,80,40,.18), inset 0 0 0 1px rgba(255,255,255,.45);
}
.hero-media .hero-video,
.hero-media .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.hero-media.has-video .hero-video { display: block; }
.hero-media.has-img:not(.has-video) .hero-img { display: block; }
/* Yer tutucu (görsel/video eklenene kadar) */
.hero-media-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .7rem; text-align: center; padding: 2rem; color: var(--accent-dark); }
.hero-media.has-video .hero-media-ph,
.hero-media.has-img .hero-media-ph { display: none; }
.hero-media-ph .ph-ic { width: 56px; height: 56px; border-radius: 16px; background: rgba(255,255,255,.6); display: grid; place-items: center; }
.hero-media-ph .ph-ic svg { width: 28px; height: 28px; }
.hero-media-ph b { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; color: var(--ink); }
.hero-media-ph small { font-size: .78rem; color: var(--ink-faint); line-height: 1.5; }

/* =================================================================
   ÖZELLİKLER — sade liste/grid
   ================================================================= */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.1rem, 2vw, 1.6rem); }
.feature {
  position: relative; padding: clamp(1.5rem, 2.5vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(37,28,20,.03);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 44px rgba(120,80,40,.12);
  border-color: rgba(218,145,78,.28);
}
.feature .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-dark); margin-bottom: 1.1rem; transition: transform .4s var(--ease), background .3s ease, color .3s ease; }
.feature .ic svg { width: 24px; height: 24px; }
.feature:hover .ic { transform: translateY(-3px) rotate(-4deg); background: var(--accent); color: #fff; }
.feature h3 { margin-bottom: .4rem; }
.feature p { color: var(--ink-soft); font-size: .96rem; text-wrap: pretty; }

/* =================================================================
   SHOWCASE — sade, geniş
   ================================================================= */
.showcase { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2.5rem, 7vw, 6rem); }
.showcase + .showcase { margin-top: clamp(5rem, 10vw, 8rem); }
.showcase.reverse .showcase-media { order: 2; }
.showcase-copy h2 { margin-bottom: 1.1rem; }
.showcase-copy p { color: var(--ink-soft); }
.showcase-copy .feature-list { margin-top: 1.6rem; display: grid; gap: .8rem; }
.showcase-copy .feature-list li { display: flex; gap: .7rem; align-items: flex-start; color: var(--ink-soft); }
.showcase-copy .feature-list svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: 4px; }
.showcase-media { display: flex; justify-content: center; }
.showcase-media .phone { width: min(265px, 68vw); }

/* =================================================================
   GALERİ — sürekli kayan şerit
   ================================================================= */
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 1.6rem; width: max-content; animation: scroll-x 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll-x { to { transform: translateX(-50%); } }
.marquee .shot {
  flex: 0 0 auto; width: 215px; aspect-ratio: 9/19.5;
  border-radius: 30px; overflow: hidden; border: 6px solid #1a1411;
  background: linear-gradient(165deg, var(--accent-soft), #fff);
  box-shadow: 0 20px 44px rgba(120,80,40,.14);
}
.marquee .shot img { width: 100%; height: 100%; object-fit: cover; }
.marquee .shot .placeholder { display: grid; place-items: center; height: 100%; color: var(--accent-dark); font-size: .8rem; opacity: .5; }

/* =================================================================
   CTA
   ================================================================= */
.cta { text-align: center; }
.cta h2 { max-width: 16ch; margin-inline: auto; }
.cta p { color: var(--ink-soft); max-width: 38rem; margin: 1.2rem auto 2.2rem; text-wrap: balance; }

/* =================================================================
   FOOTER
   ================================================================= */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(3.5rem, 7vw, 5rem) 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3.5rem; }
.footer-brand p { color: var(--ink-soft); font-size: .94rem; max-width: 22rem; margin-top: 1.1rem; }
.footer-col h4 { font-family: var(--font-body); font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-faint); margin-bottom: 1.1rem; }
.footer-col a { display: block; color: var(--ink-soft); font-size: .94rem; padding: .35rem 0; transition: color .25s ease, transform .25s ease; }
.footer-col a:hover { color: var(--accent-dark); transform: translateX(3px); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 2rem; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: .86rem; }
.footer-bottom a { color: var(--ink-faint); transition: color .25s ease; }
.footer-bottom a:hover { color: var(--accent-dark); }

/* =================================================================
   İÇ SAYFALAR (hukuki / destek)
   ================================================================= */
.page-hero { padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2rem, 4vw, 3rem); text-align: center; }
.page-hero .updated { margin-top: 1rem; font-size: .85rem; color: var(--ink-faint); }
.page-hero .lead { margin-top: 1rem; max-width: 42rem; margin-inline: auto; }
.prose { max-width: 720px; margin-inline: auto; }
.prose h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); margin-top: 2.6rem; margin-bottom: .7rem; }
.prose p, .prose li { color: var(--ink-soft); text-wrap: pretty; }
.prose ul { display: grid; gap: .5rem; margin-top: .5rem; }
.prose ul li { display: flex; gap: .6rem; }
.prose ul li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 11px; flex-shrink: 0; }
.prose a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }

.faq { max-width: 720px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.4rem 0; font-weight: 500; font-size: 1.08rem; text-align: left; color: var(--ink); }
.faq-q .chev { width: 20px; height: 20px; color: var(--accent); transition: transform .35s var(--ease); flex-shrink: 0; }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a-inner { padding: 0 0 1.4rem; color: var(--ink-soft); }
.support-contact { max-width: 560px; margin: 4rem auto 0; text-align: center; }
.support-contact p { text-wrap: balance; }
.support-contact .mail-ic { width: 58px; height: 58px; border-radius: 17px; background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; margin: 0 auto 1.3rem; }
.support-contact .mail-ic svg { width: 28px; height: 28px; }
.support-contact .email { font-family: var(--font-display); font-size: clamp(1.3rem, 3vw, 1.7rem); color: var(--accent-dark); margin: .9rem 0 1.6rem; display: inline-block; }

/* =================================================================
   ANİMASYONLAR
   ================================================================= */
/* Scroll reveal + stagger */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
[data-stagger] > * { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-stagger].in > * { opacity: 1; transform: none; }

/* Kelime kelime hero başlık girişi */
.hero-copy [data-anim] { opacity: 0; transform: translateY(22px); animation: rise .9s var(--ease) forwards; }
.hero-copy [data-anim="1"] { animation-delay: .05s; }
.hero-copy [data-anim="2"] { animation-delay: .18s; }
.hero-copy [data-anim="3"] { animation-delay: .32s; }
.hero-copy [data-anim="4"] { animation-delay: .46s; }
.hero-copy [data-anim="5"] { animation-delay: .60s; }
.hero-visual { opacity: 0; transform: translateY(30px) scale(.97); animation: rise .95s var(--ease) .35s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal, [data-stagger] > *, .hero-copy [data-anim], .hero-visual { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none !important; }
}

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy .lead { margin-inline: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .hero-visual { order: 0; margin-top: 2.4rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase, .showcase.reverse .showcase-media { grid-template-columns: 1fr; order: 0; }
  .showcase-media { order: -1 !important; }
  .showcase-copy { text-align: center; }
  .showcase-copy .feature-list { display: inline-grid; text-align: left; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .nav-links, .nav-cta .lang-switch { display: none; }
  .nav-toggle { display: flex; }
  .site-header.menu-open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: .2rem;
    position: absolute; top: 76px; left: 0; right: 0;
    background: rgba(255, 252, 247, 0.97);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    padding: .8rem 1.5rem 1.8rem;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(37, 28, 20, .10);
    animation: menuDrop .35s var(--ease);
  }
  .site-header.menu-open .nav-links > a { padding: .9rem .25rem; font-size: 1.06rem; color: var(--ink); border-bottom: 1px solid var(--line); }
  .site-header.menu-open .nav-links > a::after { display: none; }
  .menu-extra { display: flex; flex-direction: column; gap: 1.2rem; margin-top: 1.4rem; align-items: stretch; }
  .menu-extra .lang-switch { align-self: center; font-size: .9rem; }
  .menu-extra .lang-switch button { padding: .45rem 1.2rem; }
  .features-grid { grid-template-columns: 1fr; }
  /* Footer — telefon görünümünde ortala */
  .footer-grid { grid-template-columns: 1fr; gap: 2.4rem; text-align: center; justify-items: center; }
  .footer-brand .brand { justify-content: center; }
  .footer-brand p { margin-inline: auto; }
  .footer-col a:hover { transform: none; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: .5rem; }
}
@keyframes menuDrop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
