/* ============================================================
   TereaAnkara — Koyu Tema Tasarım Sistemi
   ============================================================ */

:root {
  /* Yüzeyler */
  --bg:        #0b0f14;
  --bg-2:      #0e141b;
  --surface:   #131a22;
  --surface-2: #18212c;
  --border:    rgba(255, 255, 255, .08);
  --border-2:  rgba(255, 255, 255, .14);

  /* Metin */
  --text:      #eaf0f4;
  --muted:     #9aa7b4;
  --muted-2:   #6f7d8a;

  /* Marka renkleri */
  --teal:      #34e0c9;
  --teal-2:    #1f9fb0;
  --gold:      #e6c489;
  --gold-2:    #c2974f;

  /* WhatsApp */
  --wa:        #25d366;
  --wa-2:      #1da851;

  /* Efekt */
  --radius:    18px;
  --radius-sm: 12px;
  --shadow:    0 20px 50px -20px rgba(0, 0, 0, .7);
  --glow-teal: 0 0 0 1px rgba(52, 224, 201, .25), 0 18px 60px -25px rgba(52, 224, 201, .55);
  --container:  1200px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Sora', 'Inter', sans-serif; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.container-narrow { max-width: 820px; }
.center { text-align: center; }

/* ---------- Erişilebilirlik ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--teal); color: #06231f; padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

/* ============================================================
   BUTONLAR
   ============================================================ */
.btn {
  --pad: 13px 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: var(--pad);
  border-radius: 999px;
  font-weight: 600; font-size: .98rem; font-family: 'Inter', sans-serif;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
  text-align: center;
}
.btn:active { transform: translateY(1px); }

.btn-wa { background: var(--wa); color: #053820; box-shadow: 0 10px 30px -12px rgba(37, 211, 102, .7); }
.btn-wa:hover { background: var(--wa-2); color: #042c19; box-shadow: 0 16px 40px -14px rgba(37, 211, 102, .8); }

.btn-primary { background: var(--teal); color: #06231f; }
.btn-primary:hover { background: #2bcab6; }

.btn-ghost { background: rgba(255, 255, 255, .04); color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .3); }

.btn-lg { --pad: 16px 30px; font-size: 1.05rem; }
.btn-sm { --pad: 9px 16px; font-size: .9rem; }
.btn-block { width: 100%; }

.wa-ic { flex: none; }

/* ============================================================
   ÜST ŞERİT
   ============================================================ */
.topbar {
  background: linear-gradient(90deg, rgba(52,224,201,.12), rgba(37,211,102,.12));
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-align: center;
  font-size: .85rem;
  padding: 9px 16px;
}
.topbar strong { color: var(--teal); font-weight: 600; }
.topbar-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--wa); margin-right: 7px; box-shadow: 0 0 0 0 rgba(37,211,102,.6); animation: pulse 2s infinite; vertical-align: middle; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 15, 20, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.site-header.scrolled { background: rgba(11, 15, 20, .92); }

.header-inner { display: flex; align-items: center; gap: 18px; padding-block: 13px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: 'Sora', sans-serif; font-weight: 700; }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  color: var(--teal);
  background: linear-gradient(160deg, rgba(52,224,201,.18), rgba(31,159,176,.08));
  border: 1px solid rgba(52,224,201,.3);
}
.brand-text { font-size: 1.22rem; letter-spacing: -.02em; }
.brand-text span { color: var(--teal); }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 14px; border-radius: 9px; color: var(--muted); font-size: .95rem; font-weight: 500; transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--text); background: rgba(255,255,255,.05); }

.header-cta { margin-left: 4px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: 11px; cursor: pointer; margin-left: auto; }
.nav-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; flex-direction: column; padding: 8px 22px 18px; gap: 2px; border-bottom: 1px solid var(--border); background: rgba(11,15,20,.96); }
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 12px 12px; border-radius: 10px; color: var(--muted); font-weight: 500; }
.mobile-nav a:hover { color: var(--text); background: rgba(255,255,255,.05); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 9vw, 100px); }
.hero-glow {
  position: absolute; inset: -20% -10% auto -10%; height: 700px; z-index: 0;
  background:
    radial-gradient(45% 55% at 22% 20%, rgba(52,224,201,.22), transparent 70%),
    radial-gradient(40% 50% at 85% 10%, rgba(230,196,137,.14), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(70% 60% at 50% 35%, #000 50%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 35%, #000 50%, transparent 100%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--teal);
  background: rgba(52,224,201,.1);
  border: 1px solid rgba(52,224,201,.22);
  padding: 6px 14px; border-radius: 999px;
}

.hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); margin: 20px 0 18px; font-weight: 800; }
.grad { background: linear-gradient(100deg, var(--teal), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.lead { color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.15rem); max-width: 56ch; }
.lead strong { color: var(--text); font-weight: 600; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 22px; }

.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .92rem; font-weight: 500; }
.hero-trust svg { color: var(--teal); flex: none; }

/* Hero görsel */
.hero-visual { position: relative; display: grid; place-items: center; }
.hero-visual::before {
  content: ""; position: absolute; z-index: 0;
  width: 80%; max-width: 330px; aspect-ratio: 1 / 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(52,224,201,.38), transparent 66%);
  filter: blur(42px);
}
.hero-photo {
  position: relative; z-index: 1; margin: 0;
  width: min(380px, 86vw);
  aspect-ratio: 4 / 5;
  border-radius: 24px; overflow: hidden;
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow);
  animation: float 7s ease-in-out infinite;
}
.hero-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.device-tag { position: absolute; bottom: 14px; left: 14px; right: 14px; z-index: 2; background: rgba(8,12,16,.62); backdrop-filter: blur(6px); border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px; display: flex; flex-direction: column; }
.device-tag strong { font-family: 'Sora', sans-serif; font-size: 1rem; }
.device-tag span { color: var(--teal); font-size: .82rem; letter-spacing: .04em; }

/* ============================================================
   AVANTAJLAR
   ============================================================ */
.features { padding-block: 14px 40px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature {
  background: linear-gradient(165deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 22px;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.feature:hover { transform: translateY(-4px); border-color: rgba(52,224,201,.3); box-shadow: var(--shadow); }
.feature-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; color: var(--teal); background: rgba(52,224,201,.1); border: 1px solid rgba(52,224,201,.22); margin-bottom: 16px; }
.feature h3 { font-size: 1.08rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: .92rem; }

/* ============================================================
   GENEL SECTION
   ============================================================ */
.section { padding-block: clamp(52px, 8vw, 90px); }
.section-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-block: 1px solid var(--border); }

.section-head { text-align: center; max-width: 660px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin: 16px 0 12px; }
.section-sub { color: var(--muted); font-size: 1.05rem; }

/* ============================================================
   ÜRÜNLER
   ============================================================ */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.product:hover { transform: translateY(-6px); border-color: var(--border-2); box-shadow: var(--shadow); }
.product-wide { grid-column: 1 / -1; }

.product-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #0c1218; }
.product-media::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, transparent 62%, rgba(8,12,16,.35)); }
.product-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.product:hover .product-img { transform: scale(1.05); }

.product-body { display: flex; flex-direction: column; gap: 10px; padding: 20px; flex: 1; }
.product-body h3 { font-size: 1.15rem; }
.product-body p { color: var(--muted); font-size: .92rem; }
.product-body .btn { margin-top: auto; }

.ribbon { align-self: flex-start; z-index: 3; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #06231f; background: var(--gold); padding: 5px 11px; border-radius: 999px; }
.ribbon-mix { background: var(--teal); }

/* Renk seçenekleri */
.swatches { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 4px; }
.swatch { width: 28px; height: 28px; border-radius: 50%; cursor: pointer; padding: 0; background: var(--sw, #888); border: 2px solid rgba(255,255,255,.3); transition: box-shadow .2s var(--ease), transform .15s var(--ease); }
.swatch:hover { transform: scale(1.12); }
.swatch.is-active { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--teal); }
.swatch-label { color: var(--muted); font-size: .9rem; margin-bottom: 2px; }
.swatch-label strong { color: var(--text); font-weight: 600; }

.ask-note { color: var(--teal); font-size: .92rem; line-height: 1.55; background: rgba(52,224,201,.08); border: 1px solid rgba(52,224,201,.2); border-radius: 12px; padding: 11px 14px; }

/* TEREA geniş kart */
.product-media-wide { aspect-ratio: 4 / 5; }
@media (min-width: 781px) {
  .product-wide { display: grid; grid-template-columns: .92fr 1.08fr; align-items: stretch; }
  .product-media-wide { aspect-ratio: auto; height: 100%; min-height: 340px; }
}

.product-note { text-align: center; color: var(--muted-2); font-size: .92rem; margin-top: 26px; }

/* ============================================================
   NASIL ÇALIŞIR
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 44px; }
.step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 24px; }
.step-no { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.25rem; color: #06231f; background: linear-gradient(150deg, var(--teal), var(--teal-2)); margin-bottom: 16px; }
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .95rem; }

/* ============================================================
   TESLİMAT BÖLGELERİ
   ============================================================ */
.districts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.districts a {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 18px 20px; font-weight: 600; font-size: 1.05rem;
  transition: transform .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.districts a:hover { transform: translateY(-3px); border-color: rgba(52,224,201,.35); background: var(--surface-2); }
.pin { position: relative; width: 12px; height: 12px; flex: none; border-radius: 50% 50% 50% 0; background: var(--teal); transform: rotate(-45deg); box-shadow: 0 0 0 4px rgba(52,224,201,.14); }

/* ============================================================
   SSS
   ============================================================ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; transition: border-color .2s; }
.faq details[open] { border-color: rgba(52,224,201,.3); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 20px; cursor: pointer; font-weight: 600; font-family: 'Sora', sans-serif; font-size: 1.02rem;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 11px; height: 11px; border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(45deg); transition: transform .25s var(--ease); margin-top: -4px; }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: 2px; }
.faq-a { padding: 0 20px 18px; color: var(--muted); }
.faq-a p { font-size: .96rem; }

/* ============================================================
   SON CTA
   ============================================================ */
.cta-band { position: relative; padding-block: clamp(56px, 9vw, 96px); overflow: hidden; background: linear-gradient(135deg, rgba(52,224,201,.1), rgba(31,159,176,.05)); border-top: 1px solid var(--border); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 80% at 50% 0%, rgba(52,224,201,.18), transparent 70%); pointer-events: none; }
.cta-inner { position: relative; text-align: center; max-width: 680px; margin-inline: auto; }
.cta-inner h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin-bottom: 12px; }
.cta-inner p { color: var(--muted); font-size: 1.08rem; margin-bottom: 28px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr; gap: 36px; padding-bottom: 40px; }
.footer-brand p { color: var(--muted); font-size: .92rem; margin-top: 14px; max-width: 36ch; }
.footer-col h4 { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--muted); padding: 5px 0; font-size: .95rem; transition: color .2s; }
.footer-col a:hover { color: var(--teal); }
.footer-districts { color: var(--muted); font-size: .92rem; line-height: 1.9; }
.footer-wa { font-weight: 600; color: var(--wa) !important; }
.footer-hours { color: var(--muted-2); font-size: .88rem; margin-top: 10px; }

.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; padding: 22px; border-top: 1px solid var(--border); }
.copy { color: var(--muted-2); font-size: .85rem; }

/* ============================================================
   SABİT WHATSAPP BUTONU
   ============================================================ */
.fab-wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: inline-flex; align-items: center; gap: 0;
  background: var(--wa); color: #fff;
  border-radius: 999px; padding: 14px;
  box-shadow: 0 14px 34px -10px rgba(37,211,102,.7);
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), gap .25s var(--ease), padding .25s var(--ease);
}
.fab-wa::before { content: ""; position: absolute; inset: 0; border-radius: 999px; box-shadow: 0 0 0 0 rgba(37,211,102,.55); animation: pulse 2.4s infinite; }
.fab-wa:hover { transform: translateY(-3px) scale(1.03); }
.fab-label { max-width: 0; overflow: hidden; white-space: nowrap; font-weight: 700; font-size: .98rem; transition: max-width .3s var(--ease), margin .3s var(--ease); }
.fab-wa:hover .fab-label { max-width: 120px; margin-left: 6px; margin-right: 6px; }

/* ============================================================
   ANİMASYON
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 860px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { order: -1; }
  .hero-photo { width: min(320px, 80vw); }
  .product-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .districts { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .container { padding-inline: 18px; }
  .feature-grid { grid-template-columns: 1fr; }
  .districts { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .topbar { font-size: .78rem; }
}

/* ============================================================
   HAREKET AZALTMA
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
