:root {
    --primary: #2563eb;
    --secondary: #10b981;
    --dark: #0f172a;
    --dark-card: #1e293b;
    --light: #f8fafc;
    --text-muted: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

.bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 40%);
    z-index: -1;
}

/* --- TOP BAR --- */
.top-bar {
    background: #020617;
    /* Matches footer */
    padding: 14px 10%;
    /* Increased padding for height */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1.05rem;
    /* Increased font size */
}

.top-bar-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 25px;
    /* More spacing */
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    /* More spacing */
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.top-bar-item:hover {
    color: white;
}

.top-bar .divider {
    color: rgba(255, 255, 255, 0.1);
    font-size: 1.2rem;
}

.sm-icon {
    width: 22px;
    /* Increased icon size */
    height: 22px;
}

.xs-icon {
    width: 18px;
    /* Increased icon size */
    height: 18px;
}

/* --- NAVEGACIÓN Y MEGA MENÚ --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 10%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 2000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 50px;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.nav-link:hover {
    color: #fff;
}

.megamenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    border-radius: 0 0 24px 24px;
    display: none;
    padding: 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    grid-template-columns: 280px 1fr 250px;
    gap: 40px;
    animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.megamenu-sidebar {
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-item {
    padding: 15px 25px;
    border-radius: 12px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-item:hover,
.sidebar-item.active {
    background: rgba(37, 99, 235, 0.1);
    color: #fff;
}

.megamenu-content {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.megamenu-content.active {
    display: grid;
}

.menu-feature {
    display: flex;
    gap: 20px;
    padding: 15px;
    border-radius: 15px;
    transition: 0.2s;
    cursor: pointer;
}

.menu-feature:hover {
    background: rgba(255, 255, 255, 0.03);
    transform: translateX(5px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(37, 99, 235, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.feature-text h5 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.feature-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.megamenu-banner {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- BOTONES --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

/* --- HERO --- */
.hero {
    text-align: center;
    padding: 120px 10% 80px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, var(--primary) 50%, #60a5fa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradientMove 5s ease infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin: 40px 0;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.stats div {
    text-align: center;
}

.stats b {
    color: #fff;
    font-size: 2rem;
    display: block;
    margin-bottom: 5px;
}

.browser-mockup {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 60px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateX(2deg);
    transition: 0.5s ease-out;
}

.browser-mockup:hover {
    transform: perspective(1000px) rotateX(0deg) scale(1.02);
}

.browser-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.address-bar {
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 20px;
    border-radius: 6px;
    flex-grow: 1;
    text-align: left;
    font-family: 'Fira Code', monospace;
    color: var(--secondary);
    margin-left: 15px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.address-bar::before {
    content: '🔒';
    font-size: 0.8rem;
    filter: grayscale(1);
}

.browser-content {
    height: 400px;
    background: var(--dark);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* --- SECCIÓN MÓDULOS (COMPLETA) --- */
.section-padding {
    padding: 160px 10%;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 25px;
    font-weight: 800;
}

/* --- MODULE CARDS REDESIGN --- */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.module-card {
    background: #0a0e17;
    /* Dark background */
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Subtle border */
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 420px;
    /* Reduced height */
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.module-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Color Variants */
.card-orange {
    --theme-color: #f59e0b;
    box-shadow: inset 80px 0 120px -80px rgba(245, 158, 11, 0.15), 0 20px 40px -10px rgba(245, 158, 11, 0.2);
    /* Internal glow left + External shadow */
}

.card-blue {
    --theme-color: #3b82f6;
    box-shadow: inset 80px 0 120px -80px rgba(59, 130, 246, 0.15), 0 20px 40px -10px rgba(59, 130, 246, 0.2);
}

.card-purple {
    --theme-color: #8b5cf6;
    box-shadow: inset 80px 0 120px -80px rgba(139, 92, 246, 0.15), 0 20px 40px -10px rgba(139, 92, 246, 0.2);
}

.card-pink {
    --theme-color: #ec4899;
    box-shadow: inset 80px 0 120px -80px rgba(236, 72, 153, 0.15), 0 20px 40px -10px rgba(236, 72, 153, 0.2);
}

/* Header Section */
.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.card-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-color);
    background: rgba(255, 255, 255, 0.02);
}

.card-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
    line-height: 1.1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-badge {
    font-size: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: lowercase;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
}

/* Content */
.card-subtitle {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 20px;
}

.card-desc {
    font-size: 1.05rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 40px;
    flex-grow: 1;
    /* Pushes button down */
}

/* Button */
.card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    background: var(--theme-color);
    color: #fff;
    /* White text on colored button */
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: 12px;
    text-decoration: none;
    transition: filter 0.2s, transform 0.2s;
    margin-top: auto;
}

.card-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    color: #fff;
}

.btn-module {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 30px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15rem;
    transition: 0.3s;
}

.btn-module:hover {
    color: #fff;
    transform: translateX(5px);
}

/* --- SIGUIENTE NIVEL (COMPLETA) --- */
.features-next-level {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.feature-item {
    text-align: center;
    padding: 50px 30px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.feature-item h4 {
    font-size: 1.8rem;
    margin: 25px 0 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.feature-item p {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 90%;
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

/* --- PRICING --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.tag {
    background: var(--dark-card);
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- MODULE LINKS --- */
.module-link {
    display: none;
}

.price-card {
    background: var(--dark-card);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    display: flex;
    flex-direction: column;
}

.price-card.featured {
    border: 2px solid var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

.price-card.featured::after {
    content: 'Recomendado';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.price-features {
    margin: 30px 0;
    list-style: none;
    flex-grow: 1;
}

.price-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.price-features li i {
    color: var(--secondary);
    width: 18px;
}

/* --- TESTIMONIALS --- */
.testimonials-scroll {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: none;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.testimonial-card {
    min-width: 380px;
    background: rgba(255, 255, 255, 0.03);
    padding: 50px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-card p {
    font-size: 1.15rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.6;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.user-profile h5 {
    font-size: 1.2rem;
    color: white;
    font-weight: 700;
}

.user-profile p {
    font-size: 0.95rem !important;
    /* Override the card p style for role */
    font-style: normal !important;
    margin-top: 2px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}


/* --- REGISTRO --- */
.register-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: rgba(255, 255, 255, 0.02);
    padding: 60px;
    border-radius: 30px;
    margin-top: 80px;
}

.form-box {
    background: white;
    padding: 40px;
    border-radius: 20px;
    color: #1e293b;
    text-align: left;
}

.form-box input {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

footer {
    background: #020617;
    padding: 80px 10% 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.bottom-bar {
    text-align: center;
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 900px) {
    .nav-link[data-menu="modules"] {
        display: none;
    }

    .register-container,
    .modules-grid {
        grid-template-columns: 1fr;
    }
}

/* --- DEMO SECTION LAYOUT --- */
.demo-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin: 0 auto;
    align-items: center;
    width: 100%;
}

@media (max-width: 900px) {
    .demo-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* --- DEMO LEFT COLUMN --- */
.demo-content {
    color: var(--light);
}

.demo-title {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
}

.demo-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.6;
}

.social-proof-badges {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.badge-users {
    background: var(--primary);
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.badge-capterra {
    background: white;
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* --- DEMO RIGHT COLUMN Form Wrapper --- */
.demo-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    color: #1e293b;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h3 {
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.form-header p {
    color: #64748b;
    font-size: 0.95rem;
}

/* --- FORM STYLES --- */
.detailed-form .form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

@media (max-width: 500px) {
    .detailed-form .form-row {
        flex-direction: column;
        gap: 0;
    }
}

.detailed-form .form-group {
    flex: 1;
    margin-bottom: 15px;
}

.detailed-form input,
.detailed-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    font-size: 0.95rem;
    transition: 0.2s;
}

.detailed-form input:focus,
.detailed-form select:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Phone Group Special Layout */
.phone-group {
    display: flex;
    gap: 10px;
}

.phone-group .country-code {
    width: 100px;
}

/* Checkboxes */
.form-checkboxes {
    margin: 20px 0;
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.checkbox-container input {
    width: auto;
    margin-top: 3px;
}

.checkbox-container a {
    color: var(--primary);
    text-decoration: none;
}

.checkbox-container a:hover {
    text-decoration: underline;
}

/* --- NEW HERO SECTION --- */
.hero-section {
    padding: 100px 10%;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
}

/* Hero Content */
.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 30px;
}

.strikethrough-text {
    text-decoration: line-through;
    text-decoration-color: rgba(255, 255, 255, 0.5);
    text-decoration-thickness: 3px;
    color: rgba(255, 255, 255, 0.5);
}

.highlight-text {
    color: #f59e0b;
    /* Orange/Yellow from image */
    text-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 550px;
}

@media (max-width: 900px) {
    .hero-description {
        margin: 0 auto 40px;
    }
}

.hero-actions {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 50px;
}

@media (max-width: 900px) {
    .hero-actions {
        justify-content: center;
    }
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1.1rem;
    border-radius: 50px;
    /* Pill shape buttons */
}

.btn-primary.btn-lg {
    background: #f59e0b;
    /* Orange button */
    color: #fff;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
}

.btn-primary.btn-lg:hover {
    background: #d97706;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Stats */
.hero-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

@media (max-width: 900px) {
    .hero-stats {
        justify-content: center;
    }
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
}

.stat-icon {
    width: 30px;
    height: 30px;
    color: #f59e0b;
}

.stat-item b {
    display: block;
    font-size: 1.2rem;
    line-height: 1;
}

.stat-item span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Hero Visual Composition */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-browser-mockup {
    width: 100%;
    max-width: 600px;
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: 0.5s ease;
}

.hero-visual:hover .hero-browser-mockup {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.browser-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 20px;
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-mobile-mockup {
    position: absolute;
    bottom: 0;
    left: -20px;
    width: 200px;
    height: 400px;
    background: #fff;
    border: 8px solid #334155;
    border-radius: 30px;
    z-index: 2;
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform: translateY(40px);
}

@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-visual {
        order: 2;
        height: 600px;
    }

    .hero-browser-mockup {
        display: block;
        width: 100%;
        transform: rotateX(10deg);
        opacity: 0.5;
    }

    .hero-mobile-mockup {
        left: 50%;
        transform: translateX(-50%) translateY(50px);
        width: 180px;
        height: 360px;
    }
}

.mobile-notch {
    width: 50%;
    height: 20px;
    background: #334155;
    margin: 0 auto;
    border-radius: 0 0 10px 10px;
}

.mobile-screen {
    background: white;
    height: 100%;
    width: 100%;
}