/* CSS Variables */
:root {
    --primary-dark: #1a2332;
    --primary-blue: #005f73;
    --accent-orange: #ff6b35;
    --accent-yellow: #ffd23f;
    --gray-900: #1a202c;
    --gray-800: #2d3748;
    --gray-700: #4a5568;
    --gray-600: #718096;
    --gray-500: #a0aec0;
    --gray-400: #cbd5e0;
    --gray-300: #e2e8f0;
    --gray-200: #edf2f7;
    --gray-100: #f7fafc;
    --white: #ffffff;
    --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);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
}

/* Navigation Override */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

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

.nav-brand a {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-decoration: none;
}

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

.nav-link {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-orange);
    border-radius: 2px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--gray-700);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.page-hero {
    margin-top: 80px;
    padding: 120px 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.02) 35px, rgba(255,255,255,.02) 70px),
        repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(255,255,255,.02) 35px, rgba(255,255,255,.02) 70px);
    pointer-events: none;
}

.page-hero h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
    text-align: center;
}

.page-subtitle {
    font-size: 1.5rem;
    color: var(--gray-300);
    text-align: center;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

/* CTA Section */
.cta-section {
    padding: 60px 0;
    background: var(--gray-100);
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
}

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

.cta-headline {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-weight: 800;
    text-transform: uppercase;
}

.cta-subheading {
    color: var(--gray-600);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    background: var(--white);
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    display: inline-block;
}

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

.cta-btn img {
    height: 50px;
    display: block;
}

/* App Details Section */
.app-details {
    padding: 80px 0;
    background: var(--white);
}

.app-overview {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: start;
}

.overview-content h2 {
    color: var(--primary-dark);
    margin-bottom: 2rem;
}

.overview-content > p {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 3rem;
}

/* App Features */
.app-features {
    background: var(--gray-100);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 3rem;
}

.app-features h3 {
    color: var(--primary-dark);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.app-features h3::before {
    content: '⚙️';
    font-size: 1.5rem;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    list-style: none;
}

.feature-list li {
    padding: 1rem;
    background: var(--white);
    border-radius: 8px;
    color: var(--gray-700);
    position: relative;
    padding-left: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.feature-list li:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
    color: var(--primary-dark);
}

.feature-list li::before {
    content: '→';
    position: absolute;
    left: 1rem;
    color: var(--accent-orange);
    font-weight: bold;
}

/* App Benefits */
.app-benefits {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    border-radius: 16px;
    padding: 2.5rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.app-benefits::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

.app-benefits h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.app-benefits p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray-300);
    position: relative;
    z-index: 1;
}

/* App Screenshots */
.app-screenshots {
    position: sticky;
    top: 100px;
}

.screenshot-placeholder {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: transform 0.3s ease;
}

.screenshot-placeholder:hover {
    transform: scale(1.02);
}

.screenshot-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-content {
    padding: 60px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.placeholder-content svg {
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.placeholder-content p {
    color: var(--gray-600);
    font-size: 1.125rem;
    font-weight: 500;
}

/* Policy Links */
.policy-links {
    margin-top: 40px;
    text-align: center;
    padding: 2rem;
    background: rgba(0, 95, 115, 0.05);
    border-radius: 12px;
}

.policy-links p {
    color: var(--gray-600);
    font-size: 14px;
}

.policy-links a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
}

.policy-links a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Download Section (Legacy) */
.download-section {
    text-align: center;
    padding: 60px 0;
    background: var(--bg-light);
    border-radius: 12px;
    margin-bottom: 60px;
}

.download-section h3 {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.download-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.download-btn {
    display: inline-flex;
    flex-direction: column;
    padding: 15px 40px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.download-btn span {
    font-size: 12px;
    opacity: 0.9;
}

.download-btn strong {
    font-size: 18px;
    margin-top: 3px;
}

/* Testimonials */
.app-testimonials {
    margin-bottom: 60px;
}

.app-testimonials h3 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.testimonial p {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.7;
}

.testimonial cite {
    font-style: normal;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 14px;
}

/* Contact Page Styles */
.contact-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.contact-form {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

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

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

.form-group input.error,
.form-group textarea.error {
    border-color: var(--accent-color);
}

.submit-btn {
    background: var(--secondary-color);
    color: white;
    padding: 12px 40px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #2980b9;
}

.contact-info {
    text-align: center;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

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

/* Policy Pages */
.policy-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.policy-content h2 {
    font-size: 28px;
    margin: 40px 0 20px;
    color: var(--primary-color);
}

.policy-content h3 {
    font-size: 20px;
    margin: 30px 0 15px;
    color: var(--primary-color);
}

.policy-content p {
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.policy-content ul,
.policy-content ol {
    margin: 20px 0;
    padding-left: 30px;
    color: var(--text-secondary);
}

.policy-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.last-updated {
    font-style: italic;
    color: var(--text-secondary);
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Responsive Adjustments */
@media (max-width: 968px) {
    .app-overview {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .app-screenshots {
        position: static;
        margin-top: 3rem;
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
    }

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

    .nav-toggle {
        display: flex;
    }
    
    .page-hero h1 {
        font-size: 32px;
    }
    
    .cta-headline {
        font-size: 32px;
    }
    
    .cta-subheading {
        font-size: 16px;
        padding: 0 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn img {
        height: 45px;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .download-btn {
        width: 200px;
    }
    
    .feature-list {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .page-hero {
        padding: 60px 0;
    }
    
    .page-hero h1 {
        font-size: 28px;
    }
    
    .cta-section {
        padding: 40px 0;
    }
    
    .cta-headline {
        font-size: 24px;
    }
    
    .cta-subheading {
        font-size: 14px;
    }
    
    .cta-btn img {
        height: 40px;
    }
    
    .overview-content h2 {
        font-size: 24px;
    }
}