/**
 * Anasayfa — tam ekran tanıtım overlay (test: her yüklemede açılır)
 */

.tf-demo {
    position: fixed;
    inset: 0;
    z-index: 10040;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(1.4rem, env(safe-area-inset-top)) 1.25rem max(1.6rem, env(safe-area-inset-bottom));
    background:
        radial-gradient(ellipse 90% 55% at 50% -8%, rgba(220, 20, 60, 0.22), transparent 58%),
        rgba(7, 11, 20, 0.38);
    backdrop-filter: blur(14px) saturate(1.12);
    -webkit-backdrop-filter: blur(14px) saturate(1.12);
    color: #fff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0.7s;
}

.tf-demo.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.tf-demo[hidden] {
    display: none !important;
}

.tf-demo__glow {
    position: absolute;
    width: min(70vw, 520px);
    height: min(70vw, 520px);
    top: -12%;
    left: 50%;
    border-radius: 50%;
    background: rgba(220, 20, 60, 0.22);
    filter: blur(70px);
    pointer-events: none;
    opacity: 0;
    transform: translateX(-50%) scale(0.72);
    transition: opacity 1.1s ease, transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.tf-demo.is-open .tf-demo__glow {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.tf-demo__glow--2 {
    top: auto;
    bottom: -18%;
    left: auto;
    right: -10%;
    width: min(55vw, 380px);
    height: min(55vw, 380px);
    background: rgba(37, 99, 235, 0.14);
    transform: scale(0.72);
}

.tf-demo.is-open .tf-demo__glow--2 {
    transform: scale(1);
}

.tf-demo__x {
    position: absolute;
    top: max(0.9rem, env(safe-area-inset-top));
    right: max(0.9rem, env(safe-area-inset-right));
    z-index: 2;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 50%;
    background: rgba(7, 11, 20, 0.28);
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.45s ease 0.45s, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.45s;
}

.tf-demo.is-open .tf-demo__x {
    opacity: 1;
    transform: none;
}

.tf-demo__x span,
.tf-demo__x span::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 13px;
    height: 1.5px;
    background: #fff;
    border-radius: 2px;
}

.tf-demo__x span {
    transform: translate(-50%, -50%) rotate(45deg);
}

.tf-demo__x span::after {
    content: "";
    transform: rotate(-90deg);
}

.tf-demo__stage {
    position: relative;
    z-index: 1;
    width: min(100%, 38rem);
    text-align: center;
}

.tf-demo.is-open .tf-demo__title,
.tf-demo.is-open .tf-demo__lead,
.tf-demo.is-open .tf-demo__names,
.tf-demo.is-open .tf-demo__wa,
.tf-demo.is-open .tf-demo__skip {
    animation: tfDemoIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tf-demo.is-open .tf-demo__title { animation-delay: 0.1s; }
.tf-demo.is-open .tf-demo__lead { animation-delay: 0.26s; }
.tf-demo.is-open .tf-demo__names { animation-delay: 0.42s; }
.tf-demo.is-open .tf-demo__wa { animation-name: tfDemoPop; animation-delay: 0.58s; }
.tf-demo.is-open .tf-demo__skip { animation-delay: 0.72s; }

@keyframes tfDemoIn {
    from {
        opacity: 0;
        transform: translateY(24px);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

@keyframes tfDemoPop {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.94);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

.tf-demo__title {
    margin: 0 0 1.2rem;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(2.55rem, 9.2vw, 4.85rem);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 0.94;
    text-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.tf-demo__title em {
    font-style: normal;
    background: linear-gradient(120deg, #ff2a55 0%, #dc143c 42%, #ff8fa3 100%);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: tfShine 7s linear infinite;
}

.tf-demo.is-open .tf-demo__title em {
    animation: tfShine 7s linear infinite 0.1s;
}

.tf-demo__lead {
    margin: 0 auto 1.35rem;
    max-width: 34rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1.05rem, 2.4vw, 1.2rem);
    line-height: 1.55;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.tf-demo__names {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.45rem 0.2rem;
    margin: 0 auto 1.7rem;
    max-width: 34rem;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.78);
}

.tf-demo__names i {
    display: inline-block;
    width: 4px;
    height: 4px;
    margin: 0 0.55rem;
    border-radius: 50%;
    background: #dc143c;
    box-shadow: 0 0 10px rgba(220, 20, 60, 0.7);
    font-style: normal;
}

.tf-demo__wa {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    width: min(100%, 22rem);
    height: 3.5rem;
    margin: 0 auto;
    padding: 0 1.2rem;
    border: 0;
    border-radius: 999px;
    background: #25d366;
    color: #fff !important;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 16px 36px rgba(37, 211, 102, 0.32);
    opacity: 0;
}

.tf-demo.is-open .tf-demo__wa {
    opacity: 1;
}

.tf-demo__wa:hover {
    filter: brightness(1.05);
}

.tf-demo__wa-ico {
    width: 1.75rem;
    height: 1.75rem;
    flex: 0 0 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.tf-demo__wa-ico svg {
    display: block;
}

.tf-demo__wa-txt {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.tf-demo__skip {
    display: block;
    width: 100%;
    margin: 1.05rem 0 0;
    padding: 0.4rem;
    border: 0;
    background: none;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    text-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    opacity: 0;
}

.tf-demo__skip:hover {
    color: #fff;
}

.tf-demo__ask {
    position: relative;
    z-index: 1;
    width: min(100%, 28rem);
    text-align: center;
}

.tf-demo__ask[hidden] {
    display: none !important;
}

.tf-demo.is-ask .tf-demo__stage {
    display: none;
}

.tf-demo.is-ask .tf-demo__ask {
    animation: tfDemoIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tf-demo.is-ask .tf-demo__ask .tf-demo__wa {
    opacity: 1;
    animation: none;
}

.tf-demo__ask-title {
    margin: 0 0 0.85rem;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(2.1rem, 7.5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 0.98;
    text-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.tf-demo__ask-title em {
    font-style: normal;
    background: linear-gradient(120deg, #ff2a55 0%, #dc143c 42%, #ff8fa3 100%);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tf-demo__ask-lead {
    margin: 0 auto 1.5rem;
    max-width: 24rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.02rem;
    line-height: 1.5;
}

.tf-demo__field {
    display: block;
    width: min(100%, 22rem);
    margin: 0 auto 1.15rem;
    text-align: left;
}

.tf-demo__field span {
    display: block;
    margin-bottom: 0.4rem;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.tf-demo__field input {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0.95rem 0.2rem 0.75rem;
    border: 0;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.28);
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.tf-demo__field input:focus {
    border-bottom-color: #ff6b86;
}

@media (max-height: 760px) {
    .tf-demo__title {
        font-size: clamp(2.15rem, 8vw, 3.6rem);
        margin-bottom: 0.9rem;
    }

    .tf-demo__lead {
        margin-bottom: 1rem;
        font-size: 1rem;
    }

    .tf-demo__names {
        margin-bottom: 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tf-demo,
    .tf-demo__glow,
    .tf-demo__x,
    .tf-demo.is-open .tf-demo__title,
    .tf-demo.is-open .tf-demo__lead,
    .tf-demo.is-open .tf-demo__names,
    .tf-demo.is-open .tf-demo__wa,
    .tf-demo.is-open .tf-demo__skip,
    .tf-demo.is-ask .tf-demo__ask {
        animation: none;
        transition: none;
        filter: none;
        opacity: 1;
        transform: none;
    }
}
