/* ==========================================
   BASE STYLES & RESET
   ========================================== */

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

:root {
    /* Colors - Deep Navy Blue Theme */
    --primary-navy: #1a1b3b;
    --primary-navy-light: #2a2d5a;
    --accent-blue: #4a6cf7;
    --accent-purple: #7c3aed;
    --text-primary: #1a1b3b;
    --text-secondary: #6b7280;
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --bg-card: #f5f5f7;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --section-padding: 120px;
    --container-max: 1200px;
    
    /* Effects */
    --blur-glass: blur(20px);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
    --glow-blue: 0 0 60px rgba(74, 108, 247, 0.3);
    --glow-purple: 0 0 80px rgba(124, 58, 237, 0.2);
}

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

/* ==========================================
   NAVIGATION
   ========================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 20px;
    color: var(--primary-navy);
}

.logo {
    width: 40px;
    height: 40px;
    background: var(--primary-navy);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 800;
    font-size: 24px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--accent-blue);
}

.btn-download {
    background: var(--primary-navy);
    color: white !important;
    padding: 10px 24px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-download:hover {
    background: var(--primary-navy-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
    padding: 180px 40px 100px;
    text-align: center;
    background: 
        radial-gradient(circle at 20% 50%, rgba(74, 108, 247, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.06) 0%, transparent 50%),
        var(--bg-white);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 72px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--primary-navy);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 80px;
}

.btn-primary {
    background: var(--primary-navy);
    color: white;
    padding: 16px 40px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: var(--shadow-card);
}

.btn-primary:hover {
    background: var(--primary-navy-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

.btn-secondary {
    background: white;
    color: var(--primary-navy);
    padding: 16px 40px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid var(--primary-navy);
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--primary-navy);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

/* ==========================================
   DEVICE MOCKUPS
   ========================================== */

.device-showcase {
    margin-top: 60px;
    position: relative;
}

.device-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    perspective: 1000px;
}

.ipad-mockup {
    width: 600px;
    height: 440px;
    background: #1a1b3b;
    border-radius: 24px;
    padding: 12px;
    box-shadow: 
        0 20px 60px rgba(26, 27, 59, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transform: rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.ipad-mockup:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
}

.iphone-mockup {
    width: 240px;
    height: 480px;
    background: #1a1b3b;
    border-radius: 36px;
    padding: 8px;
    box-shadow: 
        0 20px 60px rgba(26, 27, 59, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transform: rotateY(5deg) rotateX(2deg) translateY(20px);
    transition: transform 0.5s ease;
}

.iphone-mockup:hover {
    transform: rotateY(0deg) rotateX(0deg) translateY(0px) scale(1.02);
}

.device-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f1120 0%, #1a1b3b 100%);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.iphone-mockup .device-screen {
    border-radius: 28px;
}

.notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 24px;
    background: #000;
    border-radius: 0 0 16px 16px;
    z-index: 10;
}

/* Mock Interface Styles */
.mock-interface {
    display: flex;
    height: 100%;
    padding: 20px;
    gap: 16px;
}

.mock-sidebar {
    width: 140px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mock-item {
    height: 32px;
    background: rgba(74, 108, 247, 0.3);
    border-radius: 6px;
}

.mock-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mock-header {
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.mock-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mock-line {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    width: 100%;
}

.mock-line.short {
    width: 60%;
}

.mock-line.medium {
    width: 80%;
}

.mock-chat {
    width: 180px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mock-message {
    height: 50px;
    background: rgba(74, 108, 247, 0.3);
    border-radius: 12px;
}

.mock-message.user {
    background: rgba(124, 58, 237, 0.3);
    align-self: flex-end;
}

/* iPhone Mock Interface */
.mock-interface-mobile {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 32px 16px 16px;
    gap: 12px;
}

.mock-header-mobile {
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.mock-chat-mobile {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: flex-end;
}

/* ==========================================
   FEATURES SECTION
   ========================================== */

.features {
    padding: var(--section-padding) 40px;
    background: var(--bg-light);
}

.features-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.feature-card {
    background: white;
    padding: 40px 32px;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-soft);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--primary-navy);
    font-weight: 700;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15px;
}

/* ==========================================
   WORKFLOW SECTION
   ========================================== */

.workflow {
    padding: var(--section-padding) 40px;
    background: white;
    text-align: center;
}

.workflow-container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.workflow-container h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--primary-navy);
}

.workflow-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 60px;
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.workflow-step {
    padding: 32px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: var(--glow-blue);
}

.workflow-step h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--primary-navy);
    font-weight: 700;
}

.workflow-step p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==========================================
   FAQ SECTION
   ========================================== */

.faq {
    padding: var(--section-padding) 40px;
    background: var(--bg-light);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-container h2 {
    font-size: 48px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
    color: var(--primary-navy);
}

.faq-item {
    background: white;
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-soft);
}

.faq-question {
    padding: 28px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.faq-question h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-navy);
}

.faq-icon {
    font-size: 24px;
    font-weight: 300;
    color: var(--accent-blue);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 32px 28px;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 15px;
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    background: var(--primary-navy);
    color: white;
    padding: 80px 40px 40px;
    text-align: center;
}

.footer-content h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 32px;
}

.footer-content .btn-primary {
    background: white;
    color: var(--primary-navy);
    margin-bottom: 60px;
}

.footer-content .btn-primary:hover {
    background: var(--bg-light);
}

.footer-links {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

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

@media (max-width: 768px) {
    .hero-title {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .device-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .ipad-mockup {
        width: 90%;
        height: auto;
        aspect-ratio: 4/3;
        transform: none;
    }
    
    .iphone-mockup {
        width: 60%;
        height: auto;
        aspect-ratio: 9/19.5;
        transform: none;
    }
    
    .nav-links {
        gap: 16px;
        font-size: 14px;
    }
    
    .features-container {
        grid-template-columns: 1fr;
    }
    
    .workflow-steps {
        grid-template-columns: 1fr;
    }
}
