/* ===== DARK MODE (default) ===== */
:root {
    --primary: #1152d4;
    --primary-glow: rgba(17, 82, 212, 0.4);
    --secondary: #a855f7;
    --accent: #06b6d4;
    --bg-dark: #0a0f1a;
    --bg-card: rgba(16, 22, 34, 0.7);
    --text-main: #f8fafd;
    --text-dim: #94a3b8;
    --border: rgba(48, 63, 94, 0.6);
    --header-bg: rgba(10, 15, 26, 0.85);
    --logo-filter: invert(1) brightness(2); /* logos dark → become bright */
    --hero-mesh-opacity: 0.6;
}

/* ===== LIGHT MODE ===== */
body.light {
    --bg-dark: #f0f4ff;
    --bg-card: rgba(255, 255, 255, 0.85);
    --text-main: #0d1527;
    --text-dim: #4a5a7a;
    --border: rgba(17, 82, 212, 0.15);
    --header-bg: rgba(225, 235, 255, 0.95);
    --logo-filter: grayscale(1) opacity(0.7); /* logos stay dark */
    --hero-mesh-opacity: 0.08;
}

body.light {
    background-color: var(--bg-dark);
    color: var(--text-main);
}

body.light::before {
    background:
        radial-gradient(circle at 10% 10%, rgba(17, 82, 212, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(168, 85, 247, 0.04) 0%, transparent 40%);
}

body.light header {
    background: var(--header-bg);
    border-bottom-color: rgba(17, 82, 212, 0.12);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.08);
}

body.light nav a {
    color: var(--text-dim);
}

body.light nav a:hover {
    color: var(--text-main);
}

body.light .logo {
    color: var(--text-main);
}

body.light .hero-mesh {
    opacity: var(--hero-mesh-opacity);
}

body.light .feature-card,
body.light .card-showcase,
body.light .testimonial-card,
body.light .pricing-card,
body.light .stat-item,
body.light .faq-item {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(17, 82, 212, 0.12);
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

body.light .faq-answer {
    background: rgba(17, 82, 212, 0.03);
}

body.light footer {
    background: rgba(255,255,255,0.6);
    border-top-color: var(--border);
}

body.light .trusted-by {
    background: rgba(255,255,255,0.5) !important;
    border-color: var(--border) !important;
}

body.light .hero h1 {
    background: linear-gradient(to bottom, #0d1527, #4a5a7a);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header logo image — dark mode: invert to white */
body:not(.light) .logo img {
    filter: invert(1) brightness(10);
}

/* Header logo image — light mode: keep natural but slightly dim */
body.light .logo img {
    filter: none;
}

/* Light mode — button fixes */
body.light .btn-secondary {
    background: rgba(17, 82, 212, 0.06);
    color: var(--text-main);
    border-color: rgba(17, 82, 212, 0.25);
}

body.light .btn-secondary:hover {
    background: rgba(17, 82, 212, 0.12);
    color: var(--primary);
}

body.light .btn-primary {
    background: var(--primary);
    color: white;
}

/* In light mode, small nav button */
body.light .btn-small {
    background: var(--primary);
    color: white;
}

/* In light mode .pricing-card btn-secondary (the "Probar gratis" in Básico card) */
body.light .pricing-card .btn-secondary,
body.light .pricing-card a.btn-secondary {
    background: rgba(17, 82, 212, 0.08);
    color: var(--primary);
    border-color: var(--primary);
}

body.light .pricing-card .btn-primary,
body.light .pricing-card a.btn-primary {
    background: var(--primary);
    color: white;
}

/* Light mode — pricing popular card override */
body.light .pricing-card.popular {
    background: var(--primary);
}

body.light .pricing-card.popular h4,
body.light .pricing-card.popular .price,
body.light .pricing-card.popular p,
body.light .pricing-card.popular li {
    color: white !important;
}

body.light .pricing-card.popular .btn-primary {
    background: white;
    color: var(--primary);
}

/* CTA section in light mode */
body.light .cta-box {
    background: linear-gradient(135deg, var(--primary), #a855f7);
}

body.light .cta-box h2,
body.light .cta-box p {
    color: white;
}

/* Dark mode logos — force invert to make dark logos appear light */
body:not(.light) .partner-logo {
    filter: var(--logo-filter);
}

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

/* Layout Components */
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.theme-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    width: 52px;
    height: 28px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.hero-btns { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.hero-btn-container { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.version-badge { font-size: 0.8em; opacity: 0.7; margin-left: 4px; }
.microcopy { margin-left: 1rem; color: var(--text-dim); font-size: 0.85rem; }
.trusted-text { text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.75rem; color: var(--text-dim); font-weight: 600; }

@media (max-width: 1024px) {
    .hero-btns { align-items: center; }
    .hero-btn-container { justify-content: center; }
    .microcopy { margin-left: 0; margin-top: 1rem; }
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Utility Classes for Responsiveness */
.section-padding { padding: 8rem 2rem; }
.section-padding-small { padding: 4rem 2rem; }
.container { max-width: 1200px; margin: 0 auto; width: 100%; }
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-4 { margin-top: 4rem; }

@media (max-width: 768px) {
    .section-padding { padding: 4rem 1.5rem; }
    .section-padding-small { padding: 3rem 1rem; }
}

/* Background Gradients */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: 
        radial-gradient(circle at 10% 10%, rgba(17, 82, 212, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(168, 85, 247, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    backdrop-filter: blur(16px);
    background: var(--header-bg);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-decoration: none;
    color: var(--text-main);
}

.logo span {
    color: var(--primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

nav a {
    text-decoration: none;
    color: var(--text-dim);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--text-main);
}

.btn-small {
    padding: 0.6rem 1.25rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-small:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 6px 16px var(--primary-glow);
}

/* Hero Section */
.hero {
    padding: 6rem 1rem 8rem;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    animation: slideUp 0.8s ease-out;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(17, 82, 212, 0.1);
    border: 1px solid rgba(17, 82, 212, 0.3);
    border-radius: 99px;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
    background: linear-gradient(to bottom, #fff, #94a3b8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-dim);
    margin-bottom: 3rem;
    max-width: 540px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.btn-primary {
    padding: 1.25rem 2.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 35px var(--primary-glow);
}

.btn-secondary {
    padding: 1.25rem 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: var(--primary);
}

.hero-image {
    position: relative;
    animation: fadeIn 1.2s ease-out;
}

.hero-image img {
    width: 100%;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}

.hero-image::after {
    content: "";
    position: absolute;
    inset: -20px;
    background: var(--primary);
    filter: blur(80px);
    opacity: 0.15;
    z-index: -1;
    border-radius: 30px;
}

/* Features Table */
.showcase {
    padding: 8rem 2rem;
    background: rgba(255, 255, 255, 0.02);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.grid-2 {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.card-showcase {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
    transition: all 0.5s ease;
}

.card-showcase:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
}

.card-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

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

.card-content {
    padding: 2.5rem;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.card-content p {
    color: var(--text-dim);
}

/* Inventory Grid */
.features-container {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.feature-card {
    padding: 3rem;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    transform: translateY(-5px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(17, 82, 212, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.feature-icon i {
    font-size: 1.75rem;
}

.feature-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* Call to Action */
.cta {
    padding: 10rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    padding: 6rem 4rem;
    border-radius: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(17, 82, 212, 0.4);
}

.cta-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    opacity: 0.1;
}

.cta-box h2 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 2rem;
    position: relative;
}

.cta-box p {
    font-size: 1.5rem;
    margin-bottom: 4rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.cta-btns {
    display: flex;
    justify-content: center;
    gap: 3rem;
    position: relative;
}

.platform {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Footer */
footer {
    padding: 4rem 2rem;
    border-top: 1px solid var(--border);
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Modal for Download */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 4rem;
    border-radius: 24px;
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.modal h3 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.progress-container {
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border: 1px solid var(--border);
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    box-shadow: 0 0 20px var(--primary-glow);
    transition: width 0.1s linear;
}

/* Animations */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Transitions for interactive elements */
.faq-item, .pricing-card, .testimonial-card, .btn-primary, .btn-secondary {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Pricing Section */
.pricing {
    padding: 8rem 2rem;
    position: relative;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    position: relative;
    backdrop-filter: blur(12px);
}

.pricing-card.popular {
    border-color: var(--primary);
    transform: scale(1.05);
    background: rgba(17, 82, 212, 0.05);
    box-shadow: 0 20px 50px rgba(17, 82, 212, 0.2);
    z-index: 10;
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.pricing-header h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.price {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.price span {
    font-size: 1rem;
    color: var(--text-dim);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    margin: 2rem 0 3rem;
    flex-grow: 1;
}

.pricing-features li {
    padding: 0.75rem 0;
    color: var(--text-dim);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.pricing-features li i {
    color: var(--primary);
    font-size: 0.8rem;
}

.pricing-features li.disabled {
    opacity: 0.4;
    text-decoration: line-through;
}

.pricing-features li.disabled i {
    color: var(--text-dim);
}

/* Testimonials Section */
.testimonials {
    padding: 8rem 2rem;
    background: rgba(255, 255, 255, 0.01);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(8px);
}

.testimonial-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: white;
}

.client-details h5 {
    font-size: 1.1rem;
    color: var(--text-main);
}

.client-details span {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.testimonial-text {
    font-style: italic;
    color: var(--text-dim);
    line-height: 1.7;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    top: -1rem;
    left: -0.5rem;
    opacity: 0.1;
    color: var(--primary);
    font-family: serif;
}

/* FAQ Section */
.faq {
    padding: 8rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.03);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.7;
}

.faq-item.active {
    border-color: var(--primary);
}

.faq-item.active .faq-answer {
    padding: 0 2rem 1.5rem;
    max-height: 200px;
}

.faq-item.active i {
    transform: rotate(180deg);
    color: var(--primary);
}

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

/* Feature Stars Highlight */
.feature-card.starred {
    border-color: rgba(6, 182, 212, 0.4);
    background: rgba(6, 182, 212, 0.05);
}

.feature-card.starred .feature-icon {
    background: rgba(6, 182, 212, 0.2);
    color: var(--accent);
}

/* Microcopy */
.microcopy {
    display: block;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 1rem;
    opacity: 0.8;
}

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 3rem;
        padding-top: 4rem;
    }
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 0 auto;
        padding: 0 1rem;
    }
    .hero h1 {
        font-size: 3.5rem;
    }
    .hero-btns {
        flex-direction: column !important;
        align-items: center !important;
        width: 100%;
        margin-top: 2rem;
    }
    .hero-btns div {
        flex-direction: column !important;
        width: 100%;
        max-width: 400px;
        gap: 1rem !important;
    }
    .hero-image { max-width: 800px; margin: 0 auto; order: -1; }
    .pricing-grid, .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px !important;
        margin: 0 auto;
    }
    .pricing-card.popular { transform: scale(1); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { flex-direction: column; gap: 2rem; text-align: center; }
}

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

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(17, 82, 212, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(17, 82, 212, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(17, 82, 212, 0); }
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes glitch-1 {
  0%, 100% { clip-path: inset(0 0 95% 0); transform: translate(-3px, 0); }
  50%       { clip-path: inset(30% 0 50% 0); transform: translate(3px, 0); }
}

@keyframes glitch-2 {
  0%, 100% { clip-path: inset(60% 0 20% 0); transform: translate(3px, 0); }
  50%       { clip-path: inset(80% 0 5% 0); transform: translate(-3px, 0); }
}

/* Scroll Animation */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Shimmer Skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, rgba(255, 255, 255, 0.05) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Custom Cursor */
#custom-cursor {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s cubic-bezier(0.1, 0, 0, 1), background 0.2s;
    mix-blend-mode: normal;
}

#custom-cursor.active {
    transform: scale(3);
    background: var(--accent);
    opacity: 0.5;
}

@media (hover: none) {
    #custom-cursor { display: none; }
}

/* Tilt Effect Container */
.tilt-card {
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
    transform-style: preserve-3d;
}
.animate-on-scroll.tilt-card {
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s ease-out;
}

/* Mesh Gradient for Hero Background */
.hero-mesh {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.3;
    background: radial-gradient(at 50% 50%, var(--primary-glow) 0%, transparent 50%),
                radial-gradient(at 10% 10%, rgba(168, 85, 247, 0.1) 0%, transparent 40%),
                radial-gradient(at 90% 90%, rgba(6, 182, 212, 0.05) 0%, transparent 60%);
    animation: meshFlow 15s infinite alternate ease-in-out;
}

@keyframes meshFlow {
    from { transform: scale(1) rotate(0); }
    to { transform: scale(1.1) rotate(5deg); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-mesh { animation: none; }
}

/* Glitch Effect Styles */
.glitch {
    position: relative;
    display: inline-block;
}

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
}

.glitch::before {
    animation: glitch-1 2s infinite linear alternate-reverse;
    text-shadow: -2px 0 var(--accent);
    left: 2px;
}

.glitch::after {
    animation: glitch-2 2s infinite linear alternate-reverse;
    text-shadow: 2px 0 var(--secondary);
    left: -2px;
}

/* State Diagram in License Page */
.state-diagram {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 3rem;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border);
    margin: 3rem 0;
}

.state-node {
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.03);
    text-align: center;
    font-weight: 700;
    min-width: 200px;
    position: relative;
}

.state-arrow {
    flex-grow: 1;
    height: 2px;
    background: var(--border);
    margin: 0 1rem;
    position: relative;
}

.state-arrow::after {
    content: "▶";
    position: absolute;
    right: -5px;
    top: -9px;
    font-size: 1rem;
    color: var(--border);
}

.state-label {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: var(--text-dim);
    white-space: nowrap;
}

/* Feature Toggle for Pricing */
.toggle-pricing {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    font-weight: 600;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-card);
  transition: .4s;
  border: 1px solid var(--border);
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 3px;
  background-color: var(--primary);
  transition: .4s;
  border-radius: 50%;
}

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

/* Counter Style */
.counter-value {
    font-weight: 800;
}

/* Table Styles for Pricing Comparison */
.comparison-container {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
}

th, td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: rgba(255,255,255,0.03);
    color: var(--text-main);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

td {
    color: var(--text-dim);
}

tr:hover {
    background: rgba(255,255,255,0.02);
}

.check-icon {
    color: var(--accent);
}

.cross-icon {
    color: rgba(255,255,255,0.1);
}

/* Fix background-clip warnings if possible */
.btn-primary, .btn-small {
    background-clip: padding-box; /* Standard property */
}

/* Stats Section */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 8rem auto 4rem;
}

.stat-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem 1.5rem;
    text-align: center;
}

.stat-item .counter-value {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-item p {
    color: var(--text-dim);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

/* Logos Marquee Section */
.logos-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 1rem 0;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.logos-track {
    display: flex;
    gap: 4rem;
    width: max-content;
    animation: marqueeScroll 25s linear infinite;
    align-items: center;
}

.logos-track:hover {
    animation-play-state: paused;
}

.partner-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: var(--logo-filter);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.partner-logo:hover {
    filter: var(--logo-filter) brightness(1.4);
    transform: scale(1.08);
    cursor: pointer;
}

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-25%); }
}

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

/* Tablet & Smaller Laptops (1024px) */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
        padding-top: 4rem;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-btns {
        justify-content: center;
        align-items: center !important;
    }

    .grid-2 {
        gap: 2rem;
        padding: 0 1rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets (768px) - Mobile Navigation Entry */
@media (max-width: 820px) {
    .hero h1 { font-size: 2.75rem; }
    .section-header h2, .section-header h3 { font-size: 2.25rem !important; }
    .pricing-grid, .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
    }
    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .cta-box {
        padding: 3rem 1.5rem;
        border-radius: 20px;
    }
    .cta-box h2 { font-size: 2rem; }
    .cta-btns {
        flex-direction: column;
        gap: 1.5rem;
    }
    .about-container .grid-2 {
        grid-template-columns: 1fr;
    }
    .nav-container {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 1rem;
    }
    .nav-toggle-label {
        display: block !important;
        grid-column: 3;
        grid-row: 1;
        z-index: 1001;
        margin-left: auto;
    }
    .logo { grid-column: 1; grid-row: 1; }
    header div[style*="display: flex"] {
        grid-column: 2;
        grid-row: 1;
        justify-content: flex-end;
    }
    .btn-small { display: none; }
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-dark);
        backdrop-filter: blur(20px);
        border-left: 1px solid var(--border);
        transition: all 0.4s cubic-bezier(0.77,0.2,0.05,1.0);
        z-index: 1000;
        padding: 6rem 2rem;
    }
    nav ul { flex-direction: column; gap: 2rem; align-items: center; }
    nav a { font-size: 1.5rem; color: var(--text-main); }
    #nav-toggle:checked ~ nav { right: 0; }
}

/* Small Mobile (480px) */
@media (max-width: 480px) {
    .hero h1 { font-size: 2.25rem; }
    .hero-btns { width: 100%; }
    .hero-tagline { font-size: 1rem; }
    .hero-btns div { flex-direction: column !important; width: 100%; }
    .btn-primary, .btn-secondary { width: 100%; text-align: center; padding: 1rem 1.5rem; }
    .features-grid { grid-template-columns: 1fr; }
    .stat-item .counter-value { font-size: 2.5rem; }
    .cta-box { border-radius: 12px; padding: 3rem 1rem; }
    .cta-box p { font-size: 1.1rem; }
    .pricing-header h4 { font-size: 1.5rem; }
    .price { font-size: 2.5rem !important; }
    .logo { font-size: 1.25rem; }
    .nav-container { padding: 0.75rem 1rem; }
    .about-container { padding: 4rem 1rem !important; }
    .state-diagram { flex-direction: column; gap: 1.5rem; padding: 2rem 1rem; }
    .state-arrow { height: 30px; width: 2px; margin: 0; }
    .state-arrow::after { content: "▼"; right: -6px; top: 20px; }
    .state-node { width: 100%; min-width: auto; }
}

/* Landscape orientation optimization for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    header {
        position: absolute;
    }
    
    .hero {
        padding-top: 8rem;
    }

    nav {
        overflow-y: auto;
    }
}

/* Header Toggle Assets */
.nav-toggle-label {
    display: none;
    cursor: pointer;
    padding: 1rem 0;
    width: 30px;
    height: 30px;
    position: relative;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block;
    background: var(--text-main);
    height: 2px;
    width: 100%;
    border-radius: 2px;
    position: relative;
    transition: all 0.3s;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
    content: "";
    position: absolute;
}

.nav-toggle-label span::before {
    top: -8px;
}

.nav-toggle-label span::after {
    top: 8px;
}

/* ==========================================================================
   FORM & AUTH STYLES
   ========================================================================== */
.form-container {
    max-width: 480px;
    margin: 4rem auto;
    padding: 3rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    backdrop-filter: blur(12px);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(17, 82, 212, 0.05);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

body.light .form-input {
    background: rgba(17, 82, 212, 0.03);
}

.form-btn {
    width: 100%;
    margin-top: 1rem;
}

.form-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-dim);
}

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

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

/* Checkout Specific */
.checkout-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.cart-summary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-total {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border);
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 800;
}

@media (max-width: 1024px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    .cart-summary {
        position: static;
    }
}

