@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Dark Theme */
    --bg-primary: #050505;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #111111;
    --bg-card: rgba(15, 15, 15, 0.9);

    /* Pastel Pink Palette */
    --pink-soft: #FFB6C1;
    --pink-light: #FFC4D0;
    --pink-glow: rgba(255, 182, 193, 0.15);
    --pink-border: rgba(255, 182, 193, 0.25);
    --pink-accent: #FF8FA3;

    /* Accent Colors */
    --green: #4ADE80;
    --green-soft: rgba(74, 222, 128, 0.15);

    /* Text - Better Contrast */
    --text-primary: #FAFAFA;
    --text-secondary: rgba(255, 255, 255, 0.75);
    --text-muted: rgba(255, 255, 255, 0.5);

    /* Glass */
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.06);

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

/* === PASTEL GLOWS === */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(180px);
    opacity: 0.2;
    pointer-events: none;
    z-index: 1;
}

.glow-orb-1 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, #FFB6C1 0%, transparent 70%);
    top: -300px;
    right: -250px;
    animation: float1 25s ease-in-out infinite;
}

.glow-orb-2 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, #E0BBE4 0%, transparent 70%);
    bottom: -250px;
    left: -250px;
    animation: float2 30s ease-in-out infinite;
}

.glow-orb-3 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #B5EAD7 0%, transparent 70%);
    top: 35%;
    right: -350px;
    opacity: 0.15;
    animation: float3 35s ease-in-out infinite;
}

.glow-orb-4 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, #FFDAC1 0%, transparent 70%);
    top: 55%;
    left: -300px;
    opacity: 0.15;
    animation: float4 28s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-30px, 40px); }
    50% { transform: translate(-50px, 20px); }
    75% { transform: translate(-20px, 50px); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(40px, -30px); }
    50% { transform: translate(20px, -50px); }
    75% { transform: translate(50px, -20px); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-20px, -40px); }
    50% { transform: translate(-40px, -20px); }
    75% { transform: translate(-30px, -50px); }
}

@keyframes float4 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(30px, 30px); }
    50% { transform: translate(50px, 10px); }
    75% { transform: translate(20px, 40px); }
}

/* Grid visible only through glows */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 182, 193, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 182, 193, 0.15) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
    mask-image:
        radial-gradient(ellipse 900px 900px at calc(100% + 100px) -150px, black 0%, transparent 65%),
        radial-gradient(ellipse 800px 800px at -150px calc(100% + 100px), black 0%, transparent 65%),
        radial-gradient(ellipse 700px 700px at calc(100% + 200px) 35%, black 0%, transparent 65%),
        radial-gradient(ellipse 650px 650px at -200px 55%, black 0%, transparent 65%);
    -webkit-mask-image:
        radial-gradient(ellipse 900px 900px at calc(100% + 100px) -150px, black 0%, transparent 65%),
        radial-gradient(ellipse 800px 800px at -150px calc(100% + 100px), black 0%, transparent 65%),
        radial-gradient(ellipse 700px 700px at calc(100% + 200px) 35%, black 0%, transparent 65%),
        radial-gradient(ellipse 650px 650px at -200px 55%, black 0%, transparent 65%);
    mask-composite: add;
    -webkit-mask-composite: source-over;
}

/* === CONTAINER === */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

/* === HEADER === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

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

/* === BUTTONS === */
.btn-primary {
    background: var(--pink-soft);
    color: #0a0a0a;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 30px var(--pink-glow);
}

.btn-primary:hover {
    background: var(--pink-light);
    box-shadow: 0 0 40px rgba(255, 182, 193, 0.3);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--glass-border);
    transition: all 0.2s;
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: var(--pink-border);
    box-shadow: 0 0 20px var(--pink-glow);
}

.btn-large {
    padding: 16px 32px;
    font-size: 15px;
}

/* === HERO === */
.hero {
    padding: 160px 0 100px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: var(--pink-glow);
    border: 1px solid var(--pink-border);
    color: var(--pink-soft);
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 28px;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: clamp(36px, 6vw, 60px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
    color: var(--text-primary);
}

.gradient-text {
    background: linear-gradient(135deg, var(--pink-soft) 0%, var(--pink-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 36px;
    line-height: 1.8;
    font-weight: 400;
}

.hero-subtitle strong {
    color: var(--text-primary);
    font-weight: 600;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

/* === STATS === */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    transition: all 0.2s;
}

.stat-card:hover {
    border-color: var(--pink-border);
    box-shadow: 0 0 30px var(--pink-glow);
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.stat-value.green {
    color: var(--green);
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

.hero-note {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 20px;
}

/* === SECTIONS === */
section {
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    color: var(--text-secondary);
    text-align: center;
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto 50px;
}

/* === FEATURE CARDS === */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 968px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .card-grid { grid-template-columns: 1fr; }
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.2s;
}

.feature-card:hover {
    border-color: var(--pink-border);
    box-shadow: 0 0 40px var(--pink-glow);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 18px;
    background: var(--pink-glow);
    border: 1px solid var(--pink-border);
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

/* === PRICING === */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 868px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 360px; }
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    position: relative;
    transition: all 0.2s;
}

.pricing-card:hover {
    border-color: var(--pink-border);
    box-shadow: 0 0 40px var(--pink-glow);
}

.pricing-card.popular {
    border-color: var(--pink-soft);
    box-shadow: 0 0 50px var(--pink-glow);
}

.pricing-card.popular::before {
    content: 'Popular';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--pink-soft);
    color: #0a0a0a;
    padding: 5px 16px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-tier {
    font-size: 12px;
    color: var(--pink-soft);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.pricing-price {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.pricing-price span {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-desc {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 28px;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 28px;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--glass-border);
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li::before {
    content: '✓';
    color: var(--green);
    font-weight: 700;
    font-size: 12px;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-card .btn-primary {
    width: 100%;
    justify-content: center;
}

/* === FOOTER === */
.footer {
    padding: 50px 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

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

.footer-copy {
    color: var(--text-muted);
    font-size: 12px;
}

.footer-warning {
    color: var(--text-muted);
    font-size: 11px;
    max-width: 500px;
    margin: 20px auto 0;
    line-height: 1.6;
}

/* === AUTH BUTTONS === */
.auth-buttons {
    display: flex;
    gap: 10px;
}

.btn-login {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-login:hover {
    border-color: var(--pink-border);
    box-shadow: 0 0 20px var(--pink-glow);
}

/* === USER MENU === */
.user-menu {
    position: relative;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--pink-glow);
    border: 1px solid var(--pink-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    color: var(--pink-soft);
    transition: all 0.2s;
}

.user-avatar:hover {
    box-shadow: 0 0 25px var(--pink-glow);
}

.user-dropdown {
    position: absolute;
    top: 48px;
    right: 0;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 6px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s;
    z-index: 1001;
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: block;
    padding: 10px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.15s;
}

.user-dropdown a:hover {
    background: var(--glass-bg);
    color: var(--text-primary);
}

/* === DASHBOARD === */
.dashboard {
    padding: 110px 24px 60px;
    min-height: 100vh;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 36px;
    flex-wrap: wrap;
    gap: 16px;
}

.dash-title {
    font-size: 28px;
    font-weight: 800;
}

.tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tier-badge.starter {
    background: var(--pink-glow);
    color: var(--pink-soft);
    border: 1px solid var(--pink-border);
}

.tier-badge.pro {
    background: var(--pink-glow);
    color: var(--pink-soft);
    border: 1px solid var(--pink-soft);
}

.tier-badge.team {
    background: var(--green-soft);
    color: var(--green);
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.dash-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 36px;
}

@media (max-width: 1024px) {
    .dash-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .dash-grid { grid-template-columns: 1fr; }
}

.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 24px;
}

.metric-card:hover {
    border-color: var(--pink-border);
}

.metric-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    font-weight: 500;
}

.metric-value {
    font-size: 28px;
    font-weight: 800;
}

.metric-value.positive { color: var(--green); }
.metric-value.negative { color: #F87171; }

/* === LOCKED CONTENT === */
.locked-overlay {
    position: relative;
}

.locked-overlay::after {
    content: '🔒 Upgrade';
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    border-radius: inherit;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .nav { display: none; }
    .hero-title { font-size: 32px; letter-spacing: -1px; }
    .hero-subtitle { font-size: 15px; }
    .section-title { font-size: 28px; }
    .pricing-price { font-size: 40px; }
}

/* === FORM === */
.beta-form {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px;
    max-width: 450px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--pink-border);
    box-shadow: 0 0 20px var(--pink-glow);
}

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

/* === LOADING === */
.loading-spinner {
    width: 36px;
    height: 36px;
    border: 2px solid var(--glass-border);
    border-top-color: var(--pink-soft);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
