/* Kefelon — temel: token'lar, tipografi, telefon mockup'ı.
   Tema: sistem tercihi + elle seçim (html[data-theme]); ikisi de token'ları
   yeniden tanımlar, bileşenler yalnız token okur. */

@font-face {
  font-family: "Inter Tight";
  src: url("/fonts/InterTight-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --accent: #FF6B1A;          /* dolgu: buton, logo, vurgu yüzeyi */
  --on-accent: #0A0A0A;       /* turuncunun üstündeki yazı (6.9:1) */

  /* açık tema (varsayılan) */
  --bg: #FFFFFF;
  --bg-2: #F5F4F1;
  --bg-3: #ECEAE5;
  --fg: #0A0A0A;
  --fg-2: #56554F;
  --fg-3: #6B6A64;             /* küçük gri metin: beyazda 5.4:1, bg-2de 4.9:1 (AA) */
  --line: rgba(10, 10, 10, 0.09);
  --accent-text: #C2410C;     /* beyaz üstünde metin olarak turuncu: 5.2:1 */
  --glow: rgba(255, 107, 26, 0.18);
  --phone-frame: #1A1A1A;
  color-scheme: light;

  --font-display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 20px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A0A0A;
    --bg-2: #131313;
    --bg-3: #1C1C1C;
    --fg: #F4F3EF;
    --fg-2: #A3A29C;
    --fg-3: #8C8B85;
    --line: rgba(255, 255, 255, 0.09);
    --accent-text: #FF7A2E;
    --glow: rgba(255, 107, 26, 0.22);
    --phone-frame: #2A2A2A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A0A0A;
  --bg-2: #131313;
  --bg-3: #1C1C1C;
  --fg: #F4F3EF;
  --fg-2: #A3A29C;
  --fg-3: #8C8B85;
  --line: rgba(255, 255, 255, 0.09);
  --accent-text: #FF7A2E;
  --glow: rgba(255, 107, 26, 0.22);
  --phone-frame: #2A2A2A;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  font: 600 13px/1 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.accent { color: var(--accent); }

/* ── Butonlar ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 15px/1 var(--font-body); text-decoration: none;
  border: 1px solid transparent; transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-ghost { border-color: var(--line); color: var(--fg); background: transparent; }
.btn-ghost:hover { background: var(--bg-2); }

/* ── Telefon mockup'ı ─────────────────────────────────────────
   iPhone çerçevesi, ama dinamik ada YOK (23 Eyl, kullanıcı: "çerçeve aynı
   kalsın, adayı kaldır" — Android görüntüleri de bu çerçevede duruyor).
   Oran iPhone 15 Pro (1179×2556 ≈ 9:19.5). */
.phone {
  position: relative;
  width: var(--w, 260px);
  aspect-ratio: 1179 / 2556;
  border-radius: calc(var(--w, 260px) * 0.16);
  padding: calc(var(--w, 260px) * 0.035);
  background: var(--phone-frame);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 40px 80px -20px rgba(0, 0, 0, 0.45),
    0 18px 36px -18px rgba(0, 0, 0, 0.5);
}
.phone > img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: calc(var(--w, 260px) * 0.13);
  background: #000;
}

/* İki telefonlu sahne: biri önde dik, biri arkada eğik */
.duo { position: relative; display: flex; justify-content: center; align-items: flex-end; }
.duo .phone:first-child { transform: rotate(-7deg) translateX(18%); z-index: 1; }
.duo .phone:last-child  { transform: rotate(6deg) translate(-18%, -6%); z-index: 2; }
