@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@700;800;900&display=swap');

/* ===== CSS Custom Properties ===== */
:root {
    --primary-purple: #a855f7;
    --primary-blue: #3b82f6;
    --primary-indigo: #6366f1;
    --accent-pink: #ec4899;
    --accent-cyan: #06b6d4;
    --bg-dark: #030712;
    --bg-deep: #0a0f1e;
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-hover: rgba(255, 255, 255, 0.12);
    --text-primary: #f8fafc;
    --text-secondary: rgba(248, 250, 252, 0.7);
    --text-muted: rgba(248, 250, 252, 0.5);
    --shadow-glow: 0 0 80px rgba(139, 92, 246, 0.15);
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius-lg: 28px;
    --border-radius-md: 20px;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* ===== Animated Background ===== */
.bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Gradient Mesh Background */
.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 60% at 10% 20%, rgba(139, 92, 246, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 80% 80%, rgba(59, 130, 246, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 50% 50%, rgba(236, 72, 153, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 40% 40% at 90% 10%, rgba(6, 182, 212, 0.12) 0%, transparent 50%);
}

/* Floating Orbs */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.4), transparent 70%);
    top: -10%;
    left: -5%;
    animation: floatOrb1 20s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.35), transparent 70%);
    bottom: -10%;
    right: -5%;
    animation: floatOrb2 25s ease-in-out infinite;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.25), transparent 70%);
    top: 40%;
    left: 50%;
    animation: floatOrb3 18s ease-in-out infinite;
}

@keyframes floatOrb1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(80px, 60px) scale(1.1); }
    50% { transform: translate(40px, 120px) scale(0.95); }
    75% { transform: translate(-30px, 80px) scale(1.05); }
}

@keyframes floatOrb2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-60px, -80px) scale(1.08); }
    50% { transform: translate(-100px, -40px) scale(0.92); }
    75% { transform: translate(-40px, -100px) scale(1.04); }
}

@keyframes floatOrb3 {
    0%, 100% { transform: translate(-50%, 0) scale(1); }
    33% { transform: translate(-40%, -60px) scale(1.15); }
    66% { transform: translate(-60%, 40px) scale(0.9); }
}

/* ===== Particle Stars ===== */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle var(--duration) ease-in-out infinite;
    opacity: 0;
}

@keyframes twinkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: var(--max-opacity); transform: scale(1.2); }
}

/* ===== Noise Texture Overlay ===== */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
}

/* ===== Navigation Bar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(3, 7, 18, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(3, 7, 18, 0.85);
    padding: 12px 40px;
}

.nav-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 12px;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-purple), var(--primary-blue));
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.nav-links a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* ===== Main Container ===== */
.container {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 140px 24px 80px;
}

/* ===== Hero Section ===== */
.hero {
    text-align: center;
    margin-bottom: 100px;
    animation: fadeUp 1s ease-out;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animated Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 100px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(59, 130, 246, 0.15));
    border: 1px solid rgba(139, 92, 246, 0.25);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-purple);
    margin-bottom: 32px;
    animation: fadeUp 1s ease-out 0.1s both;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-purple);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* Logo Title */
.logo {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -3px;
    position: relative;
    animation: fadeUp 1s ease-out 0.2s both;
}

.logo-gradient {
    background: linear-gradient(135deg, #c084fc 0%, #818cf8 25%, #60a5fa 50%, #38bdf8 75%, #a78bfa 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse, rgba(139, 92, 246, 0.2), transparent 70%);
    filter: blur(40px);
    pointer-events: none;
    z-index: -1;
}

/* Tagline */
.tagline {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 16px;
    animation: fadeUp 1s ease-out 0.3s both;
    letter-spacing: 0.5px;
}

.tagline em {
    font-style: normal;
    background: linear-gradient(90deg, var(--accent-pink), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* Subtitle */
.subtitle {
    font-size: 1.1rem;
    max-width: 620px;
    margin: 0 auto 40px;
    color: var(--text-muted);
    line-height: 1.8;
    animation: fadeUp 1s ease-out 0.4s both;
}

/* CTA Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 48px;
    animation: fadeUp 1s ease-out 0.5s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 4px;
}

/* ===== Divider Line ===== */
.section-divider {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), rgba(59, 130, 246, 0.3), transparent);
}

/* ===== Section Title ===== */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary-purple);
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
}

/* ===== Cards Grid ===== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
    margin-bottom: 80px;
}

/* Card Styles */
.card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 44px 36px 40px;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition-smooth);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Card gradient border effect on hover */
.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius-lg);
    padding: 1px;
    background: linear-gradient(135deg, transparent, transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.card:hover::before {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-blue), var(--accent-cyan));
}

/* Card shine effect */
.card::after {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.card:hover::after {
    opacity: 1;
}

.card:hover {
    transform: translateY(-12px);
    background: var(--glass-hover);
    box-shadow:
        0 30px 60px -20px rgba(0, 0, 0, 0.5),
        0 0 40px -10px rgba(139, 92, 246, 0.15);
}

/* Card Icon */
.card-icon-wrapper {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 2rem;
    transition: var(--transition-smooth);
    position: relative;
}

.card-icon-wrapper.tools {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.card-icon-wrapper.astrology {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(168, 85, 247, 0.1));
    border: 1px solid rgba(236, 72, 153, 0.2);
}

.card-icon-wrapper.store {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(59, 130, 246, 0.1));
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.card:hover .card-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.card-icon-wrapper .icon-glow {
    position: absolute;
    inset: -10px;
    border-radius: 24px;
    opacity: 0;
    filter: blur(15px);
    transition: opacity 0.5s ease;
}

.card-icon-wrapper.tools .icon-glow {
    background: rgba(99, 102, 241, 0.3);
}

.card-icon-wrapper.astrology .icon-glow {
    background: rgba(236, 72, 153, 0.3);
}

.card-icon-wrapper.store .icon-glow {
    background: rgba(6, 182, 212, 0.3);
}

.card:hover .icon-glow {
    opacity: 1;
}

/* Card Content */
.card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.98rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

/* Card Arrow Link */
.card-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.card.tools-card .card-arrow { color: var(--primary-indigo); }
.card.astrology-card .card-arrow { color: var(--accent-pink); }
.card.store-card .card-arrow { color: var(--accent-cyan); }

.card-arrow svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.card:hover .card-arrow svg {
    transform: translateX(6px);
}

/* ===== Ad Banner Sections ===== */
.ad-section {
    margin: 40px auto;
    text-align: center;
    max-width: 728px;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.ad-section-large {
    max-width: 970px;
    min-height: 250px;
}

.ad-section-inline {
    margin: 24px auto;
    max-width: 100%;
}

/* ===== Features / Trust Badges ===== */
.trust-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    padding: 40px 0;
    margin-bottom: 60px;
    animation: fadeUp 1s ease-out 0.6s both;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 500;
}

.trust-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

/* ===== Newsletter / CTA Section ===== */
.cta-section {
    position: relative;
    text-align: center;
    padding: 64px 40px;
    border-radius: var(--border-radius-lg);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.08));
    border: 1px solid rgba(139, 92, 246, 0.15);
    margin-bottom: 60px;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15), transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

.cta-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
}

.cta-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 32px;
    position: relative;
}

.cta-form {
    display: flex;
    justify-content: center;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
}

.cta-input {
    flex: 1;
    padding: 14px 20px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: var(--transition-smooth);
}

.cta-input::placeholder {
    color: var(--text-muted);
}

.cta-input:focus {
    border-color: var(--primary-purple);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.cta-btn {
    padding: 14px 28px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-blue));
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(139, 92, 246, 0.4);
}

/* ===== Footer ===== */
.footer {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 48px 24px 32px;
    text-align: center;
}

.footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    display: inline-block;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-purple);
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 24px 0;
}

.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.social-icon:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--primary-purple);
    color: var(--primary-purple);
    transform: translateY(-3px);
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 20px;
}

.footer-copy .heart {
    color: #ef4444;
    display: inline-block;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.15); }
    50% { transform: scale(1); }
    75% { transform: scale(1.1); }
}

/* ===== Scroll Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.cards .card:nth-child(1) { transition-delay: 0.1s; }
.cards .card:nth-child(2) { transition-delay: 0.2s; }
.cards .card:nth-child(3) { transition-delay: 0.3s; }

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
    .navbar {
        padding: 12px 20px;
    }

    .nav-links {
        display: none;
    }

    .container {
        padding: 100px 16px 60px;
    }

    .hero {
        margin-bottom: 60px;
    }

    .cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card {
        padding: 32px 28px 28px;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .trust-bar {
        gap: 20px;
    }

    .cta-form {
        flex-direction: column;
    }

    .cta-section {
        padding: 40px 24px;
    }

    .footer-links {
        gap: 16px;
    }

    .ad-section {
        max-width: 100%;
        min-height: 60px;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .trust-bar {
        flex-direction: column;
        align-items: center;
    }
}

/* ===== Utility ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
