/* Modern Dark Theme for Landing Page */
body {
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
}

/* Light Mode Override for Landing Page */
body.light-mode {
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 50%, #ddd6fe 100%) !important;
}

/* Animated Background */
.landing-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(59, 130, 246, 0.1) 0%, transparent 40%);
}

/* Navbar for landing */
.navbar {
    background: rgba(15, 15, 26, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-mode .navbar {
    background: rgba(255, 255, 255, 0.9) !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.navbar-brand {
    color: white !important;
}

body.light-mode .navbar-brand {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar-menu a {
    color: rgba(255, 255, 255, 0.8) !important;
}

body.light-mode .navbar-menu a {
    color: #475569 !important;
}

.navbar-menu a:hover {
    color: white !important;
}

body.light-mode .navbar-menu a:hover {
    color: #0f172a !important;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 8rem 0 6rem;
    background: transparent;
    border-bottom: none;
    position: relative;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    animation: gradientShift 5s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}


body.light-mode .hero p {
    color: #475569 !important;
}

body.light-mode .hero h1 {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Steps Section */
.steps-section {
    padding: 5rem 0;
    background: rgba(255, 255, 255, 0.02);
}

body.light-mode .steps-section {
    background: #f1f5f9 !important;
}

.steps-section h2 {
    color: white;
}

body.light-mode .steps-section h2 {
    color: #0f172a !important;
}

.step-card {
    position: relative;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

body.light-mode .step-card {
    background: white !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.step-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(99, 102, 241, 0.5);
}

.step-card p {
    color: rgba(255, 255, 255, 0.7);
}

body.light-mode .step-card p {
    color: #64748b !important;
}

.step-number {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.3;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    line-height: 1;
}

.step-title {
    position: relative;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: white;
}

body.light-mode .step-title {
    color: #0f172a !important;
}

/* Features Section */
.features {
    background: rgba(255, 255, 255, 0.03) !important;
    padding: 5rem 0;
}

body.light-mode .features {
    background: #f8fafc !important;
}

.features h2 {
    color: white;
}

body.light-mode .features h2 {
    color: #0f172a !important;
}

.features .card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

body.light-mode .features .card {
    background: white !important;
    border: 1px solid #e2e8f0 !important;
}

.features .card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-5px);
}

.features .card h3 {
    color: white;
}

body.light-mode .features .card h3 {
    color: #0f172a !important;
}

.features .card p {
    color: rgba(255, 255, 255, 0.7);
}

body.light-mode .features .card p {
    color: #64748b !important;
}

/* Referral Promo */
.referral-promo {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-mode .referral-promo {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%) !important;
    border-top-color: #e2e8f0 !important;
}

.referral-promo h2 {
    color: white;
}

body.light-mode .referral-promo h2 {
    color: #1e1b4b !important;
}

.referral-promo .card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-mode .referral-promo .card {
    background: white !important;
    border: 1px solid #e2e8f0 !important;
}

.highlight-text {
    color: #fbbf24;
    font-weight: 800;
}

body.light-mode .highlight-text {
    color: #d97706 !important;
}

/* Footer */
footer {
    background: #0f0f1a !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-mode footer {
    background: #f1f5f9 !important;
    border-top: 1px solid #e2e8f0 !important;
}

footer p {
    color: rgba(255, 255, 255, 0.5);
}

body.light-mode footer p {
    color: #64748b !important;
}

/* Services Section */
.services-section {
    background: transparent;
}

body.light-mode .services-section {
    background: #f8fafc !important;
}

body.light-mode .services-section h2 {
    color: #0f172a !important;
}

body.light-mode .services-section .card {
    background: white !important;
    border-color: #e2e8f0 !important;
}

body.light-mode .services-section .card h3 {
    color: #0f172a !important;
}

body.light-mode .services-section .card p {
    color: #64748b !important;
}

/* Glowing Button Effect */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    border: none;
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

body.light-mode .btn-secondary {
    background: #e2e8f0 !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

body.light-mode .btn-secondary:hover {
    background: #cbd5e1 !important;
}

/* ===========================================
   TIER CARDS - Referral Promo Section
   =========================================== */

/* Tier Card Base Styles */
.tier-card {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px);
    padding: 2rem;
    transition: all 0.3s ease;
}

.tier-card:hover {
    transform: translateY(-8px) !important;
    background: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.tier-card.tier-featured {
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    background: rgba(255, 255, 255, 0.12) !important;
}

/* Light Mode - Tier Cards */
body.light-mode .tier-card {
    background: white !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

body.light-mode .tier-card:hover {
    background: white !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}

body.light-mode .tier-card.tier-featured {
    border: 2px solid var(--primary-color) !important;
}

/* Tier Titles */
.tier-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tier-title.bronze {
    color: #cd7f32 !important;
}

.tier-title.silver {
    color: #a8a8a8 !important;
}

body.light-mode .tier-title.silver {
    color: #6b7280 !important;
}

.tier-title.gold {
    color: #fbbf24 !important;
}

/* Tier Range (subtitle) */
.tier-range {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

body.light-mode .tier-range {
    color: #64748b !important;
}

/* Tier Benefits List */
.tier-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tier-benefits li {
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.tier-benefits li:last-child {
    margin-bottom: 0;
}

.tier-benefits strong {
    color: white;
}

body.light-mode .tier-benefits li {
    color: #374151 !important;
}

body.light-mode .tier-benefits strong {
    color: #1f2937 !important;
}

/* Referral promo description text */
.referral-promo>.container>p {
    color: rgba(255, 255, 255, 0.8);
}

body.light-mode .referral-promo>.container>p {
    color: #475569 !important;
}

/* =============================================
   STRONGER LIGHT MODE OVERRIDES FOR TIER CARDS
   ============================================= */

body.light-mode .referral-promo .tier-card,
body.light-mode .referral-promo .card.tier-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #1f2937 !important;
}

body.light-mode .referral-promo .tier-card *,
body.light-mode .referral-promo .card.tier-card * {
    color: inherit;
}

body.light-mode .referral-promo .tier-card .tier-title.bronze {
    color: #b45309 !important;
}

body.light-mode .referral-promo .tier-card .tier-title.silver {
    color: #57534e !important;
}

body.light-mode .referral-promo .tier-card .tier-title.gold {
    color: #ca8a04 !important;
}

body.light-mode .referral-promo .tier-card .tier-range {
    color: #6b7280 !important;
}

body.light-mode .referral-promo .tier-card .tier-benefits li {
    color: #374151 !important;
}

body.light-mode .referral-promo .tier-card .tier-benefits li strong {
    color: #111827 !important;
}