/* ===================================
   BASE STYLES & VARIABLES
   =================================== */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #0f172a;
    --text-main: #334155;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;

    --font-main: 'Plus Jakarta Sans', sans-serif;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    --radius: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

/* ===================================
   TYPOGRAPHY & UTILS
   =================================== */
h1,
h2,
h3,
h4 {
    color: var(--secondary);
    font-weight: 700;
    line-height: 1.2;
}

.text-center {
    text-align: center;
}

.text-highlight {
    color: var(--primary);
}

.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    border: 2px solid var(--primary);
}

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

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--white);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* ===================================
   NAVIGATION
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    transition: 0.3s;
}

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

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-menu a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 15px;
}

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

.nav-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
}

.btn-text {
    color: var(--text-main);
    font-weight: 600;
}

.btn-text:hover {
    color: var(--primary);
}

/* ===================================
   HERO SECTION (PARALLAX)
   =================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.6));
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding-top: 60px;
}

.hero-badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(37, 99, 235, 0.4);
    color: #60a5fa;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(4px);
}

.hero-title {
    font-size: 64px;
    margin-bottom: 24px;
    color: var(--white);
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 20px;
    color: #e2e8f0;
    margin-bottom: 40px;
    max-width: 600px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

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

/* ===================================
   STATS SECTION (LIQUID GLASS)
   =================================== */
.stats-section {
    position: relative;
    z-index: 10;
    margin-top: -100px;
    padding: 0 24px 80px;
}

.stats-glass-panel {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-radius: 28px;
    padding: 20px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.18) inset,
        0 0 0 1px rgba(0, 0, 0, 0.05);
    max-width: 1200px;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-radius: 18px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.05);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.2) 0%,
            rgba(255, 255, 255, 0.05) 100%);
    opacity: 1;
    pointer-events: none;
    z-index: 0;
}

.stat-card:nth-child(1) {
    border-color: rgba(147, 197, 253, 0.3);
}

.stat-card:nth-child(2) {
    border-color: rgba(165, 180, 252, 0.3);
}

.stat-card:nth-child(3) {
    border-color: rgba(196, 181, 253, 0.3);
}

.stat-card:nth-child(4) {
    border-color: rgba(167, 139, 250, 0.3);
}

.stat-card:nth-child(5) {
    border-color: rgba(192, 132, 252, 0.3);
}

.stat-card:nth-child(6) {
    border-color: rgba(217, 70, 239, 0.3);
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.3) inset,
        0 0 0 1px rgba(0, 0, 0, 0.05);
}

.stat-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.stat-icon-wrapper svg {
    width: 18px;
    height: 18px;
}

.stat-card:nth-child(1) .stat-icon-wrapper {
    color: #2563eb;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.stat-card:nth-child(2) .stat-icon-wrapper {
    color: #4f46e5;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.stat-card:nth-child(3) .stat-icon-wrapper {
    color: #7c3aed;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.stat-card:nth-child(4) .stat-icon-wrapper {
    color: #6d28d9;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.2);
}

.stat-card:nth-child(5) .stat-icon-wrapper {
    color: #a855f7;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}

.stat-card:nth-child(6) .stat-icon-wrapper {
    color: #c026d3;
    box-shadow: 0 0 20px rgba(192, 38, 211, 0.2);
}

.stat-card:hover .stat-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.3);
}

.stat-content {
    position: relative;
    z-index: 1;
}

.stat-number {
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
    color: #0f172a;
    margin-bottom: 6px;
    letter-spacing: -1.5px;
    display: block;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
}

.stat-percent,
.stat-rating,
.stat-times {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin-left: -2px;
}

.stat-label {
    font-size: 9px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1.2;
}

/* Responsive */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 24px 20px;
    }

    .stat-icon-wrapper {
        width: 48px;
        height: 48px;
    }

    .stat-icon-wrapper svg {
        width: 20px;
        height: 20px;
    }

    .stat-number {
        font-size: 48px;
    }

    .stat-percent,
    .stat-rating,
    .stat-times {
        font-size: 32px;
    }

    .stat-label {
        font-size: 10px;
    }
}

/* ===================================
   PROBLEM / SOLUTION
   =================================== */
.problem-solution {
    padding: 100px 0;
    background: var(--bg-light);
}

.section-header {
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: 40px;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 18px;
    color: var(--text-light);
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.comparison-card {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: 0.3s;
}

.comparison-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-icon {
    font-size: 40px;
    margin-bottom: 24px;
}

.comparison-card h3 {
    font-size: 24px;
    margin-bottom: 24px;
}

.comparison-card ul li {
    margin-bottom: 16px;
    padding-left: 24px;
    position: relative;
    color: var(--text-main);
}

.comparison-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border);
}

.problem ul li::before {
    background: #ef4444;
}

.solution ul li::before {
    background: #22c55e;
}

.solution {
    border: 2px solid var(--primary);
    position: relative;
}

.solution::after {
    content: 'RECOMENDADO';
    position: absolute;
    top: -12px;
    right: 40px;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50px;
}

/* ===================================
   FEATURES DETAILED (ZIG-ZAG)
   =================================== */
.features-detailed {
    padding: 100px 0;
    overflow: hidden;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 120px;
}

.feature-row:last-child {
    margin-bottom: 0;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-image {
    flex: 1;
    height: 400px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.image-wrapper {
    width: 100%;
    height: 120%;
    /* For parallax */
    background-size: cover;
    background-position: center;
    transition: transform 0.1s linear;
}

.feature-text {
    flex: 1;
}

.feature-icon-small {
    width: 50px;
    height: 50px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 24px;
}

.feature-text h3 {
    font-size: 32px;
    margin-bottom: 16px;
}

.feature-text p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 24px;
}

.feature-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.feature-list li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 800;
}

.link-arrow {
    display: inline-block;
    margin-top: 24px;
    color: var(--primary);
    font-weight: 600;
    font-size: 16px;
}

.link-arrow:hover {
    text-decoration: underline;
}

/* ===================================
   PARALLAX BREAK
   =================================== */
.parallax-break {
    position: relative;
    padding: 120px 0;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: white;
}

.overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
}

.break-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.break-content h2 {
    color: white;
    font-size: 36px;
    font-style: italic;
    margin-bottom: 40px;
    font-weight: 500;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.testimonial-author div {
    text-align: left;
}

.testimonial-author strong {
    display: block;
    font-size: 18px;
}

.testimonial-author span {
    color: #94a3b8;
    font-size: 14px;
}

/* ===================================
   INTEGRATIONS
   =================================== */
.integrations {
    padding: 60px 0;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.section-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 1px;
    margin-bottom: 32px;
}

.logos-scroll-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.logos-scroll {
    display: flex;
    gap: 80px;
    animation: scroll-left 30s linear infinite;
    width: fit-content;
}

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

.logo-item {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-light);
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.logo-item:hover {
    color: var(--primary);
    transform: scale(1.1);
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

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


/* ===================================
   PRICING
   =================================== */
.pricing-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: center;
}

.price-card {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    position: relative;
    border: 1px solid var(--border);
}

.price-card.featured {
    transform: scale(1.05);
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-xl);
    z-index: 2;
}

.popular-tag {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary);
    color: white;
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
}

.card-header h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.card-header p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 24px;
}

.price {
    font-size: 48px;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 32px;
}

.currency {
    font-size: 24px;
    vertical-align: top;
}

.period {
    font-size: 16px;
    color: var(--text-light);
    font-weight: 500;
}

.price-features {
    margin-bottom: 32px;
}

.price-features li {
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--text-main);
}

.price-features li::before {
    content: '•';
    color: var(--primary);
    margin-right: 8px;
    font-weight: bold;
}

/* ===================================
   CTA / CONTACT
   =================================== */
.cta-section {
    padding: 100px 0;
}

.cta-box {
    background: var(--secondary);
    border-radius: 24px;
    padding: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    color: white;
    box-shadow: var(--shadow-xl);
}

.cta-text h2 {
    color: white;
    font-size: 40px;
    margin-bottom: 24px;
}

.cta-text p {
    font-size: 18px;
    color: #cbd5e1;
    margin-bottom: 32px;
}

.cta-benefits li {
    margin-bottom: 12px;
    font-size: 16px;
    color: #94a3b8;
}

.cta-form {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    color: var(--text-main);
}

.cta-form h3 {
    margin-bottom: 24px;
    font-size: 24px;
}

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

.form-group input {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    background: #f8fafc;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
}

/* ===================================
   FOOTER
   =================================== */
.main-footer {
    background: var(--white);
    padding: 80px 0 32px;
    border-top: 1px solid var(--border);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.brand-col p {
    color: var(--text-light);
    margin-top: 16px;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 24px;
    color: var(--secondary);
}

.footer-col a {
    display: block;
    color: var(--text-light);
    margin-bottom: 12px;
    font-size: 15px;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 24px;
}

.social-links a {
    color: var(--text-light);
}

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

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 48px;
    }

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

    .feature-row {
        flex-direction: column;
        gap: 40px;
    }

    .feature-row.reverse {
        flex-direction: column;
    }

    .feature-image {
        width: 100%;
        height: 300px;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .cta-box {
        grid-template-columns: 1fr;
        padding: 40px;
    }
}

@media (max-width: 768px) {

    .nav-menu,
    .nav-buttons {
        display: none;
    }

    .hero-title {
        font-size: 36px;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* === MODERN PLATFORM BENTO GRID === */
.platform-modern {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.badge-pill {
    background: rgba(0, 122, 255, 0.1);
    color: #007AFF;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(280px, auto);
    gap: 24px;
    margin-top: 60px;
}

.bento-card {
    background: white;
    border-radius: 24px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 122, 255, 0.1);
}

/* Grid Layout */
.bento-card.span-2 {
    grid-column: span 2;
}

.bento-card.tall {
    grid-row: span 2;
    background: linear-gradient(135deg, #ffffff 0%, #f9fcff 100%);
}

.bento-card.large {
    grid-column: span 2;
    grid-row: span 1;
}

.bento-card.wide {
    grid-column: span 3;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

/* Content Styling */
.bento-content {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bento-content.flex-row {
    flex-direction: row;
    align-items: center;
    width: 100%;
    gap: 40px;
}

.text-side {
    flex: 1;
}

.visual-side {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.bento-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1d1d1f;
    letter-spacing: -0.5px;
}

.bento-card p {
    font-size: 15px;
    color: #86868b;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Icons */
.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.icon-box.primary {
    background: rgba(0, 122, 255, 0.1);
    color: #007AFF;
}

.icon-box.success {
    background: rgba(52, 199, 89, 0.1);
    color: #34C759;
}

.icon-box.warning {
    background: rgba(255, 149, 0, 0.1);
    color: #FF9500;
}

.icon-box.info {
    background: rgba(88, 86, 214, 0.1);
    color: #5856D6;
}

.icon-box.purple {
    background: rgba(175, 82, 222, 0.1);
    color: #AF52DE;
}

/* Feature Tags */
.feature-tags {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
}

.feature-tags li {
    background: #f5f5f7;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: #1d1d1f;
    font-weight: 600;
}

/* Mockups Visuals */
.visual-kanban {
    position: absolute;
    bottom: -20px;
    right: -20px;
    opacity: 0.8;
    transform: rotate(-10deg);
    pointer-events: none;
}

.mockup-kanban {
    display: flex;
    gap: 10px;
}

.mockup-kanban .col {
    width: 90px;
    background: #f0f0f0;
    border-radius: 8px;
    padding: 8px;
    height: 140px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.mockup-kanban .card {
    height: 10px;
    background: white;
    border-radius: 4px;
    margin-bottom: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.mockup-kanban .card.active {
    border-left: 3px solid #007AFF;
}

.mockup-kanban .col:nth-child(2) {
    margin-top: 20px;
}

.stat-box {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-box .number {
    font-size: 42px;
    font-weight: 800;
    color: #34C759;
    display: block;
    line-height: 1;
    letter-spacing: -1px;
}

.stat-box .label {
    font-size: 12px;
    color: #86868b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-top: 5px;
    display: block;
}

.mockup-chat {
    background: #f5f5f7;
    border-radius: 16px;
    padding: 20px;
    width: 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.mockup-chat .msg {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 12px;
    margin-bottom: 10px;
    max-width: 80%;
}

.mockup-chat .msg.user {
    background: #007AFF;
    color: white;
    align-self: flex-end;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.mockup-chat .msg.system {
    background: white;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Responsive Bento */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-card.wide {
        grid-column: span 2;
    }

    .bento-content.flex-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-card.large,
    .bento-card.span-2,
    .bento-card.wide {
        grid-column: span 1;
    }

    .bento-card.tall {
        grid-row: span 1;
    }

    .bento-content.flex-row {
        flex-direction: column;
    }

    .visual-side {
        display: none;
    }
}

/* === IMMERSIVE PLATFORM SECTION === */
.platform-immersive {
    padding: 80px 0;
    background-color: #050507;
    /* Dark Background for Cinema Feel */
    color: white;
}

.immersive-header {
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.immersive-header .section-title {
    color: white;
    font-size: 42px;
    letter-spacing: -1px;
}

.immersive-header .section-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
}

.immersive-stack {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.immersive-card {
    position: relative;
    height: 550px;
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    /* Text at bottom default */
    padding: 60px;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.immersive-card:hover {
    transform: scale(1.01);
}

/* Background Media */
.immersive-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.immersive-card:hover .immersive-media {
    transform: scale(1.05);
}

/* Dark Gradient Overlay for readability */
.immersive-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.85) 100%);
    z-index: 1;
}

/* Content */
.immersive-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
}

.glass-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 24px;
}

.immersive-card h3 {
    font-size: 36px;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.immersive-card p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 32px;
    font-weight: 400;
}

/* Action Tags */
.immersive-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.action-pill {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.3s;
}

.action-pill:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Layout Variations */
.immersive-card.align-right {
    justify-content: flex-end;
    align-items: center;
}

/* Text Right */
.immersive-card.align-right .immersive-overlay {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.6) 60%, rgba(0, 0, 0, 0.9) 100%);
}

.immersive-card.align-right .immersive-content {
    text-align: right;
    align-items: flex-end;
    display: flex;
    flex-direction: column;
}

@media (max-width: 900px) {
    .immersive-card {
        height: 450px;
        padding: 30px;
    }

    .immersive-card h3 {
        font-size: 28px;
    }

    .immersive-card.align-right {
        justify-content: flex-start;
        align-items: flex-end;
    }

    /* Reset on mobile */
    .immersive-card.align-right .immersive-content {
        text-align: left;
        align-items: flex-start;
    }

    .immersive-card.align-right .immersive-overlay {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.85) 100%);
    }
}

/* === PLATFORM UI REFINEMENTS === */

/* 1. Animated Border Gradient Ring */
.immersive-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 32px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 5;
}

/* 2. Text Backlight (Glow) */
.immersive-content {
    position: relative;
}

/* Ensure z-index context */
.text-glow {
    position: absolute;
    width: 100%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    pointer-events: none;
    transition: opacity 0.5s;
}

.align-right .text-glow {
    left: auto;
    right: -50%;
    background: radial-gradient(circle, rgba(52, 199, 89, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
}

/* 3. Stats Badge/Floating UI */
.floating-stat {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.6s 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.immersive-card:hover .floating-stat {
    opacity: 1;
    transform: translateY(0);
}

.floating-stat small {
    font-size: 10px;
    text-transform: uppercase;
    color: #86868b;
    letter-spacing: 1px;
}

.floating-stat strong {
    font-size: 20px;
    color: #fff;
    font-weight: 700;
}

.floating-stat .trend {
    font-size: 12px;
    color: #34C759;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 4. Scroll Reveal Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* === IMMERSIVE GRID 2x2 === */
.immersive-stack {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
}

/* Adjust card height for grid fit */
.immersive-card {
    height: 480px !important;
    /* Slightly shorter for grid balance */
}

/* On mobile, revert to stack */
@media (max-width: 900px) {
    .immersive-stack {
        grid-template-columns: 1fr !important;
    }

    .immersive-card {
        height: 450px !important;
    }
}