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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* CSS Variables - App-Aligned Color System */
:root {
    /* Core App Colors */
    --pure-white: #FFFFFF;
    --background-gray: #F2F2F7;
    --surface-gray: #E5E5EA;
    --light-silver: #C7C7CC;
    --medium-gray: #8E8E93;
    --text-gray: #6C6C6C;
    --pure-charcoal: #2B2B2B;
    
    /* Enhanced Text Colors for Better Readability */
    --dark-text: #2B2B2B;        /* For light backgrounds - WCAG AA compliant */
    --medium-text: #3A3A3A;      /* Better contrast on light backgrounds - 8.5:1 ratio */
    --light-text: #E8E8ED;       /* For dark backgrounds - WCAG AA compliant - 7.5:1 ratio */
    --icon-bg: #FFFFFF;          /* Icon background for visibility */
    --dark-charcoal: #1A1A1A;    /* Darker variant for cards */
    
    /* Legacy Support (minimal usage) */
    --primary-color: #007AFF;
    --success-color: #28a745;
    --error-color: #dc3545;
    --white: #FFFFFF;
    --charcoal: #2B2B2B;
    
    /* Gradients - Subtle and Clean */
    --gradient-hero: linear-gradient(135deg, #FFFFFF 0%, #F2F2F7 100%);
    --gradient-section: linear-gradient(135deg, #F2F2F7 0%, #E5E5EA 100%);
    
    /* Shadows - Subtle and Professional */
    --shadow-card: 0 4px 16px rgba(43, 43, 43, 0.08);
    --shadow-button: 0 2px 8px rgba(43, 43, 43, 0.12);
    --shadow-light: 0 2px 4px rgba(43, 43, 43, 0.04);
    --shadow-dark: 0 4px 16px rgba(0, 0, 0, 0.2);
    
    /* Border Radius */
    --border-radius: 8px;
    --border-radius-large: 12px;
    --transition: all 0.2s ease;
}

/* Typography */
.gradient-text {
    color: #007AFF;
    font-weight: 700;
    display: inline-block;
}

/* Layout Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--medium-text);
    max-width: 600px;
    margin: 0 auto;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    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: var(--transition);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--charcoal);
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
    object-fit: contain;
}

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

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

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--primary-color);
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}

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

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

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

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--charcoal);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 140px 0 100px;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23ffffff" stroke-width="0.5" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>') repeat;
    opacity: 0.5;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--pure-charcoal);
    letter-spacing: -0.01em;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--medium-text);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 650px;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Waitlist Form Styles */
.waitlist-form {
    margin-top: 1.5rem;
    padding: 2rem;
    background: var(--pure-white);
    border-radius: var(--border-radius-large);
    border: 1px solid var(--surface-gray);
    box-shadow: var(--shadow-card);
    max-width: 480px;
}

.waitlist-text {
    color: var(--pure-charcoal);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

.email-form input {
    flex: 1;
    padding: 1rem;
    border: 1px solid var(--light-silver);
    border-radius: var(--border-radius);
    background: var(--pure-white);
    color: var(--pure-charcoal);
    font-size: 1rem;
    transition: var(--transition);
}

.email-form input::placeholder {
    color: var(--medium-gray);
    opacity: 0.7;
}

.email-form input:focus {
    outline: none;
    border-color: var(--pure-charcoal);
    box-shadow: 0 0 0 2px rgba(43, 43, 43, 0.1);
}

.btn-accent {
    background: var(--pure-charcoal);
    color: var(--pure-white);
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    min-width: 120px;
    box-shadow: 0 2px 8px rgba(43, 43, 43, 0.3);
}

.btn-accent:hover {
    background: var(--text-gray);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(43, 43, 43, 0.4);
}

.btn-accent:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-accent.loading .btn-text {
    opacity: 0;
}

.btn-accent.loading .btn-loading {
    opacity: 1;
}

.btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-message {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    text-align: center;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.form-message.success {
    color: var(--success-color);
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.form-message.error {
    color: var(--error-color);
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--pure-charcoal);
    color: var(--pure-white);
    box-shadow: var(--shadow-button);
}

.btn-primary:hover {
    background: var(--text-gray);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

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

.btn-secondary {
    background: transparent;
    color: var(--pure-charcoal);
    border-color: var(--light-silver);
}

.btn-secondary:hover {
    background: var(--surface-gray);
    color: var(--pure-charcoal);
    border-color: var(--medium-gray);
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* App Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.app-mockup {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 25px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
    animation: float 6s ease-in-out infinite;
    border: 3px solid #2a2a2a;
}

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

.analysis-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    color: white;
    font-size: 12px;
}

.item-icon {
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--pure-charcoal);
    color: var(--white);
}

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

.feature-card {
    background: var(--dark-charcoal);
    padding: 2rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-dark);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    opacity: 1;
    visibility: visible;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--icon-bg);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--dark-text);
    flex-shrink: 0;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    display: block;
    fill: currentColor;
}

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

.feature-description {
    color: var(--light-text);
    line-height: 1.6;
}

.features .section-title {
    color: var(--white);
}

.features .section-description {
    color: var(--light-text);
}

/* How It Works Section */
.how-it-works {
    padding: 100px 0;
    background: var(--white);
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 1;
    visibility: visible;
}

.step {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
    opacity: 1;
    visibility: visible;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
}

.step-description {
    color: var(--medium-text);
    line-height: 1.6;
}

/* Technology Section */
.technology {
    padding: 100px 0;
    background: var(--charcoal);
    color: var(--white);
}

.tech-content-centered {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-text-centered {
    text-align: center;
    max-width: 1000px;
}

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

.technology .section-title {
    color: var(--white);
}

.technology .section-description {
    color: rgba(255, 255, 255, 0.9);
}

.tech-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

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

.tech-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.tech-feature h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.tech-feature p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Code Window */
.code-window {
    background: #1e1e1e;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
}

.window-header {
    background: #2d2d2d;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.window-controls {
    display: flex;
    gap: 8px;
}

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

.control.close {
    background: #ff5f57;
}

.control.minimize {
    background: #ffbd2e;
}

.control.maximize {
    background: #28ca42;
}

.window-title {
    color: #ccc;
    font-size: 0.9rem;
}

.code-content {
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    overflow-x: auto;
}

.code-content .keyword {
    color: #569cd6;
}

.code-content .function {
    color: #dcdcaa;
}

.code-content .type {
    color: #4ec9b0;
}

.code-content .param {
    color: #9cdcfe;
}

.code-content .variable {
    color: #9cdcfe;
}

.code-content .property {
    color: #9cdcfe;
}

/* Coming Soon Section */
.coming-soon-section {
    padding: 100px 0;
    background: var(--light-gray);
}

.coming-soon-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.development-status {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 3rem 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.status-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    text-align: center;
}

.status-icon {
    width: 48px;
    height: 48px;
    background: var(--icon-bg);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.status-icon svg {
    width: 24px;
    height: 24px;
    fill: #000000;
}

.notify-launch {
    margin-top: 3rem;
}

.notify-launch p {
    font-size: 1.125rem;
    color: var(--charcoal);
    margin-bottom: 1rem;
}

.email-signup {
    display: flex;
    justify-content: center;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.email-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--light-silver);
    border-radius: var(--border-radius);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
    color: var(--dark-text);
}

.email-input:focus {
    border-color: var(--primary-color);
}

.notify-btn {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.notify-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.coming-soon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
}

.coming-soon-text {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--charcoal);
    font-weight: 500;
}

/* Footer */
.footer {
    background: var(--charcoal);
    color: var(--white);
    padding: 60px 0 20px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

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

.link-group h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--white);
}

.link-group a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

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

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

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.social-links svg {
    width: 20px;
    height: 20px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

[data-aos="zoom-in"] {
    transform: scale(0.9);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        transition: var(--transition);
        box-shadow: var(--shadow-medium);
    }

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

    .nav-toggle {
        display: flex;
    }

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

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

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

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

    .hero-title {
        font-size: 2.5rem;
    }

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

    .section-title {
        font-size: 2rem;
    }

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

    .tech-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .step {
        flex-direction: column;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

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

    .email-signup {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 120px 0 80px;
    }

    .hero-title {
        font-size: 2.25rem;
        line-height: 1.3;
    }

    .gradient-text {
        white-space: normal;
        display: block;
        margin-top: 0.25rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    .phone-mockup {
        width: 240px;
        height: 480px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .step {
        padding: 1.5rem;
    }
    
    .email-form {
        flex-direction: column;
    }
    
    .form-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .email-form input {
        margin-bottom: 1rem;
        font-size: 16px;  /* Prevents iOS auto-zoom */
    }

    .waitlist-form {
        max-width: 100%;
        padding: 1.5rem;
    }
}