:root {
    --primary-color: #0d6efd;
    --primary-dark: #0a58ca;
    --secondary-color: #0dcaf0;
    --accent-color: #6610f2;
    --success-color: #198754;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --text-color: #2c3e50;
    --text-muted: #6c757d;
    --white: #ffffff;

    --gradient-primary: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    --gradient-bg: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.15);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 32px;

    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    --text-color: #f8f9fa;
    --text-muted: #adb5bd;
    --light-color: #212529;
    --white: #1a1d20;
    --gradient-bg: linear-gradient(135deg, #1a1d20 0%, #000000 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Manrope', 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--light-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
    font-weight: 300;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

body.is-loading {
    opacity: 0;
    pointer-events: none;
}

/* Background Mesh Gradient */
.background-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background:
        radial-gradient(at 0% 0%, rgba(13, 110, 253, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(102, 16, 242, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(13, 202, 240, 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(25, 135, 84, 0.05) 0px, transparent 50%);
    filter: blur(80px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4 {
    color: var(--dark-color);
    line-height: 1.2;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Essential for full-width buttons */
    gap: 10px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn--primary {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    /* Removed transparent border to fix artifacts */
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.4);
}

.btn--outline {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn--outline:hover {
    background: rgba(13, 110, 253, 0.05);
}

.btn--white {
    background: var(--white);
    color: var(--primary-color);
}

.btn--lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo__img {
    height: 42px;
    /* Increased by 50% for visibility */
    width: auto;
    object-fit: contain;
    display: block;
}

/* Main Nav Container (Desktop) */
.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav__link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav__link:hover {
    color: var(--primary-color);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-switcher {
    display: flex;
    gap: 5px;
    background: rgba(0, 0, 0, 0.05);
    padding: 4px;
    border-radius: 20px;
}

.lang-btn {
    border: none;
    background: none;
    padding: 6px 12px;
    border-radius: 16px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.lang-btn:hover {
    color: var(--dark-color);
}

.lang-btn.active {
    background: var(--white);
    color: var(--dark-color);
    box-shadow: var(--shadow-sm);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.pulse {
    position: relative;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    display: inline-block;
}

.pulse::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    transform: translate(-50%, -50%);
    animation: pulse-ring 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
    z-index: -1;
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0.8;
    }

    80%,
    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

.hero__title {
    font-size: 3.5rem;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero__desc {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero__btns {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
    justify-content: center;
    /* Centering buttons as requested */
}

.hero__stats {
    display: flex;
    gap: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero__phone {
    max-width: 300px;
    /* Restored size */
    height: auto;
    border-radius: 40px;
    border: 8px solid #fff;
    /* Added framing border */
    box-shadow: var(--shadow-lg);
    z-index: 10;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 20;
    animation: float 6s ease-in-out infinite;
}

.floating-card i {
    font-size: 1.5rem;
    padding: 10px;
    border-radius: 12px;
}

.card-1 {
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.card-1 i {
    background: #ffe0e6;
    color: #ff4757;
}

.card-2 {
    bottom: 20%;
    right: -5%;
    animation-delay: 2s;
}

.card-2 i {
    background: #e0f2f1;
    color: #00897b;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.floating {
    animation: float 8s ease-in-out infinite;
}

/* Features */
.section {
    padding: 60px 0;
    /* Reduced from 100px */
    scroll-margin-top: 100px;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 30px;
    /* Reduced from 60px */
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* Consolidated card styles moved to bottom */

.review-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
    border-radius: 18px;
    overflow: hidden;
    background: #f1f3f7;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.review-photo {
    position: relative;
    aspect-ratio: 1/1.4;
    overflow: hidden;
}

.review-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.review-card:hover .review-photo img {
    transform: scale(1.08);
}

.photo-label {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: white;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 2;
}

.review-badge {
    display: inline-block;
    align-self: center;
    background: var(--primary-color);
    color: white;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
}

.review-text {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    /* Standard property for compatibility */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-author {
    font-weight: 700;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.icon-blue {
    background: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
}

.icon-green {
    background: rgba(25, 135, 84, 0.1);
    color: var(--success-color);
}

.icon-purple {
    background: rgba(102, 16, 242, 0.1);
    color: var(--accent-color);
}

.icon-orange {
    background: rgba(253, 126, 20, 0.1);
    color: #fd7e14;
}

.icon-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.icon-info {
    background: rgba(13, 202, 240, 0.1);
    color: #0dcaf0;
}

.icon-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.icon-dark {
    background: rgba(33, 37, 41, 0.1);
    color: #212529;
}

.icon-pink {
    background: rgba(232, 62, 140, 0.1);
    color: #e83e8c;
}

.icon-teal {
    background: rgba(32, 201, 151, 0.1);
    color: #20c997;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Steps */
.steps-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    transition: transform 0.s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, opacity 0.5s ease;
    cursor: pointer;
}

.step:hover {
    transform: translateY(-10px) scale(1.02);
}

.step-number {
    font-size: 4rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: -20px;
    position: relative;
    z-index: -1;
    opacity: 0.2;
    transition: all 0.4s ease;
}

.step:hover .step-number {
    opacity: 0.4;
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(13, 110, 253, 0.2));
}

.step-content h3 {
    transition: all 0.3s ease;
}

.step:hover .step-content h3 {
    color: var(--primary-color);
}

/* Aesthetic Card Extensions for Images */
.feature-card--has-image {
    padding-top: 0 !important;
    overflow: hidden;
}

.feature-card--has-image .feature-icon {
    width: 100% !important;
    height: 170px !important;
    border-radius: 0 0 20px 20px !important;
    margin-bottom: 20px !important;
    background: #f1f3f7 !important;
    border: none !important;
    box-shadow: inset 0 -40px 60px -20px rgba(0, 0, 0, 0.1);
    /* Subtle depth */
}

.feature-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.step--has-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-image {
    width: 100%;
    max-width: 220px;
    height: 170px;
    margin-bottom: 20px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: rotate(-2deg);
    transition: all 0.3s;
}

.step--has-image:hover .step-image {
    transform: rotate(0deg) scale(1.03);
}

.step-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Review Cards */
.review-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, opacity 0.5s ease;
    transition-delay: 0s !important;
    border: 1px solid rgba(0, 0, 0, 0.03);
    text-align: left;
    cursor: pointer;
}

.review-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.feature-card {
    background: var(--white);
    padding: 35px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, opacity 0.5s ease;
    transition-delay: 0s !important;
    border: 1px solid rgba(0, 0, 0, 0.03);
    height: 100%;
    cursor: pointer;
}

/* Specialized Reveal System */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(5px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.8s ease;
    will-change: opacity, transform, filter;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* 1. Typing Reveal (for Why it works?) */
.reveal-typing {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
    filter: blur(5px);
    transition: clip-path 1.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.5s ease, filter 0.8s ease;
    will-change: clip-path, opacity;
}

.reveal-typing.visible {
    clip-path: inset(0 0 0 0);
    opacity: 1;
    filter: blur(0);
}

/* 2. Zoom Reveal (for How it works) */
.reveal-zoom {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    filter: blur(10px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.8s ease;
}

.reveal-zoom.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
}

.reveal-zoom.visible:hover {
    transform: translateY(-10px) scale(1.02);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition-delay: 0s !important;
}

/* Disable hover effect on section titles */
.section-title.reveal-zoom.visible:hover,
.section-desc.reveal-zoom.visible:hover {
    transform: translateY(0) scale(1) !important;
}

/* 3. Slide-Right Reveal (for Real Results) */
.reveal-slide-right {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.8s ease;
}

.reveal-slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* 4. Jelly Reveal (for Real Results) */
.reveal-jelly {
    opacity: 0;
    transform: scale(0.5) translateY(40px);
    filter: blur(10px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.8s ease;
}

.reveal-jelly.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
}

.reveal-jelly.visible:hover {
    transform: translateY(-10px) scale(1.02);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition-delay: 0s !important;
}

/* Staggered Delays for Features */
.features-grid .feature-card:nth-child(1) .reveal {
    transition-delay: 0.1s;
}

.features-grid .feature-card:nth-child(2) .reveal {
    transition-delay: 0.2s;
}

.features-grid .feature-card:nth-child(3) .reveal {
    transition-delay: 0.3s;
}

.features-grid .feature-card:nth-child(4) .reveal {
    transition-delay: 0.4s;
}

.features-grid .feature-card:nth-child(5) .reveal {
    transition-delay: 0.5s;
}

.features-grid .feature-card:nth-child(6) .reveal {
    transition-delay: 0.6s;
}

/* Staggered Delays for Reviews (Jelly) */
#reviews-grid .review-card.reveal-jelly:nth-child(1) {
    transition-delay: 0.1s;
}

#reviews-grid .review-card.reveal-jelly:nth-child(2) {
    transition-delay: 0.3s;
}

#reviews-grid .review-card.reveal-jelly:nth-child(3) {
    transition-delay: 0.5s;
}

#reviews-grid .review-card.reveal-jelly:nth-child(4) {
    transition-delay: 0.7s;
}

/* Staggered Delays for Steps (Zoom) */
.steps-container .step.reveal-zoom:nth-child(1) {
    transition-delay: 0.1s;
}

.steps-container .step.reveal-zoom:nth-child(2) {
    transition-delay: 0.3s;
}

.steps-container .step.reveal-zoom:nth-child(3) {
    transition-delay: 0.5s;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.feature-card--has-image {
    padding: 0 !important;
    overflow: hidden;
}

.review-card--has-image {
    padding: 0 !important;
    overflow: hidden;
}

.review-image {
    height: 210px;
    overflow: hidden;
}

.review-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-content {
    padding: 25px;
}

.review-result {
    font-size: 1.7rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.review-text {
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 20px;
}

.review-author {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--dark-color);
}

.text-primary {
    color: var(--primary-color);
}

.text-success {
    color: var(--success-color);
}

.text-accent {
    color: var(--accent-color);
}

.text-danger {
    color: var(--danger-color);
}

.text-warning {
    color: var(--warning-color);
}

.text-info {
    color: var(--info-color);
}

/* CTA */
.cta-box {
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    border-radius: 30px;
    padding: 100px 40px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(13, 110, 253, 0.3);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.cta-box:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 70px rgba(13, 110, 253, 0.4);
}

.cta-box h2 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 3rem;
    font-weight: 800;
    position: relative;
    z-index: 2;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-size: 1.3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.cta-box .btn {
    position: relative;
    z-index: 2;
}

/* Decorative Elements */
.cta-decor {
    position: absolute;
    border-radius: 50%;
    background: white;
    opacity: 0.1;
    filter: blur(40px);
    z-index: 1;
    pointer-events: none;
}

.cta-decor--1 {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -100px;
    background: rgba(13, 202, 240, 0.4);
}

.cta-decor--2 {
    width: 400px;
    height: 400px;
    bottom: -200px;
    right: -150px;
    background: rgba(102, 16, 242, 0.5);
    animation: pulseCTA 8s infinite alternate;
}

.cta-decor--3 {
    width: 150px;
    height: 150px;
    top: 20%;
    right: 5%;
    background: white;
    opacity: 0.05;
    filter: blur(20px);
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><g fill="white" fill-opacity="0.03" fill-rule="evenodd"><circle cx="3" cy="3" r="1.5"/></g></svg>');
    opacity: 0.5;
    z-index: 1;
}

@keyframes pulseCTA {
    from {
        transform: scale(1) translate(0, 0);
    }

    to {
        transform: scale(1.2) translate(-20px, 20px);
    }
}

/* Footer */
.footer {
    background: var(--white);
    padding: 80px 0 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    font-size: 1.2rem;
    align-items: center;
    justify-content: center;
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.5);
}

.scroll-to-top:active {
    transform: translateY(-3px) scale(1.05);
}

/* Tablet & Small Desktop Adaptivity */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .hero__title {
        font-size: 3rem;
    }

    .hero__container {
        gap: 40px;
    }

    .hero__visual {
        transform: scale(0.95);
    }
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .container {
        padding: 0 15px;
    }

    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }

    .hero__desc {
        margin: 0 auto 30px;
    }

    .hero__btns {
        justify-content: center;
        flex-direction: row;
        /* Keep row unless too narrow */
        flex-wrap: wrap;
        gap: 15px;
    }

    .hero__stats {
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
        padding-top: 20px;
    }

    .card-1 {
        left: 0;
    }

    .card-2 {
        right: 0;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        gap: 20px;
    }

    .main-nav.active {
        display: flex;
    }

    .nav {
        display: flex;
        /* Always flex inside the drawer, direction set by parent */
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
    }

    .header__actions {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 15px;
        align-items: center;
    }

    .lang-switcher {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        /* Allow wrapping on very small screens */
    }

    .lang-btn {
        flex: 1;
        /* Make buttons grow */
        text-align: center;
        justify-content: center;
    }

    .lang-switcher button span {
        display: inline;
        /* Show text "UA", "RU" etc */
    }

    .btn--primary {
        width: 100%;
        justify-content: center;
    }

    .mobile-menu-btn {
        display: block;
        margin-left: auto;
        /* Push to right if needed, though flex handles it */
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__btns {
        flex-direction: column;
    }

    /* PERFORMANCE OPTIMIZATIONS */
    .background-mesh {
        /* Simplify background for mobile to reduce GPU load */
        background: linear-gradient(135deg, #f0f4ff 0%, #eef1f5 100%);
        filter: none;
    }

    .header {
        /* Remove glassmorphism on mobile */
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .hero__phone {
        /* Restoring floating animation on mobile */
        animation: float 8s ease-in-out infinite;
    }

    .floating-card {
        /* Restoring animations on mobile */
        animation: float 6s ease-in-out infinite !important;
        backdrop-filter: blur(10px);
        background: rgba(255, 255, 255, 0.9);
    }

    .card-2 {
        animation-delay: 2s !important;
    }

    .hero {
        padding-top: 110px;
        /* Increased to definitely clear header */
        padding-bottom: 40px;
    }

    .hero__title {
        font-size: 1.8rem;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: anywhere;
        word-break: break-word;
        padding: 0;
        width: 100%;
        color: var(--dark-color);
        font-weight: 800;
    }

    .hero__title span {
        display: inline;
        word-break: break-word;
        white-space: normal;
    }

    .hero__stats {
        gap: 15px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .hero__badge {
        display: none;
        /* Hide badge on mobile/tablet */
    }

    .container {
        padding: 0 15px;
        overflow-x: hidden;
    }

    .logo__img {
        height: 35px;
        /* Increased for mobile visibility */
    }

    .logo {
        font-size: 1.2rem;
    }

    .pulse {
        animation: none;
        box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.2);
    }
}

@media (max-width: 380px) {
    .hero__title {
        font-size: 1.3rem !important;
        max-width: 100%;
    }

    .btn--lg {
        padding: 12px 15px;
        font-size: 0.95rem;
        width: 100%;
    }

    .hero__badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .section-title {
        font-size: 1.8rem;
    }
}