/* CSS Variables */
:root {
    --primary: #5F255F;
    --primary-dark: #4a1d4a;
    --primary-light: #7a3d7a;
    --secondary: #22c55e;
    --accent: #dc2626;
    --bg: #ffffff;
    --bg-alt: #f9fafb;
    --text: #111827;
    --text-muted: #6b7280;
    --border: #e5e7eb;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 48px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-cta {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.625rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.nav-cta:hover {
    background: var(--primary-dark);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    padding: 8rem 1.5rem 5rem;
    background: linear-gradient(to bottom, var(--bg-alt), var(--bg));
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(95, 37, 95, 0.1);
    border: 1px solid rgba(95, 37, 95, 0.2);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.hero h1 span {
    color: var(--primary);
    display: block;
}

.hero-content p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 6px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
}

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

.btn-secondary:hover {
    background: rgba(95, 37, 95, 0.05);
}

/* Device Mockups */
.tablet-mockup {
    max-width: 100%;
}

.tablet-frame {
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    border-radius: 20px;
    padding: 14px;
    box-shadow: 0 50px 100px -20px rgba(0,0,0,0.25);
    position: relative;
}

.tablet-camera {
    position: absolute;
    top: 50%;
    left: 7px;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #333;
    border-radius: 50%;
}

.tablet-screen {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.tablet-screen img {
    width: 100%;
    display: block;
}

.phone-mockup {
    width: 280px;
    margin: 0 auto;
}

.phone-frame {
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    border-radius: 36px;
    padding: 12px;
    box-shadow: 0 50px 100px -20px rgba(0,0,0,0.25);
    position: relative;
}

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 26px;
    background: #1a1a1a;
    border-radius: 0 0 14px 14px;
    z-index: 10;
}

.phone-screen {
    background: #f8f8f8;
    border-radius: 28px;
    overflow: hidden;
    aspect-ratio: 9/19;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

/* Feature Sections */
.feature-section {
    padding: 5rem 1.5rem;
}

.feature-section.feature-alt {
    background: var(--bg-alt);
}

.feature-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-container.reverse {
    direction: rtl;
}

.feature-container.reverse > * {
    direction: ltr;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(95, 37, 95, 0.1);
    border-radius: 8px;
    padding: 0.375rem 0.75rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.feature-content h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.feature-content > p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.feature-highlight {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0 8px 8px 0;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.feature-highlight i {
    color: #f59e0b;
    margin-top: 2px;
}

.feature-highlight p {
    color: #92400e;
    font-size: 0.875rem;
    margin: 0;
}

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

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.feature-list i {
    color: var(--secondary);
    margin-top: 4px;
}

/* Scroll Animations */
.slide-right, .slide-left {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-right {
    transform: translateX(80px);
}

.slide-left {
    transform: translateX(-80px);
}

.slide-right.visible, .slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Additional Features */
.additional-features {
    padding: 5rem 1.5rem;
    background: var(--primary);
}

.additional-container {
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
}

.additional-container h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
}

.additional-container > p {
    color: rgba(255,255,255,0.7);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: background 0.3s;
}

.feature-card:hover {
    background: rgba(255,255,255,0.15);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.feature-icon i {
    font-size: 1.25rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
}

/* Demo Section */
.demo-section {
    padding: 5rem 1.5rem;
    background: var(--bg-alt);
}

.demo-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.demo-content h2 {
    font-size: 2.5rem;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.demo-content h2 span {
    color: var(--primary);
    display: block;
}

.demo-content > p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.demo-benefits {
    list-style: none;
}

.demo-benefits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.demo-benefits i {
    color: var(--secondary);
}

/* Demo Form */
.demo-form-wrapper {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.demo-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--bg-alt);
    color: var(--text);
    transition: border-color 0.2s;
}

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

.form-group textarea {
    min-height: 100px;
    resize: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
}

.btn-submit {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: var(--primary-dark);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-success {
    text-align: center;
    padding: 3rem 1rem;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.success-icon i {
    font-size: 2rem;
    color: var(--secondary);
}

.form-success h3 {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.form-success p {
    color: var(--text-muted);
}

/* Footer */
.footer {
    padding: 4rem 1.5rem 1rem;
    background: white;
    border-top: 1px solid var(--border);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand img {
    height: 56px;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
}

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

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.875rem;
    transition: color 0.2s;
}

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

.footer-contact a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    transition: color 0.2s;
}

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

.footer-contact i {
    color: var(--primary);
}

.footer-bottom {
    max-width: 1280px;
    margin: 3rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-container,
    .feature-container,
    .demo-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .feature-container.reverse {
        direction: ltr;
    }
    
    .hero h1 {
        font-size: 2.75rem;
    }
    
    .hero-image {
        order: -1;
    }
    
    .feature-image {
        order: -1;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 991px) {
    /* Full Screen Mobile Menu Triggered by .active class on #navLinks */
    .nav-links.active {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--primary);
        z-index: 9998;
        gap: 3rem;
    }

    .nav-links.active a {
        color: white !important;
        font-size: 2rem;
        font-family: 'Barlow Condensed', sans-serif;
        font-weight: 700;
    }

    /* Keep the toggle button above the overlay */
    .mobile-menu-btn {
        display: flex !important;
        position: relative;
        z-index: 9999 !important;
    }

    /* X Animation for Hamburger lines */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
        background: white;
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
        background: white;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding-top: 6rem;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .phone-mockup {
        width: 240px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-contact a {
        justify-content: center;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Selection */
::selection {
    background: var(--primary);
    color: white;
}