/* =================== THEME TOKENS =================== */
:root {
  --bg: #070b14;
  --bg-2: #0a1630;
  --ink: #cfe3ff;
  --muted: #8fa6c9;
  --primary: #3ea0ff;
  --primary-2: #7cc2ff;
  --card: #0c1224;
  --card-2: #0f1a33;
  --glow: 0 0 18px rgba(62, 160, 255, .45), 0 0 48px rgba(62, 160, 255, .15);
  --ring: 0 0 0 3px rgba(62, 160, 255, .15);
}

/* Night kelimesi için parlak ve gölgeli metin efekti */
.night-shadow {
  text-shadow: 
    0 0 5px #9a9494,
    0 0 10px #fff,
    0 0 15px #cfe3ff,
    0 0 20px #afb3b7;
  transition: text-shadow 0.3s ease;
}

/* Light kelimesi için parlak metin efekti */
.light-glow {
  text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #fff, 0 0 40px #ffea00, 0 0 70px #ffea00, 0 0 80px #ffea00, 0 0 100px #ffea00;
  transition: text-shadow 0.3s ease;
}

/* Light temaya geçildiğinde parlaklık efektlerini ayarlama */
body:has(#theme:checked) .night-shadow,
body:has(#theme:checked) .light-glow {
  text-shadow: none;
}

/* Light Theme styles using :has() */
body:has(#theme:checked) {
  --bg: #f5f7fa;
  --bg-2: #e0e7f1;
  --ink: #1a233b;
  --muted: #4f6280;
  --primary: #2256ff;
  --primary-2: #8fb1ff;
  --card: #ffffff;
  --card-2: #f0f4f8;
  --glow: 0 0 0 rgba(0, 0, 0, 0);
  --ring: 0 0 0 3px rgba(34, 86, 255, .15);
}

/* Genel reset ve stil */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

/* Genel reset ve stil */
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color:var(--ink);
  background:linear-gradient(180deg,var(--bg) 0%,#030610 100%);
  overflow-x:hidden;
  transition: background .5s ease;
}
body:has(#theme:checked){
  background:linear-gradient(180deg,var(--bg) 0%,#ffffff 100%);
}

/* ==================================== */

.site{
  position:relative;
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

.content{ position:relative; z-index:10; }

/* Header */
header{
  display:flex; justify-content:space-between; align-items:center;
  padding:18px 36px;
  flex-wrap: wrap;
  gap: 16px;
}
.brand{display:flex; align-items:center; gap:10px; font-weight:800;}
/* Yeni logo görseli için stiller */
.logo-img {
  width:40px; 
  height:40px; 
  border-radius:6px;
  object-fit: cover;
  box-shadow: 0 0 0 2px #081023, 0 0 20px rgba(61,160,255,.4) inset;
  transition: all .4s ease;
}
body:has(#theme:checked) .logo-img {
  box-shadow: 0 0 0 2px #cddaff, 0 0 24px rgba(34,86,255,.25) inset;
}

/* ====== AUTH TABS (sağ üst) ====== */
.auth-card{
  background: linear-gradient(180deg, var(--card) 0%, var(--card-2) 100%);
  border:1px solid rgba(120,160,255,.15);
  padding:8px 12px;
  border-radius:14px;
  display:flex; align-items:center; gap:10px;
  transition: background .4s ease, border-color .4s ease;
}
body:has(#theme:checked) .auth-card{
  background: linear-gradient(180deg, #f1f5f9 0%, #e0e7f1 100%);
  border-color: #d9e3ff;
}
/* Bu kısım artık sekme değildir, butonlardır */
.auth-card .auth-btn {
  padding:6px 12px;
  border-radius:10px;
  cursor:pointer;
  color:var(--muted);
  font-weight:600;
  font-size:14px;
  border:1px solid transparent;
  transition:all .25s ease;
  user-select:none;
}
.auth-card .auth-btn:hover {
  background:linear-gradient(180deg, var(--card-2) 0%, var(--card) 100%);
  box-shadow: var(--glow);
  color: var(--ink);
}
body:has(#theme:checked) .auth-card .auth-btn:hover {
  background: #ebf1ff;
  box-shadow: none;
}


/* Tema değiştirici */
.theme-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
}

.theme-switch .tag {
  font-weight: 600;
}

.theme-switch .switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  background: linear-gradient(180deg,#0f1a33,#0b1327);
  border:1px solid rgba(120,160,255,.25);
  box-shadow: var(--glow);
  border-radius: 999px;
  cursor: pointer;
  transition: all .25s ease;
}

.theme-switch .switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  background-color: #cfe3ff;
  border-radius: 50%;
  transition: transform 0.25s ease, background-color .25s ease;
}
body:has(#theme:checked) .switch{
  background:linear-gradient(180deg,#dfe9ff,#ffffff);
  border-color:#c9d7ff;
  box-shadow:none;
}
body:has(#theme:checked) .switch::after {
  transform: translateX(16px);
  background: #0e1930;
}


/* Hero */
.hero{
  min-height:100vh; display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; padding:40px 20px;
}
.hero h1{
  font-size:clamp(28px,4vw,48px); line-height:1.2;
  text-shadow:0 0 40px rgba(0,0,0,.7);
  transition: text-shadow .4s ease;
}
body:has(#theme:checked) .hero h1{
  text-shadow: none;
}
.hero p{
  max-width:720px; margin:18px auto; color:var(--muted);
  font-size:clamp(14px,1.4vw,18px);
}
.cta{
  margin-top:22px; padding:16px 28px; font-size:16px; font-weight:700;
  border:0; border-radius:12px; cursor:pointer;
  background:linear-gradient(180deg,var(--primary) 0%,#1657a8 100%);
  color:#031222; box-shadow:0 6px 28px rgba(62,160,255,.45),0 0 0 1px var(--primary) inset;
  transition:transform .06s ease,filter .2s ease, background .4s ease, color .4s ease;
}
.cta:hover{filter:brightness(1.07);}
.cta:active{transform:translateY(1px) scale(.98);}
body:has(#theme:checked) .cta{
  background: linear-gradient(180deg,#2256ff,#1d46c1);
  color: #ffffff;
}

/* Fiyatlandırma bölümü stilleri */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  padding: 80px 36px;
  text-align: center;
}

.pricing-card {
  background:linear-gradient(180deg,var(--card) 0%,var(--card-2) 100%);
  border:1px solid rgba(120,160,255,.2);
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow:0 0 0 1px rgba(10,20,40,.2) inset,0 10px 30px rgba(0,0,0,.35);
  transition: background .4s ease, border-color .4s ease, box-shadow .4s ease;
  display: flex;
  flex-direction: column;
}
body:has(#theme:checked) .pricing-card {
  background: linear-gradient(180deg, #ffffff 0%, #f0f4f8 100%);
  color: #333;
  border-color: #d9e3ff;
  box-shadow: 0 1px 0 #e6edff inset, 0 10px 30px rgba(0,0,0,.05);
}

.pricing-card h3 {
  font-size: 24px;
  margin-bottom: 8px;
}
.pricing-card .price {
  font-size: 48px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 24px;
}
.pricing-card .price small {
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
}
.pricing-card ul {
  list-style-type: none;
  text-align: left;
  margin-bottom: 24px;
  flex-grow: 1;
}
.pricing-card ul li {
  color: var(--muted);
  margin-bottom: 8px;
  font-size: 14px;
}
.pricing-card ul li:before {
  content: '✓';
  color: var(--primary);
  margin-right: 8px;
}
.pricing-card .select-btn {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--primary);
  background-color: transparent;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
}
.pricing-card .select-btn:hover {
  background-color: var(--primary);
  color: var(--bg);
}

/* Özellikler */
.features{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:20px; padding:80px 36px;
}
.card{
  background:linear-gradient(180deg,var(--card) 0%,var(--card-2) 100%);
  border:1px solid rgba(120,160,255,.2); border-radius:16px; padding:20px;
  box-shadow:0 0 0 1px rgba(10,20,40,.2) inset,0 10px 30px rgba(0,0,0,.35);
  transition: background .4s ease, border-color .4s ease, box-shadow .4s ease;
}
body:has(#theme:checked) .card{
  background: linear-gradient(180deg, #ffffff 0%, #f0f4f8 100%);
  color: #333;
  border-color: #d9e3ff;
  box-shadow: 0 1px 0 #e6edff inset, 0 10px 30px rgba(0,0,0,.05);
}
.card h3{margin-bottom:10px; font-size:20px;}
.card p{color:var(--muted); font-size:14px; line-height:1.5;}

/* İletişim */
.contact{ padding:80px 36px; text-align:center; }
.contact h2{font-size:28px; margin-bottom:14px;}
.contact p{color:var(--muted); font-size:16px;}
.contact a{color:var(--primary-2); text-decoration:none; transition: color .4s ease;}
.contact a:hover{text-decoration:underline;}
body:has(#theme:checked) .contact a{
  color: var(--primary);
}

/* Footer */
footer{ text-align:center; padding:18px; color:#859dc5; font-size:13px; }

/* ====== Scroll Reveal ====== */
.reveal{ opacity:0; transform:translateY(40px); transition:opacity .8s ease, transform .8s ease; }
.reveal.show{ opacity:1; transform:translateY(0); }

/* ===================== SKY LAYERS (ARKA PLAN) ===================== */
.sky{ position:fixed; inset:0; z-index:0; pointer-events:none; }
.stars.layer{
  position:absolute; inset:-20% -20%;
  background-repeat:repeat;
  background-size:800px 800px;
  opacity:.35;
  animation: pan 110s linear infinite;
  filter: drop-shadow(0 0 2px rgba(158,201,255,.35));
  transition: opacity .4s ease, filter .4s ease;
}
.stars.layer.l1{
  background-image:
    radial-gradient(1px 1px at 12% 22%, #cfe3ff 60%, transparent 61%),
    radial-gradient(1px 1px at 42% 72%, #cfe3ff 60%, transparent 61%),
    radial-gradient(1px 1px at 82% 32%, #cfe3ff 60%, transparent 61%),
    radial-gradient(1px 1px at 64% 12%, #cfe3ff 60%, transparent 61%),
    radial-gradient(1px 1px at 20% 84%, #cfe3ff 60%, transparent 61%);
  animation-duration: 160s;
}
.stars.layer.l2{
  background-image:
    radial-gradient(1px 1px at 30% 40%, #9ec9ff 60%, transparent 61%),
    radial-gradient(1px 1px at 75% 55%, #9ec9ff 60%, transparent 61%),
    radial-gradient(1px 1px at 55% 20%, #9ec9ff 60%, transparent 61%),
    radial-gradient(1px 1px at 15% 70%, #9ec9ff 60%, transparent 61%);
  animation-duration: 120s; opacity:.28;
}
.stars.layer.l3{
  background-image:
    radial-gradient(1px 1px at 10% 10%, #7fb6ff 60%, transparent 61%),
    radial-gradient(1px 1px at 90% 85%, #7fb6ff 60%, transparent 61%),
    radial-gradient(1px 1px at 40% 75%, #7fb6ff 60%, transparent 61%),
    radial-gradient(1px 1px at 70% 25%, #7fb6ff 60%, transparent 61%);
  animation-duration: 90s; opacity:.22;
}
body:has(#theme:checked) .stars.layer{
  opacity: 0.1;
}

/* nebula parıltısı */
.nebula{
  position:absolute; inset:-10% -10%;
  background:
    radial-gradient(800px 400px at 80% -10%, rgba(33,86,173,.65) 0%, transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(20,74,150,.55) 0%, transparent 60%),
    radial-gradient(600px 300px at 10% 20%, rgba(100,160,255,.18) 0%, transparent 60%);
  filter: blur(1px);
  animation: drift-slow 40s ease-in-out infinite alternate;
  opacity:.55;
  transition: opacity .4s ease;
}
body:has(#theme:checked) .nebula{
  opacity: 0.15;
}

/* ufuk parıltısı */
.horizon-glow{
  position:absolute; left:0; right:0; bottom:-10vh; height:40vh;
  background: radial-gradient(60% 60% at 50% 100%, rgba(55,115,210,.35), rgba(12,25,50,0) 70%);
  mix-blend-mode: screen;
  opacity:.5;
  transition: opacity .4s ease;
}
body:has(#theme:checked) .horizon-glow{
  opacity: 0.2;
}


/* kayan yıldızlar */
.meteors{ position:absolute; inset:0; overflow:hidden; }
.meteor{
  position:absolute; width:2px; height:2px; background:#e9f3ff; border-radius:2px;
  left:var(--x); top:var(--y);
  box-shadow: 0 0 10px #e9f3ff, 0 0 20px rgba(158,201,255,.85);
  animation: shoot 12s ease-in infinite; animation-delay: var(--d);
  transition: background-color .4s ease, box-shadow .4s ease;
}
body:has(#theme:checked) .meteor{
  background: #2b3950;
  box-shadow: 0 0 4px #2b3950, 0 0 8px rgba(43,57,80,.8);
}

/* Büyük Ayı SVG arka planı */
.constellations {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  opacity: .15;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 600' preserveAspectRatio='xMidYMid%20meet'><defs><g id='s'><polygon points='0,0 1.2,-3.6 3.6,-3.6 2.4,-6 3.6,-8.4 0,-7.2 -3.6,-8.4 -2.4,-6 -3.6,-3.6 -1.2,-3.6' transform='scale(1.2) translate(0, 9.6)' fill='rgba(223,239,255,0.98)'/></g></defs><g fill='none' stroke='rgba(200,220,255,0.55)' stroke-width='2'><path d='M90%20390%20L240%20300%20L360%20270%20L470%20285'/><path d='M470%20285%20L820%20200%20L820%20360'/><path d='M470%20285%20L600%20430'/><path d='M600%20430%20L820%20360'/></g><use href='%23s' x='90' y='386'/><use href='%23s' x='240' y='296'/><use href='%23s' x='360' y='266'/><use href='%23s' x='470' y='281'/><use href='%23s' x='600' y='426'/><use href='%23s' x='820' y='356'/><use href='%23s' x='820' y='196'/><text x='60' y='420' font-size='18' fill='rgba(223,239,255,0.85)'>Alkaid</text><text x='225' y='285' font-size='18' fill='rgba(223,239,255,0.85)'>Mizar</text><text x='340' y='255' font-size='18' fill='rgba(223,239,255,0.85)'>Alioth</text><text x='452' y='270' font-size='18' fill='rgba(223,239,255,0.85)'>Megrez</text><text x='580' y='465' font-size='18' fill='rgba(223,239,255,0.85)'>Phecda</text><text x='840' y='375' font-size='18' fill='rgba(223,239,255,0.85)'>Merak</text><text x='840' y='205' font-size='18' fill='rgba(223,239,255,0.85)'>Dubhe</text></svg>");  
}
body:has(#theme:checked) .constellations { opacity: .10; }

/* Animations */
@keyframes pan{ to{ background-position: 2000px 2000px; } }
@keyframes drift-slow{ to{ transform: translateY(-18px) translateX(10px); } }
@keyframes float{ 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-8px) } }
@keyframes orbit{ from{ transform: rotate(0deg) } to{ transform: rotate(360deg) } }
@keyframes shoot{
  0%  { opacity:0; transform: translate3d(0,0,0) rotate(-18deg) }
  8%  { opacity:1 }
  60% { opacity:.9; transform: translate3d(320px,120px,0) rotate(-18deg) }
  100%{ opacity:0; transform: translate3d(640px,240px,0) rotate(-18deg) }
}

/* Hareketi azalt tercihine saygı */
@media (prefers-reduced-motion: reduce){
  .stars.layer,.nebula,.planet,.meteor{animation:none}
}

/* Yeni modal stilleri */
.modal {
  display: flex; /* Varsayılan olarak flex, opacity ile gizleyeceğiz */
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4); /* Daha az opak arka plan */
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden; /* Tamamen gizlemek için */
  transition: opacity 0.4s ease, visibility 0.4s ease; /* Yumuşak geçiş */
  backdrop-filter: blur(5px); /* Arkaplanı bulanıklaştır */
}

.modal.open {
  opacity: 1;
  visibility: visible;
  /* transform: translateY(0); kaldırıldı, çünkü içeriğin kendisi hareket edecek */
}

.modal-content {
  background: linear-gradient(180deg, var(--card) 0%, var(--card-2) 100%);
  border: 1px solid rgba(120, 160, 255, 0.25); /* Daha belirgin kenarlık */
  padding: 30px;
  border-radius: 16px; /* Daha yuvarlak köşeler */
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), var(--glow); /* Derin ve parlak gölge */
  min-width: 350px; /* Biraz daha geniş */
  max-width: 90%;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: scale(0.95) translateY(-20px); /* Hafif küçültme ve yukarı hareket */
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease; /* Açılış animasyonu */
}

.modal.open .modal-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal-close {
  color: var(--muted);
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 32px; /* Daha büyük çarpı işareti */
  font-weight: 300; /* Daha ince bir çarpı için */
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.modal-close:hover,
.modal-close:focus {
  color: var(--primary);
  transform: rotate(90deg); /* Kapatırken hafif dönme efekti */
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

.form-group input {
  padding: 14px; /* Daha fazla padding */
  border-radius: 10px; /* Daha yuvarlak inputlar */
  border: 1px solid rgba(120, 160, 255, 0.2);
  background: var(--bg-2);
  color: var(--ink);
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--ring), var(--glow); /* Odaklandığında parlak gölge */
  background: var(--card); /* Odaklandığında arka planı hafifçe değiştir */
}

.modal-btn {
  padding: 15px; /* Daha büyük butonlar */
  border-radius: 10px;
  border: 0;
  background: linear-gradient(180deg, var(--primary) 0%, #1657a8 100%);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 15px rgba(62, 160, 255, 0.3); /* Buton için hafif gölge */
}

.modal-btn:hover {
  background: linear-gradient(180deg, var(--primary-2) 0%, #1a68ce 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(62, 160, 255, 0.4);
}
.modal-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(62, 160, 255, 0.2);
}

/* Auth karttaki butonların hover efekti */
.auth-card .auth-btn:hover {
  background:linear-gradient(180deg, var(--card-2) 0%, var(--card) 100%);
  box-shadow: var(--glow);
  color: var(--ink);
  border-color: rgba(120,160,255,.25); /* Hover'da kenarlık ekle */
}

/* Light tema için modal stilleri */
body:has(#theme:checked) .modal-content {
  background: linear-gradient(180deg, #f1f5f9 0%, #e0e7f1 100%);
  border-color: #c9d7ff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15); /* Light tema için daha az belirgin gölge */
}

body:has(#theme:checked) .form-group input {
  background: #ffffff;
  border-color: #d9e3ff;
  color: var(--ink);
}
body:has(#theme:checked) .form-group input:focus {
  background: #fdfdff; /* Light temada odaklandığında daha açık arka plan */
  box-shadow: var(--ring), 0 0 10px rgba(34,86,255,.1);
}

body:has(#theme:checked) .modal-btn {
  background: linear-gradient(180deg, var(--primary) 0%, #1a4cd2 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(34, 86, 255, 0.25);
}
body:has(#theme:checked) .modal-btn:hover {
  background: linear-gradient(180deg, var(--primary-2) 0%, #205eff 100%);
  box-shadow: 0 6px 20px rgba(34, 86, 255, 0.35);
}
body:has(#theme:checked) .modal-btn:active {
  box-shadow: 0 2px 8px rgba(34, 86, 255, 0.15);
}

body:has(#theme:checked) .auth-card .auth-btn:hover {
  background: #ebf1ff;
  box-shadow: none;
  border-color: #c9d7ff;
}

/* Light tema için modal stilleri */
body:has(#theme:checked) .modal-content {
  background: linear-gradient(180deg, #f1f5f9 0%, #e0e7f1 100%);
  border-color: #d9e3ff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

body:has(#theme:checked) .form-group input {
  background: #f8fbfd;
  border-color: #c9d7ff;
  color: var(--ink);
}

body:has(#theme:checked) .modal-btn {
  background: var(--primary);
  color: #fff;
}
