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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    min-height: 100vh;
}

.section {
    transition: opacity 0.3s ease;
}

.section.hidden {
    display: none;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.logo {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero */
.hero {
    text-align: center;
    padding: 80px 50px;
    color: white;
}

.hero h1 {
    font-size: 52px;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 24px;
    margin-bottom: 40px;
    opacity: 0.95;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-large {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-large {
    padding: 16px 50px;
    font-size: 18px;
    background: white;
    color: #667eea;
    font-weight: 700;
}

.btn-large:hover {
    background: #f5f5f5;
    transform: scale(1.05);
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 80px 50px;
    background: white;
}

.feature {
    text-align: center;
    padding: 30px;
}

.feature .icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.feature h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #667eea;
}

/* Pricing */
.pricing {
    padding: 80px 50px;
    background: #f9f9f9;
}

.pricing h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 50px;
    color: #333;
}

.plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.plan {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.plan.featured {
    border: 3px solid #667eea;
    transform: scale(1.05);
}

.plan h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.price {
    font-size: 36px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 10px;
}

.price span {
    font-size: 16px;
    color: #999;
}

.plan ul {
    list-style: none;
    margin: 30px 0;
    text-align: left;
}

.plan li {
    padding: 8px 0;
    color: #666;
}

/* App Page */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 50px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.app-header h1 {
    font-size: 32px;
    color: #333;
}

.app-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 50px;
    background: white;
    min-height: calc(100vh - 100px);
}

.form-section, .output-section {
    display: flex;
    flex-direction: column;
}

.form-section h2, .output-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

textarea {
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 120px;
    margin-bottom: 20px;
    transition: border-color 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.options {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

select {
    flex: 1;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.email-output {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #ddd;
    max-height: 600px;
    overflow-y: auto;
    flex-grow: 1;
    margin-bottom: 20px;
}

.email-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #667eea;
}

.email-item h4 {
    color: #667eea;
    margin-bottom: 10px;
}

.email-item p {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
    white-space: pre-wrap;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    max-width: 400px;
    width: 100%;
}

.modal-content h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.modal-content input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.modal-content input:focus {
    outline: none;
    border-color: #667eea;
}

.modal-text {
    text-align: center;
    color: #999;
    font-size: 12px;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .features, .plans, .app-container {
        grid-template-columns: 1fr;
    }
    
    .plan.featured {
        transform: scale(1);
    }
    
    .navbar {
        padding: 15px 20px;
    }
    
    .hero {
        padding: 40px 20px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .app-header {
        flex-direction: column;
        gap: 15px;
    }
}

.loading {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #667eea;
    animation: blink 1.4s infinite;
    margin: 0 2px;
}

@keyframes blink {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 1; }
}
