/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #ec4899;
    --accent-color: #06b6d4;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #10b981 100%);
    --gradient-dark: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    
    /* Text Colors */
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --text-white: #ffffff;
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-dark: #0f172a;
    --bg-card: #ffffff;
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 100px 0;
    --card-padding: 2rem;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

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

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.section-description {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: var(--font-size-base);
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn-outline {
    background: var(--primary-color);
    color: var(--text-white);
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-md);
}

.btn-outline:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    width: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary-color);
}

.nav-logo i {
    font-size: 1.5rem;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all var(--transition-normal);
}

/* Navbar Banner */
.navbar-banner {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
    animation: glow-pulse 3s ease-in-out infinite;
    padding: 2rem 0;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    overflow: hidden;
    padding-top: 200px; /* Adjusted for navbar with banner */
}

.hero-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: var(--font-size-xl);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease-out 0.3s both;
}

.ai-interface-preview {
    background: var(--bg-card);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    width: 100%;
    max-width: 500px;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform var(--transition-slow);
}

.ai-interface-preview:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.interface-header {
    background: var(--gradient-dark);
    color: var(--text-white);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.interface-controls {
    display: flex;
    gap: 0.5rem;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.red { background: #ef4444; }
.control.yellow { background: #f59e0b; }
.control.green { background: #10b981; }

.interface-title {
    font-weight: 600;
}

.interface-content {
    padding: 1.5rem;
}

.ai-models {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.model-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-sm);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.model-card.active {
    background: var(--gradient-primary);
    color: var(--text-white);
}

.chat-preview {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1rem;
    min-height: 150px;
}

.message {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    max-width: 80%;
}

.message.user {
    background: var(--primary-color);
    color: var(--text-white);
    margin-left: auto;
}

.message.ai {
    background: var(--bg-card);
    border: 1px solid var(--text-light);
}

.typing-indicator {
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--text-secondary);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

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

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

/* Hero Background */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-element {
    position: absolute;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    width: 80px;
    height: 80px;
    top: 10%;
    right: 30%;
    animation-delay: 4s;
}

.floating-element:nth-child(4) {
    width: 120px;
    height: 120px;
    bottom: 20%;
    left: 20%;
    animation-delay: 1s;
}

.floating-element:nth-child(5) {
    width: 60px;
    height: 60px;
    bottom: 40%;
    right: 20%;
    animation-delay: 3s;
}

/* Features Section */
.features {
    padding: var(--section-padding);
    background: var(--bg-primary);
}

.section-header {
    margin-bottom: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    padding: var(--card-padding);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--text-white);
}

.feature-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* Navbar Banner Content */
.navbar-banner .banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
}

.banner-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 0 0 auto;
    min-width: 280px;
}

.banner-header-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.banner-icon {
    font-size: 2rem;
    color: #fbbf24;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    flex-shrink: 0;
}

.banner-title {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--text-white);
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.banner-subtitle {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    line-height: 1.3;
    white-space: nowrap;
}

.banner-timer {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex: 1;
}

.timer-box {
    text-align: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    min-width: 65px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
    transition: all var(--transition-normal);
}

.timer-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
}

.timer-number {
    display: block;
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: var(--text-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1;
}

.timer-label {
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
    font-weight: 600;
}

.banner-action {
    display: flex;
    justify-content: flex-end;
    flex: 0 0 auto;
}

.btn-download-pro {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: #6366f1;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-xl);
    text-decoration: none;
    font-weight: 700;
    font-size: var(--font-size-base);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    overflow: hidden;
}

.btn-download-pro::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff0080, #ff8c00, #40e0d0, #ff0080, #ff8c00, #40e0d0);
    background-size: 300% 300%;
    border-radius: var(--radius-2xl);
    z-index: -1;
    animation: rainbow-border 3s ease-in-out infinite;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.btn-download-pro:hover::before {
    opacity: 1;
}

.btn-download-pro:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
}

.btn-download-pro i {
    font-size: 1rem;
    transition: transform var(--transition-normal);
}

.btn-download-pro:hover i {
    transform: scale(1.1);
}

/* Rainbow border animation */
@keyframes rainbow-border {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Glow animation for the entire banner */
@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(99, 102, 241, 0.6), 0 0 60px rgba(139, 92, 246, 0.3);
    }
}

/* Responsive styles for navbar banner */
@media (max-width: 1200px) {
    .navbar-banner .banner-content {
        gap: 1.5rem;
        padding: 0 1.5rem;
    }
    
    .banner-header {
        min-width: 250px;
    }
    
    .timer-box {
        min-width: 60px;
        padding: 0.75rem 0.875rem;
    }
    
    .timer-number {
        font-size: var(--font-size-lg);
    }
    
    .btn-download-pro {
        padding: 0.75rem 1.5rem;
        font-size: var(--font-size-sm);
    }
}

@media (max-width: 768px) {
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
    }
    
    .nav-container {
        height: 60px;
        padding: 0 1rem;
    }
    
    .nav-logo {
        font-size: var(--font-size-lg);
    }
    
    .nav-logo i {
        font-size: 1.25rem;
    }
    
    .navbar-banner {
        padding: 1rem 0;
        background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    }
    
    .navbar-banner .banner-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 0 1rem;
        align-items: center;
    }
    
    .banner-header {
        min-width: auto;
        align-items: center;
        width: 100%;
    }
    
    .banner-header-top {
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .banner-icon {
        font-size: 1.5rem;
        flex-shrink: 0;
    }
    
    .banner-title {
        font-size: var(--font-size-lg);
        white-space: nowrap;
    }
    
    .banner-subtitle {
        font-size: var(--font-size-xs);
        text-align: center;
        white-space: normal;
        max-width: 280px;
        line-height: 1.2;
    }
    
    .banner-timer {
        gap: 0.75rem;
        justify-content: center;
        flex: none;
        flex-wrap: wrap;
    }
    
    .timer-box {
        min-width: 50px;
        padding: 0.5rem 0.75rem;
        font-size: var(--font-size-xs);
    }
    
    .timer-number {
        font-size: var(--font-size-base);
        line-height: 1;
    }
    
    .timer-label {
        font-size: 10px;
        margin-top: 0.25rem;
    }
    
    .banner-action {
        justify-content: center;
        width: 100%;
    }
    
    .btn-download-pro {
        padding: 0.75rem 1.5rem;
        font-size: var(--font-size-sm);
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .nav-container {
        height: 55px;
        padding: 0 0.75rem;
    }
    
    .nav-logo {
        font-size: var(--font-size-base);
    }
    
    .nav-logo i {
        font-size: 1rem;
    }
    
    .navbar-banner {
        padding: 0.75rem 0;
    }
    
    .navbar-banner .banner-content {
        gap: 0.75rem;
        padding: 0 0.75rem;
    }
    
    .banner-header-top {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .banner-icon {
        font-size: 1.25rem;
    }
    
    .banner-title {
        font-size: var(--font-size-base);
        text-align: center;
    }
    
    .banner-subtitle {
        font-size: 11px;
        max-width: 250px;
        line-height: 1.1;
    }
    
    .banner-timer {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .timer-box {
        min-width: 45px;
        padding: 0.4rem 0.6rem;
    }
    
    .timer-number {
        font-size: var(--font-size-sm);
    }
    
    .timer-label {
        font-size: 9px;
    }
    
    .btn-download-pro {
        padding: 0.6rem 1.25rem;
        font-size: 12px;
        gap: 0.4rem;
    }
    
    .btn-download-pro i {
        font-size: 0.75rem;
    }
    
    .nav-menu {
        top: 55px;
        height: calc(100vh - 55px);
    }
}

/* Download Section */
.download {
    padding: var(--section-padding);
    background: var(--bg-primary);
}

.download-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.pricing-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.pricing-card {
    background: var(--bg-card);
    padding: var(--card-padding);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    position: relative;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

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

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: var(--text-white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.pricing-card h3 {
    font-size: var(--font-size-xl);
    margin-bottom: 1rem;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 2rem;
}

.currency {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
}

.amount {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: var(--primary-color);
}

.period {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
}

.features-list {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.features-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.features-list i {
    color: var(--success-color);
}

/* Download Button Specific Styles */
.pricing-card .download-btn {
    width: 100%;
    margin-top: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--gradient-primary) !important;
    color: var(--text-white) !important;
    border: none !important;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    padding: 1rem 1.5rem;
}

.pricing-card .download-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: var(--gradient-primary) !important;
}

.pricing-card .btn-outline {
    background: var(--gradient-primary) !important;
    color: var(--text-white) !important;
    border: 2px solid var(--primary-color) !important;
}

/* Ensure all download buttons are visible */
button[data-plan] {
    background: var(--gradient-primary) !important;
    color: var(--text-white) !important;
    border: none !important;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

button[data-plan]:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background: var(--primary-dark) !important;
}

/* Fix for any invisible buttons */
.btn, button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.btn:focus, button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Ensure pricing cards are properly styled */
.pricing-card {
    background: var(--bg-card);
    border: 2px solid transparent;
    transition: all var(--transition-normal);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-xl);
    transform: scale(1.05);
}

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

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

/* Popular badge styling */
.popular-badge {
    background: var(--gradient-primary);
    color: var(--text-white);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: var(--shadow-md);
}

/* Price styling */
.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin: 1.5rem 0;
}

.currency {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-right: 0.25rem;
}

.amount {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: var(--primary-color);
}

.period {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    margin-left: 0.25rem;
}

/* Additional button visibility fixes */
.download-btn, .btn[data-plan] {
    background: var(--gradient-primary) !important;
    color: var(--text-white) !important;
    border: 2px solid var(--primary-color) !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-lg) !important;
    position: relative;
    overflow: hidden;
}

.download-btn:before, .btn[data-plan]:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.download-btn:hover:before, .btn[data-plan]:hover:before {
    left: 100%;
}

.download-btn:hover, .btn[data-plan]:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl) !important;
}

/* Ensure icons in buttons are visible */
.download-btn i, .btn[data-plan] i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* Fix for any remaining invisible elements */
.pricing-card * {
    position: relative;
    z-index: 1;
}

.pricing-card .btn {
    z-index: 2;
}

.download-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.app-screenshot {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    margin-bottom: 2rem;
    background: var(--bg-card);
    padding: 0.5rem;
    border: 1px solid var(--text-light);
    transition: transform var(--transition-normal);
}

.app-screenshot:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.download-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.download-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.download-stats i {
    color: var(--primary-color);
}

/* About Section */
.about {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text .section-title {
    text-align: left;
}

.about-text .section-description {
    text-align: left;
    margin-bottom: 2rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.about-feature i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.about-feature h4 {
    font-size: var(--font-size-lg);
    margin-bottom: 0.5rem;
}

.about-feature p {
    color: var(--text-secondary);
}

.testimonials h3 {
    font-size: var(--font-size-2xl);
    margin-bottom: 2rem;
    text-align: center;
}

.testimonial {
    background: var(--bg-card);
    padding: var(--card-padding);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.testimonial-content p {
    font-size: var(--font-size-lg);
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h5 {
    font-size: var(--font-size-base);
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left var(--transition-normal);
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero {
        padding-top: 140px; /* Adjusted for compact navbar with banner on mobile */
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: var(--font-size-4xl);
    }

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

    .hero-stats {
        justify-content: center;
    }

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

    .demo-interface {
        grid-template-columns: 1fr;
    }

    .demo-sidebar {
        order: 2;
    }

    .download-content,
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: var(--font-size-3xl);
    }
}

/* Contact Section */
.contact {
    padding: var(--section-padding);
    background: var(--bg-primary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--text-white);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.contact-item h4 {
    font-size: var(--font-size-lg);
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: var(--text-secondary);
}

.contact-form {
    background: var(--bg-card);
    padding: var(--card-padding);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--text-light);
    border-radius: var(--radius-lg);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    transition: border-color var(--transition-normal);
}

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

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--gradient-dark);
    color: var(--text-white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--font-size-xl);
    font-weight: 700;
}

.footer-logo i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}


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

.footer-column h4 {
    font-size: var(--font-size-lg);
    margin-bottom: 1rem;
    color: var(--text-white);
}

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

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.footer-column a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.footer-legal a:hover {
    color: var(--accent-color);
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    color: var(--text-white);
}

.loading-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: 2rem;
}

.loading-logo i {
    font-size: 2rem;
    color: var(--accent-color);
    animation: pulse 2s infinite;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid var(--accent-color);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite;
}

.loading-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-lg);
}

/* Additional Responsive Styles */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }
}


.response-header {
    background: var(--gradient-primary);
    color: var(--text-white);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.response-header i {
    margin-right: 0.5rem;
}

.copy-btn, .download-btn {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: var(--font-size-sm);
    transition: all var(--transition-normal);
}

.copy-btn:hover, .download-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.response-content {
    padding: 1.5rem;
    line-height: 1.7;
}

.code-content pre {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 1rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: var(--font-size-sm);
}

.image-content, .video-content {
    text-align: center;
}

.image-placeholder, .video-placeholder {
    background: var(--bg-secondary);
    border: 2px dashed var(--text-light);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.image-placeholder i, .video-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.response-text {
    text-align: left;
    margin-top: 1rem;
}

.response-text h3 {
    color: var(--primary-color);
    margin: 1rem 0 0.5rem;
}

.response-text ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.response-text li {
    margin-bottom: 0.25rem;
}

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

.response-text code {
    background: var(--bg-secondary);
    padding: 0.2rem 0.4rem;
    border-radius: var(--radius-sm);
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}


.loading-progress {
    width: 100%;
    height: 4px;
    background: var(--bg-secondary);
    border-radius: 2px;
    margin-top: 1rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: progress 3s ease-in-out;
}

@keyframes progress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    max-width: 400px;
    min-width: 300px;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid var(--success-color);
}

.notification-error {
    border-left: 4px solid var(--error-color);
}

.notification-warning {
    border-left: 4px solid var(--warning-color);
}

.notification-info {
    border-left: 4px solid var(--accent-color);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.notification-content i {
    font-size: 1.2rem;
}

.notification-success .notification-content i {
    color: var(--success-color);
}

.notification-error .notification-content i {
    color: var(--error-color);
}

.notification-warning .notification-content i {
    color: var(--warning-color);
}

.notification-info .notification-content i {
    color: var(--accent-color);
}

.notification-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.notification-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Additional Mobile Responsive Styles */
@media (max-width: 768px) {

    .response-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        min-width: auto;
        transform: translateY(-100%);
    }

    .notification.show {
        transform: translateY(0);
    }
}
