@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=Outfit:wght@400;700&display=swap');

@font-face {
    font-family: 'AlientoLogo';
    src: url('../assets/fonts/aliento.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --bg-dark: #121216;
    --bg-surface: #1a1a24;
    --bg-surface-hover: #232331;
    --text-primary: #ffffff;
    --text-secondary: #a0a0ab;
    --accent-cyan: #00e5ff;
    --accent-cyan-glow: rgba(0, 229, 255, 0.4);
    --accent-red: #ff4d4d;
    --accent-red-glow: rgba(255, 77, 77, 0.4);
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Layout Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 3rem 0;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    background: rgba(18, 18, 22, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-family: 'AlientoLogo', var(--font-heading);
    font-size: 2.2rem;
    font-weight: normal;
    letter-spacing: 1px;
    color: var(--text-primary);
    text-shadow: 0 0 10px var(--accent-cyan-glow);
}

.navbar-brand span {
    color: var(--accent-cyan);
}

.brand-font {
    font-family: 'AlientoLogo', var(--font-heading);
    font-weight: normal;
    color: #ffffff;
}

.brand-font span {
    color: var(--accent-cyan);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-cyan);
    transition: var(--transition-smooth);
    box-shadow: 0 0 8px var(--accent-cyan-glow);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--text-primary);
}

/* Dropdown Menu Styles */
.nav-item-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(26, 26, 36, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 229, 255, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    min-width: 320px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    z-index: 1000;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(15px);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem;
    border-radius: 12px;
    transition: var(--transition-smooth);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
}

.dropdown-item:hover {
    background: rgba(0, 229, 255, 0.05);
    border-color: rgba(0, 229, 255, 0.3);
    transform: scale(1.02);
}

.dropdown-item img {
    width: 80px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
}

.dropdown-info {
    display: flex;
    flex-direction: column;
}

.dropdown-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.dropdown-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.dropdown-item:hover .dropdown-name {
    color: var(--accent-cyan);
}

/* Arrow indicator */
.nav-item-dropdown > a::before {
    content: '▾';
    position: absolute;
    right: -15px;
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.nav-item-dropdown:hover > a::before {
    transform: rotate(180deg);
}

.mobile-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
    animation: slowZoom 20s infinite alternate;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(18,18,22,0.3) 0%, rgba(18,18,22,1) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.5s;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--accent-cyan);
    color: #000;
    box-shadow: 0 4px 15px var(--accent-cyan-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--accent-cyan-glow);
    background: #00f0ff;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--accent-red);
    box-shadow: 0 4px 15px var(--accent-red-glow);
}

.btn-secondary:hover {
    background: var(--accent-red);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--accent-red-glow);
}

.btn-download-glow {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-download-glow:hover {
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.45) !important;
    border-color: var(--accent-cyan) !important;
    background: rgba(0, 229, 255, 0.1) !important;
    transform: translateY(-3px) scale(1.02) !important;
    color: var(--accent-cyan) !important;
}

.btn-plugin-hero {
    background: #444450;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    min-width: 250px;
    font-size: 1.2rem;
}

.btn-plugin-hero:hover {
    background: var(--accent-cyan);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--accent-cyan-glow);
}

.btn-preview {
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 320px;
    background: var(--bg-surface);
    border: 2px solid var(--accent-cyan);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1000;
    pointer-events: none;
}

.btn-preview img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}

.btn-plugin-hero:hover .btn-preview {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.btn-preview::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px;
    border-style: solid;
    border-color: var(--accent-cyan) transparent transparent transparent;
}

/* Cards / Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: var(--bg-surface);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transition: var(--transition-smooth);
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: var(--bg-surface-hover);
}

.card:hover::before {
    left: 100%;
    transition: 0.7s;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-cyan);
}

.card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.card-recommended {
    border: 2px solid var(--accent-cyan) !important;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.2);
    transform: scale(1.03);
    z-index: 1;
}

.card-recommended::after {
    content: "RECOMENDADO";
    position: absolute;
    top: 12px;
    right: -32px;
    background: var(--accent-cyan);
    color: #000;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 40px;
    transform: rotate(45deg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}

.card-recommended:hover {
    transform: scale(1.05) translateY(-5px) !important;
    box-shadow: 0 15px 40px rgba(0, 229, 255, 0.3);
}

/* Language Selector */
.lang-selector {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, var(--bg-surface) 0%, var(--bg-dark) 100%);
    text-align: center;
}

.lang-selector h1 {
    font-size: 3rem;
    margin-bottom: 3rem;
    animation: fadeInDown 1s forwards;
}

.lang-selector h1 .brand-font {
    font-size: 5rem;
    display: block;
    margin-top: 1rem;
    text-shadow: 0 0 15px var(--accent-cyan-glow);
}

#welcome-word {
    transition: opacity 0.5s ease-in-out;
}

.lang-grid {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 1s forwards 0.3s;
    opacity: 0;
}

.lang-btn {
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.lang-btn:hover {
    background: var(--accent-cyan);
    color: #000;
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--accent-cyan-glow);
}

.lang-switcher {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.3rem;
    padding: 0.2rem 0.55rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s, color 0.2s;
}

.lang-switcher:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

.lang-switcher.active {
    background: rgba(255, 255, 255, 0.18);
}

/* Features */
.feature-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
}

.feature-row:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-red);
}

.feature-image {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    position: relative;
}

.feature-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition-smooth);
}

.feature-image:hover img {
    transform: scale(1.05);
}

/* Footer */
footer {
    background: var(--bg-surface);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}

.footer-content {
    margin-bottom: 2rem;
}

.footer-content h3 {
    font-family: 'AlientoLogo', var(--font-heading);
    font-weight: normal;
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-shadow: 0 0 10px var(--accent-cyan-glow);
}

.footer-bottom {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Animated Banner System (Transparent/Text Focus) */
.main-banner {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: transparent;
    margin-top: 80px;
}

.banner-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: opacity 1.2s ease-in-out;
}

.banner-slide.active {
    opacity: 1;
    z-index: 2;
}

.banner-overlay {
    display: none; /* Totalmente transparente */
}

.banner-content {
    position: relative;
    z-index: 4;
    text-align: center;
    width: 90%;
    max-width: 1100px;
}

.banner-content > * {
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1) 0.3s;
}

.banner-slide.active .banner-content > * {
    opacity: 1;
    transform: translateY(0);
}

.banner-content h2 {
    color: var(--text-primary);
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(to bottom, #fff 40%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.15));
    line-height: 1.2;
}

.banner-content h2 span {
    color: var(--accent-cyan);
    -webkit-text-fill-color: var(--accent-cyan);
    text-shadow: 0 0 20px var(--accent-cyan-glow);
}

/* Shimmer Effect */
.banner-slide.active h2 {
    animation: textShimmer 3s ease-in-out infinite alternate;
}

@keyframes textShimmer {
    from { filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.1)); }
    to { filter: drop-shadow(0 0 25px rgba(0, 229, 255, 0.4)); }
}

.banner-slide .brand-font {
    font-size: 8rem;
    letter-spacing: 4px;
    text-transform: none;
    display: block;
    background: linear-gradient(90deg, #fff, var(--accent-cyan), #fff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 5s linear infinite;
}

@keyframes shine {
    to { background-position: 200% center; }
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Modal */
.modal {
    display: flex;
    visibility: hidden;
    pointer-events: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 18, 22, 0.8);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    align-items: center;
    justify-content: center;
}

.modal.show {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
}

.modal-content {
    background: var(--bg-surface);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 229, 255, 0.2);
    width: 90%;
    max-width: 800px;
    position: relative;
    transform: scale(0.8) translateY(50px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

.modal.show .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    color: var(--text-secondary);
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.close-modal:hover {
    color: var(--accent-red);
    transform: rotate(90deg);
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.platform-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition-smooth);
}

.platform-card img {
    margin-bottom: 1rem;
    transition: var(--transition-smooth);
}

.platform-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.platform-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.platform-card:hover {
    background: var(--bg-surface-hover);
    border-color: var(--accent-cyan);
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 229, 255, 0.1);
}

.platform-card:hover img {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .platform-grid {
        grid-template-columns: 1fr;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: var(--bg-surface);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s;
        box-shadow: -5px 0 20px rgba(0,0,0,0.5);
    }
    
    .nav-links.nav-active {
        right: 0;
    }
    
    .mobile-toggle {
        display: block;
        z-index: 1001;
    }
    
    .hero h1 {
        font-size: 3rem;
    }

    .banner-slide h2 {
        font-size: 2rem;
    }

    .banner-slide .brand-font {
        font-size: 3.5rem;
    }
    
    .feature-row, .feature-row:nth-child(even) {
        flex-direction: column !important;
        gap: 3rem;
        text-align: center;
        padding: 2rem 1rem !important;
    }
    
    .feature-image {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Feature Explorer */
.feature-explorer {
    display: flex;
    gap: 2rem;
    background: var(--bg-surface);
    border-radius: 20px;
    border: 1px solid rgba(255, 77, 77, 0.2);
    overflow: hidden;
    min-height: 600px;
    margin-top: 2rem;
}

.feature-list {
    flex: 1;
    background: rgba(0,0,0,0.2);
    padding: 1.5rem;
    overflow-y: auto;
    max-height: 600px;
}

.feature-item {
    padding: 1.2rem;
    cursor: pointer;
    border-radius: 12px;
    transition: var(--transition-smooth);
    margin-bottom: 0.5rem;
    border: 1px solid transparent;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.feature-item.active {
    background: rgba(255, 77, 77, 0.1);
    border-color: var(--accent-red);
}

.feature-item h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.feature-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feature-item.active p {
    -webkit-line-clamp: unset;
}

.feature-display {
    flex: 1.8;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle at center, rgba(255, 77, 77, 0.05) 0%, transparent 100%);
}

.feature-display-content {
    animation: featureFadeIn 0.5s ease-out;
}

.feature-display img {
    width: 100%;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.05);
}

.feature-display h2 {
    color: var(--accent-red);
    margin-bottom: 1.2rem;
    font-size: 2rem;
}

.feature-display p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

@keyframes featureFadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 992px) {
    .feature-explorer {
        flex-direction: column;
    }
    .feature-list {
        max-height: 400px;
    }
    .feature-display {
        padding: 2rem;
    }
}

/* Rotating Banner Effects - Plugins Page */
.rotating-text-container {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.flashy-text {
    font-size: 3.8rem;
    line-height: 1.1;
    font-weight: 800;
    text-transform: none;
    letter-spacing: -0.02em;
    position: relative;
    color: #fff;
    text-align: center;
    max-width: 1050px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 1, 0.3, 1), filter 0.8s ease;
}

.flashy-text span {
    color: var(--accent-cyan);
    font-weight: 800;
}

.flashy-text.changing {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(5px);
}

.flashy-text.active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

@media (max-width: 768px) {
    .flashy-text {
        font-size: 2.4rem;
        min-height: 120px;
    }
    .rotating-text-container {
        min-height: 150px;
    }
}

/* Info Badge & Popup Styles */
.info-badge-container {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

.info-badge {
    background: var(--accent-cyan);
    color: black;
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 20px;
    cursor: help;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
}

.info-popup {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 280px;
    background: rgba(26, 26, 36, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    color: white;
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: left;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
}

.info-badge-container:hover .info-popup,
.info-popup.active-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.info-popup p {
    margin: 0;
}

.info-popup strong {
    color: var(--accent-cyan);
}

/* Mobile adjustments for popup */
@media (max-width: 768px) {
    .info-popup {
        right: -10px;
        width: 250px;
    }
}
/* Promo Badge & Popup Styles */
.promo-badge-container {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
}

.promo-badge {
    background: var(--accent-red);
    color: white;
    padding: 0.4rem 1.2rem;
    font-size: 0.8rem;
    font-weight: 900;
    border-radius: 20px;
    cursor: help;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 77, 77, 0.6);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    overflow: hidden;
    min-width: 120px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.3);
    animation: promo-wiggle 4s ease-in-out infinite;
}

@keyframes promo-wiggle {
    0%, 70%, 100% { transform: rotate(0deg) scale(1); }
    75% { transform: rotate(-8deg) scale(1.1); }
    85% { transform: rotate(8deg) scale(1.1); }
    95% { transform: rotate(-4deg) scale(1.05); }
}

.promo-text {
    position: absolute;
    width: 100%;
    text-align: center;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.promo-text-1 {
    animation: promo-cycle-1 5s infinite;
}

.promo-text-2 {
    animation: promo-cycle-2 5s infinite;
    transform: translateY(30px);
    opacity: 0;
}

@keyframes promo-cycle-1 {
    0%, 45% { transform: translateY(0); opacity: 1; }
    50%, 95% { transform: translateY(-30px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes promo-cycle-2 {
    0%, 45% { transform: translateY(30px); opacity: 0; }
    50%, 95% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(30px); opacity: 0; }
}

/* Flashy Red Glow Pulse */
.promo-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
    animation: promo-glow 1.5s infinite;
    pointer-events: none;
}

@keyframes promo-glow {
    0% { transform: scale(0.5); opacity: 0; }
    50% { opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 0; }
}

.promo-badge:hover {
    transform: scale(1.1) rotate(-2deg);
    background: #ff1a1a;
    box-shadow: 0 0 30px rgba(255, 77, 77, 0.8);
}

.promo-popup {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 300px;
    background: rgba(18, 18, 22, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 77, 77, 0.4);
    border-radius: 15px;
    padding: 1.5rem;
    color: white;
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: left;
    box-shadow: 0 20px 40px rgba(0,0,0,0.7);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
}

.promo-badge-container:hover .promo-popup,
.promo-popup.active-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.promo-popup strong {
    color: var(--accent-red);
}

/* Mobile adjustments for promo popup */
@media (max-width: 768px) {
    .promo-popup {
        left: -10px;
        width: 260px;
    }
}

/* --- Global Mobile Optimization --- */
@media (max-width: 768px) {
    /* Expand container to use more screen width */
    .container {
        width: 98% !important;
        max-width: 100% !important;
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    /* Reduce vertical spacing in sections */
    .section {
        padding: 2rem 0 !important;
    }

    /* Reduce excessive padding in cards and panels for more content space */
    .card, .pricing-card, .heavenly-inner {
        padding: 1.5rem !important;
    }

    /* Ensure all grid-based layouts collapse to 1 full-width column */
    div[style*="display: grid"], 
    .pricing-grid, 
    .grid-3 {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* Override restrictive inline styles for margins and padding */
    div[style*="padding: 3rem"], 
    div[style*="padding: 4rem"], 
    div[style*="padding: 3.5rem 2.5rem"],
    div[style*="padding: 2.5rem 2rem"] {
        padding: 1.5rem !important;
    }

    div[style*="max-width: 900px"], 
    div[style*="max-width: 1000px"],
    div[style*="max-width: 1100px"] {
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Scale down large headings to fit better */
    h1[style*="font-size: 6rem"],
    h1[style*="font-size: 4.5rem"] {
        font-size: 2.8rem !important;
    }

    h2[style*="font-size: 3.5rem"] {
        font-size: 2.2rem !important;
    }
}
