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

:root {
    --primary: #6b46c1;
    --primary-dark: #553c9a;
    --secondary: #ec4899;
    --accent: #f59e0b;
    --bg-dark: #1a1625;
    --bg-darker: #0f0a1a;
    --text-light: #f3f4f6;
    --text-muted: #9ca3af;
    --border: rgba(139, 92, 246, 0.2);
    --card-bg: rgba(30, 23, 51, 0.8);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-darker);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated Background */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(2px 2px at 20px 30px, white, transparent),
                radial-gradient(2px 2px at 60px 70px, white, transparent),
                radial-gradient(1px 1px at 50px 50px, white, transparent),
                radial-gradient(1px 1px at 130px 80px, white, transparent),
                radial-gradient(2px 2px at 90px 10px, white, transparent);
    background-size: 200px 200px;
    opacity: 0.3;
    animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

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

/* Header */
header {
    background: rgba(15, 10, 26, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo h1 {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

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

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(180deg, rgba(107, 70, 193, 0.1) 0%, transparent 100%);
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

/* Question Section */
.question-section {
    max-width: 600px;
    margin: 0 auto 3rem;
}

.question-section label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.question-section textarea {
    width: 100%;
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 1rem;
    font-family: inherit;
    resize: none;
}

.question-section textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.1);
}

.char-count {
    text-align: right;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Spread Selector */
.spread-selector {
    margin-bottom: 3rem;
}

.spread-selector h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.spread-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.spread-option {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.spread-option:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(107, 70, 193, 0.3);
}

.spread-option.active {
    border-color: var(--primary);
    background: rgba(107, 70, 193, 0.1);
    box-shadow: 0 0 30px rgba(107, 70, 193, 0.3);
}

.spread-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent);
    color: var(--bg-darker);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.spread-badge.premium {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.spread-option h4 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.spread-option p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.spread-option .price {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-premium,
.btn-share {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(107, 70, 193, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107, 70, 193, 0.5);
}

.btn-draw {
    padding: 1.25rem 3rem;
    font-size: 1.25rem;
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.btn-premium {
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
}

.btn-share {
    background: rgba(107, 70, 193, 0.2);
    color: var(--primary);
    border: 1px solid var(--primary);
    margin-top: 2rem;
}

.btn-share:hover {
    background: rgba(107, 70, 193, 0.3);
}

/* Card Display */
.card-display {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.cards-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.tarot-card {
    width: 280px;
    height: 420px;
    perspective: 1000px;
    opacity: 0;
    transform: scale(0.8) translateY(50px);
    transition: all 0.5s ease-out;
}

.tarot-card.revealed {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.tarot-card.reversed .card-inner {
    transform: rotateZ(180deg);
}

.card-front {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.2) 0%, rgba(236, 72, 153, 0.2) 100%);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.card-header {
    text-align: center;
    width: 100%;
}

.card-header h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.reversed-badge {
    display: inline-block;
    background: var(--secondary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.card-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
}

.card-suit {
    font-size: 3rem;
}

.card-element {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.keyword {
    background: rgba(107, 70, 193, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Reading Section */
.reading-section {
    padding: 4rem 0;
    background: rgba(107, 70, 193, 0.05);
}

.reading-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.reading-content > h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.card-meanings {
    margin-bottom: 3rem;
}

.card-meaning {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.card-meaning h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.meaning-brief {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.meaning-details p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.meaning-details strong {
    color: var(--primary);
}

/* Premium Upsell */
.premium-upsell {
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.2) 0%, rgba(236, 72, 153, 0.2) 100%);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 2rem;
}

.premium-upsell h4 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.premium-upsell > p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.premium-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
    display: inline-block;
}

.premium-features li {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

/* Info Sections */
.section-light {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.02);
}

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

.step {
    text-align: center;
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.step h3 {
    margin-bottom: 1rem;
}

.step p {
    color: var(--text-muted);
}

/* Spreads Info */
.spreads-info {
    padding: 4rem 0;
}

.spreads-info h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.spread-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.spread-detail {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
}

.spread-detail h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.spread-detail p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.spread-price {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary);
}

/* Pricing Section */
.pricing-section {
    padding: 4rem 0;
    background: rgba(107, 70, 193, 0.05);
}

.pricing-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

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

.pricing-card {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    position: relative;
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 40px rgba(107, 70, 193, 0.3);
    transform: scale(1.05);
}

.pricing-card .badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2rem;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.pricing-card ul li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

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

/* Footer */
footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    text-align: center;
}

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

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

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

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .spread-options {
        grid-template-columns: 1fr;
    }
    
    .tarot-card {
        width: 240px;
        height: 360px;
    }
    
    .nav-links {
        gap: 1rem;
        font-size: 0.875rem;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
}
