/* ============================================================
   CLOAKER SaaS — Main Stylesheet
   Premium light theme with clean design
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-darkest: #f0f2f7;
    --bg-dark: #e8eaf2;
    --bg-card: #ffffff;
    --bg-card-hover: #f5f6fa;
    --border: #e0e3ed;
    --border-light: #d0d4e0;
    --text-primary: #1a1d2e;
    --text-secondary: #5a5f78;
    --text-muted: #9098b0;
    --accent: #7c3aed;
    --accent-light: #6d28d9;
    --accent-glow: rgba(124, 58, 237, 0.18);
    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;
    --info: #2563eb;
    --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
    --gradient-hero: linear-gradient(135deg, #f0f2f7 0%, #ede9fe 40%, #dbeafe 80%, #f0f2f7 100%);
    --glass: rgba(255, 255, 255, 0.92);
    --glass-border: rgba(124, 58, 237, 0.08);
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-darkest);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-light); }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--gradient-hero);
    position: relative;
}
.auth-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(124,58,237,0.06) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(59,130,246,0.05) 0%, transparent 50%);
    animation: auroraFloat 20s ease-in-out infinite;
}
@keyframes auroraFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(1deg); }
    66% { transform: translate(-20px, 20px) rotate(-1deg); }
}

.auth-container { width: 100%; max-width: 440px; padding: 24px; position: relative; z-index: 1; }

.auth-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg), 0 0 80px rgba(124,58,237,0.04);
}

.auth-logo { text-align: center; margin-bottom: 36px; }
.auth-logo .logo-icon {
    width: 64px; height: 64px; border-radius: 18px;
    background: var(--gradient-primary);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 28px; color: #fff;
    margin-bottom: 16px;
    box-shadow: 0 8px 32px rgba(124,58,237,0.25);
}
.auth-logo h1 { font-size: 28px; font-weight: 800; color: var(--text-primary); letter-spacing: -0.5px; }
.auth-logo p { color: var(--text-secondary); font-size: 14px; margin-top: 6px; }

.auth-form { display: flex; flex-direction: column; gap: 20px; }

.form-field label {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600; color: var(--text-secondary);
    margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px;
}
.form-field label i { font-size: 12px; color: var(--text-muted); }
.form-field input {
    width: 100%; padding: 14px 16px;
    background: var(--bg-darkest);
    border: 1px solid var(--border);
    border-radius: 10px; color: var(--text-primary);
    font-size: 15px; font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-field input::placeholder { color: var(--text-muted); }

.btn-auth {
    width: 100%; padding: 14px 24px;
    background: var(--gradient-primary);
    color: #fff; border: none;
    border-radius: 10px; font-size: 15px; font-weight: 700;
    cursor: pointer; transition: all 0.3s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    box-shadow: 0 4px 20px rgba(124,58,237,0.25);
    margin-top: 8px;
}
.btn-auth:hover { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(124,58,237,0.35); }

.auth-footer { text-align: center; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.auth-footer p { font-size: 14px; color: var(--text-secondary); }

.alert {
    padding: 12px 16px; border-radius: 10px;
    display: flex; align-items: center; gap: 10px;
    font-size: 14px; margin-bottom: 16px;
}
.alert-error { background: rgba(220,38,38,0.08); color: #b91c1c; border: 1px solid rgba(220,38,38,0.15); }
.alert-success { background: rgba(5,150,105,0.08); color: #047857; border: 1px solid rgba(5,150,105,0.15); }

/* ============================================================
   MARKETING / LANDING PAGE
   ============================================================ */
.marketing-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 18px 40px;
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.marketing-nav .nav-brand {
    display: flex; align-items: center; gap: 10px;
    font-size: 22px; font-weight: 800; color: var(--text-primary); text-decoration: none;
}
.marketing-nav .nav-brand i { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--text-secondary); font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text-primary); }
.nav-links .btn-cta {
    padding: 10px 22px; background: var(--gradient-primary);
    color: #fff; border-radius: 8px; font-weight: 700; font-size: 14px;
    box-shadow: 0 4px 20px rgba(124,58,237,0.25);
    transition: transform 0.2s;
}
.nav-links .btn-cta:hover { transform: translateY(-1px); color: #fff; }

.hero-section {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: var(--gradient-hero);
    text-align: center; padding: 120px 20px 80px;
    position: relative; overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(124,58,237,0.08) 0%, transparent 70%);
    top: 10%; left: 20%;
    animation: pulseGlow 6s ease-in-out infinite;
}
.hero-section::after {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(59,130,246,0.06) 0%, transparent 70%);
    bottom: 10%; right: 15%;
    animation: pulseGlow 8s ease-in-out infinite 3s;
}
@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; }
}

.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 18px; border-radius: 50px;
    background: rgba(124,58,237,0.08); border: 1px solid rgba(124,58,237,0.15);
    color: var(--accent); font-size: 13px; font-weight: 600;
    margin-bottom: 28px;
}
.hero-content h1 {
    font-size: clamp(40px, 5vw, 72px); font-weight: 900;
    line-height: 1.1; letter-spacing: -2px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #1a1d2e 0%, #7c3aed 50%, #3b82f6 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-content p {
    font-size: 18px; color: var(--text-secondary);
    max-width: 600px; margin: 0 auto 40px; line-height: 1.7;
}
.hero-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.hero-btn-primary {
    padding: 16px 36px; background: var(--gradient-primary);
    color: #fff; border: none; border-radius: 12px;
    font-size: 16px; font-weight: 700; cursor: pointer;
    box-shadow: 0 8px 40px rgba(124,58,237,0.25);
    transition: all 0.3s; text-decoration: none;
    display: inline-flex; align-items: center; gap: 8px;
}
.hero-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 50px rgba(124,58,237,0.35); color:#fff; }
.hero-btn-secondary {
    padding: 16px 36px; background: #fff;
    border: 1px solid var(--border); border-radius: 12px;
    color: var(--text-primary); font-size: 16px; font-weight: 600;
    cursor: pointer; transition: all 0.3s; text-decoration: none;
    display: inline-flex; align-items: center; gap: 8px;
    box-shadow: var(--shadow);
}
.hero-btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* Features Grid */
.features-section {
    padding: 100px 40px;
    background: #fff;
}
.section-header {
    text-align: center; margin-bottom: 60px;
}
.section-header h2 {
    font-size: 36px; font-weight: 800; color: var(--text-primary);
    letter-spacing: -1px; margin-bottom: 16px;
}
.section-header p { font-size: 16px; color: var(--text-secondary); max-width: 500px; margin: 0 auto; }

.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px; max-width: 1200px; margin: 0 auto;
}
.feature-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 36px;
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.08); }
.feature-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; margin-bottom: 20px;
    background: rgba(124,58,237,0.08); color: var(--accent);
}
.feature-card h3 { font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* Pricing Section */
.pricing-section {
    padding: 100px 40px;
    background: var(--bg-darkest);
}
.pricing-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px; max-width: 1100px; margin: 0 auto;
}
.pricing-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 40px;
    position: relative; transition: all 0.3s;
    box-shadow: var(--shadow);
}
.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 40px rgba(124,58,237,0.1), var(--shadow-lg);
}
.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    padding: 6px 18px; background: var(--gradient-primary);
    color: #fff; border-radius: 50px; font-size: 12px; font-weight: 700;
    box-shadow: 0 4px 16px rgba(124,58,237,0.25);
}
.pricing-card h3 { font-size: 22px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.pricing-card .price {
    font-size: 48px; font-weight: 900; color: var(--text-primary);
    margin: 20px 0;
}
.pricing-card .price span { font-size: 16px; font-weight: 500; color: var(--text-secondary); }
.pricing-card .plan-desc { color: var(--text-secondary); font-size: 14px; margin-bottom: 28px; }
.pricing-features { list-style: none; margin-bottom: 32px; }
.pricing-features li {
    padding: 10px 0; font-size: 14px; color: var(--text-secondary);
    display: flex; align-items: center; gap: 10px;
    border-bottom: 1px solid var(--border);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li i { color: var(--success); font-size: 13px; }
.pricing-features li.disabled { opacity: 0.4; }
.pricing-features li.disabled i { color: var(--text-muted); }

.btn-plan {
    width: 100%; padding: 14px; border-radius: 10px;
    font-size: 15px; font-weight: 700; cursor: pointer;
    transition: all 0.3s; text-align: center;
    text-decoration: none; display: block;
}
.btn-plan-primary {
    background: var(--gradient-primary); color: #fff; border: none;
    box-shadow: 0 4px 20px rgba(124,58,237,0.25);
}
.btn-plan-primary:hover { transform: translateY(-1px); color:#fff; }
.btn-plan-secondary {
    background: #fff; color: var(--text-primary);
    border: 1px solid var(--border);
}
.btn-plan-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* Footer */
.marketing-footer {
    padding: 40px; text-align: center;
    border-top: 1px solid var(--border);
    background: #fff;
}
.marketing-footer p { font-size: 14px; color: var(--text-muted); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .marketing-nav { padding: 14px 20px; }
    .nav-links { gap: 12px; }
    .hero-section { padding: 100px 20px 60px; }
    .features-section, .pricing-section { padding: 60px 20px; }
    .auth-card { padding: 32px 24px; }
    .pricing-grid { grid-template-columns: 1fr; }
}
