/* ═══════════════════════════════════════════════════════════════════════════
   Glosiz — "Çok yakında" sayfası · tasarım dili token katmanı.
   glosiz.com kilitli tasarım dilinden BİREBİR taşındı (apps/api-web/globals.css):
   NÖTR zemin + YEŞİL aksan (#1FC15C), Apple-minimal, tipografi: Satoshi.
   Tema: SİSTEM varsayılanı CSS media query ile (no-flash, JS'siz) + manuel toggle
   (html.light / html.dark) oturum boyunca. Anonim ziyaretçi = sistem — uygulamanın
   backend-driven tema mimarisiyle aynı davranış.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  color-scheme: light;

  /* — Zemin & yüzey — */
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-muted: #f6f7f9;
  --surface-elevated: #ffffff;

  /* — Metin — */
  --fg: #0b1120;
  --fg-muted: #59616f;
  --fg-faint: #97a0ad;

  /* — Çizgi & kenar — */
  --border: #e8eaef;
  --border-strong: #d7dbe2;

  /* — Marka yeşili (#1fc15c) + türevleri — */
  --primary: #1fc15c;
  --primary-strong: #15a049;
  --primary-fg: #06140b;
  --primary-soft: #eafaf0;
  --ring: rgba(31, 193, 92, 0.4);

  /* — Tipografi — */
  --font-sans: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial,
    sans-serif;

  /* — Köşe yarıçapı — */
  --r-sm: 0.5rem;
  --r-md: 0.75rem;
  --r-lg: 1rem;
  --r-xl: 1.5rem;
  --r-2xl: 2rem;

  /* — Gölge (Apple-vari yumuşak) — */
  --shadow-sm: 0 1px 2px rgba(11, 17, 32, 0.04), 0 1px 3px rgba(11, 17, 32, 0.06);
  --shadow-md: 0 4px 12px rgba(11, 17, 32, 0.06), 0 2px 4px rgba(11, 17, 32, 0.04);
  --shadow-lg: 0 16px 40px rgba(11, 17, 32, 0.1), 0 4px 12px rgba(11, 17, 32, 0.06);

  /* — Hareket — */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Koyu tema — İKİ yerde AYNI değerlerle: 1) html.dark (manuel toggle)
   2) @media sistem koyu VE açıkça .light değil (anonim/sistem). İki blok senkron. */
html.dark {
  color-scheme: dark;

  --bg: #0a0f1a;
  --surface: #0e1422;
  --surface-muted: #11192b;
  --surface-elevated: #141c2e;

  --fg: #e8ebf0;
  --fg-muted: #97a1b0;
  --fg-faint: #5e6877;

  --border: #1e2738;
  --border-strong: #2b3548;

  --primary: #22c55e;
  --primary-strong: #16a34a;
  --primary-fg: #04140a;
  --primary-soft: #11261a;
  --ring: rgba(34, 197, 94, 0.45);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35), 0 2px 4px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.4);
}

@media (prefers-color-scheme: dark) {
  html:not(.light):not(.dark) {
    color-scheme: dark;

    --bg: #0a0f1a;
    --surface: #0e1422;
    --surface-muted: #11192b;
    --surface-elevated: #141c2e;

    --fg: #e8ebf0;
    --fg-muted: #97a1b0;
    --fg-faint: #5e6877;

    --border: #1e2738;
    --border-strong: #2b3548;

    --primary: #22c55e;
    --primary-strong: #16a34a;
    --primary-fg: #04140a;
    --primary-soft: #11261a;
    --ring: rgba(34, 197, 94, 0.45);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35), 0 2px 4px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.4);
  }
}

/* ── Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden; /* yatay kaymayı engelle (parıltı taşması vb.) */
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Tema geçişini yumuşat — sadece manuel toggle anında. İlk yükte sınıf değişmez → flaş yok. */
body,
body * {
  transition:
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease),
    fill 0.2s var(--ease);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Düzen — tam-ekran dikey: header · hero · footer
   ═══════════════════════════════════════════════════════════════════════════ */
.page {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

/* Dekoratif yeşil radyal parıltı (landing hero ile aynı motif) */
.glow {
  position: absolute;
  top: -240px;
  right: -160px;
  width: 620px;
  height: 620px;
  max-width: 90vw;
  border-radius: 9999px;
  background: radial-gradient(circle, var(--primary), transparent 65%);
  opacity: 0.16;
  filter: blur(72px);
  pointer-events: none;
  z-index: 0;
}

.glow--bottom {
  top: auto;
  right: auto;
  bottom: -280px;
  left: -200px;
  opacity: 0.1;
}

/* ── Header ── */
.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(1rem, 2.5vh, 1.5rem) 1.5rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand__logo {
  height: 30px;
  width: auto;
}

/* Logoyu temaya göre değiştir — uygulamadaki Logo bileşeniyle aynı mantık */
.logo--light {
  display: block;
}
.logo--dark {
  display: none;
}
html.dark .logo--light {
  display: none;
}
html.dark .logo--dark {
  display: block;
}
@media (prefers-color-scheme: dark) {
  html:not(.light):not(.dark) .logo--light {
    display: none;
  }
  html:not(.light):not(.dark) .logo--dark {
    display: block;
  }
}

.controls {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-width: 40px;
  padding: 0 0.5rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: var(--surface);
  color: var(--fg-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  transition:
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.icon-btn:hover {
  background: var(--surface-muted);
  color: var(--fg);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.icon-btn .lang-label {
  letter-spacing: 0.02em;
}

/* Tema ikonları: güneş (light) / ay (dark) */
.theme-toggle .icon-sun {
  display: block;
}
.theme-toggle .icon-moon {
  display: none;
}
html.dark .theme-toggle .icon-sun {
  display: none;
}
html.dark .theme-toggle .icon-moon {
  display: block;
}
@media (prefers-color-scheme: dark) {
  html:not(.light):not(.dark) .theme-toggle .icon-sun {
    display: none;
  }
  html:not(.light):not(.dark) .theme-toggle .icon-moon {
    display: block;
  }
}

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ring);
  border-radius: 9999px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Hero
   ═══════════════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0; /* flex çocuğu küçülebilsin (taşma yapmasın) */
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* track viewport'a sabit → yatay taşma yok */
  align-items: center;
  gap: clamp(1.5rem, 4vh, 2.5rem);
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(1.25rem, 4vh, 2.5rem) 1.5rem;
}

@media (min-width: 920px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(2rem, 5vw, 4rem);
    padding: clamp(1.25rem, 4vh, 3rem) 1.5rem;
  }
}

.hero__copy {
  max-width: 36rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: var(--surface);
  color: var(--fg-muted);
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: var(--primary);
  position: relative;
}

.badge__dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 9999px;
  background: var(--primary);
  opacity: 0.35;
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.6);
    opacity: 0.5;
  }
  70%,
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.hero__title {
  margin: clamp(1rem, 2.5vh, 1.5rem) 0 0;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-size: clamp(2.05rem, 6.5vw, 3.85rem);
  color: var(--fg);
}

.hero__title .accent {
  color: var(--primary);
}

.hero__sub {
  margin: clamp(0.85rem, 2vh, 1.4rem) 0 0;
  max-width: 30rem;
  font-size: clamp(1.02rem, 2.2vw, 1.18rem);
  line-height: 1.6;
  color: var(--fg-muted);
}

/* ── E-posta yakalama formu ── */
.notify {
  margin: clamp(1.25rem, 3vh, 2rem) 0 0;
}

/* Bal tuzağı alanı — ekran dışı; ekran okuyucu da atlasın (markup'ta aria-hidden) */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.notify__label {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--fg);
}

.notify__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  max-width: 30rem;
}

.notify__input {
  flex: 1 1 14rem;
  height: 50px;
  padding: 0 1.1rem;
  border: 1px solid var(--border-strong);
  border-radius: 9999px;
  background: var(--surface);
  color: var(--fg);
  font-size: 1rem;
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.notify__input::placeholder {
  /* --fg-muted (WCAG AA: 6.24:1 açık / 7.34:1 koyu) — --fg-faint AA'yı geçmiyordu */
  color: var(--fg-muted);
}

.notify__input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--ring);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 50px;
  padding: 0 1.6rem;
  border: none;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-fg);
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition:
    background-color 0.2s var(--ease),
    transform 0.1s var(--ease);
}

.btn-primary:hover {
  background: var(--primary-strong);
}

.btn-primary:active {
  transform: translateY(1px);
}

.notify__note {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  /* --fg-muted → WCAG AA uyumlu (yardımcı metin okunabilirliği) */
  color: var(--fg-muted);
}

.notify__status {
  margin: 0.9rem 0 0;
  min-height: 1.2rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--primary-strong); /* her iki temada da görünür yeşil */
}

/* Hata durumu — tek kuralla, daha yüksek özgüllükte: tema kuralları kırmızıyı ezmesin */
.notify__status[data-state='error'] {
  color: #e5484d;
}

/* Gönderim sonrası: formu gizle, teşekkür kartını göster */
.notify.is-done .notify__label,
.notify.is-done .notify__row,
.notify.is-done .notify__note,
.notify.is-done .notify__status {
  display: none;
}

.notify__success {
  display: none;
  align-items: center;
  gap: 0.7rem;
  max-width: 30rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--primary-soft);
  color: var(--fg);
  font-weight: 500;
}

.notify.is-done .notify__success {
  display: flex;
}

.notify__success svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--primary);
}

/* ── Hero görseli (line-art HeroArt — currentColor + --primary, temaya uyar) ── */
.hero__art {
  position: relative;
  display: none;
  justify-content: center;
  max-height: 72vh;
}

@media (min-width: 920px) {
  .hero__art {
    display: flex;
  }
}

/* Alçak (ama geniş) ekranlarda dekoratif görseli gizle → içerik tek ekrana sığsın */
@media (min-width: 920px) and (max-height: 740px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero__art {
    display: none;
  }
}

.hero__art svg {
  width: 100%;
  height: auto;
  max-height: 72vh; /* viewBox sayesinde oran korunur (kırpılmaz, ortalanır) */
  color: var(--fg);
}

/* ── Footer ── */
.site-footer {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(1rem, 2.5vh, 1.6rem) 1.5rem clamp(1.25rem, 3vh, 2rem);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer__copy {
  font-size: 0.84rem;
  /* --fg-muted → WCAG AA uyumlu (telif metni okunabilirliği) */
  color: var(--fg-muted);
}

.site-footer__links {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
}

.site-footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--fg-muted);
  transition: color 0.2s var(--ease);
}

.site-footer__links a:hover {
  color: var(--fg);
}

.site-footer__links svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 560px) {
  .site-footer {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
}

/* ── Hareketi azalt tercihine saygı ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
