/* mainthreadstudios.com — Hobby Tracker sitesi.
   Renkler uygulamanın kendi dilinden: #111318 zemin, #AAC7FF birincil,
   #E8C547 altın ✦, #2A2F3A ray; 16/14/12 köşe yarıçapları, hap butonlar. */

:root {
  --bg: #111318;
  --bg-raised: #1a1d24;
  --bg-card: #1e222b;
  --border: #2a2f3a;
  --text: #e2e2e9;
  --text-dim: #a8abb4;
  --text-faint: #7c8089;
  --primary: #aac7ff;
  --on-primary: #0a2b5e;
  --gold: #e8c547;
  --danger: #ffb4ab;
  --radius-lg: 16px;
  --radius-md: 14px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Dil anahtarı: <html lang="…"> hangi bloğun görüneceğini seçer. */
html[lang="en"] [data-lang="tr"] { display: none !important; }
html[lang="tr"] [data-lang="en"] { display: none !important; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(17, 19, 24, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(42, 47, 58, 0.6);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.01em;
}
.brand:hover { text-decoration: none; }
.brand img, .brand svg { width: 30px; height: 30px; border-radius: 8px; display: block; }

.header-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14.5px;
}
.header-nav a { color: var(--text-dim); }
.header-nav a:hover { color: var(--text); text-decoration: none; }

.lang-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  font-size: 12.5px;
}
.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  padding: 5px 12px;
  cursor: pointer;
  font: inherit;
}
html[lang="en"] .lang-switch button[data-set="en"],
html[lang="tr"] .lang-switch button[data-set="tr"] {
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
}

/* ---------- hero ---------- */

.hero {
  padding: 88px 0 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 520px;
  background: radial-gradient(ellipse at 50% 0%, rgba(170, 199, 255, 0.13), transparent 65%);
  pointer-events: none;
}
.hero .wrap { position: relative; }

.hero-icon { width: 96px; height: 96px; border-radius: 24px; margin-bottom: 28px; }

.hero h1 {
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.12;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.hero h1 .accent { color: var(--primary); }

.hero p.lede {
  font-size: clamp(16px, 2.4vw, 19px);
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto 36px;
}

.store-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  background: var(--bg-raised);
  border-radius: 999px;
  padding: 12px 22px;
  color: var(--text);
  font-size: 14.5px;
}
.store-badge .soon {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  border: 1px solid rgba(232, 197, 71, 0.4);
  border-radius: 999px;
  padding: 2px 8px;
}

/* ---------- phone mock ---------- */

.mock-section { padding: 24px 0 8px; display: flex; justify-content: center; }

.phone {
  width: 300px;
  border: 1px solid var(--border);
  border-radius: 36px;
  background: var(--bg);
  padding: 14px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 0 6px rgba(42, 47, 58, 0.35);
}
.phone-screen {
  border-radius: 24px;
  background: linear-gradient(180deg, #14171d, #111318);
  padding: 20px 16px 26px;
  min-height: 480px;
}
.phone-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 16px;
}
.phone-title .spark { color: var(--gold); font-size: 17px; }

.mock-card {
  background: var(--bg-card);
  border: 1px solid rgba(42, 47, 58, 0.8);
  border-radius: var(--radius-lg);
  padding: 12px;
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.mock-poster {
  width: 56px;
  height: 84px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 22px;
  color: rgba(255, 255, 255, 0.85);
}
.mock-poster.p1 { background: linear-gradient(160deg, #3a4a6b, #232c42); }
.mock-poster.p2 { background: linear-gradient(160deg, #5b3a6b, #2e2340); }
.mock-poster.p3 { background: linear-gradient(160deg, #3a6b58, #21362e); }
.mock-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.mock-cap { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); }
.mock-name { font-weight: 700; font-size: 14.5px; }
.mock-time { color: var(--gold); font-size: 12px; }
.mock-bar { height: 5px; border-radius: 999px; background: var(--border); overflow: hidden; }
.mock-bar span { display: block; height: 100%; border-radius: 999px; background: var(--primary); }
.mock-actions { display: flex; justify-content: flex-end; margin-top: 2px; }
.mock-pill {
  background: var(--primary);
  color: var(--on-primary);
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 5px 14px;
  letter-spacing: 0.04em;
  white-space: nowrap; /* "+ BÖLÜM" bir hap, iki satıra kırılmaz */
  flex-shrink: 0;
}
.mock-pill.ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--border);
  margin-right: 8px;
}

/* ---------- features ---------- */

.features { padding: 72px 0; }
.features h2, .section-title {
  text-align: center;
  font-size: clamp(24px, 4vw, 32px);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.features .section-sub {
  text-align: center;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 44px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.feature {
  background: var(--bg-raised);
  border: 1px solid rgba(42, 47, 58, 0.7);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
}
.feature .glyph {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(170, 199, 255, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  margin-bottom: 14px;
}
.feature h3 { margin: 0 0 8px; font-size: 16.5px; }
.feature p { margin: 0; color: var(--text-dim); font-size: 14.5px; }

/* ---------- prose (legal pages) ---------- */

.prose { padding: 56px 0 80px; }
.prose h1 { font-size: clamp(28px, 5vw, 38px); letter-spacing: -0.01em; margin: 0 0 6px; }
.prose .updated { color: var(--text-faint); font-size: 13.5px; margin-bottom: 36px; }
.prose h2 { font-size: 21px; margin: 40px 0 12px; }
.prose h3 { font-size: 16.5px; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--text-dim); font-size: 15.5px; }
.prose strong { color: var(--text); }
.prose ul { padding-left: 22px; }
.prose .box {
  background: var(--bg-raised);
  border: 1px solid rgba(42, 47, 58, 0.7);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 20px 0;
}

/* ---------- forms (account deletion) ---------- */

.form-card {
  background: var(--bg-raised);
  border: 1px solid rgba(42, 47, 58, 0.8);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  margin: 28px 0;
}
.form-card label { display: block; font-size: 13.5px; color: var(--text-dim); margin: 16px 0 6px; }
.form-card input[type="email"],
.form-card input[type="password"] {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 15px;
  padding: 12px 14px;
  outline: none;
}
.form-card input:focus { border-color: var(--primary); }
.check-row { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0; }
.check-row input { margin-top: 4px; accent-color: var(--danger); }
.check-row span { font-size: 14px; color: var(--text-dim); }

.btn-danger {
  appearance: none;
  border: 0;
  width: 100%;
  background: var(--danger);
  color: #5c1a14;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  border-radius: 999px;
  padding: 13px 24px;
  cursor: pointer;
}
.btn-danger:disabled { opacity: 0.45; cursor: not-allowed; }

.form-status { margin-top: 18px; font-size: 14.5px; display: none; }
.form-status.error { display: block; color: var(--danger); }
.form-status.ok { display: block; color: #9ce0b0; }
.form-status.busy { display: block; color: var(--text-dim); }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid rgba(42, 47, 58, 0.6);
  padding: 40px 0 48px;
  margin-top: 40px;
  font-size: 14px;
  color: var(--text-faint);
}
.site-footer .cols {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--text-dim); }

@media (max-width: 640px) {
  .header-nav .hide-mobile { display: none; }
  .hero { padding: 64px 0 44px; }
}
