:root{
  --bg: #0b0f1a;
  --panel: #ffffff;
  --text: #0f172a;
  --muted: #6b7280;
  --accent: #22c55e;
  --ring: rgba(34,197,94,.25);
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

/* ===== Layout ===== */
.layout{
  display:grid;
  grid-template-columns: 1fr 1.2fr;
  min-height: 100vh;
}

/* ===== Left panel ===== */
.left {
  background: #fff;
  padding: clamp(24px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center; /* dikey ortala */
  align-items: center;     /* yatay ortala */
  gap: 24px;
}

.brand .logo {
  width: 300px;
  height: auto;
  display: block;
}

.headline{
  font-size: clamp(28px, 4.6vw, 44px);
  line-height: 1.15;
  margin: 0;
  color: var(--text);
}
.headline strong{ color:#111; font-weight: 800; }

.subhead{
  color: var(--muted);
  margin: -6px 0 10px 0;
  font-size: clamp(14px, 2.2vw, 16px);
}

/* ===== Form ===== */
.subscribe{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 420px;
  width: 100%;
}

.subscribe input{
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  font-size: 16px;
  outline: none;
  transition: box-shadow .2s, border-color .2s;
  background:#fff;
}

.subscribe input:focus{
  border-color: var(--accent);
  box-shadow: 0 0 0 8px var(--ring);
}

.btn{
  appearance: none;
  border: none;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--accent);
  color:#fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform .04s ease, filter .2s ease;
}
.btn:active{ transform: translateY(1px); }
.btn[disabled]{ filter: saturate(.2) contrast(.8); cursor: not-allowed; }

.form-help{
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}

.form-feedback{
  min-height: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 4px;
}
.form-feedback.success{ color:#16a34a; } /* yeşil */
.form-feedback.error{ color:#dc2626; }   /* kırmızı */

/* ===== Social ===== */
.social{
  display:flex;
  gap:14px;
  margin-top: 18px;
}

.social a{
  width: 36px; height: 36px;
  border-radius: 9px;
  display:grid; place-items:center;
  background:#f3f4f6;
  transition: transform .15s ease, background .2s ease;
  text-decoration:none;
}
.social a:hover{ background:#e5e7eb; transform: translateY(-2px); }
.social svg{ width:20px; height:20px; fill: #111; }

/* ===== Right panel ===== */
.right{
  position: relative;
  overflow: hidden;
  background: radial-gradient(60% 60% at 60% 40%, #0b1220 0%, #071022 60%, #050b18 100%);
}

#stars-canvas{
  position:absolute; inset:0;
  width:100%; height:100%;
  display:block;
  background:
    radial-gradient(1200px 700px at 70% 30%, rgba(40,67,110,.30), transparent 60%),
    radial-gradient(800px 500px at 60% 70%, rgba(80,50,80,.25), transparent 60%),
    #020617;
  z-index:1;
}

.right .overlay{
  position:absolute; inset:0;
  background: linear-gradient(120deg, rgba(2,6,23,0.18), rgba(2,6,23,0.08)); /* daha şeffaf */
  pointer-events:none;
  z-index:2;
}

/* ===== Countdown ===== */
.countdown{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px !important;   /* boşluğu küçült */
  z-index:3;
}

.right .unit{
  width: clamp(92px,12vw,120px);
  height: clamp(92px,12vw,120px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  display: flex;
  flex-direction: column;        /* dikey diz */
  align-items: center;
  justify-content: center;
  gap: 2px;                      /* sayı ile yazı arası = 2px */
  color:#fff;
  text-align:center;
  backdrop-filter: blur(4px);
  background: rgba(255,255,255,.06);
  box-shadow: inset 0 0 24px rgba(255,255,255,.05);
}

.right .value{
  font-size: clamp(28px, 3.8vw, 34px);
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1;       /* sıkı */
  margin: 0;
}

.right .label{
  font-size: clamp(10px, 1.6vw, 12px);
  letter-spacing: 2px;
  line-height: 1;       /* sıkı */
  margin: 0;            /* ekstra boşluk kalmasın */
  opacity:.85;
}

/* sr-only */
.sr-only{
  position:absolute!important;
  width:1px; height:1px;
  padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* ===== Responsive ===== */
@media (max-width: 960px){
  .layout{ grid-template-columns: 1fr; }
  .right{ height: 50vh; }
  .left{ padding-bottom: 32px; }
}

/* ===== Mobile polish (≤ 960px) ===== */
@media (max-width: 960px){
  .layout{ grid-template-columns: 1fr; min-height: 100svh; }
  .left{ padding: 28px 20px 20px; gap: 18px; }
  .brand .logo{ width: 220px; }

  .headline{ font-size: clamp(24px, 5.4vw, 32px); text-align:center; }
  .subhead{ text-align:center; }

  .subscribe{ max-width: 520px; width: 100%; }
  .subscribe input{ font-size: 16px; padding: 12px 14px; }
  .btn{ padding: 12px 14px; font-size: 16px; width: 100%; }  /* tek elle dokunması kolay */

  .social{ justify-content:center; gap: 12px; }
  .social a{ width: 44px; height: 44px; border-radius: 10px; } /* 44px dokunma hedefi */
  .social svg{ width: 22px; height: 22px; }
  
  .right{ height: 52svh; min-height: 360px; } /* daha dengeli yükseklik */
  .countdown{
    padding: 0 12px;
    gap: 8px !important;
    flex-wrap: wrap;                     /* iki satıra taşabilir */
  }
  .right .unit{
    width: clamp(78px, 26vw, 96px);
    height: clamp(78px, 26vw, 96px);
    gap: 1px;
  }
  .right .value{ font-size: clamp(22px, 6vw, 28px); }
  .right .label{ font-size: 10px; letter-spacing: 1.6px; }
}

/* ===== Small phones (≤ 420px) ===== */
@media (max-width: 420px){
  .left{ padding: 24px 16px 18px; }
  .brand .logo{ width: 190px; }
  .headline{ font-size: 24px; }
  .subhead{ font-size: 14px; }
  .social{ gap: 10px; }
  .social a{ width: 40px; height: 40px; }

  .right{ height: 48svh; min-height: 320px; }
  .countdown{ gap: 6px !important; }
  .right .unit{
    width: 78px; height: 78px;
    border-width: 1px;
  }
  .right .value{ font-size: 22px; }
  .right .label{ font-size: 9.5px; letter-spacing: 1.4px; }
}

/* Hareket hassasiyeti olanlarda yıldızları sadeleştir */
@media (prefers-reduced-motion: reduce){
  #stars-canvas{ display:none; }
  .right .overlay{ background: rgba(2,6,23,.25); }
}
