/* İvme landing — marka: krem kâğıt + orman yeşili + tek mercan (brandbook v1).
   Apple ritmi: bölüm başına tek iddia + tek görsel; motion scroll'a bağlı,
   yerleşim asla zıplamaz (transform/opacity only). Vanilla, bağımlılıksız. */

/* ── Font ── */
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-latin-ext.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20CF;
}

/* ── Tokens ── */
:root {
  --paper: #f7f5f0;
  --paper-2: #fffdf8;
  --sand: #efece5;
  --sand-2: #e0dbd0;
  --forest: #2e5a3e;
  --ink: #1e3d2a;
  --ink-deep: #16281c;
  --ink-2: #22392b;      /* koyu bölümde yüzey */
  --sage: #8fb39c;
  --coral: #d2603a;
  --text: #21352a;
  --text-dim: #57765f;
  --radius: 20px;
  --ease: cubic-bezier(.22,.61,.21,1); /* settle — Apple hissi */
  --dur: 700ms;
  --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', 'Segoe UI', Roboto, sans-serif;
  background: var(--paper);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

h1, h2, h3 { line-height: 1.06; letter-spacing: -0.03em; color: var(--ink); font-weight: 800; }
h1 { font-size: clamp(44px, 7.2vw, 92px); }
h2 { font-size: clamp(32px, 4.6vw, 60px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -0.02em; }
.sub {
  font-size: clamp(17px, 1.6vw, 21px);
  color: var(--text-dim);
  max-width: 34em;
  margin-top: 18px;
}
.eyebrow {
  font-size: 13px; font-weight: 800; letter-spacing: 0.14em;
  color: var(--forest); margin-bottom: 14px;
}
.eyebrow-coral { color: var(--coral); }

/* ── Butonlar ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none;
  transition: transform 160ms var(--ease), background 160ms var(--ease), color 160ms var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--forest); color: var(--paper-2); }
.btn-primary:hover { background: var(--ink); }
.btn-ghost { color: var(--forest); border: 1.5px solid var(--sand-2); background: transparent; }
.btn-ghost:hover { border-color: var(--forest); }
.btn-lg { min-height: 58px; padding: 0 38px; font-size: 18px; }
.btn-nav { min-height: 40px; padding: 0 20px; font-size: 15px; background: var(--forest); color: var(--paper-2); }

/* ── Nav ── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(20px, 4vw, 48px);
  transition: background 300ms var(--ease), box-shadow 300ms var(--ease), padding 300ms var(--ease);
}
.nav.scrolled {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--sand-2);
  padding-top: 10px; padding-bottom: 10px;
}
.nav-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.nav-word { font-size: 24px; font-weight: 800; letter-spacing: -0.04em; color: var(--ink); }
.nav-word i { font-style: normal; color: var(--coral); }

/* ── Telefon çerçevesi ── */
.phone {
  --screen-bg: #f7f6f0;  /* screenshot üst zemini — status-bar şeridi */
  --strip: 34px;
  position: relative;
  width: min(300px, 72vw);
  aspect-ratio: 780 / 1748;  /* şerit payı eklendi */
  border-radius: 46px;
  background: #131f18;
  padding: 11px;
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.06),
    0 2px 6px rgba(22,40,28,.25),
    0 30px 70px -18px rgba(22,40,28,.45);
}
/* status-bar şeridi: notch içeriğin üstüne binmez, uygulama zemininde yüzer */
.phone::before {
  content: ''; position: absolute; top: 11px; left: 11px; right: 11px;
  height: var(--strip); background: var(--screen-bg);
  border-radius: 36px 36px 0 0; z-index: 1;
}
.phone img {
  width: 100%; height: calc(100% - var(--strip)); margin-top: var(--strip);
  object-fit: cover; object-position: top; border-radius: 0 0 36px 36px;
}
.phone-notch {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 32%; height: 20px; border-radius: 999px; background: #131f18;
  z-index: 2;
}
.phone-sm { width: min(220px, 56vw); border-radius: 38px; padding: 9px; --strip: 26px; }
.phone-sm::before { top: 9px; left: 9px; right: 9px; border-radius: 30px 30px 0 0; }
.phone-sm img { border-radius: 0 0 30px 30px; }
.phone-sm .phone-notch { top: 15px; height: 15px; }
.phone-dark { --screen-bg: #0f1712; }
.phone-tilt { transform: rotate(3deg); }

/* ── Hero ── */
.hero {
  height: 100vh; height: 100svh;   /* sabit: telefon kalan alana sığar */
  display: grid; grid-template-rows: auto 1fr;
  padding-top: clamp(84px, 12vh, 140px);
  position: relative;
  overflow: hidden;
}
.hero-copy { text-align: center; padding: 0 22px; position: relative; z-index: 3; }
.hero-copy .sub { margin-inline: auto; }
.hero-cta { display: flex; gap: 14px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.hero-stage {
  position: relative; margin-top: clamp(20px, 3.5vh, 44px);
  min-height: 0;                          /* 1fr satırı taşmasın */
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: clamp(28px, 5vh, 60px); /* telefon dibe yapışmaz */
}
.hero-horizon {
  position: absolute; inset: auto 0 0 0; width: 100%;
  height: clamp(180px, 32vh, 420px);
  will-change: transform;
}
.hero-phone {
  position: relative; z-index: 2;
  /* kalan alana sığ: tamamı her viewport'ta görünür */
  height: 100%; max-height: 640px; min-height: 300px;
  width: auto;
  animation: hero-rise 1100ms var(--ease) both;
  animation-delay: 120ms;
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(70px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-copy > * { animation: hero-fade 900ms var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 80ms; }
.hero-copy > :nth-child(3) { animation-delay: 160ms; }
.hero-copy > :nth-child(4) { animation-delay: 240ms; }
@keyframes hero-fade {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}
.scroll-cue {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  z-index: 4; padding: 10px;
}
.scroll-cue i { width: 5px; height: 5px; border-radius: 999px; background: var(--paper-2); opacity: .5; }
.scroll-cue i:nth-child(2) { width: 7px; height: 7px; animation-delay: 150ms; }
.scroll-cue i:nth-child(3) { width: 9px; height: 9px; animation-delay: 300ms; }
.scroll-cue i { animation: cue 1600ms var(--ease) infinite; }
@keyframes cue { 0%,100% { opacity: .35; } 50% { opacity: 1; } }

/* ── Claim ── */
.claim { padding: clamp(90px, 14vh, 170px) 24px; text-align: center; }
.claim p {
  font-size: clamp(28px, 4vw, 52px); font-weight: 800;
  letter-spacing: -0.03em; color: var(--ink); line-height: 1.15;
}
.claim span { color: var(--text-dim); }

/* ── Sticky showcase ── */
.showcase { height: 480vh; position: relative; }
.show-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  overflow: hidden; display: flex; align-items: center;
}
.show-grid {
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto; gap: clamp(24px, 5vw, 90px);
  align-items: center; padding: 0 clamp(20px, 4vw, 48px);
}
.show-text { position: relative; min-height: 340px; }
/* Scrub modeli: opacity/transform her karede JS'ten yazılır (transition yok —
   his tamamen scroll'a kenetli). Başlangıç görünmez; JS ilk karede boyar. */
.show-item {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  opacity: 0; pointer-events: none;
  will-change: opacity, transform;
}
.show-phone-col { display: flex; justify-content: center; }
.show-phone-col .phone { width: min(320px, 38vh); }
/* Crossfade zemini: iki ekran yarı-saydamken koyu bezel sızmasın */
.show-phone-col .phone::after {
  content: ''; position: absolute; inset: 11px;
  background: var(--screen-bg); border-radius: 36px; z-index: 0;
}
/* .phone img (0-1-1) kuralını yenmek için iki-class özgüllük (0-2-0) */
.phone .show-screen {
  z-index: 1;
  position: absolute; inset: calc(11px + var(--strip)) 11px 11px;
  width: calc(100% - 22px); height: calc(100% - 22px - var(--strip));
  margin-top: 0;
  opacity: 0;
  will-change: opacity, transform;
}
.show-dots {
  position: absolute; left: clamp(10px, 2vw, 26px); top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 12px; align-items: center;
}
.show-dots i {
  width: 7px; height: 7px; border-radius: 999px; background: var(--sand-2);
  transition: background 300ms, transform 300ms;
}
.show-dots i:nth-child(2) { width: 8px; height: 8px; }
.show-dots i:nth-child(3) { width: 9px; height: 9px; }
.show-dots i:nth-child(4) { width: 10px; height: 10px; }
.show-dots i.active { background: var(--coral); transform: scale(1.25); }
.show-dots i.done { background: var(--sage); }

/* ── Rapor / split ── */
.report { padding: clamp(90px, 14vh, 170px) 0; background: var(--paper-2); }
.split {
  max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 80px);
  align-items: center;
}
.split-visual { display: flex; justify-content: center; }
blockquote {
  margin-top: 26px; padding: 18px 22px;
  border-left: 3px solid var(--coral);
  background: var(--paper);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 17px; color: var(--ink); font-weight: 600;
  max-width: 30em;
}

/* ── Wearable köprüsü ── */
.bridge { text-align: center; padding: clamp(90px, 13vh, 160px) 24px; }
.bridge h2 span { color: var(--text-dim); }
.bridge .sub { margin-inline: auto; }
.bridge-chips { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.chip {
  display: inline-flex; align-items: baseline; gap: 7px;
  background: var(--paper-2); border: 1px solid var(--sand-2);
  border-radius: 999px; padding: 12px 22px;
  font-size: 15px; color: var(--text-dim);
  box-shadow: 0 2px 10px rgba(22,40,28,.05);
}
.chip b { color: var(--ink); font-size: 19px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* ── Donanım (koyu) ── */
.hardware {
  background: var(--ink-deep); color: #e9efe8;
  padding: clamp(100px, 15vh, 180px) clamp(20px, 4vw, 48px);
  border-radius: 44px 44px 0 0;
}
.hardware h2 { color: #f3f6f0; }
.hardware .sub { color: #9fb5a4; }
.hw-head { max-width: 720px; margin: 0 auto; text-align: center; }
.hw-head .sub { margin-inline: auto; }
.hw-scene {
  position: relative; max-width: 1100px; margin: clamp(50px, 8vh, 90px) auto 0;
  display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(12px, 3vw, 40px);
  align-items: center; justify-items: center;
}
.hw-links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hw-path {
  fill: none; stroke: var(--sage); stroke-width: 2.5;
  stroke-dasharray: 3 10; stroke-linecap: round; opacity: .55;
  stroke-dashoffset: 240;
  transition: stroke-dashoffset 1600ms var(--ease) 300ms;
}
.hw-scene.linked .hw-path { stroke-dashoffset: 0; }
.hw-item { text-align: center; }
.hw-item svg { width: clamp(130px, 18vw, 220px); height: auto; }
.hw-scale svg, .hw-band svg { animation: hw-float 6s ease-in-out infinite; }
.hw-band svg { animation-delay: 1.6s; }
@keyframes hw-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hw-item figcaption { margin-top: 16px; display: grid; gap: 4px; }
.hw-item b { font-size: 17px; color: #f3f6f0; letter-spacing: -0.01em; }
.hw-item span { font-size: 14px; color: #9fb5a4; max-width: 22em; }
.hw-phone { position: relative; z-index: 2; }
.hw-note { text-align: center; margin-top: clamp(40px, 6vh, 70px); font-size: 14px; color: #7d9484; }

/* ── Güven ── */
.trust { padding: clamp(90px, 13vh, 160px) clamp(20px, 4vw, 48px); }
.trust-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.trust-card {
  background: var(--paper-2); border: 1px solid var(--sand-2);
  border-radius: var(--radius); padding: 30px 26px;
  box-shadow: 0 2px 12px rgba(22,40,28,.05);
}
.trust-card h3 { margin: 14px 0 8px; }
.trust-card p { color: var(--text-dim); font-size: 15.5px; }

/* ── Final CTA ── */
.final { text-align: center; padding: clamp(90px, 14vh, 180px) 24px clamp(110px, 16vh, 200px); }
.final svg { margin: 0 auto 10px; display: block; }
.final .sub { margin-inline: auto; }
.final .btn { margin-top: 30px; }

/* ── Footer ── */
.foot {
  background: var(--paper-2); border-top: 1px solid var(--sand-2);
  padding: 40px clamp(20px, 4vw, 48px) 50px;
  font-size: 14px; color: var(--text-dim);
}
.foot-row {
  max-width: var(--maxw); margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.foot nav a { color: var(--forest); font-weight: 700; text-decoration: none; }
.foot p { max-width: var(--maxw); margin: 4px auto 0; }

/* ── Reveal (IntersectionObserver) ── */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.trust-card.reveal:nth-child(2) { transition-delay: 90ms; }
.trust-card.reveal:nth-child(3) { transition-delay: 180ms; }

/* ── Mobil ── */
@media (max-width: 860px) {
  /* mobil showcase: üst boşluk sıkı, telefon her zaman sığar (svh-güdümlü) */
  .show-grid { grid-template-columns: 1fr; gap: 10px; padding-top: 58px; }
  .show-stage { align-items: flex-start; }
  .show-text { min-height: 196px; order: 2; }
  .show-item { justify-content: flex-start; text-align: center; align-items: center; }
  .show-item .sub { font-size: 15px; margin-top: 8px; max-width: 30em; }
  .show-item h2 { font-size: clamp(24px, 6.4vw, 32px); }
  .show-item .eyebrow { margin-bottom: 8px; }
  .show-phone-col { order: 1; }
  .show-phone-col .phone {
    width: auto;
    height: min(52svh, 52vh, 440px);  /* yükseklik-güdümlü: kırpılmaz */
  }
  .show-dots { left: auto; right: 12px; }
  .split { grid-template-columns: 1fr; }
  .split-visual { order: -1; }
  .phone-tilt { transform: rotate(0); }
  .trust-grid { grid-template-columns: 1fr; }
  .hw-scene { grid-template-columns: 1fr; gap: 44px; }
  .hw-links { display: none; }
  .hw-phone { order: -1; }
  .foot-row { flex-direction: column; gap: 10px; }
}

/* ── Reduced motion: her şey görünür, hiçbir şey kaymaz ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy > *, .hero-phone { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .show-item, .show-screen { transition: opacity 300ms linear; transform: none; }
  .hw-scale svg, .hw-band svg { animation: none; }
  .scroll-cue i { animation: none; opacity: .7; }
  .hw-path { transition: none; stroke-dashoffset: 0; }
}
