/* =============================================================================
   KKTCRoyal Shell — shell.css  (mobile-first)
   Tüm değerler design-tokens.css'ten gelir. --color-* paralel set YOKTUR.
   ============================================================================= */

/* ── Reset / base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* [hidden] UA stylesheet'ini display:flex/grid gibi değerlerin ezmemesi için */
[hidden] { display: none !important; }

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

/* ── Container ────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 480px;       /* mobil odaklı — install card dar olsun */
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 600px) {
  .container { padding-inline: var(--space-6); }
}

/* ══════════════════════════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--bg-panel);
  padding-top: env(safe-area-inset-top, 0px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  height: var(--header-h);
  padding-inline: var(--space-4);
  max-width: var(--container-max);
  margin-inline: auto;
}

/* Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.brand-logo__img {
  height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.brand-logo__fallback {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.crown {
  font-size: var(--fs-xl);
  color: var(--brand);
  filter: drop-shadow(var(--glow-brand));
}

.brand-name {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  letter-spacing: var(--tracking-display);
  color: var(--text-primary);
  text-transform: uppercase;
}

.brand-name--royal { color: var(--brand); }

/* Right side */
.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: auto;
}

.clock {
  font-family: var(--font-numeric);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  white-space: nowrap;
  display: none; /* sadece geniş ekranda göster */
}

@media (min-width: 480px) {
  .clock { display: block; }
}

/* Lang toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.lang-btn {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-wide);
  color: var(--text-muted);
  background: transparent;
  border: none;
  padding: var(--space-1) var(--space-2);
  min-height: 32px;
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.lang-btn.active,
.lang-btn:hover { color: var(--neon-magenta); }
.lang-btn.active { text-shadow: var(--glow-text); }

.lang-sep {
  color: var(--border-subtle);
  font-size: var(--fs-xs);
}

/* Auth buttons (header) */
.header-auth {
  display: none;
  gap: var(--space-2);
}

@media (min-width: 400px) {
  .header-auth { display: flex; }
}

.btn-cta--sm,
.btn-outline--sm {
  font-size: var(--fs-xs);
  padding: var(--space-2) var(--space-3);
  min-height: 32px;
}

/* ── btn-cta (from design-tokens primitives, size overrides here) ── */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--text-on-neon);
  background: var(--grad-cta);
  border: none;
  border-radius: var(--radius-pill);
  padding: var(--space-3) var(--space-6);
  min-height: 48px;
  width: 100%;
  box-shadow: var(--glow-brand);
  transition: filter var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease),
              transform var(--dur-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}

.btn-cta:hover  { filter: brightness(1.10); box-shadow: var(--glow-brand), var(--glow-gold); }
.btn-cta:active { transform: translateY(1px); }

.btn-cta--sm {
  min-height: 32px;
  width: auto;
  padding: var(--space-2) var(--space-3);
  font-size: var(--fs-xs);
  box-shadow: none;
}

/* ── btn-outline ── */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  background: transparent;
  border: 1px solid rgba(217,186,126,0.5); /* --brand-gold */
  border-radius: var(--radius-pill);
  padding: var(--space-3) var(--space-5);
  min-height: 44px;
  transition: box-shadow var(--dur-base) var(--ease), background var(--dur-base) var(--ease);
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}

.btn-outline:hover { background: rgba(217,186,126,0.08); box-shadow: var(--glow-gold); }

.btn-outline--sm {
  min-height: 32px;
  padding: var(--space-2) var(--space-3);
  font-size: var(--fs-xs);
}

/* ══════════════════════════════════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════════════════════════════════ */
.shell-main { flex: 1; }

.hero-section {
  position: relative;
  display: flex;
  align-items: flex-start;        /* içeriği tepeden başlat — kısa ekranda taşmaz */
  padding-block: clamp(12px, 3vh, 40px);
  overflow: hidden;
}

/* Yeterli yükseklik varsa ortala */
@media (min-height: 700px) {
  .hero-section {
    min-height: calc(100dvh - var(--header-h));
    align-items: center;
  }
}

/* Arka plan orb'ları */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

/* #7: Masaüstünde sağ-sol boşluk için atmosferik radial glow */
@media (min-width: 600px) {
  .hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 55% 45% at 10% 25%, rgba(205,60,35,0.13) 0%, transparent 65%),
      radial-gradient(ellipse 45% 40% at 90% 75%, rgba(168,85,247,0.08) 0%, transparent 65%);
    pointer-events: none;
  }
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.18; /* dekoratif arka plan — baskın olmamalı */
}

.orb--magenta {
  width: 300px; height: 300px;
  background: var(--neon-magenta);
  top: -80px; right: -60px;
}

.orb--cyan {
  width: 220px; height: 220px;
  background: var(--neon-cyan);
  bottom: 40px; left: -40px;
}

.orb--purple {
  width: 250px; height: 250px;
  background: var(--neon-purple);
  top: 40%; left: 50%;
  transform: translate(-50%, -50%);
}

/* ══════════════════════════════════════════════════════════════════════════
   INSTALL CARD (kahramanımız)
   ══════════════════════════════════════════════════════════════════════════ */
.install-card {
  position: relative;
  background: var(--grad-panel);
  border: 1px solid var(--brand);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card), var(--glow-brand),
              0 0 60px rgba(205,60,35,0.10);
  padding: clamp(14px, 3vh, 32px) clamp(16px, 4vw, 28px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 2vh, 20px);
}

/* Büyük ⊕ ikonu */
.install-card__icon {
  font-size: 3.5rem;
  line-height: 1;
  color: var(--neon-magenta);
  text-shadow: var(--glow-magenta);
  animation: neon-pulse 2.4s var(--ease) infinite;
}

/* Başlık — responsive clamp, 4 satırdan 1-2'ye indir */
.install-card__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 7vw, 48px);
  text-transform: uppercase;
  letter-spacing: var(--tracking-display);
  line-height: var(--lh-tight);
  background: var(--grad-heading);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none; /* gradient clip ile text-shadow çakışır */
  filter: drop-shadow(0 0 10px rgba(255,94,73,0.6)); /* brand-red-bright glow */
}

/* Alt açıklama */
.install-card__sub {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  max-width: 30ch;
  line-height: var(--lh-base);
}

/* ── Telefon görseli (SVG) ── */
.phone-visual {
  display: flex;
  justify-content: center;
}

.phone-svg {
  width: clamp(70px, 18vw, 110px); /* küçük ekranda küçül, büyük ekranda max 110px */
  height: auto;
  filter: drop-shadow(0 0 16px rgba(205,60,35,0.55));
}

/* ── 3 adım şeridi ── */
.step-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: var(--space-2);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-align: center;
  padding: var(--space-3) var(--space-2);
  border-top: 1px solid var(--border-hairline);
  width: 100%;
  overflow: hidden;
}

.strip-step {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
}

.strip-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand-red);
  color: #fff;
  font-size: 10px;
  font-weight: var(--fw-bold);
  flex-shrink: 0;
}

.strip-arrow {
  color: var(--brand-gold);
  font-size: var(--fs-sm);
  flex-shrink: 0;
}

/* ── Güven satırı ── */
.trust-line {
  font-size: var(--fs-xs);
  color: var(--neon-green);
  text-align: center;
  line-height: var(--lh-base);
  padding-inline: var(--space-2);
}

/* ── iOS overlay ── */
.ios-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.ios-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: var(--bg-overlay);
}

.ios-overlay__panel {
  position: relative;
  z-index: 1; /* A2: backdrop'un üstünde kalsın, × butonu tıklanabilir olsun */
  width: 100%;
  max-width: 480px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  padding: var(--space-6) var(--space-5);
  padding-bottom: calc(var(--space-6) + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-height: 90dvh;
  overflow-y: auto;
}

.ios-overlay__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border-hairline);
  border-radius: 50%;
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  font-size: var(--fs-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease);
}

.ios-overlay__close:hover { background: rgba(255,255,255,0.15); }

.ios-overlay__title {
  font-size: var(--fs-2xl);
  text-align: center;
}

.ios-overlay__cta {
  margin-top: var(--space-2);
}

/* ── iOS adımlar ── */
.install-steps {
  width: 100%;
  background: rgba(205,60,35,0.06);
  border: 1px solid rgba(205,60,35,0.2);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  text-align: left;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: var(--lh-base);
}

.step-item strong { color: var(--text-primary); }

.step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--grad-cta);
  color: var(--text-on-neon);
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow-gold); /* adım numaraları — altın premium vurgu */
}

/* ── Android install button ── */
.btn-cta--install {
  font-size: var(--fs-base);
  white-space: nowrap;
  padding: var(--space-4) var(--space-6);
  min-height: 52px;
  gap: var(--space-2); /* ok + metin arası, birlikte ortalanmış */
}

/* ── Install notu ── */
.install-note {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: var(--lh-base);
}

.install-note--done {
  color: var(--neon-green);
  font-weight: var(--fw-semibold);
}

/* ══════════════════════════════════════════════════════════════════════════
   LAUNCH ROW (ikincil)
   ══════════════════════════════════════════════════════════════════════════ */
.launch-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  margin-top: clamp(8px, 2vh, 20px);
}

.btn-launch {
  width: 100%;
  max-width: 240px;
  font-size: var(--fs-sm);   /* daha küçük — birincil CTA öne çıksın */
  min-height: 36px;
  padding: var(--space-2) var(--space-4);
  border-color: rgba(217,186,126,0.25);
  color: var(--text-muted);  /* daha sönük */
  opacity: 0.75;
}

.btn-launch:hover { color: var(--text-secondary); opacity: 1; }

.launch-hint {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  opacity: 0.6;
}

/* ══════════════════════════════════════════════════════════════════════════
   TELEGRAM ROW
   ══════════════════════════════════════════════════════════════════════════ */
.tg-row {
  display: flex;
  gap: var(--space-3);
  margin-top: clamp(8px, 2vh, 20px);
  justify-content: center;
}

.tg-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  padding: var(--space-3) var(--space-4);
  min-height: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid;
  transition: box-shadow var(--dur-base) var(--ease), transform var(--dur-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}

.tg-btn:active { transform: translateY(1px); }

.tg-btn--channel {
  color: var(--brand);
  border-color: rgba(205,60,35,0.4);
  background: rgba(205,60,35,0.08);
}

.tg-btn--channel:hover {
  box-shadow: var(--glow-brand);
  border-color: var(--brand);
}

.tg-btn--support {
  color: var(--neon-cyan);
  border-color: rgba(0,229,255,0.3);
  background: rgba(0,229,255,0.06);
}

.tg-btn--support:hover { box-shadow: var(--glow-cyan); border-color: var(--neon-cyan); }

/* ══════════════════════════════════════════════════════════════════════════
   FOOTER — kompakt, tek satır, regülasyon uyumlu (CGA zorunlu)
   ══════════════════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--bg-panel);
  border-top: 1px solid var(--border-hairline);
  padding-block: var(--space-3);
  padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
}

.footer-inner {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-3) var(--space-4);
  text-align: center;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.license-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  opacity: 0.8;
  transition: opacity var(--dur-base) var(--ease);
  flex-shrink: 0;
}

.license-link:hover { opacity: 1; }

.license-logo {
  height: 24px;   /* kompakt — görünür ama küçük */
  width: auto;
  object-fit: contain;
}

.license-text-fallback {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 2px var(--space-2);
}

.footer-legal,
.footer-copy {
  font-size: 11px;   /* minimum okunabilir — kompakt kalıp, regülasyon korunuyor */
  color: var(--text-muted);
  line-height: 1.4;
}

/* ══════════════════════════════════════════════════════════════════════════
   NEON DIVIDER
   ══════════════════════════════════════════════════════════════════════════ */
.neon-divider {
  height: 1px;
  background: var(--grad-heading);
  box-shadow: var(--glow-brand);
  opacity: 0.6;
}

/* ══════════════════════════════════════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════════════════════════════════════ */
@keyframes neon-pulse {
  0%, 100% { box-shadow: var(--glow-brand); }
  50%       { box-shadow: var(--glow-brand), var(--glow-gold); }
}

.pulse {
  animation: neon-pulse 2.4s var(--ease) infinite;
}

/* ══════════════════════════════════════════════════════════════════════════
   REDUCED MOTION
   ══════════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ── Güven rozetleri (düşük-tekno kullanıcı endişe gidericisi) ── */
.trust-badges {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-align: center;
  line-height: var(--lh-base);
  padding-inline: var(--space-2);
  margin-top: var(--space-2);
  opacity: 0.85;
}

/* ── Zıplayan ok (kurulum oranı artırıcı — philfung kanıtlı) ── */
.adhs-arrow {
  display: block;
  margin: var(--space-3) auto 0;
  width: 40px;
  height: 40px;
  color: var(--neon-green);
  filter: drop-shadow(0 0 6px var(--neon-green));
  animation: adhsBounce 1.2s ease-in-out infinite;
}
.adhs-arrow svg { width: 100%; height: 100%; fill: currentColor; }
@keyframes adhsBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(10px); }
}
.adhs-arrow--up { animation-name: adhsBounceUp; }
@keyframes adhsBounceUp {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .adhs-arrow { animation: none; }
}

/* ── Köşe-ok: ekrana sabit, gerçek paylaş/menü butonuna işaret (philfung mantığı) ── */
.adhs-corner-arrow {
  position: fixed;
  z-index: 2147483647;
  width: 56px;
  height: 56px;
  color: var(--neon-green);
  filter: drop-shadow(0 0 8px var(--neon-green));
  pointer-events: none;
}
.adhs-corner-arrow svg { width: 100%; height: 100%; }
.adhs-corner-arrow path { stroke: currentColor; stroke-width: 2.5; fill: none;
  stroke-linecap: round; stroke-linejoin: round; }

/* Sağ alt — modern Safari / Chrome / Firefox (paylaş-menü altta) */
.adhs-corner-arrow--br {
  right: 16px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
  animation: adhsCornerDown 1.1s ease-in-out infinite;
}
@keyframes adhsCornerDown {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(10px); }
}

/* Sağ üst — iOS 26 Safari (paylaş üstte) */
.adhs-corner-arrow--tr {
  right: 16px;
  top: calc(env(safe-area-inset-top, 0px) + 8px);
  animation: adhsCornerUp 1.1s ease-in-out infinite;
}
@keyframes adhsCornerUp {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .adhs-corner-arrow { animation: none; }
}

