/* 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', Roboto, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #111827;
    background-color: #F9FAFB;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: #111827;
}

h1 {
    font-size: 60px;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 40px;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

p {
    color: #374151;
    margin-bottom: 16px;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.btn-primary {
    background-color: #0057FF;
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: #0043C7;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #FFFFFF;
    color: #374151;
    border: 1px solid #E5E7EB;
}

.btn-secondary:hover {
    background-color: #F9FAFB;
    border-color: #0057FF;
    color: #0057FF;
}

.btn-large {
    padding: 18px 32px;
    font-size: 18px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

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

/* Header */
.header {
    position: sticky;
    top: 0;
    background-color: #FFFFFF;
    border-bottom: 1px solid #E5E7EB;
    z-index: 100;
    height: 72px;
}

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

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

.logo-icon {
    width: 32px;
    height: 32px;
    background-color: #0057FF;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-svg {
    color: #FFFFFF;
    width: 20px;
    height: 20px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: color 200ms;
}

.nav-link:hover {
    color: #0057FF;
}

/* Language Selector */
.language-selector {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    cursor: pointer;
    transition: all 200ms;
}

.language-btn:hover {
    background-color: #EBF2FF;
    border-color: #0057FF;
}

.flag-icon {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}

.lang-code {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.chevron-icon {
    width: 16px;
    height: 16px;
    color: #6B7280;
    transition: transform 200ms;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 200ms;
    z-index: 1000;
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: #374151;
    transition: background-color 200ms;
}

.language-option:hover {
    background-color: #F9FAFB;
}

.language-option:first-child {
    border-radius: 8px 8px 0 0;
}

.language-option:last-child {
    border-radius: 0 0 8px 8px;
}

/* Hero Section */
.hero {
    padding: 96px 0;
    text-align: center;
    background: linear-gradient(135deg, #F9FAFB 0%, #FFFFFF 100%);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    margin-bottom: 24px;
    background: linear-gradient(135deg, #111827 0%, #0057FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: #6B7280;
    margin-bottom: 48px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-features {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #374151;
    font-size: 16px;
}

.feature-icon {
    width: 20px;
    height: 20px;
    color: #10B981;
}

/* Section Styles */
.section-title {
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    font-size: 20px;
    color: #6B7280;
    margin-bottom: 64px;
}

.section-header {
    margin-bottom: 64px;
}

/* Generator Section */
.generator {
    padding: 96px 0;
}

.generator-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 0 auto;
}

.generator-header {
    text-align: center;
    margin-bottom: 48px;
}

.form-group {
    margin-bottom: 32px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    height: 56px;
    padding: 0 20px;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    font-size: 18px;
    transition: all 200ms;
    background: #FFFFFF;
}

.form-input:focus {
    outline: none;
    border-color: #0057FF;
    box-shadow: 0 0 0 3px rgba(0, 87, 255, 0.2);
}

.input-stats {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #6B7280;
}

/* Type Selector */
.type-selector {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.type-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 24px;
    cursor: pointer;
    transition: all 200ms;
    color: #374151;
    font-size: 16px;
}

.type-btn:hover {
    background: #FFFFFF;
    border-color: #0057FF;
}

.type-btn.active {
    background: #0057FF;
    border-color: #0057FF;
    color: #FFFFFF;
}

.type-icon {
    width: 16px;
    height: 16px;
}

/* Results Section */
.results-section {
    margin-top: 48px;
    border-top: 1px solid #E5E7EB;
    padding-top: 32px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.results-actions {
    display: flex;
    gap: 12px;
}

.results-content {
    background: #F9FAFB;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #E5E7EB;
}

.outline-item {
    padding: 12px 0;
    border-bottom: 1px solid #E5E7EB;
}

.outline-item:last-child {
    border-bottom: none;
}

.outline-title {
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.outline-subitems {
    padding-left: 24px;
    color: #6B7280;
}

.outline-subitems li {
    margin-bottom: 4px;
}

/* Why Outlines Section */
.why-outlines {
    padding: 96px 0;
    background: #FFFFFF;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.benefit-card {
    text-align: center;
    padding: 32px;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 300ms;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 87, 255, 0.12);
}

.benefit-icon {
    width: 64px;
    height: 64px;
    background: #EBF2FF;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.benefit-icon .icon {
    width: 32px;
    height: 32px;
    color: #0057FF;
}

.benefit-title {
    margin-bottom: 16px;
    color: #111827;
}

.benefit-text {
    color: #6B7280;
    line-height: 1.6;
}

/* Features Section */
.features {
    padding: 96px 0;
    background: #F9FAFB;
}

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

.feature-card {
    text-align: center;
    padding: 32px;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 300ms;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 87, 255, 0.12);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: #EBF2FF;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.feature-icon .icon {
    width: 32px;
    height: 32px;
    color: #0057FF;
}

.feature-title {
    margin-bottom: 16px;
    color: #111827;
}

.feature-text {
    color: #6B7280;
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
    padding: 96px 0;
    background: #FFFFFF;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 48px;
}

.step {
    text-align: center;
}

.step-number {
    width: 64px;
    height: 64px;
    background: #0057FF;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 24px;
}

.step-title {
    margin-bottom: 16px;
    color: #111827;
}

.step-text {
    color: #6B7280;
    line-height: 1.6;
}

/* FAQ Section */
.faq {
    padding: 96px 0;
    background: #F9FAFB;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #FFFFFF;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.faq-question {
    width: 100%;
    padding: 24px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    border-radius: 12px;
    transition: all 200ms;
}

.faq-question:hover {
    background: #F9FAFB;
}

.faq-icon {
    width: 20px;
    height: 20px;
    color: #6B7280;
    transition: transform 200ms;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 24px 24px;
    display: none;
}

.faq-answer.show {
    display: block;
    animation: fadeIn 200ms ease-in-out;
}

.faq-answer p {
    color: #6B7280;
    line-height: 1.6;
    margin: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Footer */
.footer {
    background: #111827;
    color: #FFFFFF;
    padding: 64px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section h4 {
    color: #FFFFFF;
    margin-bottom: 24px;
    font-size: 18px;
}

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

.footer-logo .logo-icon {
    background: #0057FF;
}

.footer-logo .logo-svg {
    color: #FFFFFF;
}

.footer-logo .logo-text {
    color: #FFFFFF;
}

.footer-text {
    color: #9CA3AF;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: #9CA3AF;
    text-decoration: none;
    transition: color 200ms;
}

.footer-links a:hover {
    color: #FFFFFF;
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid #374151;
}

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

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #E5E7EB;
    border-top: 2px solid #0057FF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 24px;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 32px;
    }
    
    .steps-container {
        gap: 32px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 40px;
    }
    
    h2 {
        font-size: 32px;
    }
    
    .hero {
        padding: 64px 0;
    }
    
    .generator,
    .why-outlines,
    .features,
    .how-it-works,
    .faq {
        padding: 64px 0;
    }
    
    .generator-card {
        padding: 32px 24px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 16px;
    }
    
    .nav {
        display: none;
    }
    
    .type-selector {
        justify-content: center;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .results-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .benefits-grid,
    .features-grid,
    .steps-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    h1 {
        font-size: 32px;
    }
    
    h2 {
        font-size: 28px;
    }
    
    .hero-buttons {
        gap: 12px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .type-selector {
        gap: 8px;
    }
    
    .type-btn {
        flex: 1;
        justify-content: center;
        min-width: 0;
    }
    
    .generator-card {
        padding: 24px 16px;
    }
    
    .benefit-card,
    .feature-card {
        padding: 24px;
    }
    
    .language-dropdown {
        right: 0;
        left: auto;
    }
}

/* Print Styles */
@media print {
    .header,
    .hero-buttons,
    .footer,
    .results-actions,
    .btn {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .generator-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* 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 Styles */
.btn:focus-visible,
.nav-link:focus-visible,
.language-btn:focus-visible,
.form-input:focus-visible,
.type-btn:focus-visible,
.faq-question:focus-visible {
    outline: 2px solid #0057FF;
    outline-offset: 2px;
}