:root {
  --bg: #0f172a;          /* slate-900 */
  --card: #111827cc;      /* semi-dark */
  --text: #e5e7eb;        /* gray-200 */
  --muted: #9ca3af;       /* gray-400 */
  --accent: #22d3ee;      /* cyan-400 */
  --accent-2: #a78bfa;    /* violet-400 */
  --radius: 18px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  background: radial-gradient(1200px 700px at 70% 10%, #0b1024, var(--bg));
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  display: grid;
  place-items: center;
}

/* ===== Container: tamamı ortalanmış, mobil öncelikli ===== */
.container {
  width: min(100%, 500px);
  padding: 20px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #111827e6, #0b1220e6);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;      /* yatay merkez */
  justify-content: center;  /* dikey merkez */ 
  margin: 0 auto;
}

/* ===== Header ===== */
header {
  width: 100%;
  display: flex;
  flex-direction: column;   /* logo + dil anahtarı alt alta */
  align-items: center;
  gap: 12px;
  text-align: center;
}

.brand { display: flex; align-items: center; gap: 12px; justify-content: center; }

.logo {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 18px rgba(34, 211, 238, 0.35);
}

h1 {
  font-size: clamp(22px, 3.6vw, 34px);
  margin: 0;
  letter-spacing: 0.5px;
  text-align: center;
}

/* Dil anahtarı */
.lang-switch {
  display: inline-flex; gap: 8px; align-items: center;
  background: #0b1220; padding: 6px; border-radius: 999px;
}

.lang-btn {
  border: 0; cursor: pointer; padding: 8px 14px; border-radius: 999px;
  color: var(--muted); background: transparent; font-weight: 600;
}
.lang-btn.active { color: #0b1220; background: var(--text); }

.lang-btn:focus-visible,
.cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 12px;
}

/* ===== Ana içerik tek sütun ve merkezli ===== */
main {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;   /* tek sütun */
  place-items: center;          /* hem yatay hem dikey ortalar */
  gap: 16px;
  margin-top: 8px;
}

/* Paneller ortalı ve max genişlik kısıtlı */
.panel {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  text-align: center;

  border: 1px solid #1f2937;
  border-radius: var(--radius);
  background: #0b1220;
  padding: 22px;
  min-height: 300px;
}

.panel h2 {
  margin: 0 0 10px;
  font-size: clamp(18px, 2.4vw, 22px);
  color: #cbd5e1;
}

/* Lottie alanı da ortalı */
#lottie {
  width: 100%;
  max-width: 420px;
  height: 340px;
  margin: 0 auto;
}

/* CTA (Giriş Yap) */
.cta {
  display: inline-flex; align-items: center; gap: 10px;
  border: 0; padding: 14px 18px; border-radius: 14px; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #081018; font-weight: 700; font-size: 16px; text-decoration: none;
  box-shadow: 0 10px 24px rgba(167, 139, 250, 0.35);
}
.cta:hover { transform: translateY(-1px); }

.muted { color: var(--muted); }

/* Footer */
footer {
  margin-top: 20px;
  font-size: 12px;
  text-align: center;
  color: var(--muted);
}

/* ===== Küçük ekran ince ayarları ===== */
@media (max-width: 480px) {
  .container { padding: 16px; }
  .panel { border-radius: 12px; padding: 18px; min-height: unset; }
  #lottie { height: 300px; }
}
