:root {
    --bg-color: #ffffff;
    --text-color: #1d1d1f;
    --text-muted: #86868b;
    --border-color: #d2d2d7;
    --btn-color: #000000;
    --btn-hover: #333333;
    --card-bg: #f5f5f7;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --success-color: #34c759;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    width: 100%;
    padding: 1rem 0; /* Reduced padding */
    background: #ffffff;
    position: absolute; /* Changed from fixed to prevent blocking content on scroll */
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center; /* Centered Logo */
    align-items: center;
}

.nav-logo-container {
    height: 80px; /* Constrain vertical height */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Crop the extra white space */
}

.nav-logo {
    width: 320px; /* Reduced from 400px to be a bit smaller */
    height: auto;
    object-fit: cover;
}

/* Main Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 10rem 2rem 4rem; /* Top padding accounts for fixed nav */
    text-align: center;
}

/* Hero Section */
.hero-title {
    font-size: 5.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    color: #000;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.hero-image-wrapper {
    margin: -2rem auto 4rem; /* Pulled up slightly to close the gap */
    max-width: 1400px; /* Massive banner */
    width: 100%;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    mix-blend-mode: multiply;
}

/* Search Section - Split Layout Card */
.search-section {
    display: flex;
    justify-content: center;
    margin-bottom: 6rem;
}

.search-card {
    background: var(--card-bg);
    border-radius: 32px;
    width: 100%;
    max-width: 480px; /* Narrower for vertical layout */
    margin: 0 auto;
    display: flex;
    flex-direction: column; /* Vertical stack */
    box-shadow: 0 40px 80px rgba(0,0,0,0.06), 0 2px 10px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.06);
    overflow: hidden;
    text-align: left;
}

.search-card-left {
    background: #000;
    color: #fff;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.search-card-right {
    padding: 2.5rem;
    background: #fff;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--success-color);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.search-card-left h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.search-card-left p {
    color: #a1a1a6;
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1rem;
    font-weight: 500;
}

.feature-list svg {
    width: 20px;
    height: 20px;
}

.apple-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.input-group input {
    width: 100%;
    padding: 1.2rem 1.5rem;
    font-size: 1.1rem;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: #fbfbfd;
    color: var(--text-color);
    font-family: var(--font-sans);
    transition: all 0.2s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.input-group input:focus {
    outline: none;
    border-color: #0071e3;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15), inset 0 2px 4px rgba(0,0,0,0.02);
}

.apple-btn {
    width: 100%;
    padding: 1.3rem;
    font-size: 1.15rem;
    font-weight: 600;
    background: linear-gradient(180deg, #2c2c2e 0%, #000000 100%);
    color: #fff;
    border: none;
    border-radius: 980px;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

.apple-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.apple-btn:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
}

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

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    text-align: left;
}

.feature-box {
    padding: 2.5rem 2rem;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: #000;
    color: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-box h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.feature-box p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Footer */
footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

.footer-logo-container {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.footer-logo {
    height: auto;
    width: 100%;
    max-width: 300px;
    display: block;
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.disclaimer {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Utilities */
.hidden {
    display: none !important;
}

.status-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #fbfbfd;
    border-radius: 16px;
    margin-top: 1rem;
    border: 1px solid var(--border-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.success-animation {
    background: #e8f5e9;
    border-color: #34c759;
    color: #28a745;
    transform: scale(1.02);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-left-color: #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.error-container {
    color: #ff3b30;
    padding: 1rem;
    background: rgba(255, 59, 48, 0.05);
    border-radius: 16px;
    margin-top: 1rem;
    font-weight: 500;
    border: 1px solid rgba(255, 59, 48, 0.2);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

@media (max-width: 900px) {
    .search-card {
        flex-direction: column;
    }
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .hero-image-wrapper {
        margin: 0 auto 5rem; /* extra bottom margin for scaling */
    }
    .hero-image {
        transform: scale(1.4); /* Make the banner much bigger on phones */
    }
    .nav-logo-container {
        height: 60px;
    }
    .nav-logo {
        width: 250px; /* Reduced from 300px for mobile */
    }
    .search-card-left {
        padding: 2rem 1.5rem 1.5rem;
    }
    .search-card-right {
        padding: 1.5rem 1.5rem 2.5rem;
    }
    .features-grid {
        text-align: center;
    }
    .feature-box {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .feature-icon {
        margin: 0 auto 1.5rem;
    }
}
