/* ==========================================================
   PinkPulse (PinkViral OS) - Design System & Stylesheet
   Theme: Cyber-Luxury Rose, Dark Glassmorphism & Neon Glow
   ========================================================== */

:root {
    --bg-main: #0a0612;
    --bg-card: rgba(22, 14, 38, 0.7);
    --bg-card-hover: rgba(35, 20, 58, 0.85);
    --bg-glass: rgba(255, 255, 255, 0.04);
    --border-glass: rgba(255, 46, 147, 0.22);
    --border-glass-bright: rgba(255, 117, 195, 0.6);
    
    --pink-primary: #ff2e93;
    --pink-glow: #ff007f;
    --pink-light: #ff75c3;
    --pink-gradient: linear-gradient(135deg, #ff2e93 0%, #ff8ec7 50%, #9b51e0 100%);
    --purple-accent: #8a2be2;
    --purple-glow: rgba(138, 43, 226, 0.4);
    --cyan-glow: #00f2fe;

    --text-main: #fbfbfe;
    --text-muted: #a39bb8;
    --text-dim: #6d6385;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --shadow-neon: 0 0 25px rgba(255, 46, 147, 0.35);
    --shadow-card: 0 12px 35px -10px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(255, 46, 147, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 85% 60%, rgba(138, 43, 226, 0.15) 0%, transparent 45%),
        radial-gradient(circle at 50% 90%, rgba(0, 242, 254, 0.08) 0%, transparent 40%);
    background-attachment: fixed;
}

/* Typography & Utilities */
.gradient-text {
    background: var(--pink-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255, 46, 147, 0.15);
    border: 1px solid var(--border-glass-bright);
    color: var(--pink-light);
}

.badge-pulse {
    position: relative;
}
.badge-pulse::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff88;
    box-shadow: 0 0 10px #00ff88;
}

/* Glassmorphism Card */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 2rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    border-color: var(--border-glass-bright);
    box-shadow: var(--shadow-neon), var(--shadow-card);
}

/* Layout */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header & Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(10, 6, 18, 0.8);
    border-bottom: 1px solid rgba(255, 46, 147, 0.15);
}

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

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

.brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--pink-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(255, 46, 147, 0.6);
    font-size: 1.2rem;
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.75rem 1.6rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--pink-gradient);
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 46, 147, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 46, 147, 0.7);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(255, 46, 147, 0.15);
    border-color: var(--pink-light);
    color: #fff;
}

.btn-sm {
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
}

/* Hero Section */
.hero-section {
    padding: 9rem 0 4rem;
    text-align: center;
    position: relative;
}

.hero-title {
    font-size: clamp(2.3rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 1.2rem auto;
    max-width: 900px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 2.5rem;
}

.hero-stats-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.stat-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 1rem 1.8rem;
    min-width: 170px;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--pink-light);
}

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

/* Interactive Navigation Tabs */
.app-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin: 3rem 0 2rem;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.tab-btn.active, .tab-btn:hover {
    background: rgba(255, 46, 147, 0.2);
    border-color: var(--pink-light);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 46, 147, 0.3);
}

/* Tool Sections */
.tool-container {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
}

.tool-container.active {
    display: block;
}

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

/* Tool 1: Viral Hook Analyzer */
.analyzer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 1.2rem;
}

.input-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    background: rgba(10, 6, 18, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1rem;
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-control:focus {
    border-color: var(--pink-light);
    box-shadow: 0 0 15px rgba(255, 46, 147, 0.3);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.sample-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.prompt-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.prompt-pill:hover {
    background: rgba(255, 46, 147, 0.15);
    color: var(--pink-light);
    border-color: var(--pink-light);
}

/* Score Display */
.score-circle-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.2rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 1.5rem;
}

.score-badge-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 46, 147, 0.3) 0%, rgba(10, 6, 18, 0.8) 100%);
    border: 3px solid var(--pink-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(255, 46, 147, 0.5);
}

.score-val {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
}

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

.breakdown-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 1.5rem;
}

.metric-card {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.8rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.metric-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 2px;
}

.rewrite-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 10px;
    transition: var(--transition-smooth);
}

.rewrite-card:hover {
    border-color: var(--pink-light);
    background: rgba(255, 46, 147, 0.05);
}

.rewrite-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--pink-light);
}

.copy-btn {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.75rem;
    transition: var(--transition-smooth);
}

.copy-btn:hover {
    background: var(--pink-primary);
    color: #fff;
}

/* Tool 2: Break-Even Engine */
.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
}

.slider-group {
    margin-bottom: 1.5rem;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

.slider-value {
    color: var(--pink-light);
    font-weight: 700;
}

input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--pink-primary);
    cursor: pointer;
    box-shadow: 0 0 10px var(--pink-glow);
    transition: var(--transition-smooth);
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.calc-results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.res-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    text-align: center;
}

.res-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin-top: 4px;
}

.canvas-wrapper {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 1rem;
    height: 220px;
    position: relative;
}

canvas#breakEvenChart {
    width: 100%;
    height: 100%;
}

/* Tool 3: Bio-Link & QR Studio */
.biolink-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.phone-mockup {
    background: #000;
    border: 3px solid rgba(255, 46, 147, 0.4);
    border-radius: 36px;
    padding: 2rem 1.5rem;
    max-width: 320px;
    margin: 0 auto;
    box-shadow: 0 0 40px rgba(255, 46, 147, 0.25);
    text-align: center;
}

.mockup-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--pink-gradient);
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    border: 2px solid #fff;
}

.mockup-link {
    display: block;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-glass);
    color: #fff;
    padding: 0.75rem;
    border-radius: var(--radius-full);
    margin-bottom: 10px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.mockup-link:hover {
    background: var(--pink-primary);
    transform: scale(1.03);
}

/* Tool 4: Showcase Wall */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.showcase-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

.showcase-card:hover {
    border-color: var(--pink-light);
    transform: translateY(-4px);
}

.showcase-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.showcase-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.showcase-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}

.showcase-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 12px;
}

.upvote-btn {
    background: rgba(255, 46, 147, 0.15);
    border: 1px solid var(--border-glass-bright);
    color: #fff;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.upvote-btn:hover {
    background: var(--pink-primary);
    box-shadow: 0 0 15px rgba(255, 46, 147, 0.6);
}

.upvote-btn.voted {
    background: rgba(0, 255, 136, 0.18);
    border-color: #00ff88;
    color: #00ff88;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.35);
}

.upvote-btn.voted:hover {
    background: rgba(255, 68, 68, 0.2);
    border-color: #ff4444;
    color: #ff4444;
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.35);
}

/* Pricing Section */
.pricing-section {
    padding: 6rem 0;
    text-align: center;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 3rem auto 0;
}

.pricing-card-vip {
    border: 2px solid var(--pink-light);
    box-shadow: 0 0 35px rgba(255, 46, 147, 0.35);
    position: relative;
}

.pricing-badge-hot {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--pink-gradient);
    color: #fff;
    padding: 4px 16px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    box-shadow: 0 0 15px rgba(255, 46, 147, 0.6);
}

.price-tag {
    font-size: 3rem;
    font-weight: 800;
    margin: 1.2rem 0;
}

.price-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: normal;
}

.features-list {
    list-style: none;
    text-align: left;
    margin: 1.5rem 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.features-list li.active {
    color: var(--text-main);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-body {
    background: #120921;
    border: 1px solid var(--pink-light);
    border-radius: var(--radius-lg);
    box-shadow: 0 0 40px rgba(255, 46, 147, 0.4);
    max-width: 500px;
    width: 100%;
    padding: 2.5rem;
    position: relative;
    text-align: center;
}

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

/* Footer */
.footer {
    border-top: 1px solid rgba(255, 46, 147, 0.15);
    padding: 3rem 0;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-top: 4rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

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

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

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