/* SubBuddy - Dark Purple Theme */
:root {
    --primary: #6366F1;
    --primary-dark: #4F46E5;
    --primary-light: #818CF8;
    --bg: #0F0F0F;
    --bg-card: #1A1A1A;
    --bg-light: #252525;
    --text: #ffffff;
    --text-secondary: #9CA3AF;
    --border: #333333;
    --warning: #F59E0B;
    --danger: #EF4444;
    --success: #22C55E;
    --shadow: 0 4px 20px rgba(0,0,0,0.3);
    --gradient: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
}

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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Navbar */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

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

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

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
}

.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--primary-light); }

.lang-select {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    outline: none;
}
.lang-select:hover, .lang-select:focus { border-color: var(--primary); }

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 100px 20px 60px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0.15;
}

.sub-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    transform: rotate(-5deg) scale(1.2);
    position: absolute;
    top: -50px; left: -50px; right: -50px;
}

.sub-card {
    aspect-ratio: 1;
    background: var(--gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    animation: float 6s ease-in-out infinite;
}
.sub-card.s1 { animation-delay: 0s; }
.sub-card.s2 { animation-delay: 1s; }
.sub-card.s3 { animation-delay: 2s; }
.sub-card.s4 { animation-delay: 3s; }
.sub-card.s5 { animation-delay: 4s; }
.sub-card.s6 { animation-delay: 5s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.badge {
    display: inline-block;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--primary-light);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 24px;
    font-weight: 500;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4); }
.btn-primary.large { padding: 18px 36px; font-size: 1.1rem; }

.btn-secondary {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--primary); }

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.stat { text-align: center; }
.stat-num { display: block; font-size: 2rem; font-weight: 700; color: var(--primary-light); }
.stat-label { font-size: 14px; color: var(--text-secondary); }

/* Pain Points */
.pain-points {
    padding: 80px 20px;
    background: var(--bg-card);
}

.pain-points h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 48px;
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto 40px;
}

.pain-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}

.pain-icon { font-size: 40px; margin-bottom: 12px; }
.pain-card p { color: var(--text-secondary); }

.solution-arrow {
    text-align: center;
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 16px;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

.solution-text {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-light);
}

/* Features */
.features { padding: 100px 20px; }

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 80px;
}

.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
}

.feature-block.reverse { direction: rtl; }
.feature-block.reverse > * { direction: ltr; }

.feature-visual { display: flex; justify-content: center; }

.mock-ui {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    width: 100%;
    max-width: 400px;
}

.mock-header {
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

/* Subscription List Mock */
.sub-items { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.sub-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg);
    border-radius: 8px;
}
.sub-icon { font-size: 24px; }
.sub-name { flex: 1; font-weight: 500; }
.sub-price { color: var(--primary-light); font-weight: 600; }
.sub-total {
    background: var(--gradient);
    color: white;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

/* Reminder Mock */
.reminder-list { display: flex; flex-direction: column; gap: 12px; }
.reminder-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg);
    border-radius: 8px;
    border-left: 4px solid;
}
.reminder-item.urgent { border-color: var(--danger); }
.reminder-item.warning { border-color: var(--warning); }
.reminder-item.safe { border-color: var(--success); }
.reminder-icon { font-size: 20px; }
.reminder-text { flex: 1; font-size: 14px; }

/* Health Score Mock */
.health-score { text-align: center; margin-bottom: 16px; }
.score-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 800;
    margin: 0 auto 8px;
}
.score-label { color: var(--text-secondary); font-size: 14px; }
.health-tips { display: flex; flex-direction: column; gap: 8px; }
.tip {
    background: var(--bg);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Calendar Mock */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}
.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}
.cal-day.marked {
    background: var(--primary);
    color: white;
    font-weight: 600;
}
.cal-legend { text-align: center; font-size: 12px; color: var(--primary-light); }

/* Widget Mock */
.widget-preview { display: flex; justify-content: center; }
.widget-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    width: 180px;
    text-align: center;
}
.widget-title { font-size: 12px; color: var(--primary-light); margin-bottom: 8px; }
.widget-amount { font-size: 28px; font-weight: 800; margin-bottom: 4px; }
.widget-label { font-size: 11px; color: var(--text-secondary); margin-bottom: 12px; }
.widget-next { font-size: 11px; color: var(--warning); background: rgba(245, 158, 11, 0.1); padding: 6px 10px; border-radius: 6px; }

.feature-tag {
    display: inline-block;
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-light);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-content h3 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.feature-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.feature-list li { color: var(--text-secondary); }

/* More Features */
.more-features {
    padding: 80px 20px;
    background: var(--bg-card);
}

.more-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.more-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: border-color 0.2s;
}
.more-card:hover { border-color: var(--primary); }
.more-icon { font-size: 36px; margin-bottom: 12px; }
.more-card h3 { font-size: 1rem; margin-bottom: 8px; }
.more-card p { font-size: 13px; color: var(--text-secondary); }

/* How It Works */
.how-it-works { padding: 100px 20px; }

.steps {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.step {
    text-align: center;
    max-width: 250px;
    position: relative;
    background: var(--bg-card);
    padding: 30px 20px;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.step-num {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon { font-size: 48px; margin-bottom: 16px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-secondary); font-size: 14px; }

.step-arrow {
    font-size: 24px;
    color: var(--text-secondary);
    align-self: center;
    margin-top: 40px;
}

/* CTA */
.cta {
    padding: 100px 20px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-card) 100%);
}

.cta h2 { font-size: 2.5rem; margin-bottom: 16px; }
.cta p { color: var(--text-secondary); margin-bottom: 32px; font-size: 1.2rem; }

/* Footer */
footer {
    padding: 40px 20px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-secondary); text-decoration: none; }
.footer-links a:hover { color: var(--primary-light); }

.copyright { text-align: center; color: var(--text-secondary); font-size: 14px; }

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .feature-block { grid-template-columns: 1fr; gap: 40px; }
    .feature-block.reverse { direction: ltr; }
    .hero-stats { gap: 24px; }
    .steps { flex-direction: column; align-items: center; }
    .step-arrow { transform: rotate(90deg); margin: 10px 0; }
}
