/* ==========================================================================
   Gymder - gymder.app
   Momentum tasarım sistemi, web'e taşınmış hali.

   Kaynak: src/theme/colors.ts, typography.ts, spacing.ts. Değerler oradan
   birebir alındı; uygulamayla site aynı görünsün. Paletin kuralı da aynı:
     - Volt TEK enerji vurgusu. Ana CTA ve eşleşme anı. AZ kullan.
     - Coral yalnızca insan bağlantısı (davet / eşleşme). Asla hata için.
     - Geri kalan her şey Ink / Slate / Mist ile sessiz kalır.

   Fontlar self-host: Google Fonts CDN kullanmıyoruz ki ziyaretçi IP'si
   üçüncü tarafa gitmesin - gizlilik politikasıyla tutarlı olsun.
   ========================================================================== */

/* ---------- Fontlar ---------- */
@font-face {
  font-family: 'Archivo Expanded';
  src: url('../fonts/ArchivoExpanded_400Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo Expanded';
  src: url('../fonts/ArchivoExpanded_600SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo Expanded';
  src: url('../fonts/ArchivoExpanded_700Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope_400Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope_500Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope_700Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Space Mono';
  src: url('../fonts/SpaceMono_400Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

/* ---------- Tokenlar ---------- */
:root {
  /* Palet - src/theme/colors.ts */
  --ink: #15171c;
  --paper: #f1f3f1;
  --slate: #5a626e;
  --volt: #8bdb1a;
  --volt-pressed: #7ac30f;
  --coral: #ff5c45;
  --coral-pressed: #e64a34;
  --mist: #e3e7e3;
  --white: #fff;
  --danger: #d93025;
  --success: #1e8e3e;

  /* Semantik roller */
  --bg: var(--paper);
  --surface: var(--white);
  --surface-muted: var(--mist);
  --text: var(--ink);
  --text-muted: var(--slate);
  --text-inverse: var(--paper);
  --border: var(--mist);

  /* Tipografi rolleri */
  --font-display: 'Archivo Expanded', 'Arial Black', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-data: 'Space Mono', ui-monospace, monospace;

  /* Aralık - src/theme/spacing.ts ölçeği */
  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 12px;
  --sp-lg: 16px;
  --sp-xl: 24px;
  --sp-xxl: 32px;
  --sp-huge: 48px;
  --sp-mega: 80px;

  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow: 0 1px 2px rgba(21, 23, 28, 0.06), 0 8px 24px rgba(21, 23, 28, 0.06);
  --shadow-lift: 0 2px 4px rgba(21, 23, 28, 0.08), 0 18px 48px rgba(21, 23, 28, 0.1);

  --maxw: 1120px;
  --maxw-prose: 720px;
}

/* ---------- Temel ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--text);
  text-decoration-color: color-mix(in srgb, var(--slate) 45%, transparent);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Ekran okuyucuya görünür, göze görünmez */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Klavye kullanıcısı için içeriğe atla */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: var(--sp-md) var(--sp-lg);
  z-index: 100;
  border-radius: 0 0 var(--radius) 0;
}
.skip:focus {
  left: 0;
}

/* ---------- Tipografi ölçeği ---------- */
.display-xl,
.display-l,
.display-m,
.display-s {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
/* Archivo Expanded genişletilmiş bir yüz; Türkçe uzun kelimelerle birlikte
   büyük punto çabuk 4-5 satıra yayılıyor ve hero'yu ekrandan taşırıyordu.
   Üst sınır bilinçli olarak düşük tutuldu. */
.display-xl {
  font-size: clamp(2.1rem, 4.4vw, 3.35rem);
  text-wrap: balance;
}
.display-l {
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
}
.display-m {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  font-weight: 600;
}
.display-s {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.lead {
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  color: var(--text-muted);
  margin: 0;
  max-width: 54ch;
  line-height: 1.55;
}

.eyebrow {
  font-family: var(--font-data);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}

.data {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
}

/* ---------- Yerleşim ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--sp-xl);
}

.prose-wrap {
  max-width: var(--maxw-prose);
  margin: 0 auto;
  padding: 0 var(--sp-xl);
}

section {
  padding: clamp(var(--sp-huge), 8vw, var(--sp-mega)) 0;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  margin-bottom: var(--sp-xxl);
  max-width: 62ch;
}

/* ---------- Üst bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-lg);
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}
.topnav {
  display: flex;
  align-items: center;
  gap: var(--sp-xl);
}
.topnav a {
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-muted);
}
.topnav a:hover {
  color: var(--text);
}

@media (max-width: 780px) {
  .topnav .topnav__link {
    display: none;
  }
}

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  padding: 14px var(--sp-xl);
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.12s ease, border-color 0.12s ease;
}
.btn:active {
  transform: translateY(1px);
}

/* Volt: tek enerji vurgusu. Sayfada en fazla bir tane birincil CTA. */
.btn--primary {
  background: var(--volt);
  color: var(--ink);
}
.btn--primary:hover {
  background: var(--volt-pressed);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn--ink {
  background: var(--ink);
  color: var(--paper);
}
.btn--ink:hover {
  background: #0d0f13;
}

.btn--block {
  width: 100%;
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(var(--sp-xxl), 5vw, var(--sp-huge));
  padding-bottom: clamp(var(--sp-huge), 7vw, var(--sp-mega));
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(var(--sp-xxl), 5vw, var(--sp-mega));
  align-items: center;
}
.hero__copy {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xl);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-md);
  align-items: center;
}
.hero__note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* Volt'u başlıkta tek kelimede kullan - vurgu dağılmasın */
.hl {
  position: relative;
  white-space: nowrap;
}
.hl::after {
  content: '';
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 0.08em;
  height: 0.34em;
  background: var(--volt);
  z-index: -1;
  border-radius: 3px;
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Telefon maketi ----------
   Gerçek ekran görüntüsü yerine uygulamanın arayüzünü CSS ile yeniden
   kuruyoruz; ekran görüntüleri hazır olunca buradaki .phone__screen içeriği
   bir <img> ile değiştirilebilir. */
.phone {
  position: relative;
  width: min(330px, 82vw);
  margin: 0 auto;
  aspect-ratio: 9 / 19;
  background: var(--ink);
  border-radius: 42px;
  padding: 10px;
  box-shadow: var(--shadow-lift);
}
.phone::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 6px;
  background: #2a2d34;
  border-radius: var(--radius-pill);
  z-index: 3;
}
.phone__screen {
  width: 100%;
  height: 100%;
  background: var(--paper);
  border-radius: 34px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: var(--sp-xxl) var(--sp-lg) var(--sp-lg);
  gap: var(--sp-md);
}

/* Maket içindeki başlık ortalanır. Satır-içi style yerine sınıf: CSP'de
   style-src'ye 'unsafe-inline' eklemek zorunda kalmamak için. */
.phone__screen .eyebrow {
  text-align: center;
}

.card-stack {
  position: relative;
  flex: 1;
}
.pcard {
  position: absolute;
  inset: 0;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: var(--sp-lg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--sp-sm);
}
.pcard--back {
  transform: rotate(-4deg) scale(0.95) translateY(6px);
  opacity: 0.5;
}
.pcard--mid {
  transform: rotate(2.5deg) scale(0.975) translateY(3px);
  opacity: 0.75;
}
.pcard__photo {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #cfd6cf 0%, #aab3ad 55%, #8f9a94 100%);
}
.pcard__body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pcard__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  letter-spacing: -0.01em;
}
.pcard__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-family: var(--font-data);
  font-size: 0.68rem;
}
.chip--volt {
  background: var(--volt);
}
.phone__actions {
  display: flex;
  gap: var(--sp-sm);
}
.pbtn {
  flex: 1;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 11px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}
/* Coral: yalnızca insan bağlantısı eylemi - "Davet Et" */
.pbtn--connect {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--white);
}

/* ---------- Adımlar ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-xl);
  counter-reset: step;
}
.step {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  padding: var(--sp-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.step__n {
  font-family: var(--font-data);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}
.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}
@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ---------- Özellikler ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: var(--sp-lg);
}
.feature {
  padding: var(--sp-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}
.feature h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
}
.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}
.feature__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--surface-muted);
  display: grid;
  place-items: center;
  font-family: var(--font-data);
  font-size: 0.9rem;
  margin-bottom: var(--sp-xs);
}

/* ---------- Güvenlik bloğu (koyu zemin) ---------- */
.dark {
  background: var(--ink);
  color: var(--text-inverse);
}
.dark .lead,
.dark .eyebrow,
.dark .feature p {
  color: color-mix(in srgb, var(--paper) 68%, transparent);
}
.dark .feature {
  background: #1c1f26;
  border-color: #2a2e37;
}
.dark .feature h3 {
  color: var(--paper);
}
.dark .feature__icon {
  background: #262a33;
  color: var(--paper);
}

/* ---------- Bekleme listesi ---------- */
.waitlist {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(var(--sp-xl), 4vw, var(--sp-huge));
  box-shadow: var(--shadow);
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.waitlist .display-m {
  margin-top: var(--sp-md);
}
.waitlist .lead {
  margin: var(--sp-md) auto 0;
}

/* Bot tuzağı. Gerçek kullanıcı bu alanı görmez ve dolduramaz; otomatik
   form dolduran bir betik doldurur ve sunucu isteği sessizce düşürür.
   display:none yerine ekran dışına alıyoruz, bazı botlar gizli alanları atlıyor. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Form alanı bloğu - etiket + girdi + ipucu */
.form-group {
  margin-bottom: var(--sp-lg);
}

.form-row {
  display: flex;
  gap: var(--sp-sm);
  margin-top: var(--sp-xl);
}
.field {
  flex: 1;
  min-width: 0;
}
input[type='email'],
input[type='text'],
textarea,
select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px var(--sp-lg);
}
textarea {
  min-height: 120px;
  resize: vertical;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--ink);
  outline: none;
}
label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 6px;
}
.hint {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin: 6px 0 0;
}

.form-msg {
  margin: var(--sp-lg) 0 0;
  font-size: 0.95rem;
  min-height: 1.4em;
}
.form-msg--ok {
  color: var(--success);
  font-weight: 700;
}
.form-msg--err {
  color: var(--danger);
  font-weight: 700;
}

@media (max-width: 560px) {
  .form-row {
    flex-direction: column;
  }
}

/* ---------- Yasal / uzun metin sayfaları ---------- */
.doc {
  padding-top: var(--sp-huge);
}
.doc h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 var(--sp-md);
}
.doc h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  margin: var(--sp-xxl) 0 var(--sp-sm);
}
.doc h3 {
  font-size: 1.02rem;
  margin: var(--sp-xl) 0 var(--sp-xs);
}
.doc p,
.doc li {
  color: var(--text-muted);
}
.doc li {
  margin-bottom: 6px;
}
.doc strong {
  color: var(--text);
}
.doc__meta {
  font-family: var(--font-data);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 0 var(--sp-xxl);
}
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--volt);
  border-radius: var(--radius);
  padding: var(--sp-lg) var(--sp-xl);
  margin: var(--sp-xl) 0;
}
.callout p {
  margin: 0;
}
.callout--warn {
  border-left-color: var(--coral);
}

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-lg) var(--sp-xl);
  margin-bottom: var(--sp-xxl);
}
.toc ol {
  margin: var(--sp-sm) 0 0;
  padding-left: var(--sp-xl);
}
.toc a {
  font-size: 0.95rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sp-lg) 0;
  font-size: 0.94rem;
}
.table-scroll {
  overflow-x: auto;
  margin: var(--sp-lg) 0;
}
th,
td {
  text-align: left;
  padding: 10px var(--sp-md);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  font-family: var(--font-data);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
td {
  color: var(--text-muted);
}

/* ---------- Alt bilgi ---------- */
.footer {
  background: var(--ink);
  color: var(--text-inverse);
  padding: var(--sp-huge) 0 var(--sp-xl);
  margin-top: var(--sp-mega);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--sp-xxl);
  padding-bottom: var(--sp-xxl);
  border-bottom: 1px solid #2a2e37;
}
.footer a {
  color: color-mix(in srgb, var(--paper) 72%, transparent);
  text-decoration: none;
  font-size: 0.95rem;
}
.footer a:hover {
  color: var(--paper);
  text-decoration: underline;
}
.footer .brand {
  color: var(--paper);
}
.footer h4 {
  font-family: var(--font-data);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--paper) 55%, transparent);
  margin: 0 0 var(--sp-md);
  font-weight: 400;
}
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}
.footer__tagline {
  color: color-mix(in srgb, var(--paper) 62%, transparent);
  font-size: 0.95rem;
  margin: var(--sp-md) 0 0;
  max-width: 34ch;
}
.footer__bottom {
  padding-top: var(--sp-lg);
  display: flex;
  justify-content: space-between;
  gap: var(--sp-lg);
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: color-mix(in srgb, var(--paper) 55%, transparent);
}
@media (max-width: 780px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-xl);
  }
}

/* ---------- Hareket tercihi ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}
