:root {
  --bg: #ffffff;
  --bg-elevated: #ffffff;
  --text-main: #111827;
  --text-muted: #4b5563;
  --border-subtle: rgba(15, 23, 42, 0.06);
  --accent: #111827;
  --accent-strong: #000000;
  --navbar-blur-bg: rgba(255, 255, 255, 0.9);
  --hero-overlay: rgba(0, 0, 0, 0);
}

body.dark {
  --bg: #020617;
  --bg-elevated: #020617;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.35);
  --accent: #e5e7eb;
  --accent-strong: #f9fafb;
  --navbar-blur-bg: rgba(15, 23, 42, 0.92);
  --hero-overlay: rgba(0, 0, 0, 0.55);
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
}

/* ========== NAVBAR ========== */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  background: var(--navbar-blur-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

/* Ana navbar alanı */
.navbar {
  max-width: 1180px;              /* Aave gibi biraz daha geniş */
  margin: 0 auto;
  padding: 18px 28px;             /* dikeyde biraz daha ferah */
  display: flex;
  align-items: center;
  justify-content: space-between; /* sol grup + sağ grup */
}

/* Sol blok: logo + menüler */
.left {
  display: flex;
  align-items: center;
  gap: 44px;                      /* logo ile menü arası – Aave hissi */
}

/* Logo */
.logo img {
  height: 44px;                   /* logo biraz daha büyük */
  width: auto;
  display: block;
}
.site-logo {
  content: url("img/logo-black.svg");
}

/* Dark mode */
body.dark .site-logo {
  content: url("img/logo-white.svg");
}

/* Menü listesi */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;                      /* menüler arası boşluk */
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Menü linkleri */
.nav-link {
  font-size: 14px;                /* Aave’deki gibi ince */
  font-weight: 500;
  text-decoration: none;
  color: var(--text-muted);       /* #6b7280 civarı */
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.01em;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.nav-link:hover {
  color: var(--text-main);
}

/* Docs ikon boyutu */
.docs-link svg {
  width: 15px;
  height: 15px;
  opacity: 0.9;
}

/* Sağ blok: dil + tema + sign up */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Hamburger button (sadece mobile'da göstereceğiz) */
.menu-toggle {
  display: none;                 /* desktop'ta gizli */
  border: none;
  background: transparent;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  margin-left: 8px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #111827;
  margin: 3px 0;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

body.dark .menu-toggle span {
  background: #e5e7eb;
}

/* Açıkken X şekline dönüşsün */
body.nav-open .menu-toggle span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
body.nav-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}
body.nav-open .menu-toggle span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* Dil butonu – Aave üstündeki language chip gibi */
.lang-btn {
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  border-radius: 999px;
  padding: 6px 14px 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.lang-btn:hover {
  background: rgba(148, 163, 184, 0.10);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
  border-color: rgba(148, 163, 184, 0.7);
}

/* Tema butonu – küçük yuvarlak icon */
.theme-toggle {
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  border-radius: 999px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease,
              transform 0.1s ease;
}

.theme-toggle:hover {
  background: rgba(148, 163, 184, 0.10);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
  border-color: rgba(148, 163, 184, 0.7);
  transform: translateY(-1px);
}

body.dark .theme-icon {
  color: #fff !important;
}

/* Sign up – Aave for Web gibi koyu pill */
.primary-btn {
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

body.dark .primary-btn {
  color: #000 !important;
}

.primary-btn:hover {
  background: var(--accent-strong);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.20);
  transform: translateY(-1px);
}

/* Hero içeriği nav'ın altında kalsın diye biraz boşluk */
.hero {
  padding-top: 96px;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Karanlık katman */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}

/* Ortadaki yazılar */
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 24px 100px;
  text-align: center;
  color: #111827; /* light mode için siyah */
}

body.dark .hero-content {
  color: #ffffff;
}

.hero-content h1 {
  font-size: 52px;      /* biraz büyüdü */
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.hero-content p {
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.96;
  margin-bottom: 30px;
}

/* CTA butonu */
.cta-btn {
  padding: 13px 30px;
  background: #111827;
  color: #ffffff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.cta-btn:hover {
  background: #000000;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.4);
  transform: translateY(-1px);
}

/* =======================
   Waitlist modal
   ======================= */

.waitlist-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(10px);
  display: none;              /* JS ile açacağız */
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.waitlist-backdrop.is-open {
  display: flex;
}

.waitlist-modal {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 20px;
  padding: 24px 24px 20px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.25);
  position: relative;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

body.dark .waitlist-modal {
  background: #020617;
  border-color: rgba(51, 65, 85, 0.9);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7);
}

.waitlist-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  color: #6b7280;
}

body.dark .waitlist-close {
  color: #9ca3af;
}

.waitlist-header h2 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 600;
  color: #0f172a;
}

.waitlist-header p {
  margin: 0 0 16px;
  font-size: 14px;
  color: #6b7280;
}

body.dark .waitlist-header h2 {
  color: #e5e7eb;
}

body.dark .waitlist-header p {
  color: #9ca3af;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.waitlist-field label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 500;
  color: #4b5563;
}

body.dark .waitlist-field label {
  color: #e5e7eb;
}

/* ==== WAITLIST INPUT FIX ==== */

.waitlist-field input {
  width: 100%;
  box-sizing: border-box;       /* taşmayı kesin çözüyor */
  padding: 12px 16px;           /* sağ/sol boşluk büyüdü */
  border-radius: 10px;          /* istersen 999px yapıp tam pill de bırakabilirsin */
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  font-size: 14px;
  line-height: 1.4;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.waitlist-field input:focus {
  border-color: #4f46e5;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.18);
}

body.dark .waitlist-field input {
  background: #020617;
  border-color: #334155;
  color: #e5e7eb;
}

body.dark .waitlist-field input:focus {
  border-color: #6366f1;
  background: #020617;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.32);
}

.waitlist-submit {
  margin-top: 4px;
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: #111827;
  color: #ffffff;
  transition: background 0.15s ease, transform 0.1s ease,
    box-shadow 0.15s ease;
}

.waitlist-submit:hover {
  background: #000000;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.35);
  transform: translateY(-1px);
}

.waitlist-submit:disabled {
  opacity: 0.6;
  cursor: default;
  box-shadow: none;
  transform: none;
}

body.dark .waitlist-submit {
  background: #e5e7eb;
  color: #020617;
}

body.dark .waitlist-submit:hover:not(:disabled) {
  background: #ffffff;
}

/* status mesajı */
.waitlist-status {
  min-height: 18px;
  font-size: 13px;
  margin-top: 2px;
}

.waitlist-status.error {
  color: #ef4444;
}

.waitlist-status.success {
  color: #16a34a;
}

/* ====== MOBILE NAVBAR ====== */
@media (max-width: 768px) {
  .navbar {
    max-width: 100%;
    padding: 10px 16px;
    position: relative;
  }

  /* Logo + menü bloğu arasındaki boşluk biraz azalsın */
  .left {
    gap: 16px;
  }

  /* Normalde görünen menüleri mobile'da gizliyoruz */
  .nav-links,
  .nav-actions {
    display: none;
  }

  /* Hamburger sadece mobile'da görünsün */
  .menu-toggle {
    display: inline-flex;
    flex-direction: column;   /* ÇİZGİLER ALT ALTA */
    justify-content: center;
    align-items: center;
  }

  /* Menü açıldığında (body.nav-open) tekrar göster */
  body.nav-open .nav-links,
  body.nav-open .nav-actions {
    display: flex;
  }

  /* nav-links'i aşağı sarkan panel yapalım */
  .nav-links {
    position: absolute;
    top: 56px;              /* header'ın hemen altı */
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px 16px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  body.dark .nav-links {
    background: rgba(15, 23, 42, 0.97);
    border-bottom-color: rgba(15, 23, 42, 0.9);
  }

  .nav-links .nav-link {
    padding: 6px 0;
  }

  /* Aksiyonlar (dil, tema, signup) mobilde panelin alt köşesinde */
  .nav-actions {
    position: absolute;
    top: auto;
    bottom: 12px;
    right: 16px;
    gap: 8px;
  }
}
