/* Landing Page Styles */

:root {
    /* Primary Colors from App */
    --primary: #5271ff;
    --primary-hover: #3d5ce8;
    --primary-dark: #2847d1;
    --primary-light: #7a94ff;
    --primary-alpha-10: rgba(82, 113, 255, 0.1);
    --primary-alpha-20: rgba(82, 113, 255, 0.2);
    --primary-alpha-30: rgba(82, 113, 255, 0.3);
    
    /* Neutral Colors */
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --text-muted: #999;
    --background: #ffffff;
    --surface: #f9f9f9;
    --border: #e0e0e0;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', monospace;
}

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

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;
}

/* Navigation */
.landing-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--primary-alpha-10);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    height: 40px;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary);
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
}

.nav-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--primary-alpha-30);
}

/* Main Content */
.landing-main {
    min-height: 100vh;
    padding-top: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section {
    width: 100%;
    padding: 2rem;
}

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

/* Hero Logo */
.hero-logo-container {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInDown 0.8s ease;
}

.hero-logo {
    height: 120px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.hero-logo:hover {
    transform: scale(1.05) rotate(2deg);
}

/* Dictionary Entry */
.dictionary-entry {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    animation: fadeInUp 0.8s ease 0.2s both;
}

.dictionary-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.dictionary-word {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.dictionary-phonetic {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.dictionary-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.word-type {
    font-style: italic;
}

.dictionary-definition {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.definition-number {
    font-weight: 600;
    color: var(--primary);
    flex-shrink: 0;
}

.definition-main {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.definition-example {
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding-left: 1rem;
    border-left: 3px solid var(--primary-alpha-20);
}

.dictionary-etymology {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

/* Philosophy Section */
.philosophy-section {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.philosophy-quote {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.philosophy-explanation {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* CTA Section */
.cta-section {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--primary-alpha-30);
}

.cta-button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-alpha-30);
}

.cta-subtitle {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-alpha-30);
}

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

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Footer */
.landing-footer {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pricing Section */
.pricing-section {
    position: relative;
    margin-top: 5rem;
    padding: 3rem 0;
    animation: fadeInUp 0.8s ease 1s both;
}

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

.pricing-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.pricing-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: start;
}

.pricing-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.pricing-card-featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(82, 113, 255, 0.15);
}

.pricing-card-featured:hover {
    transform: scale(1.05) translateY(-4px);
    box-shadow: 0 16px 50px rgba(82, 113, 255, 0.2);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.plan-header {
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

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

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

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

.plan-yearly {
    text-align: center;
    font-size: 0.9rem;
}

.yearly-price {
    color: var(--primary);
    font-weight: 500;
    display: block;
    margin-bottom: 0.25rem;
}

.yearly-total {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.plan-features {
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.feature-highlight {
    color: var(--text-primary);
    padding-bottom: 1rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.feature-icon {
    flex-shrink: 0;
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1;
}

.plan-cta {
    display: block;
    width: 100%;
    padding: 1rem;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.plan-cta-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.plan-cta-secondary:hover {
    background: var(--primary-alpha-10);
    transform: translateY(-1px);
}

.plan-cta-primary {
    background: var(--primary);
    color: white;
    border: 2px solid var(--primary);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.plan-cta-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px var(--primary-alpha-30);
}

.cta-main {
    font-size: 1rem;
}

.cta-sub {
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.9;
}

.pricing-footer {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.pricing-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.note-icon {
    font-size: 1.2rem;
}

/* Invitation Badge */
.invitation-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(82, 113, 255, 0.3);
    z-index: 10;
    white-space: nowrap;
}

.badge-icon {
    font-size: 1.5rem;
}

/* Disabled Pricing State */
.pricing-disabled .pricing-grid {
    filter: blur(3px);
    opacity: 0.4;
    pointer-events: none;
    user-select: none;
}

.price-blur {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 400;
    font-style: italic;
}

.plan-cta[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.plan-cta[disabled]:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
    }
    
    .hero-logo {
        height: 80px;
    }
    
    .dictionary-entry {
        padding: 2rem 1.5rem;
    }
    
    .dictionary-word {
        font-size: 1.5rem;
    }
    
    .dictionary-phonetic {
        font-size: 1rem;
    }
    
    .philosophy-quote {
        font-size: 1.8rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-title {
        font-size: 1.8rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .pricing-card-featured {
        transform: none;
        margin: 0 -1rem;
    }
    
    .pricing-card-featured:hover {
        transform: translateY(-4px);
    }
    
    .price-amount {
        font-size: 2.5rem;
    }
    
    .pricing-note {
        flex-direction: column;
        text-align: center;
    }
    
    .invitation-badge {
        font-size: 0.9rem;
        padding: 0.8rem 1.5rem;
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 0 auto 2rem;
        width: fit-content;
    }
    
    .pricing-disabled .pricing-grid {
        margin-top: 2rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #f0f0f0;
        --text-secondary: #b0b0b0;
        --text-muted: #808080;
        --background: #1a1a1a;
        --surface: #2a2a2a;
        --border: #3a3a3a;
    }
    
    .landing-nav {
        background: rgba(26, 26, 26, 0.9);
    }
    
    .dictionary-entry {
        background: var(--surface);
    }
    
    .nav-link {
        color: var(--text-primary);
    }
    
    .nav-link:hover {
        color: white;
    }
    
    .pricing-card {
        background: var(--surface);
        border-color: var(--border);
    }
    
    .pricing-card:hover {
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    }
    
    .pricing-card-featured {
        box-shadow: 0 8px 30px rgba(82, 113, 255, 0.25);
    }
    
    .pricing-card-featured:hover {
        box-shadow: 0 16px 50px rgba(82, 113, 255, 0.3);
    }
    
    .plan-cta-secondary {
        background: var(--surface);
        color: var(--primary-light);
        border-color: var(--primary);
    }
    
    .plan-cta-secondary:hover {
        background: var(--primary-alpha-20);
    }
}
