:root {
    --primary: #6c5ce7;
    --primary-dark: #5649c0;
    --primary-light: #a29bfe;
    --secondary: #00cec9;
    --secondary-dark: #00a8a5;
    --dark: #2d3436;
    --dark-light: #636e72;
    --light: #f5f6fa;
    --lighter: #ffffff;
    --danger: #d63031;
    --success: #00b894;
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

[data-theme="dark"] {
    --dark: #f5f6fa;
    --dark-light: #dfe6e9;
    --light: #1e272e;
    --lighter: #0e131b;
}

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

html,
body {
    width: 100%;
    overflow-x: hidden;
    position: relative;
    /* Lenis recomienda no usar scroll-behavior: smooth cuando la librería está activa */
}

/* Lenis Smooth Scrolling */
html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* Custom Scrollbar GTA 6 Style */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

header {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 2000px;
    background: rgba(30, 35, 37, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    padding: 12px 24px;
    z-index: 1000;
    transition: transform 0.3s ease, border-radius 0.3s ease, background-color 0.3s ease, top 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

header.scrolled {
    top: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] header {
    border: 1px solid rgba(108, 92, 231, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 2000px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    opacity: 0.9;
}

.logo-img {
    height: 38px;
    width: auto;
    margin-right: 12px;
    filter: drop-shadow(0 0 10px rgba(108, 92, 231, 0.4));
    transition: var(--transition);
}

.logo:hover .logo-img {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(108, 92, 231, 0.6));
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.footer-logo-img {
    height: 32px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(108, 92, 231, 0.3));
}

.footer-brand h3 {
    margin-bottom: 0 !important;
}

.footer-brand h3::after {
    display: none;
}

.logo i {
    margin-right: 10px;
    color: var(--secondary);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    padding: 5px;
    margin-right: 15px;
    box-sizing: content-box;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 3px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

nav {
    display: flex;
    align-items: center;
    transition: var(--transition);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a:hover {
    color: var(--primary);
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 30px;
}

#login-btn {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    padding: 10px 20px;
}

#login-btn:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
}

#login-btn i {
    color: inherit;
}

/* Language Selector */
.language-selector {
    display: flex;
    gap: 5px;
    margin: 0 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 3px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    align-items: center;
}

[data-theme="light"] .language-selector {
    background: rgba(108, 92, 231, 0.05);
    border-color: rgba(108, 92, 231, 0.2);
}

.lang-btn {
    background: none;
    border: none;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 15px;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.6;
}

[data-theme="light"] .lang-btn {
    color: var(--dark);
}

.lang-btn.active {
    background: var(--primary);
    color: white;
    opacity: 1;
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.4);
}

.lang-btn:hover:not(.active) {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    margin: 0 10px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 8px;
    right: -18px;
    bottom: 0;
    background-color: #3b372b;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--primary);
}

input:checked+.slider:before {
    transform: translateX(40px);
}

.slider .icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 14px;
}

.slider .sun {
    left: 8px;
    opacity: 0;
    transition: opacity 0.2s;
}

.slider .moon {
    right: 8px;
    opacity: 0.5;
    transition: opacity 0.2s;
}

input:checked+.slider .sun {
    opacity: 0.5;
}

input:checked+.slider .moon {
    opacity: 0;
}

.hero {
    padding: 165px 0 145px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 105%;
    min-height: 105%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: none;
    will-change: transform;
}


.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: -20px auto;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(150px, 100px) scale(1.1);
    }

    100% {
        transform: translate(-50px, 200px) scale(0.9);
    }
}

/* Floating 3D Badges */
.floating-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    animation: floatBadge 6s infinite ease-in-out;
    z-index: 3;
    pointer-events: none;
    will-change: transform;
    contain: layout style;
}

.floating-badge i {
    color: var(--secondary);
    font-size: 1.1rem;
}

.floating-badge.badge-1 {
    top: 50px;
    left: -120px;
    animation-delay: 0s;
}

.floating-badge.badge-2 {
    top: 150px;
    right: -100px;
    animation-delay: 2s;
}

.floating-badge.badge-3 {
    top: 350px;
    left: -140px;
    animation-delay: 3s;
}

@keyframes floatBadge {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

@media (max-width: 1100px) {
    .floating-badge {
        display: none;
        /* Hide on smaller screens to avoid overflow issues */
    }
}


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

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

/* Interactive Demo CSS */
.hero-interactive-demo {
    background: rgba(30, 35, 37, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    text-align: left;
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-interactive-demo:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(108, 92, 231, 0.3);
    border-color: rgba(108, 92, 231, 0.4);
}

.demo-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.demo-dots {
    display: flex;
    gap: 6px;
    margin-right: 15px;
}

.demo-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.demo-dots span:nth-child(1) {
    background: #ff5f56;
}

.demo-dots span:nth-child(2) {
    background: #ffbd2e;
}

.demo-dots span:nth-child(3) {
    background: #27c93f;
}

.demo-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #e0e0e0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.demo-logo-img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px;
}

.demo-status-dot {
    width: 8px;
    height: 8px;
    background: #00e676;
    border-radius: 50%;
    margin-left: auto;
    box-shadow: 0 0 8px rgba(0, 230, 118, 0.8);
    position: relative;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(0, 230, 118, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 230, 118, 0);
    }
}

.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1.1em;
    background-color: var(--primary-light);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blink 0.8s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.demo-chat {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-height: 280px;
    overflow: hidden;
}

.demo-message {
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 85%;
    font-size: 0.95rem;
    line-height: 1.5;
    animation: fadeIn 0.5s ease backwards;
}

.demo-message.user {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.demo-message.ai {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.3), rgba(0, 206, 201, 0.3));
    color: white;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(108, 92, 231, 0.2);
}

.demo-message.ai p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 1;
}

.typing-animation {
    display: flex;
    gap: 4px;
    padding: 5px 0;
}

.typing-animation span {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.typing-animation span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-animation span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* University Marquee CSS */
.university-marquee {
    width: 100%;
    overflow: hidden;
    padding: 60px 0 20px;
    background: transparent;
}

.marquee-title {
    text-align: center;
    color: var(--dark-light);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 30px;
}

.marquee-track-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.marquee-track-container::before,
.marquee-track-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-track-container::before {
    left: 0;
    background: linear-gradient(to right, var(--light) 0%, transparent 100%);
}

.marquee-track-container::after {
    right: 0;
    background: linear-gradient(to left, var(--light) 0%, transparent 100%);
}

[data-theme="dark"] .marquee-track-container::before {
    background: linear-gradient(to right, var(--light) 0%, transparent 100%);
}

[data-theme="dark"] .marquee-track-container::after {
    background: linear-gradient(to left, var(--light) 0%, transparent 100%);
}

.marquee-track {
    display: inline-flex;
    white-space: nowrap;
    animation: scrollMarquee 35s linear infinite;
    gap: 60px;
    padding-left: 0;
    width: max-content;
    pointer-events: none;
    /* Make it completely un-interactable */
    user-select: none;
    /* Prevent text selection */
}

/* Modern, minimalist "startup" style logos */
.uni-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--dark-light);
    opacity: 0.45;
    cursor: default;
    filter: grayscale(100%);
}

.uni-logo i {
    font-size: 1.6rem;
    opacity: 0.7;
}

@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 30px));
    }
}

.how-it-works,
.testimonials,
.faq,
.tools,
.pricing {
    contain: content;
}

.tool-card,
.pricing-card,
.step-card,
.testimonial-card,
.faq-item {
    transform: translateZ(0);
}

.tools {
    padding: 100px 0;
    background: var(--light);
    position: relative;
    overflow: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.8rem;
    font-weight: 700;
    position: relative;
    display: block;
    width: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 50%, var(--primary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shineText 5s linear infinite;
}

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

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 2px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.tool-card {
    padding: 45px 30px 40px;
    text-align: center;
    border-radius: 24px;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
}

[data-theme="light"] .tool-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(108, 92, 231, 0.12);
    box-shadow: 0 8px 32px rgba(108, 92, 231, 0.06);
}

.tool-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tool-card:hover {
    transform: translateY(-10px) scale(1.03);
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(108, 92, 231, 0.2);
}

[data-theme="light"] .tool-card:hover {
    box-shadow: 0 20px 50px rgba(108, 92, 231, 0.15);
}

.tool-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--primary));
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.tool-card:hover::before {
    opacity: 1;
    animation: borderGlow 3s ease infinite;
}

.tool-icon {
    width: 80px;
    height: 80px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.1), rgba(0, 206, 201, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.2rem;
    color: var(--primary);
    border: 1px solid rgba(108, 92, 231, 0.2);
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.1);
    transition: all 0.4s ease;
}

[data-theme="dark"] .tool-icon {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.15), rgba(0, 206, 201, 0.15));
    border-color: rgba(108, 92, 231, 0.3);
}

.tool-icon i {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tool-card:hover .tool-icon {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 30px rgba(108, 92, 231, 0.2);
    border-color: var(--secondary);
}

.tool-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
    min-height: 3.5rem;
}

.tool-card p {
    color: var(--dark-light);
    margin-bottom: 25px;
    font-size: 0.95rem;
    flex-grow: 1;
}

.tool-card .btn {
    margin-top: auto;
    align-self: center;
}

.pricing {
    padding: 80px 0;
    background-color: #f5f7ff;
}

[data-theme="dark"] .pricing {
    background-color: #1a2029;
}

.pricing-plans-container {
    margin-top: 40px;
}

.pricing-card {
    background: var(--lighter);
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pricing-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .pricing-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(108, 92, 231, 0.15);
    border-color: var(--primary-light);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.3), inset 0 0 10px rgba(108, 92, 231, 0.05);
    animation: pulseFeatured 3s infinite alternate;
}

@keyframes pulseFeatured {
    0% {
        box-shadow: 0 0 20px rgba(108, 92, 231, 0.3), inset 0 0 10px rgba(108, 92, 231, 0.05);
        border-color: var(--primary);
    }

    100% {
        box-shadow: 0 0 40px rgba(0, 206, 201, 0.4), inset 0 0 15px rgba(0, 206, 201, 0.1);
        border-color: var(--secondary);
        transform: scale(1.06);
    }
}

.pricing-card.featured::before {
    content: 'Más Popular';
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--primary);
    color: white;
    padding: 5px 30px;
    font-size: 0.8rem;
    font-weight: 600;
    transform: rotate(45deg);
}

.pricing-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.price {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
}

.price span {
    font-size: 1rem;
    color: var(--dark-light);
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
    flex-grow: 1;
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    color: var(--dark-light);
    position: relative;
    padding-left: 25px;
}

[data-theme="dark"] .pricing-features li {
    border-bottom: 1px solid #3a434c;
}

.pricing-features li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--success);
}

.pricing-card .btn {
    margin-top: auto;
}

footer {
    background: #2d3436;
    color: white;
    padding: 70px 0 20px;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] footer {
    background: #1a1e21;
}

.footer-newsletter {
    margin-bottom: 60px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .footer-newsletter {
    background: rgba(108, 92, 231, 0.05);
    border-color: rgba(108, 92, 231, 0.1);
}

.newsletter-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.newsletter-text {
    flex: 1;
    min-width: 300px;
}

.newsletter-text h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .newsletter-text h3 {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.newsletter-text p {
    color: #bbb;
    font-size: 1.1rem;
    margin-bottom: 0;
}

[data-theme="light"] .newsletter-text p {
    color: var(--dark-light);
}

.newsletter-form {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.newsletter-input-group {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

[data-theme="light"] .newsletter-input-group {
    background: white;
    border-color: rgba(108, 92, 231, 0.2);
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.05);
}

.newsletter-input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(108, 92, 231, 0.3);
}

.newsletter-input-group input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 20px;
    color: white;
    font-size: 1rem;
    outline: none;
}

[data-theme="light"] .newsletter-input-group input {
    color: var(--dark);
}

.newsletter-input-group .btn {
    padding: 10px 25px;
    border-radius: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.footer-column p {
    color: #bbb;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #bbb;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-column ul li a:hover {
    color: white;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.1rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bbb;
    font-size: 0.9rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}



.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

.btn-primary::after,
.btn-secondary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: none;
}

.btn-primary:hover::after,
.btn-secondary:hover::after {
    animation: shimmer 0.8s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.6);
}

.btn-secondary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

.btn-secondary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.6);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-large {
    padding: 15px 35px;
    font-size: 1.1rem;
}

.theme-toggle {
    background: transparent;
    border: none;
    color: var(--dark);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: rgba(108, 92, 231, 0.1);
}

[data-theme="dark"] .theme-toggle {
    color: var(--dark);
}

.theme-toggle i {
    transition: transform 0.3s ease;
}

.theme-toggle.active i {
    transform: rotate(180deg);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--lighter);
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    padding: 30px;
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: var(--transition);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: var(--danger);
    background: rgba(214, 48, 49, 0.1);
}

.modal h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary);
    font-size: 2rem;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--dark);
}

[data-theme="dark"] .form-group input {
    background: #3a434c;
    border-color: #3a434c;
    color: #fff;
}

.password-container {
    position: relative;
    width: 100%;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #777;
    transition: var(--transition);
    font-size: 1.1rem;
    z-index: 5;
}

.password-toggle:hover {
    color: var(--primary);
}

.password-match-msg {
    font-size: 0.85rem;
    margin-top: -10px;
    margin-bottom: 15px;
    min-height: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-5px);
}

.password-match-msg.visible {
    opacity: 1;
    transform: translateY(0);
}

.password-match-msg i {
    font-size: 0.9rem;
}

.password-match-msg.match {
    color: #00b894;
}

.password-match-msg.no-match {
    color: #d63031;
}

.form-group input {
    width: 100%;
    padding: 14px 45px 14px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background: #f9f9f9;
}

.form-group input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
    background: white;
}

[data-theme="dark"] .form-group input:focus {
    background: #2d3436;
}

.form-footer {
    text-align: center;
    margin-top: 25px;
    color: var(--dark-light);
    font-size: 0.95rem;
}

.form-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.form-footer a:hover {
    text-decoration: underline;
}

.auth-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 28px 0 18px 0;
    color: #7b7b7b;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, #a29bfe 0%, #00cec9 100%);
    border-radius: 2px;
    opacity: 0.5;
}

.auth-divider span {
    padding: 0 18px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(108, 92, 231, 0.07);
}

[data-theme="dark"] .auth-divider span {
    background: var(--lighter);
}

.social-auth {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.google-signin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    border-radius: 12px;
    background: white;
    color: #444;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #dadce0;
    padding: 0 24px;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}

.google-signin-btn i {
    font-size: 1.2rem;
    background: conic-gradient(from -45deg, #ea4335 110deg, #4285f4 90deg 180deg, #34a853 180deg 270deg, #fbbc05 270deg) 73% 55%/150% 150% no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .google-signin-btn {
    background: #131314;
    color: #e3e3e3;
    border-color: #8e918f;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.google-signin-btn:hover {
    background: #f8f9fa;
    border-color: #d2e3fc;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(60, 64, 67, 0.2);
}

[data-theme="dark"] .google-signin-btn:hover {
    background: #1e1f20;
    border-color: #a8aba7;
}

.google-signin-btn:active {
    background: #eeeeee;
    transform: translateY(0);
}

.custom-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 350px;
    width: 100%;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    z-index: 9999;
    transform: translateX(150%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.4s ease;
    border-left: 5px solid;
}

.custom-alert.show {
    transform: translateX(0);
    opacity: 1;
}

.custom-alert i {
    margin-right: 15px;
    font-size: 1.5rem;
}

.custom-alert-content {
    flex: 1;
}

.custom-alert-title {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 1.05rem;
}

.custom-alert-message {
    font-size: 0.9rem;
    opacity: 0.9;
}

.custom-alert-close {
    margin-left: 15px;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
}

.custom-alert-close:hover {
    opacity: 1;
}

.alert-success {
    background-color: rgba(0, 184, 148, 0.9);
    color: white;
    border-left-color: #00a884;
}

.alert-error {
    background-color: rgba(214, 48, 49, 0.9);
    color: white;
    border-left-color: #b82c2c;
}

.alert-warning {
    background-color: rgba(253, 203, 110, 0.9);
    color: #5c4b00;
    border-left-color: #fdcb6e;
}

.alert-info {
    background-color: rgba(45, 152, 218, 0.9);
    color: white;
    border-left-color: #2d98da;
}

.tools-slider {
    width: 100%;
    overflow: hidden;
}

.pricing-plans-container {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.pricing-plans-container .swiper-slide {
    height: auto;
    display: flex;
    padding: 10px 5px;
}

.pricing-plans-container .swiper-wrapper {
    align-items: stretch;
}

.tools-slider .swiper-slide,
.pricing-slider .swiper-slide {
    height: auto;
    display: flex;
    padding: 10px;
}

.tools-slider .tool-card,
.pricing-plans-container .pricing-card {
    width: 100%;
    height: 100%;
}

.swiper-pagination {
    position: relative;
    margin-top: 40px;
}

.swiper-pagination-bullet {
    background: var(--primary-light);
    opacity: 0.5;
    width: 10px;
    height: 10px;
}

[data-theme="dark"] .swiper-pagination-bullet {
    background: white;
}

.swiper-pagination-bullet-active {
    background: var(--primary);
    opacity: 1;
}

[data-theme="dark"] .swiper-pagination-bullet-active {
    background: var(--primary-light);
}

@media (max-width: 992px) {

    .menu-toggle {
        display: flex;
    }

    .hero-content {
        position: relative;
        z-index: 2;
        max-width: 800px;
        margin: 0 auto;
    }

    .header-content {
        flex-wrap: wrap;
        position: relative;
    }

    nav {
        left: 0;
        right: 0;
        width: 100% !important;
        border: none;
        padding: 0 20px;
        margin: 0;
        flex-direction: column;
        justify-content: flex-start;
        transition: var(--transition);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        box-sizing: border-box;
        margin-top: 0px;
        max-height: 0;
        overflow: hidden;
    }

    nav.active {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
        max-height: 100vh;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    nav ul li {
        margin: 0;
    }

    nav ul li a {
        padding: 12px 0;
        display: block;
        font-size: 1.1rem;
        color: white;
    }

    .auth-buttons {
        margin: 20px 0 0;
        width: 100%;
        flex-direction: column;
        gap: 12px;
    }

    .auth-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .theme-switch {
        margin: 15px auto;
    }

    header.active {
        border-radius: 20px 20px 20px 20px;
        box-shadow: none;
        border-bottom: none;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 250px;
    }

    .slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: -10px;
        right: -10px;
        bottom: 0;
        background-color: #1f1f1d;
        transition: .4s;
        border-radius: 34px;
    }

    input:checked+.slider:before {
        transform: translateX(50px);
    }
}

@media (max-width: 768px) {

    .tools-grid {
        display: none;
    }

    .tools-slider {
        display: block;
    }

    .hero {
        padding: 130px 0;
    }

    .hero h1 {
        font-size: 3.6rem;
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .modal-content {
        padding: 30px 20px;
        margin: 0 15px;
        width: calc(100% - 30px);
    }

    #register-modal .modal-content {
        max-width: 100% !important;
        width: 95% !important;
        padding: 20px !important;
        margin: 0 10px !important;
    }

    input,
    textarea,
    select {
        font-size: 16px !important;
    }

    button,
    [onclick] {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    #register-btn {
        padding: 10px 20px;
        min-width: 140px;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .header-content {
        padding: 0;
    }

    .logo {
        font-size: 1.5rem;
        padding-left: 0;
    }

    .menu-toggle {
        width: 25px;
        height: 18px;
        margin-right: 0;
    }

    .menu-toggle span {
        height: 2.5px;
    }

    nav {
        width: 85%;
        padding-left: 20px;
        padding-right: 20px;
    }

    nav.active {
        padding-top: 40px;
        padding-bottom: 30px;
    }

    nav ul li a {
        padding: 12px 0;
        display: block;
        font-size: 1.1rem;
    }

    .auth-buttons {
        margin: 20px 0 0;
        width: 100%;
        flex-direction: column;
        gap: 12px;
    }

    .auth-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .modal-content {
        width: 95%;
        padding: 25px 15px;
    }

    .custom-alert {
        max-width: calc(100% - 40px);
        right: 20px;
        left: 20px;
    }

    footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-column {
        padding: 0;
        margin-bottom: 20px;
    }

    .footer-column h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
        padding-bottom: 8px;
    }

    .footer-column p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .footer-column ul li {
        margin-bottom: 8px;
    }

    .footer-column ul li a {
        font-size: 0.9rem;
        padding: 4px 0;
    }

    .social-links {
        gap: 10px;
        margin-top: 15px;
    }

    .social-links a {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .footer-bottom {
        padding-top: 20px;
        font-size: 0.8rem;
    }

}

#main-nav ul li:nth-child(1),
#main-nav ul li:nth-child(2),
#main-nav ul li:nth-child(3),
#main-nav ul li:nth-child(4),
#main-nav ul li:nth-child(5) {
    display: none;
}

@media (max-width: 991px) {

    #main-nav ul li:nth-child(1),
    #main-nav ul li:nth-child(2),
    #main-nav ul li:nth-child(3),
    #main-nav ul li:nth-child(4),
    #main-nav ul li:nth-child(5) {
        display: block;
    }
}

.payment-methods {
    text-align: center;
    margin: 40px 0;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 8px;
}

.payment-methods h3 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 2rem;
    color: var(--dark-light);
    margin-bottom: 15px;
}

.payment-note {
    font-size: 0.8rem;
    color: var(--dark-light);
    max-width: 600px;
    margin: 0 auto;
}

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    margin: 20px 0;
    padding: 15px;
    background: rgba(108, 92, 231, 0.1);
    border-radius: 10px;
    border-left: 3px solid var(--primary);
}

.terms-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid var(--primary-light);
    border-radius: 4px;
    margin-right: 12px;
    margin-top: 3px;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.terms-checkbox input[type="checkbox"]:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.terms-checkbox input[type="checkbox"]:checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    color: white;
    font-size: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.terms-checkbox label {
    font-size: 0.85rem;
    color: var(--dark-light);
    line-height: 1.5;
    cursor: pointer;
    user-select: none;
}

.terms-checkbox a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.terms-checkbox a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

[data-theme="light"] .terms-checkbox {
    background: rgba(108, 92, 231, 0.05);
    border-left-color: var(--primary-light);
}

.login-terms-notice {
    font-size: 0.8rem;
    color: var(--dark-light);
    margin-top: 20px;
    text-align: center;
    padding: 0 15px;
}

.login-terms-notice a {
    color: var(--primary);
    font-weight: 500;
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: 500px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--bg-card);
}

.chat-history {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: var(--bg-input);
}

.chat-message {
    display: flex;
    margin-bottom: 15px;
    max-width: 80%;
}

.ai-message {
    align-self: flex-start;
}

.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    flex-shrink: 0;
    color: var(--dark);
}

.message-content {
    padding: 10px 15px;
    border-radius: 18px;
    background-color: var(--bg-card);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    word-break: break-word;
    color: var(--dark);
    max-width: 100%;
}

.ai-message .message-content {
    background-color: rgba(45, 152, 218, 0.2);
    border-bottom-left-radius: 0;
}

.user-message .message-content {
    background-color: rgba(108, 92, 231, 0.2);
    border-bottom-right-radius: 0;
}

.chat-input-container {
    display: flex;
    padding: 10px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-card);
    align-items: center;
}

.chat-textarea {
    flex-grow: 1;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 10px 15px;
    resize: none;
    outline: none;
    max-height: 150px;
    font-family: inherit;
    background-color: var(--bg-input);
    color: var(--dark);
}

.chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
}

.chat-option-btn {
    white-space: nowrap;
}

.typing-indicator {
    display: flex;
    padding: 10px 15px;
    background-color: rgba(45, 152, 218, 0.2);
    border-radius: 18px;
    border-bottom-left-radius: 0;
    margin-bottom: 15px;
    width: fit-content;
}

.typing-dots {
    display: flex;
    align-items: center;
    height: 17px;
}

.typing-dots div {
    width: 8px;
    height: 8px;
    background-color: var(--dark-light);
    border-radius: 50%;
    display: inline-block;
    margin: 0 2px;
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-dots div:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots div:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {

    0%,
    80%,
    100% {
        transform: scale(0.6);
    }

    40% {
        transform: scale(1);
    }
}

@media (max-width: 992px) {
    .chat-container {
        height: 600px;
    }

    .chat-message {
        max-width: 90%;
    }
}

@media (max-width: 576px) {
    .chat-input-container {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .chat-textarea {
        width: 100%;
    }

    #send-message {
        width: 100%;
    }

    .chat-message {
        max-width: 95%;
    }
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.download-options {
    display: flex;
    gap: 8px;
}

.history-item {
    transition: transform 0.2s ease;
}

.history-item:hover {
    transform: translateY(-2px);
}

.file-upload-label {
    cursor: pointer;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.file-upload-label:hover {
    border-color: var(--primary);
    background: rgba(108, 92, 231, 0.05);
}

.tool-actions .btn {
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.tool-actions .btn:hover {
    transform: translateY(-2px);
}

.download-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    min-width: 120px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.download-btn i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.download-btn:active {
    transform: translateY(0);
}

.btn-word {
    background: linear-gradient(135deg, #2b579a, #2b579a);
    color: white;
}

.btn-word:hover {
    background: linear-gradient(135deg, #2b579a, #3b6bb4);
    box-shadow: 0 6px 12px rgba(43, 87, 154, 0.3);
}

.btn-pdf {
    background: linear-gradient(135deg, #f40f02, #d30a00);
    color: white;
}

.btn-pdf:hover {
    background: linear-gradient(135deg, #f40f02, #e50c00);
    box-shadow: 0 6px 12px rgba(244, 15, 2, 0.3);
}

.btn-txt {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
}

.btn-txt:hover {
    background: linear-gradient(135deg, #6c757d, #7e858c);
    box-shadow: 0 6px 12px rgba(108, 117, 125, 0.3);
}

.btn-ppt {
    background: linear-gradient(135deg, #d35400, #b84400);
    color: white;
}

.btn-ppt:hover {
    background: linear-gradient(135deg, #d35400, #e35c00);
    box-shadow: 0 6px 12px rgba(211, 84, 0, 0.3);
}

.download-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.download-btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }

    20% {
        transform: scale(20, 20);
        opacity: 0.3;
    }

    100% {
        transform: scale(50, 50);
        opacity: 0;
    }
}

.download-btn.small {
    padding: 8px 16px;
    font-size: 0.8rem;
    min-width: 100px;
}

.download-btn.small i {
    font-size: 1rem;
    margin-right: 6px;
}

@media (max-width: 768px) {
    .download-options {
        flex-direction: column;
        width: 100%;
    }

    .download-btn {
        width: 100%;
        justify-content: center;
    }
}

@keyframes downloadAnimation {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(3px);
    }

    100% {
        transform: translateY(0);
    }
}

.download-btn.downloading i {
    animation: downloadAnimation 1s infinite;
}

.beta-title {
    font-size: 4.2rem;
    line-height: 1.2;
    margin-bottom: 45px;
    font-weight: 750;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.beta-title strong {
    font-style: italic;
    opacity: 0.9;
    font-weight: 800;
}

@keyframes fadeInSlideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content .beta-title,
.hero-content p,
.hero-content .cta-buttons {
    opacity: 0;
}

.hero-content .beta-title {
    animation: fadeInSlideUp 0.8s ease-out 0.2s forwards;
}

.hero-content p {
    animation: fadeInSlideUp 0.8s ease-out 0.5s forwards;
}

.hero-content .cta-buttons {
    animation: fadeInSlideUp 0.8s ease-out 0.8s forwards;
}

@media (max-width: 992px) {
    .hero-content .beta-title {
        animation: fadeInSlideUp 0.8s ease-out 0.2s forwards;
    }

    .hero-content p {
        animation: fadeInSlideUp 0.8s ease-out 0.5s forwards;
    }

    .hero-content .cta-buttons {
        animation: fadeInSlideUp 0.8s ease-out 0.8s forwards;
    }
}

.social-proof {
    padding: 60px 0;
    background: var(--lighter);
    text-align: center;
}

[data-theme="dark"] .social-proof {
    background: var(--light);
}

.proof-title {
    font-size: 1.8rem;
    color: var(--dark-light);
    margin-bottom: 40px;
    font-weight: 600;
}

.stats-grid-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item-v2 {
    background-color: var(--white);
    padding: 25px 15px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

[data-theme="dark"] .stat-item-v2 {
    background-color: var(--dark-element);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.stat-item-v2:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 8px;
    display: block;
}

.stat-label {
    font-size: 1rem;
    color: var(--dark-light);
    margin: 0;
    font-weight: 500;
}

@media (max-width: 768px) {
    .stats-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-item-v2:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 300px;
        margin: 0 auto;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .proof-title {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }
}

/* --- PREMIUM EFFECTS & OPTIMIZATION --- */
.hero {
    overflow: hidden;
}

/* Premium Card Styles */
.tool-card,
.pricing-card,
.step-card,
.testimonial-card,
.faq-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: inherit;
    will-change: transform;
}

[data-theme="light"] .tool-card,
[data-theme="light"] .pricing-card,
[data-theme="light"] .step-card,
[data-theme="light"] .testimonial-card,
[data-theme="light"] .faq-item {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(108, 92, 231, 0.18);
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.1);
}

.tool-card:hover,
.pricing-card:hover,
.step-card:hover,
.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 12px 25px rgba(108, 92, 231, 0.15);
}

/* --- HOW IT WORKS - PREMIUM --- */
.how-it-works {
    padding: 100px 0;
    background: var(--light);
    position: relative;
    overflow: hidden;
}

/* Background glow orbs */
.hiw-bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.hiw-glow-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    left: -100px;
}

.hiw-glow-2 {
    width: 350px;
    height: 350px;
    background: var(--secondary);
    bottom: -80px;
    right: -80px;
}

.how-it-works .container {
    position: relative;
    z-index: 1;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 50px;
    align-items: start;
}

/* --- Step Card Premium --- */
.step-card {
    padding: 45px 30px 40px;
    text-align: center;
    border-radius: 24px;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: 0 12px;
}

[data-theme="light"] .step-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(108, 92, 231, 0.12);
    box-shadow: 0 8px 32px rgba(108, 92, 231, 0.06);
}

.step-card:hover {
    transform: translateY(-10px) scale(1.03);
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(108, 92, 231, 0.2);
}

[data-theme="light"] .step-card:hover {
    box-shadow: 0 20px 50px rgba(108, 92, 231, 0.15);
}

/* Animated gradient border glow on hover */
.step-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--primary));
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.step-card:hover::before {
    opacity: 1;
    animation: borderGlow 3s ease infinite;
}

@keyframes borderGlow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* --- Step Icon Wrapper --- */
.step-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    width: 90px;
    height: 90px;
}

.step-number {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 0.85rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
    border: 2px solid var(--light);
}

.step-icon {
    width: 80px;
    height: 80px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.1), rgba(0, 206, 201, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.4s ease;
    position: relative;
}

.step-icon i {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(108, 92, 231, 0.3));
}

.step-card:hover .step-icon {
    transform: scale(1.1) rotate(-5deg);
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.2), rgba(0, 206, 201, 0.2));
    box-shadow: 0 8px 30px rgba(108, 92, 231, 0.2);
}

/* --- Connector Line Between Cards --- */
.step-connector {
    display: none;
}

@media (min-width: 769px) {
    .step-connector {
        display: block;
        position: absolute;
        top: 68px;
        right: -26px;
        width: 50px;
        height: 2px;
        z-index: 3;
    }

    .step-connector::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, var(--primary), var(--secondary));
        border-radius: 2px;
        opacity: 0.4;
    }

    .step-connector::after {
        content: '';
        position: absolute;
        width: 8px;
        height: 8px;
        right: -4px;
        top: -3px;
        background: var(--secondary);
        border-radius: 50%;
        box-shadow: 0 0 10px rgba(0, 206, 201, 0.5);
        animation: connectorPulse 2s ease-in-out infinite;
    }

    .step-card:last-child .step-connector {
        display: none;
    }
}

@keyframes connectorPulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

.step-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--dark);
    font-weight: 700;
}

.step-card p {
    color: var(--dark-light);
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0;
}

/* --- TESTIMONIALS --- */
.testimonials {
    padding: 100px 0;
    background: var(--lighter);
    position: relative;
    overflow: hidden;
}

.testimonials-slider {
    padding: 30px 10px;
}

.testimonial-card {
    padding: 50px 30px;
    border-radius: 24px;
    text-align: center;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
}

[data-theme="light"] .testimonial-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(108, 92, 231, 0.12);
    box-shadow: 0 8px 32px rgba(108, 92, 231, 0.06);
}

.testimonial-card:hover {
    transform: translateY(-10px) scale(1.03);
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(108, 92, 231, 0.2);
}

[data-theme="light"] .testimonial-card:hover {
    box-shadow: 0 20px 50px rgba(108, 92, 231, 0.15);
}

.testimonial-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--primary));
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.testimonial-card:hover::before {
    opacity: 1;
    animation: borderGlow 3s ease infinite;
}

.quote-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
    opacity: 0.8;
}

.quote-icon i {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.testimonial-card p {
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--dark);
    flex-grow: 1;
}

.user-info {
    margin-top: auto;
}

.user-info strong {
    display: block;
    font-size: 1.15rem;
    color: var(--primary) !important;
    margin-top: 20px;
}

.user-info span {
    font-size: 0.9rem;
    color: var(--dark-light);
}

/* --- FAQ --- */
.faq {
    padding: 100px 0;
    background: var(--light);
}

.faq-list {
    max-width: 850px;
    margin: 50px auto 0;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: 15px;
}

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

.faq-question h3 {
    font-size: 1.15rem;
    font-weight: 600;
}

.faq-question i {
    color: black;
    transition: transform 0.3s ease;
}

[data-theme="dark"] .faq-question i {
    color: white;
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    opacity: 0;
}

.faq-answer.active {
    padding: 0 30px 25px;
    max-height: 300px;
    opacity: 1;
}

.faq-answer p {
    color: var(--dark-light);
    line-height: 1.7;
}

/* --- BACK TO TOP --- */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

#back-to-top.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 992px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .step-card {
        margin: 0;
    }

    .step-card:last-child {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 0;
        position: relative;
        padding-left: 40px;
    }

    /* Vertical timeline line */
    .steps-grid::before {
        content: '';
        position: absolute;
        left: 15px;
        top: 30px;
        bottom: 30px;
        width: 2px;
        background: linear-gradient(180deg, var(--primary), var(--secondary), var(--primary));
        opacity: 0.3;
        border-radius: 2px;
    }

    .step-card {
        margin: 0 0 20px 0;
        padding: 25px 20px;
        border-radius: 18px;
        text-align: left;
        display: grid;
        grid-template-columns: 60px 1fr;
        grid-template-rows: auto auto;
        gap: 4px 16px;
        position: relative;
    }

    .step-card .step-icon-wrap {
        grid-row: 1 / 3;
        grid-column: 1;
        align-self: center;
    }

    .step-card h3 {
        grid-column: 2;
        grid-row: 1;
        align-self: end;
    }

    .step-card p {
        grid-column: 2;
        grid-row: 2;
        align-self: start;
    }

    .step-card .step-connector {
        display: none !important;
    }

    .step-card:last-child {
        max-width: 100%;
        margin-bottom: 0;
    }

    /* Glowing dot on the timeline */
    .step-card::after {
        content: '';
        position: absolute;
        left: -33px;
        top: 35px;
        width: 12px;
        height: 12px;
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        border-radius: 50%;
        box-shadow: 0 0 12px rgba(108, 92, 231, 0.5);
        z-index: 2;
        border: 2px solid var(--light);
    }

    .step-card:hover::after {
        transform: scale(1.4);
        box-shadow: 0 0 20px rgba(108, 92, 231, 0.7);
    }

    /* Disable the gradient border animation on mobile for performance */
    .step-card::before {
        display: none;
    }

    .step-card:hover {
        transform: translateX(5px);
    }

    .step-icon-wrap {
        margin: 0;
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }

    .step-icon {
        width: 60px;
        height: 60px;
        border-radius: 16px;
        font-size: 1.5rem;
    }

    .step-number {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
        top: -5px;
        right: -5px;
    }

    .step-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0;
    }

    .step-card p {
        font-size: 0.88rem;
        line-height: 1.5;
    }

    .hiw-bg-glow {
        opacity: 0.08;
    }

    .hiw-glow-1 {
        width: 250px;
        height: 250px;
    }

    .hiw-glow-2 {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem;
    }

    .how-it-works,
    .testimonials,
    .faq {
        padding: 70px 0;
    }

    .newsletter-content {
        text-align: center;
        gap: 30px;
    }

    .newsletter-text {
        min-width: 100%;
    }

    .newsletter-form {
        min-width: 100%;
    }

    .newsletter-input-group {
        flex-direction: column;
        border-radius: 20px;
        padding: 15px;
        gap: 15px;
    }

    .newsletter-input-group input {
        text-align: center;
        padding: 5px;
    }

    .newsletter-input-group .btn {
        width: 100%;
    }
}