:root {
    /* ScriptPro Brand Colors - Black, White, Purple/Lilac */
    --primary-purple: #8B5CF6;
    --primary-lilac: #A78BFA;
    --dark-purple: #6D28D9;
    --light-purple: #C4B5FD;
    
    --primary-gradient: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
    --secondary-gradient: linear-gradient(135deg, #A78BFA 0%, #8B5CF6 100%);
    --accent-gradient: linear-gradient(135deg, #C4B5FD 0%, #A78BFA 100%);
    
    --dark-bg: #000000;
    --darker-bg: #0a0a0a;
    --card-bg: rgba(255, 255, 255, 0.03);
    --glass-bg: rgba(255, 255, 255, 0.05);
    
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --border-color: rgba(255, 255, 255, 0.08);
    --shadow-color: rgba(139, 92, 246, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    position: relative;
}

/* Animated Background - Purple/Lilac on Black */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(167, 139, 250, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(196, 181, 253, 0.04) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }
}

/* Navbar - Modern Glass Effect */
.navbar {
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section - Modern & Dynamic */
.hero {
    padding: 12rem 0 8rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.highlight-box {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
    border: 1px solid var(--border-color);
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::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 ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px var(--shadow-color);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--glass-bg);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Device Mockup - Enhanced Modern 3D Effect */
.device-mockup {
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: 24px;
    box-shadow: 
        0 30px 90px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transform: perspective(1200px) rotateY(-8deg) rotateX(2deg);
    transition: transform 0.6s ease;
    animation: float 6s ease-in-out infinite;
    position: relative;
}

.device-mockup::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.device-mockup:hover {
    transform: perspective(1200px) rotateY(0deg) rotateX(0deg) translateY(-10px);
}

.device-mockup:hover::before {
    opacity: 1;
}

@keyframes float {
    0%, 100% { 
        transform: perspective(1200px) rotateY(-8deg) rotateX(2deg) translateY(0px); 
    }
    50% { 
        transform: perspective(1200px) rotateY(-8deg) rotateX(2deg) translateY(-15px); 
    }
}

.screen {
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    height: 480px;
    position: relative;
    border: 2px solid #1a1a1a;
    box-shadow: 
        inset 0 0 0 1px rgba(255, 255, 255, 0.03),
        0 10px 40px rgba(0, 0, 0, 0.6);
}

.app-interface {
    display: flex;
    height: 100%;
    background: #000;
}

.sidebar {
    width: 70px;
    background: linear-gradient(180deg, #0a0a0a 0%, #000 100%);
    border-right: 1px solid #1a1a1a;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    gap: 16px;
}

.sidebar::before {
    content: 'SP';
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: 12px;
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: white;
    letter-spacing: 1px;
}

.main-content {
    flex: 1;
    padding: 40px;
    background: linear-gradient(135deg, #050505 0%, #000 100%);
    position: relative;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(139, 92, 246, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(167, 139, 250, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.header-bar {
    height: auto;
    background: transparent;
    border-radius: 0;
    margin-bottom: 40px;
    width: 100%;
    position: relative;
    overflow: visible;
    box-shadow: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-bar::before {
    content: 'Script Pro';
    position: static;
    font-family: Arial, sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    animation: none;
}

.header-bar::after {
    content: '';
    display: none;
}

.script-lines {
    position: relative;
    z-index: 1;
}

.script-lines .line {
    margin-bottom: 20px;
    font-family: 'Courier Prime', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0;
    animation: fadeInLine 0.5s ease-out forwards;
}

.script-lines .line:nth-child(1) { animation-delay: 0.2s; }
.script-lines .line:nth-child(2) { animation-delay: 0.4s; }
.script-lines .line:nth-child(3) { animation-delay: 0.6s; }
.script-lines .line:nth-child(4) { animation-delay: 0.8s; }

@keyframes fadeInLine {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.scene-heading { 
    font-weight: bold; 
    color: #fff; 
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.action { 
    color: #b4b4b4;
    line-height: 1.8;
}

.character { 
    text-align: center; 
    margin-top: 28px; 
    width: 60%; 
    margin-left: auto; 
    margin-right: auto; 
    color: #fff; 
    font-weight: bold;
    letter-spacing: 0.05em;
}

.dialogue { 
    text-align: center; 
    width: 60%; 
    margin-left: auto; 
    margin-right: auto; 
    color: #b4b4b4;
    line-height: 1.8;
}

/* Features Section - Modern Cards */
.features {
    padding: 8rem 0;
    background: rgba(0, 0, 0, 0.3);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.25rem;
    line-height: 1.8;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.feature-card:hover::before {
    opacity: 0.1;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.2);
}

.feature-card > * {
    position: relative;
    z-index: 1;
}

.icon-box {
    width: 64px;
    height: 64px;
    background: var(--primary-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

/* Download Section - Eye-catching */
.download-section {
    padding: 8rem 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(109, 40, 217, 0.05) 100%);
    position: relative;
}

.download-section h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.download-section p {
    color: var(--text-secondary);
    font-size: 1.25rem;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.download-section .cta-buttons {
    justify-content: center;
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
}

/* Footer - Clean & Modern */
footer {
    padding: 5rem 0 3rem;
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 2.5rem;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.social-links a {
    color: var(--text-secondary);
    margin-left: 1.5rem;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--text-primary);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 2rem;
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-150%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: -1;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .hero {
        padding: 8rem 0 4rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .cta-buttons {
        justify-content: center;
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .device-mockup {
        transform: none;
    }

    .screen {
        height: 300px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .download-section h2 {
        font-size: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .footer-links a {
        margin: 0;
    }
}
