/* ═══════════════════════════════════════════
   ECLIPTA — Homepage Sections
   ═══════════════════════════════════════════ */

/* ── SPLASH OVERLAY ── */
.splash {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, #0E3049 0%, #050A12 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  transition: opacity 0.5s ease;
}
.splash.hidden {
  opacity: 0;
  pointer-events: none;
}

.splash-logo { animation: pulse 2s ease-in-out infinite; margin-bottom: 40px; }

.splash-label {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.splash-counter {
  font-size: 72px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  font-family: var(--font-display);
}

.splash-text {
  color: rgba(255,255,255,0.7);
  font-size: 18px;
  margin-bottom: 50px;
  max-width: 400px;
  text-align: center;
  line-height: 1.6;
}

.splash-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.splash-source {
  position: absolute;
  bottom: 24px;
  color: rgba(255,255,255,0.25);
  font-size: 11px;
}

@media (max-width: 480px) {
  .splash-counter { font-size: 48px; }
  .splash-text { font-size: 15px; }
}

/* ── HERO ── */
.hero {
  background: var(--hero-grad);
  padding: 60px 20px 56px;
  position: relative;
  overflow: hidden;
}

.hero-bg-logo {
  position: absolute;
  right: 2%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.06;
}

.hero-content {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 14px;
}

.hero h1 {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  line-height: 1.18;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 500px;
}

.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-live {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
  padding: 8px 14px;
  flex-wrap: wrap;
}

.hero-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #E74C3C;
  animation: blink 1.5s infinite;
  flex-shrink: 0;
}

.hero-live-label {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}

.hero-live-value {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-display);
}

@media (max-width: 768px) {
  .hero { padding: 40px 20px; }
  .hero h1 { font-size: 28px; }
}

/* ── STATS ── */
.stats-wrapper {
  max-width: var(--max-w);
  margin: -30px auto 0;
  padding: 0 16px;
  position: relative;
  z-index: 2;
}

.stats-box {
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition);
}

.stats-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.stats-tab {
  flex: 1;
  padding: 10px 0;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.stats-tab.active {
  font-weight: 700;
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stats-item {
  padding: 20px 8px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stats-item:last-child { border-right: none; }

.stats-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
  font-family: var(--font-display);
  transition: all 0.3s;
}

.stats-desc {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

.stats-source {
  padding: 5px 12px 6px;
  text-align: right;
  font-size: 9px;
  color: var(--text-muted);
  opacity: 0.5;
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-item:nth-child(2) { border-right: none; }
}

/* ── CONTACT MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-overlay.hidden { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
}

.modal-content {
  position: relative;
  background: var(--surface);
  border-radius: 16px;
  padding: 36px 28px;
  max-width: 460px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.modal-title {
  font-size: 22px;
  font-weight: 800;
  font-family: var(--font-display);
  margin-bottom: 4px;
}

.modal-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

.modal-close {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.form-group { margin-bottom: 14px; }

.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  display: block;
  margin-bottom: 5px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border 0.2s;
}
.form-input:focus { border-color: var(--accent); }

textarea.form-input { resize: vertical; }

.consent-box {
  background: var(--surface-alt);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

.consent-label {
  display: flex;
  gap: 10px;
  cursor: pointer;
  align-items: flex-start;
}

.consent-label input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.consent-text {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: none;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.25s;
}
.btn-submit:disabled {
  background: var(--border);
  color: var(--text-muted);
  cursor: not-allowed;
}
.btn-submit:not(:disabled) {
  background: var(--warm);
  color: #fff;
}
.btn-submit:not(:disabled):hover { transform: scale(1.02); }

.form-privacy {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
  opacity: 0.6;
}

/* Success state */
.modal-success {
  text-align: center;
  padding: 20px 0;
}
.modal-success-icon { font-size: 48px; margin-bottom: 16px; }
.modal-success h3 { font-size: 22px; margin-bottom: 10px; }
.modal-success p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ── SCROLL ANIMATED STATS ── */
.stats-scroll-container {
  position: relative;
  height: 175vh; /* Sekmeler için kısa scroll sahnesi; sonraki blok erken görünür */
}

@media (max-width: 768px) {
  .stats-scroll-container {
    height: auto; /* Mobilde scroll yerine tab-only */
  }
  .stats-sticky {
    position: relative;
    top: 0;
  }
}

.stats-sticky {
  position: sticky;
  top: 80px;
  z-index: 2;
  transition: opacity 0.3s;
}

.stats-value {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.stats-value.animating {
  animation: counterRollUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes counterRollUp {
  0% { transform: translateY(20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.stats-desc.animating {
  animation: fadeInDesc 0.5s ease 0.1s both;
}

@keyframes fadeInDesc {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

.stats-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 8px 0 4px;
}

.stats-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.3s;
  cursor: pointer;
}

.stats-dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}

.hero-buttons .btn-accent { position:relative; }
.hero-buttons .btn-accent::after {
  content:attr(data-hover);
  position:absolute;
  left:50%; top:calc(100% + 10px);
  transform:translate(-50%, -4px);
  width:max-content; max-width:260px;
  padding:6px 10px; border-radius:5px;
  background:rgba(7,11,20,0.92); color:rgba(255,255,255,0.86);
  font-size:11px; font-weight:500; opacity:0; pointer-events:none;
  transition:opacity .2s ease, transform .2s ease;
}
.hero-buttons .btn-accent:hover::after,
.hero-buttons .btn-accent:focus-visible::after { opacity:1; transform:translate(-50%, 0); }

/* ── LATEST NEWS PREVIEW ── */
.home-news-section { padding: 0 0 56px; }
.home-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.home-news-card { overflow: hidden; }
.home-news-visual { background: linear-gradient(135deg, #0E3049, #00B4D8); }
.home-news-source { margin-top: 8px; color: var(--text-muted); font-size: 11px; }
.home-news-body .blog-card-link { display: inline-block; margin-top: 8px; }
@media (max-width: 768px) { .home-news-grid { grid-template-columns: 1fr; } }
