/* Landing Page Premium Styles */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    --text-dark: #202124;
    --text-grey: #5f6368;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
}

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

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

.nav-link:hover {
    color: #764ba2;
}

.btn-signin {
    padding: 10px 24px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-signin:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(118, 75, 162, 0.3);
}

/* Hero Section */
.hero-section {
    padding: 160px 5% 100px;
    background: var(--bg-light);
    text-align: center;
    background-image: radial-gradient(circle at 10% 20%, rgba(102, 126, 234, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(118, 75, 162, 0.05) 0%, transparent 20%);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-grey);
    max-width: 700px;
    margin: 0 auto 40px;
}

.hero-cta {
    display: inline-block;
    padding: 16px 40px;
    font-size: 1.1rem;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s, box-shadow 0.2s;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Features Section */
.features-section {
    padding: 100px 5%;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--text-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    padding: 40px;
    border-radius: 24px;
    background: white;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.feature-desc {
    color: var(--text-grey);
    line-height: 1.6;
}

/* Pricing Section */
.pricing-section {
    padding: 80px 5%;
    background: #f8f9fa;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    max-width: 1400px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.pricing-card.popular {
    border: 2px solid #764ba2;
    transform: scale(1.02);
    z-index: 10;
}

.pricing-card.popular:hover {
    transform: scale(1.02) translateY(-5px);
}

.badge-popular {
    position: absolute;
    top: 15px;
    right: -35px;
    background: #764ba2;
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.7rem;
    font-weight: 600;
}

.discount-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ff5252;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 8px rgba(255, 82, 82, 0.3);
}

/* Plan Name Removed but keeping class just in case */
.plan-name {
    display: none;
}

.plan-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.plan-coin {
    font-size: 1rem;
    color: #764ba2;
    font-weight: 600;
    margin-bottom: 20px;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    color: var(--text-grey);
    font-size: 0.9rem;
}

.plan-features li {
    margin-bottom: 6px;
}

.btn-price {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #ddd;
    color: var(--text-dark);
    transition: all 0.2s;
    font-size: 0.95rem;
}

/* Benefits Banner inside Pricing */
.benefits-banner {
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    border-radius: 20px;
    padding: 30px;
    margin: 0 auto 50px;
    max-width: 900px;
    text-align: center;
    box-shadow: var(--shadow-md);
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.benefit-item {
    flex: 1;
    min-width: 200px;
    color: #4b5563;
    font-weight: 600;
}

.benefit-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.benefit-highlight {
    color: #764ba2;
    font-weight: 800;
    font-size: 1.1em;
}

/* Button Hover Effects (Text Swap) */
.btn-signin,
.hero-cta {
    position: relative;
    overflow: hidden;
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
    min-width: 140px;
    /* Prevent width jump */
    vertical-align: middle;
}

.btn-signin .btn-text,
.hero-cta .btn-text {
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.btn-signin .btn-hover-text,
.hero-cta .btn-hover-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 150%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    width: 100%;
    text-align: center;
    font-size: 0.9em;
}

.btn-signin:hover .btn-text,
.hero-cta:hover .btn-text {
    transform: translateY(-150%);
    opacity: 0;
}

.btn-signin:hover .btn-hover-text,
.hero-cta:hover .btn-hover-text {
    transform: translate(-50%, -50%);
    opacity: 1;
}

/* Mouse Tooltip */
.mouse-tooltip {
    position: fixed;
    background: rgba(32, 33, 36, 0.95);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    pointer-events: none;
    /* Let mouse clicks pass through */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s;
    z-index: 9999;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    line-height: 1.4;
}

.pricing-card .btn-price {
    /* Keep btn-price styling simple as before */
    display: inline-block;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #ddd;
    color: var(--text-dark);
    transition: all 0.2s;
    font-size: 0.95rem;
}

.pricing-card .btn-price:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Footer (Copied & Enhanced from app.html) */
.landing-footer {
    padding: 60px 5% 30px;
    background: #1a1b1e;
    color: #9ca3af;
    font-size: 0.9rem;
}

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

.footer-brand h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    margin-bottom: 20px;
}

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

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

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
}

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

.compliance-info {
    border-top: 1px solid #2d2e33;
    padding-top: 30px;
    text-align: center;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .landing-header {
        padding: 15px 20px;
    }

    .nav-links {
        display: none;
        /* Mobile menu can be added later */
    }

    .pricing-card.popular {
        transform: none;
    }
}

/* Login Modal */
.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.login-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    position: relative;
}

.login-modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #aaa;
    background: none;
    border: none;
    padding: 5px;
}

.modal-close:hover {
    color: #333;
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.chk-container {
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    font-size: 0.95rem;
    color: #555;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #eee;
}

.chk-container input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #764ba2;
}

.chk-container label {
    cursor: pointer;
    line-height: 1.5;
}

.chk-container a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.chk-container a:hover {
    text-decoration: underline;
}

.modal-btn-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-login-btn {
    width: 100%;
    padding: 14px;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-google {
    background: var(--text-dark);
    color: white;
}

.btn-guest {
    background: #f1f3f4;
    color: #5f6368;
}

.modal-login-btn:disabled,
.modal-login-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    background: #ccc;
    color: #666;
}

.modal-login-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}