:root {
    --primary: #7c3aed;
    --primary-dark: #6d28d9;
    --accent: #a78bfa;
    --accent-light: #c4b5fd;
    --bg-dark: #0c0a1d;
    --bg-card: rgba(124, 58, 237, 0.08);
    --bg-card-hover: rgba(124, 58, 237, 0.12);
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text: #e8e4f3;
    --text-muted: #a09cb8;
    --success: #34d399;
    --warning: #fbbf24;
    --gradient: linear-gradient(135deg, var(--primary), #a855f7);
    --gradient-soft: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(168, 85, 247, 0.2));
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --radius: 20px;
    --radius-sm: 12px;
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(12, 10, 29, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

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

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

.logo-icon {
    font-size: 1.75rem;
}

.logo .accent {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: 0.3s;
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-stars {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(124, 58, 237, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(167, 139, 250, 0.05) 0%, transparent 70%);
}

.hero-stars::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.2), transparent),
        radial-gradient(2px 2px at 50px 160px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 90px 40px, rgba(255,255,255,0.2), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 160px 120px, rgba(255,255,255,0.2), transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: twinkle 4s ease-in-out infinite alternate;
}

@keyframes twinkle {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 10px 24px;
    background: var(--gradient-soft);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--accent-light);
    margin-bottom: 24px;
    animation: fadeUp 0.6s ease-out;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    animation: fadeUp 0.6s ease-out 0.1s both;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    animation: fadeUp 0.6s ease-out 0.2s both;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
    animation: fadeUp 0.6s ease-out 0.3s both;
}

.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeUp 0.6s ease-out 0.4s both;
}

.hero-stats .stat {
    text-align: center;
}

.hero-stats .stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
}

.hero-stats .stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.5);
}

.btn-secondary {
    background: var(--glass);
    color: var(--text);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--accent);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.125rem;
}

/* Benefits Section */
.benefits-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--glass-border);
}

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

.benefit-card {
    text-align: center;
    padding: 24px;
}

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

.benefit-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.benefit-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
}

/* Mattress Section */
.mattress-section {
    padding: 100px 0;
}

.filter-bar {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.filter-btn {
    padding: 10px 20px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.mattress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.mattress-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all 0.3s;
}

.mattress-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    border-color: rgba(124, 58, 237, 0.3);
}

.mattress-card.featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(168, 85, 247, 0.08));
}

.card-badge {
    position: absolute;
    top: -12px;
    left: 24px;
    padding: 6px 16px;
    background: var(--gradient);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.card-badge.sale {
    background: linear-gradient(135deg, #f43f5e, #ec4899);
}

.mattress-header {
    margin-bottom: 20px;
}

.mattress-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars {
    color: var(--warning);
    letter-spacing: 2px;
}

.score {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.mattress-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 16px;
    background: var(--glass);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.spec {
    text-align: center;
}

.spec-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.spec-value {
    font-weight: 600;
    color: var(--accent);
}

.mattress-pros {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.pro {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.mattress-pricing {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.price {
    font-size: 2rem;
    font-weight: 700;
}

.original {
    font-size: 1rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.discount {
    padding: 4px 10px;
    background: rgba(52, 211, 153, 0.2);
    color: var(--success);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Quiz Section */
.quiz-section {
    padding: 60px 0;
}

.quiz-card {
    background: var(--gradient-soft);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 60px 40px;
    text-align: center;
}

.quiz-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.quiz-card h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.quiz-card p {
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Comparison Table */
.comparison-section {
    padding: 80px 0;
}

.comparison-table-wrapper {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.comparison-table th {
    background: var(--glass);
    font-weight: 600;
    color: var(--accent);
}

.comparison-table tr:hover td {
    background: var(--bg-card-hover);
}

/* Tips Section */
.tips-section {
    padding: 80px 0;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.tip-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    transition: all 0.3s;
}

.tip-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
}

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

.tip-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.tip-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Newsletter */
.newsletter-section {
    padding: 60px 0;
}

.newsletter-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 60px 40px;
    text-align: center;
}

.newsletter-card h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.newsletter-card > p {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto 16px;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 1rem;
}

.newsletter-form input::placeholder {
    color: var(--text-muted);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.newsletter-note {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Footer */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 16px;
    max-width: 300px;
}

.footer-links h4 {
    font-size: 1rem;
    margin-bottom: 20px;
}

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

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-toggle { display: flex; }
    
    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .mattress-grid {
        grid-template-columns: 1fr;
    }
    
    .mattress-specs {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand p {
        max-width: none;
    }
}

/* ===== ENHANCED SECTIONS ===== */

/* Testimonials */
.testimonials-section { padding: 80px 0; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.testimonial-card { background: var(--bg-card); border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 32px; transition: all 0.3s; }
.testimonial-card:hover { background: var(--bg-card-hover); transform: translateY(-4px); }
.testimonial-stars { color: var(--warning); font-size: 1.25rem; margin-bottom: 16px; }
.testimonial-text { font-style: italic; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar { width: 48px; height: 48px; background: var(--gradient); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: white; }
.author-name { font-weight: 600; }
.author-title { font-size: 0.8rem; color: var(--text-muted); }

/* Social Proof */
.social-proof { padding: 48px 0; background: var(--bg-card); }
.proof-items { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 32px; }
.proof-item { text-align: center; }
.proof-number { display: block; font-size: 2.5rem; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.proof-label { font-size: 0.875rem; color: var(--text-muted); }

/* Deal Banner */
.deal-banner { padding: 40px 0; background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(167, 139, 250, 0.1)); border: 1px solid var(--glass-border); }
.deal-content { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.deal-badge { display: inline-block; padding: 6px 14px; background: var(--warning); color: #000; border-radius: 50px; font-size: 0.75rem; font-weight: 700; }
.deal-countdown { display: flex; gap: 16px; }
.countdown-item { text-align: center; padding: 16px 20px; background: var(--glass); border-radius: 8px; }
.countdown-value { display: block; font-size: 2rem; font-weight: 800; color: var(--accent); }
.countdown-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; }

/* Glow button */
.btn-glow { animation: glow 2s ease-in-out infinite; }
@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.3); }
  50% { box-shadow: 0 0 40px rgba(139, 92, 246, 0.5); }
}

/* Floating animation for featured */
.mattress-card.featured { animation: float 4s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
