/* ===========================================================================
   E-finans welcome intro — a short motion splash shown BEFORE login/register.
   The brand banner (ambassador + logo + tagline + value pills) is the hero;
   it fades/scales in, a light sheen sweeps across, then the "Başla" CTA appears.
   Self-contained, cinematic dark look (brand teal #27d9a2 + gold #ebb66c), responsive PC+phone.
   =========================================================================== */
.ef-intro {
  position: fixed; inset: 0; z-index: 2147483000;
  display: grid; place-items: center;
  background: #070b14;
  color: #eaf2f7;
  font-family: "Ubuntu Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  overflow: hidden;
  opacity: 1;
  transition: opacity .5s ease;
  -webkit-tap-highlight-color: transparent;
}
.ef-intro.is-leaving { opacity: 0; pointer-events: none; }
.ef-intro.is-done { display: none !important; }
html.ef-intro-lock, body.ef-intro-lock { overflow: hidden; }

/* ---- cinematic background: deep navy, teal glow, drifting grid, gold arc ---- */
.efi-bg { position: absolute; inset: 0; overflow: hidden; }
.efi-bg .efi-glow {
  position: absolute; width: 120vmax; height: 120vmax; left: 50%; top: 42%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(38% 38% at 68% 30%, rgba(41, 120, 180, .55), transparent 70%),
    radial-gradient(34% 34% at 30% 64%, rgba(39, 217, 162, .30), transparent 70%),
    radial-gradient(60% 60% at 50% 50%, rgba(10, 20, 40, .9), #070b14 72%);
  animation: efiGlow 14s ease-in-out infinite alternate;
}
@keyframes efiGlow { from { transform: translate(-50%, -50%) scale(1); } to { transform: translate(-48%, -53%) scale(1.12); } }
.efi-bg .efi-grid {
  position: absolute; inset: -2px;
  background-image: linear-gradient(rgba(120, 170, 220, .08) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(120, 170, 220, .08) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(70% 70% at 50% 45%, #000 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 45%, #000 40%, transparent 85%);
  animation: efiGrid 22s linear infinite;
}
@keyframes efiGrid { from { background-position: 0 0, 0 0; } to { background-position: 54px 108px, 54px 108px; } }
.efi-bg::after { /* soft gold arc, like the brand banner */
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -14%; height: 46%;
  background: radial-gradient(120% 100% at 50% 100%, rgba(235, 182, 108, .22), transparent 60%);
  pointer-events: none;
}
.efi-bg::before { /* slow drifting light streak across the whole backdrop */
  content: ""; position: absolute; inset: -20%;
  background: linear-gradient(115deg, transparent 42%, rgba(120, 190, 230, .07) 50%, transparent 58%);
  background-size: 220% 220%;
  animation: efiStreak 17s ease-in-out infinite;
  pointer-events: none;
}
@keyframes efiStreak { 0% { background-position: 0% 0%; } 50% { background-position: 100% 100%; } 100% { background-position: 0% 0%; } }

/* ---- skip ---- */
.efi-skip {
  position: absolute; top: 18px; right: 18px; z-index: 5;
  padding: 9px 16px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px;
  background: rgba(255, 255, 255, .06); color: #cfe0ea; font: 600 .86rem/1 inherit;
  cursor: pointer; backdrop-filter: blur(6px); transition: background .2s ease, border-color .2s ease, transform .15s ease;
  opacity: 0; animation: efiFade .6s ease .7s forwards;
}
.efi-skip:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .4); }
.efi-skip:active { transform: scale(.96); }

/* ---- stage ---- */
.efi-stage {
  position: relative; z-index: 2; width: min(1180px, 100%);
  padding: 24px 18px; display: grid; justify-items: center; gap: clamp(20px, 4vh, 38px);
  text-align: center;
}

/* ---- hero banner (the brand creative: ambassador + logo + tagline + pills) ---- */
.efi-hero {
  position: relative; margin: 0;
  width: min(1120px, 92vw);
  border-radius: clamp(16px, 2vw, 24px);
  overflow: hidden;
  border: 1px solid rgba(140, 190, 225, .18);
  box-shadow: 0 30px 80px rgba(3, 8, 20, .62), 0 2px 0 rgba(255, 255, 255, .05) inset;
  opacity: 0; transform: translateY(22px) scale(.965);
  animation: efiHero 1.1s cubic-bezier(.18, .82, .2, 1) .2s forwards;
}
/* rotating teal/gold glow halo behind the banner frame */
.efi-hero::before {
  content: ""; position: absolute; inset: -3px; z-index: -1; border-radius: inherit;
  background: conic-gradient(from 0deg,
    rgba(39, 217, 162, 0), rgba(39, 217, 162, .6), rgba(235, 182, 108, .5),
    rgba(41, 120, 180, .55), rgba(39, 217, 162, 0));
  filter: blur(16px);
  opacity: 0;
  animation: efiHaloIn 1s ease 1s forwards, efiHaloSpin 10s linear 1s infinite;
}
@keyframes efiHaloIn { to { opacity: .85; } }
@keyframes efiHaloSpin { to { transform: rotate(360deg); } }
.efi-hero img {
  display: block; width: 100%; height: auto;
  transform-origin: 62% 42%;
  animation: efiKen 13s ease-in-out 1.6s infinite alternate; /* slow ken-burns drift */
}
@keyframes efiHero { to { opacity: 1; transform: none; } }
@keyframes efiKen { from { transform: scale(1.002); } to { transform: scale(1.04); } }

/* light sweep across the banner — gentle, repeating */
.efi-sheen {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .24) 50%, transparent 62%);
  transform: translateX(-130%);
  animation: efiSheen 7s ease 1.2s infinite;
}
@keyframes efiSheen { 0% { transform: translateX(-130%); } 18% { transform: translateX(130%); } 100% { transform: translateX(130%); } }

/* CTA */
.efi-cta {
  position: relative; overflow: hidden;
  margin-top: 2px; padding: 15px 46px; border: 0; border-radius: 999px; cursor: pointer;
  font: 800 1.05rem/1 inherit; color: #04251b;
  background: linear-gradient(180deg, #44e6b4, #1fc79a);
  box-shadow: 0 14px 34px rgba(39, 217, 162, .4);
  opacity: 0; transform: translateY(16px);
  animation: efiRise .7s cubic-bezier(.2, .8, .2, 1) 1.5s forwards, efiPulse 2.4s ease-in-out 2.4s infinite;
  transition: transform .15s ease, box-shadow .2s ease;
}
.efi-cta::after { /* running shine along the button */
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 55%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: translateX(-200%); pointer-events: none;
  animation: efiBtnShine 3.6s ease 2.8s infinite;
}
@keyframes efiBtnShine { 0% { transform: translateX(-200%); } 28% { transform: translateX(260%); } 100% { transform: translateX(260%); } }
.efi-cta:hover { box-shadow: 0 18px 40px rgba(39, 217, 162, .55); }
.efi-cta:active { transform: scale(.97) !important; }
@keyframes efiRise { to { opacity: 1; transform: none; } }
@keyframes efiPulse { 0%, 100% { box-shadow: 0 14px 34px rgba(39, 217, 162, .4); } 50% { box-shadow: 0 14px 44px rgba(39, 217, 162, .7); } }

@keyframes efiFade { to { opacity: 1; } }

/* ---- phone: keep the whole banner visible, CTA full-width ---- */
@media (max-width: 680px) {
  .efi-stage { gap: 22px; padding: 20px 16px; align-content: center; min-height: 100%; }
  .efi-hero { width: 94vw; }
  .efi-cta { width: 100%; max-width: 420px; }
}
/* short landscape screens */
@media (max-height: 560px) and (min-width: 681px) {
  .efi-stage { gap: 14px; }
  .efi-hero { width: min(70vh * 1.777, 92vw); }
}

/* ---- the splash stays dark on purpose (matches the brand banner); returning,
   signed-in visitors never see it, so no light variant is needed. ---- */

@media (prefers-reduced-motion: reduce) {
  .ef-intro *, .ef-intro *::before, .ef-intro *::after { animation: none !important; }
  .ef-intro .efi-hero, .ef-intro .efi-cta, .ef-intro .efi-skip, .ef-intro .efi-hero img { opacity: 1 !important; transform: none !important; }
  .ef-intro .efi-sheen, .ef-intro .efi-cta::after { display: none; }
  .ef-intro .efi-hero::before { opacity: .7 !important; }
}
