/* ═══════════════════════════════════════════════════════
   Chess CV — "Çok Yakında" sayfası
   Palet: nötr siyah + altın (uygulama tasarım sistemi v2)
   ═══════════════════════════════════════════════════════ */

:root {
  --bg: #0a0a0a;
  --card: #121212;
  --card-2: #161616;
  --border: #242424;
  --gold: #e3b04b;
  --gold-2: #f0c56e;
  --gold-dark: #1a1200;
  --text: #f2f2f2;
  --muted: #8f8f8f;
  --green: #4ade80;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-heading: "Space Grotesk", var(--font-body);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: rgba(227, 176, 75, 0.35);
}

img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
svg {
  display: block;
}

.container {
  width: min(100% - 2.5rem, 1060px);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.gold {
  color: var(--gold);
}

/* ─────────── Arka plan sahnesi ─────────── */

.backdrop {
  position: absolute;
  inset: 0 0 auto 0;
  height: 760px;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.backdrop-img {
  position: absolute;
  top: -40px;
  right: max(-160px, calc(50% - 900px));
  height: 720px;
  width: auto;
  opacity: 0.9;
}

/* Altın parıltı */
.backdrop-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: radial-gradient(
    circle at 72% 34%,
    rgba(227, 176, 75, 0.16),
    transparent 46%
  );
}

/* Taşın arkasındaki halka */
.backdrop-arc {
  position: absolute;
  top: 60px;
  right: max(40px, calc(50% - 620px));
  width: 460px;
  height: 460px;
  border: 1px solid rgba(227, 176, 75, 0.22);
  border-radius: 50%;
  mask-image: linear-gradient(to bottom, black 55%, transparent 85%);
}

/* Alt geçiş: sayfa zeminine kaynaşma */
.backdrop-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      var(--bg) 18%,
      rgba(10, 10, 10, 0.75) 42%,
      rgba(10, 10, 10, 0.2) 62%,
      rgba(10, 10, 10, 0.45)
    ),
    linear-gradient(
      to bottom,
      rgba(10, 10, 10, 0.35),
      transparent 30%,
      transparent 62%,
      var(--bg) 96%
    );
}

/* ─────────── Header ─────────── */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-crown {
  width: 30px;
  height: 30px;
  color: var(--gold);
}

.brand-text {
  line-height: 1.15;
}
.brand-text strong {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  display: block;
}
.brand-text em {
  font-style: normal;
  color: var(--gold);
}
.brand-text small {
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--muted);
}

.socials {
  display: flex;
  gap: 0.5rem;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(18, 18, 18, 0.65);
  color: var(--muted);
  transition:
    color 0.18s,
    border-color 0.18s,
    transform 0.18s;
}
.icon-btn svg {
  width: 15px;
  height: 15px;
}
.icon-btn:hover {
  color: var(--gold);
  border-color: rgba(227, 176, 75, 0.45);
  transform: translateY(-1px);
}
.icon-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ─────────── Hero ─────────── */

.hero {
  position: relative;
  padding: 3.2rem 0 2.6rem;
  max-width: 620px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.95rem;
  border: 1px solid rgba(227, 176, 75, 0.45);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  background: rgba(227, 176, 75, 0.07);
}
.badge svg {
  width: 14px;
  height: 14px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 5.4vw, 3.15rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin-top: 1.3rem;
}

.hero-lead {
  margin-top: 1.05rem;
  max-width: 430px;
  color: var(--muted);
  font-size: 0.95rem;
}
.hero-lead strong {
  font-weight: 600;
}

.ornament {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.7rem;
  color: var(--gold);
}
.ornament svg {
  width: 16px;
  height: 16px;
  opacity: 0.9;
}
.ornament .line {
  height: 1px;
  width: 130px;
  background: linear-gradient(to right, transparent, rgba(227, 176, 75, 0.5));
}
.ornament .line:last-child {
  background: linear-gradient(to left, transparent, rgba(227, 176, 75, 0.5));
}
.ornament.small {
  justify-content: center;
  margin-top: 0.55rem;
}

/* Yüzen dekorlar (görseldeki mini ELO kartı + rozet) */
.float-card {
  position: absolute;
  top: 118px;
  right: -330px;
  display: grid;
  gap: 2px;
  padding: 0.7rem 0.9rem 0.55rem;
  background: rgba(14, 14, 14, 0.82);
  border: 1px solid var(--border);
  border-radius: 12px;
  backdrop-filter: blur(4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
.float-label {
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-weight: 600;
}
.float-value {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
}
.spark {
  width: 74px;
  height: 26px;
  color: var(--green);
}

.float-badge {
  position: absolute;
  top: 96px;
  right: -560px;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(14, 14, 14, 0.5);
  color: rgba(143, 143, 143, 0.6);
}
.float-badge svg {
  width: 26px;
  height: 26px;
}

/* ─────────── Kart temel ─────────── */

.card {
  background: rgba(18, 18, 18, 0.88);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(3px);
}

/* ─────────── E-posta kayıt ─────────── */

.signup {
  max-width: 640px;
  padding: 1.5rem 1.6rem 1.2rem;
}

.signup-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.signup-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--card-2);
  border: 1px solid var(--border);
  color: var(--gold);
  flex-shrink: 0;
}
.signup-icon svg {
  width: 19px;
  height: 19px;
}

.signup-head h2 {
  font-size: 1.02rem;
  font-weight: 700;
}
.signup-head p {
  color: var(--muted);
  font-size: 0.83rem;
}

#notify-form {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.1rem;
  flex-wrap: wrap;
}

#notify-form input[type="email"] {
  flex: 1;
  min-width: 210px;
  height: 46px;
  padding: 0 1rem;
  background: #0d0d0d;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
}
#notify-form input[type="email"]::placeholder {
  color: #5c5c5c;
}
#notify-form input[type="email"]:focus {
  outline: none;
  border-color: rgba(227, 176, 75, 0.6);
  box-shadow: 0 0 0 3px rgba(227, 176, 75, 0.15);
}

/* Honeypot gizli */
#website {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

#notify-form button {
  height: 46px;
  padding: 0 1.35rem;
  border: 0;
  border-radius: 10px;
  background: var(--gold);
  color: var(--gold-dark);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.18s,
    transform 0.18s;
}
#notify-form button:hover {
  background: var(--gold-2);
  transform: translateY(-1px);
}
#notify-form button:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 2px;
}
#notify-form button:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.form-msg {
  margin-top: 0.55rem;
  font-size: 0.82rem;
  min-height: 1.2em;
}
.form-msg.ok {
  color: var(--green);
}
.form-msg.err {
  color: #f87171;
}

.signup .tiny {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.8rem;
  color: #6d6d6d;
  font-size: 0.72rem;
}
.signup .tiny svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* ─────────── Geri sayım ─────────── */

.countdown {
  margin-top: 1.6rem;
  padding: 1.6rem 1.4rem 1.7rem;
  text-align: center;
}
.countdown h2 {
  font-size: 1.05rem;
  font-weight: 700;
}

.count-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 1.2rem;
}

.count-cell {
  display: grid;
  gap: 0.15rem;
  padding: 0.3rem 0;
  border-left: 1px solid var(--border);
}
.count-cell:first-child {
  border-left: 0;
}

.count-cell .num {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 700;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.count-cell .lbl {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--muted);
}

/* ─────────── Özellikler ─────────── */

.features {
  margin-top: 2.6rem;
  text-align: center;
}
.features h2 {
  font-size: 1.1rem;
  font-weight: 700;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.feature {
  padding: 1.25rem 0.85rem 1.15rem;
  text-align: center;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.feature:hover {
  border-color: rgba(227, 176, 75, 0.4);
  transform: translateY(-2px);
}

.feat-icon {
  width: 30px;
  height: 30px;
  margin: 0 auto 0.7rem;
  color: var(--gold);
}

.feature h3 {
  font-size: 0.82rem;
  font-weight: 700;
}
.feature p {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

/* ─────────── Alıntı ─────────── */

.quote {
  position: relative;
  overflow: hidden;
  margin-top: 1.8rem;
  padding: 1.7rem 1.9rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.quote-bg {
  position: absolute;
  inset: 0 0 0 auto;
  width: 55%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: 0.28;
  mask-image: linear-gradient(to left, black, transparent 85%);
  pointer-events: none;
}

.qmark {
  font-family: var(--font-heading);
  font-size: 3.4rem;
  line-height: 0.8;
  color: var(--gold);
  flex-shrink: 0;
}

.quote blockquote {
  position: relative;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.75;
}

/* ─────────── Footer ─────────── */

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  background: #0c0c0c;
  padding: 2.4rem 0 1.6rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 2rem;
}

.footer-brand p {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.footer-col h3 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 0.85rem;
}
.footer-col a {
  display: block;
  padding: 0.28rem 0;
  color: #b8b8b8;
  font-size: 0.83rem;
  transition: color 0.15s;
}
.footer-col a:hover {
  color: var(--gold);
}
.footer-col .socials a {
  display: grid;
  padding: 0;
}

.copyright {
  margin-top: 2.2rem;
  text-align: center;
  color: #5f5f5f;
  font-size: 0.74rem;
}

/* ─────────── Giriş animasyonu ─────────── */

@media (prefers-reduced-motion: no-preference) {
  .hero > *,
  .signup,
  .countdown,
  .features,
  .quote {
    animation: fade-up 0.7s ease-out both;
  }
  .hero .badge {
    animation-delay: 0.05s;
  }
  .hero-title {
    animation-delay: 0.12s;
  }
  .hero-lead {
    animation-delay: 0.2s;
  }
  .hero .ornament {
    animation-delay: 0.28s;
  }
  .signup {
    animation-delay: 0.32s;
  }
  .countdown {
    animation-delay: 0.4s;
  }
  .features {
    animation-delay: 0.48s;
  }
  .quote {
    animation-delay: 0.56s;
  }

  @keyframes fade-up {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* ─────────── Responsive ─────────── */

@media (max-width: 1100px) {
  .float-badge {
    display: none;
  }
  .float-card {
    right: -260px;
  }
}

@media (max-width: 920px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .float-card {
    display: none;
  }
  .backdrop-img {
    opacity: 0.45;
    right: -220px;
  }
  .backdrop-arc {
    opacity: 0.5;
  }
}

@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    gap: 0.9rem;
  }
  .hero {
    padding-top: 1.6rem;
    text-align: center;
    margin-inline: auto;
  }
  .hero .ornament {
    justify-content: center;
  }
  .hero-lead {
    margin-inline: auto;
  }
  .backdrop-img {
    height: 520px;
    right: -260px;
    opacity: 0.3;
  }

  .signup {
    margin-inline: auto;
  }
  #notify-form button {
    flex: 1;
  }

  .count-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 0;
  }
  .count-cell:nth-child(3) {
    border-left: 0;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quote {
    flex-direction: column;
    gap: 0.4rem;
    padding: 1.4rem;
  }
  .quote-bg {
    width: 100%;
    opacity: 0.14;
    mask-image: linear-gradient(to top, black, transparent);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 380px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}
