/* Marka renkleri src/theme/tokens.ts ile aynı. Ana sayfa scripts/build-site.mjs ile üretilir. */
@font-face {
  font-family: 'Poppins';
  src: url('fonts/Poppins-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('fonts/Poppins-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}

:root {
  --forest950: #001f1b;
  --forest900: #002d27;
  --forest800: #003c32;
  --green600: #008753;
  --green500: #00be85;
  --green400: #08c890;
  --green100: #e3f5ec;
  --ink: #0e1f1c;
  --muted: #5b6b67;
  --line: #e2e8e5;
  --alt: #f6f8f7;
  --white: #ffffff;
  --blue: #2563eb;
  --blue100: #e8effd;
  --amber: #c2610c;
  --amber100: #fdf0d9;
  --shadow: 0 1px 2px rgba(14, 31, 28, 0.06), 0 12px 32px rgba(14, 31, 28, 0.07);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

a {
  color: inherit;
}

img,
svg {
  max-width: 100%;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Üst çubuk */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar-row {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: block;
  flex: none;
}

.brand img {
  display: block;
  height: 26px;
  width: auto;
}

.links {
  display: flex;
  gap: 26px;
  margin: 0 auto;
  font-size: 14px;
}

.links a {
  color: var(--muted);
  text-decoration: none;
}

.links a:hover {
  color: var(--ink);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.links + .topbar-actions {
  margin-left: 0;
}

.lang {
  font-size: 13px;
  text-decoration: none;
  color: var(--muted);
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.lang:hover {
  color: var(--ink);
  border-color: var(--green500);
}

.pill-dark {
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--white);
  background: var(--forest900);
  padding: 8px 16px;
  border-radius: 999px;
}

.pill-dark:hover {
  background: var(--forest800);
}

/* Giriş */
.hero {
  padding: 72px 0 88px;
  background:
    radial-gradient(60% 60% at 85% 10%, rgba(8, 200, 144, 0.12), transparent 70%),
    radial-gradient(50% 50% at 10% 0%, rgba(37, 99, 235, 0.06), transparent 70%), var(--white);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 48px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 13px;
  color: var(--muted);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green500);
  box-shadow: 0 0 0 4px var(--green100);
}

.hero h1 {
  margin: 20px 0 18px;
  font-size: clamp(36px, 5.2vw, 60px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--green600), var(--green400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin: 0 0 28px;
  max-width: 30em;
  font-size: 18px;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-dark {
  color: var(--white);
  background: var(--forest900);
}

.btn-dark:hover {
  background: var(--forest800);
}

.btn-light {
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
}

.btn-light:hover {
  border-color: var(--green500);
}

.dots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 28px 0 0;
  padding: 0 0 24px;
  list-style: none;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.dots li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--green500);
  vertical-align: middle;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  margin: 24px 0 0;
}

.stats dt {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.stats dd {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* Telefonlar: gerçek uygulama ekran görüntüleri */
.phones {
  position: relative;
  height: 560px;
}

.phone-front {
  left: 8%;
  top: 0;
  transform: rotate(-4deg);
  z-index: 2;
}

.phone-back {
  right: 4%;
  top: 56px;
  transform: rotate(6deg);
}

/* Bölümler */
.band {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.band.alt {
  background: var(--alt);
}

.center {
  text-align: center;
}

.kicker {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.kicker.green {
  color: var(--green600);
}
.kicker.blue {
  color: var(--blue);
}
.kicker.amber {
  color: var(--amber);
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.sub {
  margin: 0;
  font-size: 17px;
  color: var(--muted);
}

.center .sub {
  margin: 0 auto;
  max-width: 40em;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

.points {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 18px;
}

.points li {
  display: flex;
  gap: 14px;
}

.points h3 {
  margin: 0 0 2px;
  font-size: 16px;
  font-weight: 600;
}

.points p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.point-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-top: 2px;
  border-radius: 50%;
}

.point-icon svg {
  width: 14px;
  height: 14px;
}

.point-icon.green {
  background: var(--green100);
  color: var(--green600);
}
.point-icon.blue {
  background: var(--blue100);
  color: var(--blue);
}
.point-icon.amber {
  background: var(--amber100);
  color: var(--amber);
}

/* Özellik kartları */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
  text-align: left;
}

.card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(14, 31, 28, 0.04);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--green100);
  color: var(--green600);
}

.card-icon svg {
  width: 20px;
  height: 20px;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
}

.card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* Alt bilgi */
.footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-grid img {
  display: block;
  height: 26px;
  width: auto;
  margin-bottom: 12px;
}

.footer p {
  margin: 0;
  color: var(--muted);
}

.footer h4 {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer a {
  text-decoration: none;
}

.footer a:hover {
  color: var(--green600);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

/* Alt sayfalar: gizlilik, destek, hesap silme */
.legal {
  padding: 56px 0 72px;
  background: var(--alt);
}

.legal .wrap {
  max-width: 780px;
}

.legal h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.legal .meta {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.legal h2 {
  margin: 48px 0 16px;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.item p {
  margin: 0;
}

.legal p,
.legal li {
  font-size: 16px;
  color: #374140;
}

.legal ul,
.legal ol {
  padding-left: 20px;
}

.legal li + li {
  margin-top: 6px;
}

.legal a {
  color: var(--green600);
}

.item {
  margin: 0 0 12px;
  padding: 20px 24px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--line);
}

.item h3 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 600;
}

.item dl {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 8px 16px;
  margin: 0;
  font-size: 15px;
}

.item dt {
  color: var(--muted);
}

.item dd {
  margin: 0;
  color: #374140;
}

.footer-simple {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.footer-simple p {
  margin: 0;
}

.footer-simple a {
  color: var(--ink);
}

@media (max-width: 980px) {
  .links {
    display: none;
  }
  .hero {
    padding: 48px 0 56px;
  }
  .hero-grid,
  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .phones {
    height: 470px;
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }
  .band {
    padding: 64px 0;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .wrap {
    padding: 0 18px;
  }
  .phones {
    height: 400px;
  }
  .phone-front {
    left: 2%;
  }
  .phone-back {
    right: 0;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .item dl {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .item dd {
    margin-bottom: 10px;
  }
}

/* "Sadece şarj değil": molada ve yol üstünde neler var */
.kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.kind {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
}

.kind-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

.kind-icon .mdi {
  display: block;
}

@media (max-width: 560px) {
  .kind {
    font-size: 14px;
    padding: 6px 12px 6px 6px;
  }
  .kind-icon {
    width: 32px;
    height: 32px;
  }
}

/* Kilit ekranı: yolculuk kartı (native/live-activity/LiveActivityView.swift ile aynı düzen ve renkler) */
.ls-card {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 24px;
  background: #002d27;
}

.ls-card small {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.68);
}

.ls-card strong {
  display: block;
  font-weight: 600;
}

.ls-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ls-head small {
  font-size: 11px;
}

.ls-head strong {
  font-size: 17px;
}

.ls-bolt {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #00be85;
}

.ls-grow {
  flex: 1;
  min-width: 0;
}

.ls-time {
  font-size: 26px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.ls-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.ls-detail strong {
  font-size: 15px;
}

.ls-card .ls-kicker {
  font-size: 11px;
  font-weight: 700;
  color: #00be85;
}

.ls-right {
  flex: none;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ls-foot {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ls-battery {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
}

.ls-battery .mdi {
  display: block;
  transform: rotate(90deg);
}

.ls-bar {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.ls-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #00be85;
}

.ls-count {
  width: 46px;
  text-align: right;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.68);
}

/* ---- Telefon çerçevesi içindeki uygulama ekranları ----
   Ekran 393×852 pt çizilir (uygulamadaki gerçek ölçüler) ve çerçeveye ölçeklenir. */
.shot {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.shot figcaption {
  margin-top: 16px;
  max-width: 30em;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.device {
  --w: 300px;
  flex: none;
  width: calc(var(--w) + 18px);
  padding: 9px;
  border-radius: 50px;
  background: #1b1d1f;
  box-shadow:
    inset 0 0 0 2px #3a3d40,
    0 30px 60px rgba(14, 31, 28, 0.22);
}

.device-view {
  width: var(--w);
  height: calc(var(--w) * 852 / 393);
  border-radius: 42px;
  overflow: hidden;
  background: #f6f7f6;
}

.device-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 393px;
  height: 852px;
  transform: scale(calc(300 / 393));
  transform-origin: top left;
  background: #f6f7f6;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  line-height: 1.35;
  color: #111816;
  text-align: left;
}

.device-screen .mdi {
  flex: none;
  display: block;
}

/* Durum çubuğu */
.sb {
  position: relative;
  z-index: 2;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  padding: 8px 30px 0 38px;
  font-size: 16px;
  font-weight: 600;
}

.sb-island {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 122px;
  height: 34px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000000;
}

.sb-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

.sb-icons .mdi:last-child {
  transform: rotate(90deg);
}

/* Kilit ekranı */
.device-screen.dark {
  background:
    radial-gradient(120% 60% at 20% 0%, #1f6f5c, transparent 70%),
    radial-gradient(90% 50% at 100% 100%, #123a55, transparent 70%), #0a1f1b;
  color: #ffffff;
}

.ls {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 12px 26px;
}

.ls-clock {
  margin: 30px 0 auto;
  text-align: center;
}

.ls-clock span {
  display: block;
  font-size: 20px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.ls-clock strong {
  display: block;
  font-size: 92px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.ls-keys {
  display: flex;
  justify-content: space-between;
  margin-top: 26px;
  padding: 0 34px;
}

.ls-keys span {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

/* Birleşik "sadece şarj değil" bölümü: kategori grupları */
.kind-group {
  margin-top: 26px;
}

.kind-group h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
}

.kind-group h3 span {
  font-weight: 500;
  color: var(--muted);
}

.kind {
  gap: 8px;
  padding: 5px 14px 5px 5px;
  background: var(--white);
  font-size: 14px;
}

.kind-icon {
  width: 30px;
  height: 30px;
}

@media (max-width: 980px) {
  .split.reverse > .shot {
    order: 2;
  }
}

@media (max-width: 560px) {
  .device {
    --w: 270px;
    border-radius: 46px;
  }
  .device-view {
    border-radius: 38px;
  }
  .device-screen {
    transform: scale(calc(270 / 393));
  }
}

/* Gerçek ekran görüntüsü çerçevede */
.device.photo .device-view {
  background: #ffffff;
}

.device.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Yolculuk: yan yana üç telefon */
.trio {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin: 48px 0 8px;
}

.trio .device {
  --w: 256px;
  padding: 8px;
  width: calc(var(--w) + 16px);
  border-radius: 44px;
}

.trio .device-view {
  border-radius: 37px;
}

.trio .device-screen {
  transform: scale(calc(256 / 393));
}

.points-row .points {
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
  text-align: left;
}

@media (max-width: 980px) {
  .trio {
    justify-content: flex-start;
    gap: 20px;
    margin-left: -24px;
    margin-right: -24px;
    padding: 0 24px 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .trio .shot {
    flex: none;
    scroll-snap-align: center;
  }
  .points-row .points {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 560px) {
  .trio {
    margin-left: -18px;
    margin-right: -18px;
    padding: 0 18px 16px;
  }
  .trio .device {
    --w: 236px;
  }
  .trio .device-screen {
    transform: scale(calc(236 / 393));
  }
}

/* Gerçek ekran görüntüsünde Dynamic Island görünmez; çerçeveyle tutarlı olsun diye eklenir. */
.device.photo .device-view {
  position: relative;
}

.device.photo .device-view::before {
  content: '';
  position: absolute;
  z-index: 5;
  top: 1.4%;
  left: 50%;
  width: 31%;
  height: 4%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000000;
}

/* ---- Hareket ----
   Gizleme yalnızca betik çalışıyorsa (html.js) yapılır; "hareketi azalt" açıksa hiçbir şey oynamaz. */
@keyframes rise {
  from {
    opacity: 0;
    translate: 0 18px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes float {
  50% {
    translate: 0 -12px;
  }
}

/* Giriş: metin sırayla gelir, telefonlar yükselip hafifçe süzülür */
.hero-grid > div:first-child > * {
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-grid > div:first-child > :nth-child(2) {
  animation-delay: 0.08s;
}
.hero-grid > div:first-child > :nth-child(3) {
  animation-delay: 0.16s;
}
.hero-grid > div:first-child > :nth-child(4) {
  animation-delay: 0.24s;
}
.hero-grid > div:first-child > :nth-child(5) {
  animation-delay: 0.32s;
}
.hero-grid > div:first-child > :nth-child(6) {
  animation-delay: 0.4s;
}

.phone-front {
  animation:
    rise 0.9s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both,
    float 7s 1.2s ease-in-out infinite;
}

.phone-back {
  animation:
    rise 0.9s 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both,
    float 8s 2s ease-in-out infinite;
}

/* Görünce beliren bloklar */
.js .reveal {
  opacity: 0;
  translate: 0 28px;
  transition:
    opacity 0.7s ease,
    translate 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.in {
  opacity: 1;
  translate: 0 0;
}

.js .split > .shot.reveal {
  transition-delay: 0.12s;
}

/* Sırayla beliren çocuklar: kategori çipleri, özellik kartları, telefon üçlüsü */
.js .stagger > *,
.js .points-row.stagger .points > li {
  opacity: 0;
  translate: 0 16px;
  transition:
    opacity 0.5s ease,
    translate 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 70ms);
}

.js .stagger.in > *,
.js .points-row.stagger.in .points > li {
  opacity: 1;
  translate: 0 0;
}

.js .points-row.stagger > .points {
  opacity: 1;
  translate: 0 0;
}

.stagger > :nth-child(2),
.points > li:nth-child(2),
.app-seq > :nth-child(2) {
  --i: 1;
}
.stagger > :nth-child(3),
.points > li:nth-child(3),
.app-seq > :nth-child(3) {
  --i: 2;
}
.stagger > :nth-child(4),
.app-seq > :nth-child(4) {
  --i: 3;
}
.stagger > :nth-child(5),
.app-seq > :nth-child(5) {
  --i: 4;
}
.stagger > :nth-child(6),
.app-seq > :nth-child(6) {
  --i: 5;
}
.stagger > :nth-child(7),
.app-seq > :nth-child(7) {
  --i: 6;
}
.stagger > :nth-child(8),
.app-seq > :nth-child(8) {
  --i: 7;
}
.stagger > :nth-child(9) {
  --i: 8;
}

@keyframes sheet-scroll {
  0%,
  22% {
    translate: 0 0;
  }
  46%,
  72% {
    translate: 0 -150px;
  }
  94%,
  100% {
    translate: 0 0;
  }
}

/* Kilit ekranı, durağa gelince: kart titreşir, başlık yanıp söner */
@keyframes buzz {
  0%,
  7%,
  100% {
    translate: 0 0;
  }
  1% {
    translate: -4px 0;
  }
  2% {
    translate: 4px 0;
  }
  3% {
    translate: -3px 0;
  }
  4% {
    translate: 3px 0;
  }
  5% {
    translate: -2px 0;
  }
  6% {
    translate: 2px 0;
  }
}

@keyframes pulse {
  50% {
    opacity: 0.45;
  }
}

.shot.in [data-live='arrived'] {
  animation: buzz 6s 1.4s infinite;
}

.shot.in [data-live='arrived'] .ls-kicker {
  animation: pulse 1.6s ease-in-out infinite;
}

/* Üzerine gelince */
.card,
.kind,
.btn {
  transition:
    translate 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.card:hover {
  translate: 0 -4px;
  box-shadow: var(--shadow);
}

.kind:hover {
  translate: 0 -2px;
  border-color: var(--green500);
}

.btn:hover {
  translate: 0 -1px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal,
  .js .stagger > *,
  .js .points-row.stagger .points > li,
  .js .app-seq > * {
    opacity: 1;
    translate: 0 0;
  }
}

/* Mobilde telefon üçlüsü yana kayar: ekran dışındaki telefon da hazır beklesin (kaydırınca boş görünmesin). */
@media (max-width: 980px) {
  .js .trio.stagger > *,
  .js .trio .shot.reveal {
    opacity: 1;
    translate: 0 0;
  }
}

/* ---- Gerçek ekran görüntüleri: kareler, açılış, dokunma ---- */
.device-view {
  position: relative;
}

.device.photo .frame {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* İkinci kare (aşağı kaydırılmış hali): betik çalışınca ve telefon görününce sırayla gelir. */
.device.photo .frame.next {
  opacity: 0;
}

@keyframes next-frame {
  0%,
  40% {
    opacity: 0;
    translate: 0 5%;
  }
  48%,
  90% {
    opacity: 1;
    translate: 0 0;
  }
  98%,
  100% {
    opacity: 0;
    translate: 0 5%;
  }
}

.js .in .device.photo .frame.next {
  animation: next-frame 9s 2.8s infinite;
}

/* Açılış: telefon görününce uygulamanın açılış zemini ve sembolü, ardından ekran. Betik yoksa görüntü doğrudan durur. */
.splash {
  display: none;
}

.js .device.photo .splash {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  background: #001c19;
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.45s ease 0.75s;
}

.js .device.photo .splash img {
  width: 26%;
  height: auto;
  opacity: 0;
  scale: 0.8;
  transition:
    opacity 0.4s ease 0.1s,
    scale 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s;
}

.js .in .device.photo .splash {
  opacity: 0;
}

.js .in .device.photo .splash img {
  opacity: 1;
  scale: 1;
}

.js .device.photo .frame:first-child {
  scale: 1.08;
  transition: scale 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.75s;
}

.js .in .device.photo .frame:first-child {
  scale: 1;
}

/* Dokunma: imleç telefonun üstündeyken ekranda dokunma halkası çıkar, ekran hafifçe basılır. */
.tap {
  position: absolute;
  z-index: 4;
  left: var(--tx, 50%);
  top: var(--ty, 55%);
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  box-shadow:
    0 0 0 2px rgba(0, 60, 50, 0.5),
    0 4px 14px rgba(0, 0, 0, 0.25);
  opacity: 0;
  scale: 0.4;
  pointer-events: none;
}

@keyframes tap {
  0% {
    opacity: 0;
    scale: 0.4;
  }
  18% {
    opacity: 1;
    scale: 0.85;
  }
  34% {
    opacity: 1;
    scale: 0.7;
  }
  70%,
  100% {
    opacity: 0;
    scale: 1.7;
  }
}

@keyframes press {
  0%,
  46%,
  100% {
    scale: 1;
  }
  28% {
    scale: 0.975;
  }
}

@media (hover: hover) and (pointer: fine) {
  .device:hover .tap {
    animation: tap 1.4s ease-out infinite;
  }
  .device:hover .device-view {
    animation: press 1.4s ease-in-out infinite;
  }
}

/* Giriş telefonları: önde iPhone 17, arkada Galaxy S24 */
.phones .device {
  --w: 236px;
  position: absolute;
  padding: 8px;
  width: calc(var(--w) + 16px);
  border-radius: 44px;
}

.phones .device-view {
  border-radius: 37px;
}

.device.galaxy {
  padding: 6px;
  width: calc(var(--w) + 12px);
  border-radius: 30px;
  background: #2a2c30;
  box-shadow:
    inset 0 0 0 1.5px #5a5d63,
    0 30px 60px rgba(14, 31, 28, 0.22);
}

.device.galaxy .device-view {
  border-radius: 25px;
}

.device.galaxy .device-view::before {
  top: 1.7%;
  width: 3.6%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
}

@media (max-width: 980px) {
  .phones .device {
    --w: 200px;
  }
}

@media (max-width: 560px) {
  .phones .device {
    --w: 166px;
    padding: 6px;
    width: calc(var(--w) + 12px);
    border-radius: 34px;
  }
  .phones .device-view {
    border-radius: 28px;
  }
  .phones .device.galaxy {
    padding: 5px;
    width: calc(var(--w) + 10px);
    border-radius: 22px;
  }
  .phones .device.galaxy .device-view {
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .splash {
    display: none !important;
  }
  .js .device.photo .frame:first-child {
    scale: 1;
  }
}
