/* =========================
   Google Fonts
   ========================= */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&display=swap');

/* =========================================================
   Smooth hero text sync (inverse of background)
   ========================================================= */
@property --heroText {
  syntax: "<color>";
  inherits: true;
  initial-value: #ffffff;
}

/* =========================
   Base
   ========================= */
html,
body {
  height: 100%;
  margin: 0;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* =========================
   Hero
   ========================= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  gap: 12px;
  padding: 24px;

  overflow: hidden;

  background: linear-gradient(
    90deg,
    #000000,
    #111111,
    #2a2a2a,
    #6b6b6b,
    #dcdcdc,
    #ffffff
  );
  background-size: 500% 100%;
  background-position: 0% 50%;

  animation: bgMove 60s linear infinite, heroTextShift 60s linear infinite;

  color: var(--heroText);
}

@keyframes bgMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes heroTextShift {
  0%   { --heroText: #ffffff; }
  20%  { --heroText: #dcdcdc; }
  40%  { --heroText: #6b6b6b; }
  50%  { --heroText: #000000; }
  60%  { --heroText: #6b6b6b; }
  80%  { --heroText: #dcdcdc; }
  100% { --heroText: #ffffff; }
}

/* =========================
   Pause brand
   ========================= */
.pause-brand {
  --lift: -60px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;

  margin-bottom: 14px;

  opacity: 0;
  transform: translateY(calc(6px + var(--lift))) scale(0.96);
  animation: pauseIn 1.2s ease forwards;
}

@keyframes pauseIn {
  to {
    opacity: 1;
    transform: translateY(var(--lift)) scale(1);
  }
}

.pause-logo {
  display: flex;
  gap: clamp(10px, 1.2vw, 14px);
}

.pause-logo span {
  width: clamp(10px, 1vw, 14px);
  height: clamp(64px, 6vw, 90px);
  border-radius: 999px;
  background: currentColor;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.18));
}

.pause-text {
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 500;
  letter-spacing: 0.1em;
  opacity: 0.9;
}

/* =========================
   Headline
   ========================= */
.hero .headline {
  margin: 0;
  margin-top: -6px;

  width: fit-content;
  max-width: 26ch;
  text-align: left;
  padding-inline: 2px;

  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  line-height: 1.18;
  font-size: clamp(26px, 4vw, 44px);
  letter-spacing: -0.02em;

  color: inherit;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

/* Çince ve Hintçe için DM Serif'i kapat — kendi yazı sistemi daha iyi render eder */
:lang(zh) .hero .headline,
:lang(hi) .hero .headline {
  font-family: system-ui, -apple-system, sans-serif;
  letter-spacing: 0;
}

/* =========================
   Dots (no layout shift + LTR/RTL safe)
   ========================= */
.hero .dots {
  display: inline-block;
  width: 2.2em;
  margin-inline-start: 0.15em;
  vertical-align: baseline;
  text-align: start;
  direction: inherit;
}

.hero .dots::after {
  content: ".";
  display: inline-block;
  width: 100%;
  color: currentColor;
  animation: mindCycle 11.5s steps(1, end) infinite;
}

@keyframes mindCycle {
  0%      { content: "."; }
  11.111% { content: ". ."; }
  22.222% { content: ". . ?"; }

  33.333% { content: "."; }
  44.444% { content: ". ."; }
  55.555% { content: ". . !"; }

  66.666% { content: "."; }
  77.777% { content: ". ."; }
  88.888% { content: ". . ."; }

  100%    { content: "."; }
}

/* =========================
   Sources
   ========================= */
.press-logos {
  width: min(900px, 100%);
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 10px;
  margin-top: clamp(40px, 8vh, 80px);
}

@media (max-width: 720px) {
  .press-logos {
    flex-wrap: wrap;
  }
}

html[dir="rtl"] .press-logos {
  flex-direction: row-reverse;
}

.logo-link {
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 999px;

  font-size: 12.5px;
  letter-spacing: 0.02em;
  font-weight: 500;

  color: inherit;

  background: rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);

  opacity: 0.82;
  transition: opacity 0.25s ease, border-color 0.25s ease, box-shadow 0.35s ease;
}

.logo-link:hover {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 6px 18px rgba(255, 255, 255, 0.06);
}

.hero .faq-link {
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: inherit;
  opacity: 0.85;
}

.hero .faq-link:hover {
  opacity: 1;
}

/* =========================
   FAQ Section
   ========================= */
.faq {
  position: relative;
  overflow: clip;
  background: #ffffff;
  color: #000000;
  padding: 92px 20px 72px;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.faq.visible {
  opacity: 1;
}

.faq::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 32px;
  transform: translateX(-50%);

  width: min(230px, 30vw);
  height: 1.50px;

  background: linear-gradient(
    90deg,
    rgba(0,0,0,0),
    rgba(0,0,0,0.20),
    rgba(0,0,0,0.38),
    rgba(0,0,0,0.20),
    rgba(0,0,0,0)
  );

  opacity: 0.65;
  filter: blur(0.2px);
  pointer-events: none;
  z-index: 2;
}

.faq-inner {
  max-width: 820px;
  margin: 0 auto;
}

details {
  border-top: 1px solid #e6e6e6;
  padding: 14px 0;
}

details:last-of-type {
  border-bottom: 1px solid #e6e6e6;
}

summary {
  cursor: pointer;
  font-weight: 600;
}

details > p {
  margin: 10px 0 0 0;
  line-height: 1.6;
  max-width: 70ch;

  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.25s ease;
}

details[open] > p {
  max-height: 500px;
  opacity: 1;
}

.footer {
  margin-top: 28px;
  color: #444;
  font-size: 14px;
}

.footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.footer a:hover {
  opacity: 1;
}


/* =========================
   Mobile
   ========================= */
@media (max-width: 480px) {
  .hero {
    padding: 18px;
    gap: 10px;
  }

  .pause-brand {
    --lift: -12px;
    margin-bottom: 10px;
  }

  .pause-logo span {
    width: 10px;
    height: clamp(60px, 18vw, 76px);
  }

  .pause-text {
    font-size: 16px;
    letter-spacing: 0.08em;
  }

  .hero .headline {
    max-width: 24ch;
    font-size: clamp(26px, 7vw, 40px);
    line-height: 1.18;
  }

  .logo-link {
    font-size: 12px;
    padding: 6px 10px;
  }
}

/* =========================
   Download Section
   ========================= */
.download {
  position: relative;
  overflow: clip;
  background: #ffffff;
  color: #000000;
  padding: 80px 20px 64px;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.download.visible {
  opacity: 1;
}

.download::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 32px;
  transform: translateX(-50%);

  width: min(230px, 30vw);
  height: 1.5px;

  background: linear-gradient(
    90deg,
    rgba(0,0,0,0),
    rgba(0,0,0,0.20),
    rgba(0,0,0,0.38),
    rgba(0,0,0,0.20),
    rgba(0,0,0,0)
  );

  opacity: 0.65;
  filter: blur(0.2px);
  pointer-events: none;
}

.download-inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.download-heading {
  margin: 0 0 40px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
}

.store-cards {
  display: flex;
  gap: 28px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}

.store-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.store-qr {
  width: 140px;
  height: 140px;
  border-radius: 12px;
  border: 1px solid #e8e8e8;
  display: block;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  min-width: 160px;
  background: #000;
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.store-btn:hover {
  background: #222;
  transform: translateY(-1px);
}

.store-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.store-btn-text small {
  font-size: 10px;
  opacity: 0.7;
  font-weight: 400;
}

.store-btn-text strong {
  font-size: 15px;
  font-weight: 600;
}

@media (max-width: 600px) {
  .download {
    padding: 64px 20px 48px;
  }

  .store-qr {
    display: none;
  }

  .store-cards {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 280px;
  }

  .store-card {
    gap: 0;
  }

  .store-btn {
    width: 100%;
    justify-content: center;
  }
}
