:root {
    --bg-dark: #19112C;
    --bg-light-dark: #231A3D;
    --primary-blue: #0ea5ff;
    --primary-red: #ff7a18;
    --text-light: #f8f9fa;
    --text-muted: #adb5bd;
    --border-color: #2a2a2a;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

main {
    overflow-x: hidden; /* Prevent horizontal scroll on main content */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header --- */
.main-header {
    background-color: rgba(25, 17, 44, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap; /* Prevent items from wrapping on small screens */
}

.logo {
    flex-shrink: 0; /* Prevent logo from shrinking */
}
.logo img {
    height: 72px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.main-header nav a {
    color: var(--text-light);
    text-decoration: none;
    margin: 0 15px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-header nav a:hover {
    color: var(--primary-blue);
}

.header-cta {
    flex-shrink: 0; /* Prevent button from shrinking */
}

.cta-button {
    /* ensure stable, non-wrapping label */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    white-space: nowrap;
    font-size: clamp(0.95rem, 1vw, 1.05rem);
    background: linear-gradient(90deg, var(--primary-red), var(--primary-blue));
    color: var(--text-light);
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: none; /* remove scale to avoid text distortion */
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
}

.cta-button-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    white-space: nowrap;
    font-size: clamp(0.95rem, 1vw, 1.05rem);
    background: transparent;
    color: var(--primary-blue);
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-blue);
    display: inline-block;
    text-align: center;
}

.cta-button-outline:hover {
    background: var(--primary-blue);
    color: var(--text-light);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-h, 88px);
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.swiper-slide {
    background-size: cover;
    background-position: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(25, 17, 44, 0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.15;
    margin-top: 0.5rem;
    background: linear-gradient(135deg, var(--text-light), var(--primary-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 5px rgba(14, 165, 255, 0.3)); }
    to { filter: drop-shadow(0 0 15px rgba(14, 165, 255, 0.6)); }
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.stat-item {
    background: rgba(0,0,0,0.5);
    padding: 15px 25px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    text-align: center;
    border: 1px solid rgba(14, 165, 255, 0.3);
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(14, 165, 255, 0.3); }
    50% { box-shadow: 0 0 20px rgba(14, 165, 255, 0.6); }
}

.stat-item strong {
    display: block;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary-blue);
    text-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
}

.stat-item span {
    font-size: 1rem;
    font-weight: 300;
}

/* --- General Section Styling --- */
section {
    padding: 80px 0;
}

section:nth-of-type(odd) {
    background-color: var(--bg-light-dark);
}

section:nth-of-type(even) {
    background: linear-gradient(135deg, var(--bg-light-dark), rgba(35, 26, 61, 0.9));
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

h2 * {
    background: linear-gradient(135deg, var(--text-light), var(--primary-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Allow emojis to keep their original colors */
h2::before {
    content: attr(data-emoji);
    position: absolute;
    left: 0;
    top: 0;
    color: initial;
    -webkit-text-fill-color: initial;
    background: none;
}

.section-intro {
    max-width: 800px;
    margin: 0 auto 40px auto;
    text-align: center;
    color: var(--text-muted);
}

/* --- How It Works --- */
.requirements {
    display: flex;
    justify-content: center;
    gap: 40px;
    text-align: center;
    margin-top: 50px;
}

.requirement-item i {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.requirement-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* --- Plans --- */
.plan-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

@media (min-width: 1200px) {
    .plan-cards {
        grid-template-columns: repeat(4, 1fr);
    }
}

.plan-card {
    background: linear-gradient(135deg, var(--bg-dark), rgba(35, 26, 61, 0.8));
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(14, 165, 255, 0.3);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.plan-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(14, 165, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: opacity 0.3s ease;
    opacity: 0;
}

.plan-card:hover::before {
    opacity: 1;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.plan-card.featured {
    border-color: var(--primary-blue);
    box-shadow: 0 10px 24px rgba(0, 123, 255, 0.15); /* highlight without scaling */
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: -40px;
    background: var(--primary-blue);
    color: white;
    padding: 5px 40px;
    font-size: 0.8rem;
    font-weight: bold;
    transform: rotate(45deg);
}

.plan-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-blue);
}
.plan-card.featured h3 {
    color: var(--text-light);
}

.plan-option {
    border-top: 1px solid var(--border-color);
    padding: 15px 0;
}
.plan-option:last-of-type {
     margin-bottom: 20px;
}
.price {
    font-size: 1.5rem;
    font-weight: 700;
}

/* --- Compatibility --- */
#compatibility .section-intro {
    margin-bottom: 50px;
}

.device-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 50px;
}
.device-icon {
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(14, 165, 255, 0.1), rgba(255, 122, 24, 0.1));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(14, 165, 255, 0.2);
    transition: all 0.3s ease;
}
.device-icon i {
    font-size: 4rem;
    color: var(--primary-blue);
    transition: transform 0.3s;
}
.device-icon:hover i {
    transform: scale(1.1);
}
.device-icon span {
    display: block;
    margin-top: 10px;
    font-weight: 600;
}

/* --- Advantages --- */
.advantage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}
.advantage-item {
    background: linear-gradient(135deg, var(--bg-dark), rgba(35, 26, 61, 0.8));
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 122, 24, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
}
.advantage-item i {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 15px;
}

/* --- FAQ --- */
.faq-item {
    background: var(--bg-light-dark);
    margin-bottom: 10px;
    border-radius: 5px;
    border-left: 3px solid var(--primary-blue);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    font-size: 1.1rem;
    margin: 0;
}
.faq-question i {
    transition: transform 0.3s;
}
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
.faq-answer p {
    padding: 0 20px 20px;
    color: var(--text-muted);
}

/* --- Testimonials --- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.testimonial-card {
    background: linear-gradient(135deg, var(--bg-light-dark), rgba(35, 26, 61, 0.8));
    border: 1px solid rgba(14, 165, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(14, 165, 255, 0.2);
}
.testimonial-card p {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.7;
}
.testimonial-card h4 {
    text-align: right;
    color: var(--primary-blue);
    font-weight: 600;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--bg-light-dark);
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}
.main-footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.main-footer a {
    color: var(--text-muted);
    text-decoration: none;
}
.main-footer a:hover {
    color: var(--primary-blue);
}

.footer-logo img {
    height: 52px;
    width: auto;
    object-fit: contain;
}

/* --- WhatsApp Float Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    animation: pulse 2s infinite;
    transition: transform 0.3s ease;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    animation: none;
}
.whatsapp-float img {
    width: 100%;
    height: 100%;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --- Responsiveness --- */
@media (max-width: 768px) {
    .main-header .container { flex-direction: row; gap: 10px; }
    .header-cta { display: none; }
    .hero h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
    /* reduce heavy animations on mobile */
    .whatsapp-float { animation: pulse 3s infinite; }
    .main-footer .container {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-float { animation: none !important; }
    .cta-button, .cta-button-outline, .device-icon i, .plan-card { transition: none !important; }
    .scroller__inner { animation: none !important; }
}

.showcase { padding: 70px 0; background: var(--bg-dark); }

.showcase h2 {
    margin-bottom: 50px;
}

/* --- Generic Scroller Component --- */
.scroller {
    max-width: 100%;
    overflow: hidden;
    -webkit-mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
    mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

.scroller__inner {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: scroll var(--scroll-duration, 40s) linear infinite;
}

.scroller__inner:hover {
    animation-play-state: paused;
}

.showcase .scroller__inner {
    --scroll-duration: 40s;
}

.testimonials .scroller__inner {
    --scroll-duration: 80s; /* Slowed down significantly for better readability */
}

@keyframes scroll {
    to {
        transform: translate(calc(-50% - 12px)); /* -50% of the container and half the gap */
    }
}

.showcase-card { position: relative; overflow: hidden; border-radius: 14px; border: 1px solid var(--border-color); flex: 0 0 300px; }
.showcase-card img { width: 100%; height: 300px; object-fit: cover; display: block; transition: transform .5s ease; }
.showcase-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.65)); }
.showcase-card figcaption { position: absolute; left: 14px; bottom: 12px; font-weight: 700; letter-spacing: .2px; z-index: 1; font-size: 1.1rem;}
.showcase-card figcaption { background: linear-gradient(90deg, var(--primary-red), var(--primary-blue)); -webkit-background-clip: text; color: transparent; }
.showcase-card:hover img { transform: scale(1.05); }

.testimonial-card {
    flex: 0 0 350px; /* Give testimonial cards a fixed base width for scrolling */
}

.device-icon i, .stat-item strong, .plan-card.featured { color: var(--primary-blue); }
.device-icon { color: var(--primary-blue); }

/* --- Revolution Section --- */
.revolution {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-light-dark), rgba(35, 26, 61, 0.9));
}

.revolution-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.revolution-text h2 {
    text-align: left;
    margin-bottom: 30px;
}

.revolution-text .section-intro {
    text-align: left;
    margin: 0;
}

.revolution-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .revolution-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .revolution-text h2 {
        text-align: center;
    }
    
    .revolution-text .section-intro {
        text-align: center;
    }
}