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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1a365d;
    background: 
        linear-gradient(rgba(0,0,0,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.02) 1px, transparent 1px),
        #fafbfc;
    background-size: 20px 20px;
    overflow-x: hidden;
}

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

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(248, 250, 252, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(248, 250, 252, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 4px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #1a365d;
    letter-spacing: -0.5px;
}

.nav-desktop {
    display: flex;
    align-items: center;
}

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

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: #1a365d;
    transition: all 0.3s ease;
}

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

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

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

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(248, 250, 252, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 20px;
}

/* CTA Button */
.cta-button {
    background: #1a365d;
    color: white;
    border: none;
    padding: 16px 28px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    background: #2d3748;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 54, 93, 0.3);
}

.cta-button:active {
    transform: translateY(0);
}

/* Main Content */
.main {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    padding: 60px 0;
}

.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-content {
    max-width: 560px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    color: #1a365d;
    margin-bottom: 32px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 20px;
    color: #4a5568;
    margin-bottom: 48px;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
    margin-bottom: 48px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
    font-size: 18px;
    color: #2d3748;
}

.check-icon {
    background: #48bb78;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Signup Form */
.signup-form {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.email-input-container {
    position: relative;
    flex: 1;
    min-width: 280px;
}

.email-input {
    width: 100%;
    padding: 20px 50px 20px 24px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 18px;
    background: white;
    transition: all 0.3s ease;
}

.email-input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.email-input::placeholder {
    color: #a0aec0;
}

.email-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #48bb78;
    font-size: 18px;
    pointer-events: none;
}

.form-cta {
    padding: 20px 36px;
    font-size: 18px;
    white-space: nowrap;
}

/* Hero Illustration */
.hero-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
}

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

/* Footer */
.footer {
    background: #1a365d;
    color: white;
    padding: 20px 0;
    margin-top: auto;
}

.footer-content {
    text-align: center;
}

.footer-text {
    font-size: 14px;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-section {
        gap: 60px;
    }
    
    .hero-title {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-section {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
        padding: 20px 0;
    }
    
    .hero-content {
        max-width: 100%;
        order: 2;
        padding: 0 10px;
    }
    
    .hero-illustration {
        order: 1;
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 40px;
        margin-bottom: 28px;
        line-height: 1.1;
        padding: 0 10px;
    }
    
    .hero-subtitle {
        font-size: 18px;
        margin-bottom: 44px;
        line-height: 1.6;
        padding: 0 15px;
    }
    
    .feature-list {
        text-align: left;
        margin-bottom: 40px;
        padding: 0 20px;
    }
    
    .signup-form {
        flex-direction: column;
        gap: 16px;
        padding: 0 20px;
    }
    
    .email-input-container {
        min-width: auto;
    }
    
    .form-cta {
        width: 100%;
        padding: 18px 24px;
        font-size: 16px;
    }
    
    .email-input {
        padding: 18px 50px 18px 24px;
        font-size: 16px;
    }
    
    .main {
        padding: 60px 0;
        min-height: calc(100vh - 70px);
    }
    
    .container {
        padding: 0 20px;
    }
    
    .hero-illustration img {
        max-width: 90%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .header-content {
        height: 60px;
    }
    
    .main {
        margin-top: 60px;
        padding: 40px 0;
        min-height: calc(100vh - 60px);
    }
    
    .hero-title {
        font-size: 32px;
        line-height: 1.2;
        padding: 0 5px;
        margin-bottom: 24px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        padding: 0 10px;
        margin-bottom: 36px;
    }
    
    .feature-item {
        font-size: 16px;
        margin-bottom: 18px;
        gap: 16px;
    }
    
    .check-icon {
        width: 24px;
        height: 24px;
        font-size: 14px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .hero-illustration img {
        max-width: 85%;
        height: auto;
    }
    
    .signup-form {
        padding: 0 15px;
        gap: 14px;
    }
    
    .email-input {
        padding: 16px 45px 16px 20px;
        font-size: 15px;
    }
    
    .form-cta {
        padding: 16px 20px;
        font-size: 15px;
    }
    
    .container {
        padding: 0 15px;
    }
}

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

.hero-content > * {
    animation: fadeInUp 0.8s ease forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.3s; }
.hero-content > *:nth-child(4) { animation-delay: 0.4s; }

.hero-illustration {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.5s;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus indicators */
button:focus-visible,
input:focus-visible {
    outline: 2px solid #4299e1;
    outline-offset: 2px;
}

/* Mobile-specific improvements */
@media (max-width: 768px) {
    .feature-item {
        align-items: flex-start;
        gap: 18px;
    }
    
    .check-icon {
        margin-top: 1px;
    }
    
    .hero-illustration {
        margin-bottom: 20px;
    }
    
    .mobile-menu-toggle {
        padding: 12px;
    }
    
    .mobile-menu-toggle span {
        width: 26px;
        height: 3px;
    }
}

/* Footer */
.footer {
    background: #1a365d;
    color: white;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 32px;
    height: 32px;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 4px;
}

.footer-logo-text {
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.footer-description {
    color: #cbd5e0;
    line-height: 1.6;
    font-size: 16px;
}

.footer-links {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 12px;
}

.footer-link {
    color: #cbd5e0;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #2d3748;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright p {
    color: #a0aec0;
    font-size: 14px;
    margin: 0;
}

.footer-legal p {
    color: #a0aec0;
    font-size: 12px;
    margin: 0;
    text-align: right;
}

/* Footer Mobile Responsive */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
        margin-top: 60px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 30px;
    }
    
    .footer-links {
        justify-content: center;
        margin-top: 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-legal p {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 30px 0 15px;
    }
    
    .footer-content {
        gap: 30px;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .footer-title {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .footer-link {
        font-size: 14px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .header {
        border-bottom: 2px solid #000;
    }
    
    .cta-button {
        border: 2px solid #000;
    }
    
    .email-input {
        border: 2px solid #000;
    }
}
