/* ================================================================
   rv-main.css — Non-critical component & 3D styles
   Deferred loading: loaded after above-fold render is complete.
   All animations use only transform + opacity for GPU acceleration.
   ================================================================ */

/* ── Scrollbar (Sahakolik tarzı ince iz + pembe thumb) ─────────────── */
html{
    scrollbar-width:thin;
    scrollbar-color:#c11b51 #0f0c12;
}
::-webkit-scrollbar{ width:6px; height:6px; }
::-webkit-scrollbar-track{ background:#0f0c12; }
::-webkit-scrollbar-thumb{
    background:linear-gradient(180deg,#f43b8a 0%,#c11b51 100%);
    border-radius:3px;
}
::-webkit-scrollbar-thumb:hover{ background:#f43b8a; }

/* ============================================================
   @KEYFRAMES — GPU-accelerated (transform + opacity only)
   ============================================================ */

@keyframes orb-drift {
    0%,  100% { transform: translate(0, 0) scale(1);         opacity: 0.45; }
    25%        { transform: translate(3%, 5%) scale(1.04);    opacity: 0.55; }
    75%        { transform: translate(-4%, -3%) scale(0.97);  opacity: 0.38; }
}

@keyframes float3d {
    0%, 100% { transform: translateY(0)   translateZ(0) rotateX(0deg);      }
    33%       { transform: translateY(-8px) translateZ(4px) rotateX(-1.5deg); }
    66%       { transform: translateY(-4px) translateZ(2px) rotateX(1deg);   }
}

@keyframes badge-float {
    0%, 100% { transform: translateY(0)   scale(1);    }
    50%       { transform: translateY(-5px) scale(1.02); }
}

/* ============================================================
   PARALLAX ORBS — decorative fixed-position blobs
   ============================================================ */

.parallax-scene {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.parallax-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    will-change: transform;
    animation: orb-drift 28s ease-in-out infinite;
}

.parallax-orb--1 {
    width: min(580px, 65vw);
    height: min(580px, 65vw);
    background: radial-gradient(circle, rgba(244, 59, 138, 0.18), transparent 65%);
    top: -12%;
    right: -14%;
    opacity: 0.45;
    animation-duration: 28s;
    animation-delay: 0s;
}

.parallax-orb--2 {
    width: min(380px, 50vw);
    height: min(380px, 50vw);
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15), transparent 65%);
    top: 38%;
    left: -8%;
    opacity: 0.35;
    animation-duration: 36s;
    animation-delay: -8s;
}

.parallax-orb--3 {
    width: min(280px, 40vw);
    height: min(280px, 40vw);
    background: radial-gradient(circle, rgba(244, 59, 138, 0.08), rgba(124, 58, 237, 0.06), transparent 70%);
    bottom: 18%;
    right: 8%;
    opacity: 0.28;
    animation-duration: 42s;
    animation-delay: -16s;
}

/* ============================================================
   SECTION STRUCTURE
   ============================================================ */

section[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

.section-block {
    position: relative;
    z-index: 1;
    padding: clamp(40px, 6vw + 0.75rem, 110px) 0;
}

.section-alt {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, transparent 100%);
}

.section-head {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.section-head h2 { font-size: clamp(1.45rem, 2.8vw + 0.75rem, 2.5rem); }

.lead { font-size: clamp(1rem, 1.1vw + 0.9rem, 1.25rem); }

.subsection-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* ============================================================
   HIGHLIGHTS BAR
   ============================================================ */

.highlights-bar {
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 2.25rem 0;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.highlights-bar .hi {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    text-align: left;
}

.highlights-bar .hi i      { color: var(--primary); margin-top: 0.2rem; font-size: 1.1rem; }
.highlights-bar .hi strong { display: block; font-size: 0.95rem; color: #fff; margin-bottom: 0.15rem; }
.highlights-bar .hi span   { font-size: 0.85rem; color: var(--text-muted); line-height: 1.4; }

/* ============================================================
   3D TILT BASE — shared infrastructure for all tilt-card elements
   JS in main.js drives the actual rotation via inline style.
   ============================================================ */

.tilt-card {
    transform-style: preserve-3d;
    /* CSS handles non-JS hover; JS removes this transition while mouse moves */
    transition:
        transform  0.4s cubic-bezier(0.23, 1, 0.32, 1),
        box-shadow 0.4s ease,
        border-color 0.4s ease;
}

/* Disable CSS transform transition while JS is driving the tilt */
.tilt-card.js-tilt-active {
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

/* Icon pops toward viewer in 3D space when card is tilted */
.tilt-card .feature-icon {
    transform: translateZ(20px);
    transform-style: preserve-3d;
}

/* ============================================================
   STAT CARDS
   ============================================================ */

.stat-card {
    position: relative;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.25rem;
    text-align: center;
    box-shadow: var(--shadow-premium);
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(244, 59, 138, 0.07) 0%, transparent 60%);
    pointer-events: none;
}

.tilt-card.stat-card:not(.js-tilt-active):hover {
    border-color: rgba(244, 59, 138, 0.35);
    box-shadow: var(--shadow-float);
    transform: translateY(-3px) perspective(1000px);
}

.stat-card .num {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(180deg, #fff 0%, #c4b8cc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-card .label {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    font-weight: 500;
}

/* ============================================================
   FEATURE CARDS
   ============================================================ */

.feature-card {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.015) 100%);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    box-shadow: var(--shadow-premium);
}

.tilt-card.feature-card:not(.js-tilt-active):hover {
    border-color: rgba(244, 59, 138, 0.35);
    box-shadow: var(--shadow-float);
    transform: translateY(-5px) perspective(1000px);
}

.feature-icon {
    width: 54px;
    height: 54px;
    background: linear-gradient(145deg, #ff4d94 0%, var(--primary-deep) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    box-shadow:
        0 10px 32px rgba(244, 59, 138, 0.35),
        0  1px  0  rgba(255, 255, 255, 0.2) inset,
        0  0   0  1px rgba(244, 59, 138, 0.15);
}

.feature-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.65rem; color: #fff; }
.feature-card p  { font-size: 0.92rem; margin-bottom: 0; }

/* ============================================================
   SAAS SECTION + PILLAR CARDS
   ============================================================ */

.saas-section {
    background: linear-gradient(180deg, rgba(244, 59, 138, 0.07) 0%, transparent 50%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pillar-card {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    height: 100%;
    box-shadow: var(--shadow-premium);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.tilt-card.pillar-card:not(.js-tilt-active):hover {
    border-color: rgba(244, 59, 138, 0.32);
    box-shadow: var(--shadow-float);
    transform: translateY(-3px) perspective(1000px);
}

.pillar-card .pillar-index {
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.65rem;
}

.pillar-card h3 {
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 1.15rem;
    color: #fff;
}

.pillar-bullet-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pillar-bullet-list li {
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 1.1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.pillar-bullet-list li:last-child { margin-bottom: 0; }

.pillar-bullet-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6ba8, var(--primary-deep));
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.pillar-bullet-list strong {
    display: block;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
    font-size: 0.93rem;
    margin-bottom: 0.3rem;
}

/* ============================================================
   USER BENEFIT CARDS
   ============================================================ */

.user-value-section {
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.08) 0%, transparent 55%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.user-value-section .section-head.wide { max-width: 880px; }

.ub-card {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    height: 100%;
    box-shadow: var(--shadow-premium);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.tilt-card.ub-card:not(.js-tilt-active):hover {
    border-color: rgba(124, 58, 237, 0.28);
    box-shadow: var(--shadow-float);
    transform: translateY(-4px) perspective(1000px);
}

.ub-card .ub-index {
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
    margin-bottom: 0.5rem;
}

.ub-card h3     { font-size: 1.15rem; font-weight: 700; line-height: 1.35; margin-bottom: 0.65rem; color: #fff; }
.ub-card .ub-lead { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.1rem; line-height: 1.55; }

.ub-list { list-style: none; padding: 0; margin: 0; }

.ub-list li {
    position: relative;
    padding-left: 1.35rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.58;
}

.ub-list li:last-child { margin-bottom: 0; }

.ub-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 0.15rem;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
}

.ub-list strong {
    display: block;
    color: rgba(255, 255, 255, 0.94);
    font-weight: 600;
    font-size: 0.93rem;
    margin-bottom: 0.28rem;
}

/* ============================================================
   GALLERY CARDS
   ============================================================ */

.gallery-card {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: 1.35rem;
    height: 100%;
    box-shadow: var(--shadow-premium);
}

.tilt-card.gallery-card:not(.js-tilt-active):hover {
    border-color: rgba(244, 59, 138, 0.28);
    box-shadow: var(--shadow-float);
    transform: translateY(-2px) perspective(1000px);
}

.gallery-card img {
    border-radius: 18px;
    max-height: min(460px, 70vh);
    width: 100%;
    object-fit: cover;
    object-position: top;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.gallery-card h5 { margin-top: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }

/* ============================================================
   STEPS — floating 3D animation
   ============================================================ */

.steps-row .step-item {
    position: relative;
    padding: 1.5rem 1rem;
    animation: float3d 6s ease-in-out infinite;
}

.steps-row .step-item:nth-child(2) { animation-delay: -2s; }
.steps-row .step-item:nth-child(3) { animation-delay: -4s; }

.step-number {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(180deg, rgba(244, 59, 138, 0.5) 0%, rgba(124, 58, 237, 0.15) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
}

.step-item h5 { font-weight: 700; font-size: 1.05rem; }

/* ============================================================
   CTA PANEL — Glassmorphism 3D panel
   ============================================================ */

.cta-panel {
    position: relative;
    background:
        radial-gradient(ellipse 80% 80% at 90% 10%, rgba(244, 59, 138, 0.18), transparent 50%),
        radial-gradient(ellipse 60% 60% at 10% 90%, rgba(124, 58, 237, 0.10), transparent 45%),
        linear-gradient(145deg, rgba(20, 16, 28, 0.95) 0%, rgba(8, 6, 12, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-lg);
    padding: clamp(1.65rem, 5vw, 3rem);
    box-shadow: var(--shadow-premium), 0 0 100px rgba(244, 59, 138, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
}

/* Glowing top edge line */
.cta-panel::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 75%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(244, 59, 138, 0.65),
        rgba(124, 58, 237, 0.45),
        transparent
    );
    border-radius: 0 0 2px 2px;
}

.cta-panel .btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   FOOTER
   ============================================================ */

.rv-footer {
    --rv-footer-muted:   #a0a0a0;
    --rv-footer-heading: #707070;
    background: #05050a;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0;
    position: relative;
    z-index: 1;
}

.rv-footer__main {
    padding: clamp(2.5rem, 5vw, 3.5rem) 0 2rem;
}

.rv-footer__col-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rv-footer-heading);
    margin-bottom: 1.1rem;
}

.rv-footer__brand-text {
    color: var(--rv-footer-muted);
    font-size: 0.9rem;
    line-height: 1.65;
    max-width: 22rem;
    margin: 0;
}

.rv-footer .brand-lockup--footer {
    border-color: rgba(230, 193, 122, 0.22);
    box-shadow: 0 0 0 1px rgba(230, 193, 122, 0.06);
}

.rv-footer .brand-lockup:hover { border-color: rgba(244, 59, 138, 0.28); }

.rv-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.rv-footer__social-btn {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(0, 0, 0, 0.35);
    text-decoration: none;
    transition: border-color 0.22s ease, color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.rv-footer__social-btn:hover {
    border-color: rgba(244, 59, 138, 0.45);
    color: var(--primary);
    background: rgba(244, 59, 138, 0.08);
    transform: translateY(-2px);
}

.rv-footer__link-list { list-style: none; padding: 0; margin: 0; }
.rv-footer__link-list li { margin-bottom: 0.45rem; }

.rv-footer__link-list a {
    color: var(--rv-footer-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
    padding: 0.1rem 0;
}

.rv-footer__link-list a:hover {
    color: var(--primary);
    transform: translateX(3px);
}

.rv-footer__bar {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.35);
    padding: 1.1rem 0 max(1.25rem, calc(0.75rem + env(safe-area-inset-bottom, 0px)));
}

.rv-footer__bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
}

.rv-footer__copyright { color: #606060; font-size: 0.82rem; margin: 0; }

.rv-footer__trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.65rem;
}

.rv-footer__trust-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--rv-footer-heading);
    margin-right: 0.15rem;
}

.rv-footer__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.38rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: var(--rv-footer-muted);
    background: rgba(8, 8, 14, 0.9);
    white-space: nowrap;
}

.rv-footer__badge i { font-size: 0.75rem; opacity: 0.85; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 991.98px) {
    section[id] { scroll-margin-top: calc(var(--nav-h-sm) + 12px); }

    /* Disable float animation on mobile — unnecessary motion */
    .steps-row .step-item { animation: none; }

    .parallax-scene { display: none; }

    .highlights-bar {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

@media (max-width: 767.98px) {
    .feature-card,
    .pillar-card,
    .ub-card       { padding: 1.35rem 1.15rem; }
    .stat-card     { padding: 1.15rem 0.75rem; }
    .stat-card .num   { font-size: clamp(1.5rem, 6vw, 2rem); }
    .stat-card .label { font-size: 0.75rem; line-height: 1.35; }
    .subsection-title { font-size: 1.05rem; flex-wrap: wrap; }
    .highlights-bar .hi span { font-size: 0.8125rem; }
    .rv-footer { padding-bottom: max(0.5rem, env(safe-area-inset-bottom, 0px)); }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .gallery-card img { max-height: min(420px, 55vh); }
    .section-block    { padding: clamp(40px, 5vw + 1.5rem, 88px) 0; }
    .feature-card,
    .gallery-card     { padding: 1.35rem 1.2rem; }
}

/* ============================================================
   REDUCED MOTION — disable all non-essential motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    .parallax-orb         { animation: none !important; }
    .steps-row .step-item { animation: none !important; }

    .tilt-card,
    .tilt-card.js-tilt-active {
        transition: box-shadow 0.2s ease, border-color 0.2s ease !important;
        transform: none !important;
    }

    .rv-footer__social-btn,
    .rv-footer__link-list a {
        transition: color 0.15s ease, background 0.15s ease !important;
        transform: none !important;
    }
}
