/* ==========================================================================
   Muse AI Referral Hub - Design System & Modern Aesthetics
   Domain: muse.aimodelplace.com
   ========================================================================== */

:root {
    --bg-primary: #080a14;
    --bg-secondary: #0f1225;
    --bg-card: rgba(18, 22, 42, 0.72);
    --bg-card-hover: rgba(26, 32, 60, 0.85);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --accent-cyan: #38bdf8;
    --accent-indigo: #6366f1;
    --accent-purple: #a855f7;
    --accent-green: #22c55e;
    --accent-amber: #f59e0b;
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(99, 102, 241, 0.3);
    --border-cyan: rgba(56, 189, 248, 0.35);
    
    --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --glow-indigo: 0 0 35px rgba(99, 102, 241, 0.35);
    --glow-cyan: 0 0 35px rgba(56, 189, 248, 0.35);
    --glow-card: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(99, 102, 241, 0.12);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 85% 35%, rgba(168, 85, 247, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 50% 80%, rgba(56, 189, 248, 0.08) 0%, transparent 50%);
    background-attachment: fixed;
}

/* Background grid effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -1;
    pointer-events: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: #7dd3fc;
}

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

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid var(--border-accent);
    color: #c7d2fe;
}

.badge-cyan {
    background: rgba(56, 189, 248, 0.15);
    border-color: var(--border-cyan);
    color: #7dd3fc;
}

.badge-green {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
    color: #86efac;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #38bdf8 100%);
    background-size: 200% auto;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.6), 0 0 20px rgba(56, 189, 248, 0.4);
    color: #ffffff;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-cyan {
    background: linear-gradient(135deg, #0284c7, #38bdf8);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.35);
}

.btn-cyan:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(56, 189, 248, 0.55);
}

/* Navigation Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 10, 20, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 16px 0;
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6366f1, #38bdf8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    color: white;
    font-size: 1.2rem;
    box-shadow: var(--glow-indigo);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.brand-sub {
    font-size: 0.72rem;
    color: var(--accent-cyan);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 500;
}

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

/* Hero Section */
.hero-section {
    padding: 80px 0 60px;
    position: relative;
    text-align: center;
}

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

.hero-headline {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    letter-spacing: -1.5px;
    margin: 20px 0 18px;
    line-height: 1.15;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 30%, #38bdf8 70%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.social-proof-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    color: var(--text-muted);
    font-size: 0.88rem;
    flex-wrap: wrap;
}

.social-proof-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Hero Graphic Showcase */
.hero-visual-card {
    margin-top: 50px;
    border-radius: 24px;
    padding: 8px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(56, 189, 248, 0.2), rgba(168, 85, 247, 0.4));
    box-shadow: var(--glow-card);
    position: relative;
}

.hero-visual-inner {
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    background: #0d1124;
}

.hero-visual-inner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 520px;
}

.hero-visual-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(8, 10, 20, 0.95) 10%, rgba(8, 10, 20, 0.4) 60%, transparent 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
}

/* Savings Calculator Section */
.calculator-section {
    padding: 70px 0;
}

.calc-box {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--glow-card);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.calc-slider-wrap {
    margin-top: 24px;
}

.calc-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #1e2445;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.8);
    cursor: pointer;
}

.savings-card {
    background: rgba(10, 14, 30, 0.8);
    border: 1px solid var(--border-cyan);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    position: relative;
}

.savings-amount {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--accent-green);
    line-height: 1.1;
    margin: 10px 0;
}

/* Pricing Section */
.pricing-section {
    padding: 90px 0;
    position: relative;
}

.section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 50px;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    letter-spacing: -1px;
    margin: 12px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 580px;
    margin: 0 auto;
    gap: 30px;
    align-items: stretch;
}

.pricing-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 36px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.pricing-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-accent);
    box-shadow: var(--glow-card);
}

.pricing-card.popular {
    background: linear-gradient(180deg, rgba(30, 36, 75, 0.85) 0%, rgba(18, 22, 44, 0.85) 100%);
    border: 1.5px solid #818cf8;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 35px rgba(99, 102, 241, 0.25);
    transform: scale(1.02);
}

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

.card-top-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 16px;
    border-radius: 9999px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.plan-name {
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.plan-tagline {
    color: var(--text-secondary);
    font-size: 0.88rem;
    min-height: 42px;
}

.price-box {
    margin: 24px 0;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.price-currency {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
}

.price-val {
    font-size: 3.2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1;
}

.retail-box {
    display: flex;
    flex-direction: column;
}

.retail-val {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.discount-badge {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
}

.plan-credits {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid var(--border-cyan);
    color: var(--accent-cyan);
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.features-list {
    list-style: none;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.features-list li {
    font-size: 0.92rem;
    color: #cbd5e1;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.features-list li .check-icon {
    color: #38bdf8;
    font-weight: bold;
    flex-shrink: 0;
}

/* How It Works */
.how-it-works-section {
    padding: 70px 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 32px 24px;
    position: relative;
    transition: all 0.3s ease;
}

.step-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
}

.step-circle {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #6366f1, #38bdf8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    color: white;
    margin-bottom: 20px;
    box-shadow: var(--glow-indigo);
}

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

.comparison-table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    overflow: hidden;
    backdrop-filter: blur(16px);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.comparison-table th,
.comparison-table td {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.95rem;
}

.comparison-table th {
    background: rgba(14, 18, 38, 0.9);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: #f8fafc;
}

.comparison-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.highlight-col {
    background: rgba(99, 102, 241, 0.07);
    color: #f8fafc;
    font-weight: 600;
}

/* FAQ Accordion */
.faq-section {
    padding: 80px 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.faq-item.active {
    border-color: var(--border-accent);
}

.faq-question {
    padding: 20px 24px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    color: #f8fafc;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.faq-icon {
    font-size: 1.3rem;
    transition: transform 0.2s ease;
    color: var(--accent-cyan);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Checkout Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 6, 15, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: rgba(18, 22, 44, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    max-width: 480px;
    width: 100%;
    padding: 32px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(99, 102, 241, 0.2);
    position: relative;
    transform: scale(0.95);
    transition: transform 0.25s ease;
}

.modal-overlay.open .modal-card {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

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

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(10, 13, 28, 0.8);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border-subtle);
    background: rgba(6, 8, 16, 0.95);
    padding: 60px 0 30px;
    margin-top: 80px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 900px) {
    .calc-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .nav-links {
        display: none;
    }
}
