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

:root {
    --primary-color: #5B4CFF;
    --primary-hover: #4A3EE0;
    --secondary-color: #1A1A2E;
    --text-primary: #1A1A2E;
    --text-secondary: #666;
    --background: #FFFFFF;
    --background-alt: #F8F9FB;
    --border-color: #E5E7EB;
    --success-color: #10B981;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --max-width: 1200px;
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background: var(--background);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
}

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

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: var(--shadow-sm);
}

header nav {
    padding: 1.5rem 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

.nav-link:hover {
    color: var(--text-primary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(180deg, #F8F9FB 0%, #FFFFFF 100%);
}

.hero-content {
    text-align: center;
    margin-bottom: 4rem;
}

.hero h1 {
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* Email CTA */
.email-cta {
    margin: 2rem 0;
}

.email-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.email-form input[type="email"] {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.email-form input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-note {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Demo Container */
.demo-container {
    max-width: 800px;
    margin: 0 auto;
}

.demo-window {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.demo-header {
    background: #F3F4F6;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.demo-dots {
    display: flex;
    gap: 0.5rem;
}

.demo-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #D1D5DB;
}

.demo-dots span:first-child {
    background: #EF4444;
}

.demo-dots span:nth-child(2) {
    background: #F59E0B;
}

.demo-dots span:last-child {
    background: #10B981;
}

.demo-title {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.demo-content {
    padding: 2rem;
    min-height: 400px;
}

/* Email Demo */
.email-demo {
    opacity: 1;
    transition: opacity 0.5s ease;
}

.email-field {
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.email-label {
    font-weight: 600;
    color: var(--text-secondary);
    margin-right: 0.5rem;
}

.email-body {
    margin: 2rem 0;
    padding: 1rem;
    background: #F9FAFB;
    border-radius: 8px;
    min-height: 200px;
    font-family: monospace;
    white-space: pre-wrap;
    position: relative;
    text-align: left;
}

#typing-text {
    display: inline;
}


.send-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.send-btn.ready {
    opacity: 1;
}

.send-btn.ready:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.send-btn.sending {
    background: var(--success-color);
}

/* Website Preview */
.website-preview {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.preview-header {
    background: #F3F4F6;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.preview-url {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-family: monospace;
}

.preview-content {
    padding: 2rem;
}

.preview-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.preview-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.preview-hero h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.preview-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

/* Beautiful Website Preview */
.website-final {
    opacity: 0;
    transition: opacity 1s ease;
}

.website-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #E5E7EB;
}

.website-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #8B4513;
}

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

.website-nav-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.875rem;
    cursor: pointer;
}

.website-hero {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, #FFF5E6 0%, #FFE4CC 100%);
    border-radius: 12px;
    margin: 2rem 0;
}

.website-hero h2 {
    font-size: 2.5rem;
    color: #2C1810;
    margin-bottom: 0.5rem;
}

.website-hero p {
    font-size: 1.125rem;
    color: #5C4033;
    margin-bottom: 1.5rem;
}

.website-btn {
    background: #8B4513;
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.website-btn:hover {
    background: #A0522D;
    transform: translateY(-1px);
}

.website-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.website-feature {
    text-align: center;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.website-feature:hover {
    transform: translateY(-4px);
}

.website-feature img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.website-feature h3 {
    font-size: 1.125rem;
    color: #2C1810;
    margin: 1rem 0 0.5rem;
}

.website-feature p {
    font-size: 0.875rem;
    color: #666;
    padding: 0 1rem 1rem;
}

/* How It Works Section */
.how-it-works {
    padding: 5rem 0;
    background: var(--background-alt);
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    text-align: center;
}

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

/* Features Section */
.features {
    padding: 5rem 0;
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

.feature {
    padding: 2rem;
    background: var(--background-alt);
    border-radius: 12px;
    transition: transform 0.3s ease;
}

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

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Pricing Section */
.pricing {
    padding: 5rem 0;
    background: var(--background-alt);
}

.pricing h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.pricing-card {
    max-width: 400px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 1rem;
}

.currency {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.amount {
    font-size: 4rem;
    font-weight: 700;
    margin: 0 0.25rem;
}

.period {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.pricing-features {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Final CTA Section */
.final-cta {
    padding: 5rem 0;
    text-align: center;
}

.final-cta h2 {
    margin-bottom: 1rem;
}

.final-cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.email-form.centered {
    justify-content: center;
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand .logo {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    /* Navigation */
    .nav-right {
        display: none;
    }
    
    /* Hero */
    .hero {
        padding: 6rem 0 3rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    /* Email Form */
    .email-form {
        flex-direction: column;
    }
    
    .email-form input[type="email"] {
        width: 100%;
    }
    
    .email-form .btn {
        width: 100%;
    }
    
    /* Demo */
    .demo-content {
        padding: 1rem;
    }
    
    .preview-section {
        grid-template-columns: 1fr;
    }
    
    /* Website Preview */
    .website-features {
        grid-template-columns: 1fr;
    }
    
    .website-hero h2 {
        font-size: 1.75rem;
    }
    
    .website-nav-links {
        gap: 1rem;
    }
    
    /* Steps */
    .steps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .pricing-card {
        padding: 2rem 1.5rem;
    }
    
    .amount {
        font-size: 3rem;
    }
}