/* 
   MeraHoroscope - Premium Mystical Style 
   Palette: #ffdaa7 (Gold), #2f3148 (Deep Blue), #F8F9FA (Light)
*/

:root {
    --color-bg-dark: #2f3148;
    --color-bg-darker: #1a1b2e;
    --color-accent: #ffdaa7;
    --color-accent-glow: rgba(255, 218, 167, 0.4);
    --color-text-light: #F8F9FA;
    --color-text-muted: #b0b3c6;
    --color-card-bg: rgba(255, 255, 255, 0.05);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --radius-lg: 24px;
    --radius-md: 16px;
    --transition-base: 0.3s ease;

    --container-max: 1200px;
    --spacing-section: 120px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text-light);
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Layout --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: var(--spacing-section) 0;
    position: relative;
    z-index: 2;
    /* Above starfield */
}

/* --- Starfield --- */
#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* --- Components --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #ffdaa7 0%, #d4a76a 100%);
    color: var(--color-bg-darker);
    box-shadow: 0 4px 20px var(--color-accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--color-accent-glow);
}

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

.btn-secondary:hover {
    background: rgba(255, 218, 167, 0.1);
}

.text-center {
    text-align: center;
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    background: rgba(47, 49, 72, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-text-light);
}

.logo img {
    height: 40px;
    border-radius: 5px;
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 100px;
    /* Offset fixed header */
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 24px;
    background: linear-gradient(180deg, #FFFFFF 0%, #ffdaa7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0px 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.secondary-text {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    opacity: 0.8;
}

/* --- Philosophy --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.philosophy-card {
    background: var(--color-card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    transition: var(--transition-base);
}

.philosophy-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: rgba(255, 218, 167, 0.3);
}

.icon-wrapper {
    width: 64px;
    height: 64px;
    background: rgba(255, 218, 167, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--color-accent);
}

.philosophy-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--color-text-light);
}

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

/* --- Ask the Stars --- */
.ask-stars {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--color-text-muted);
}

.prompt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.prompt-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 32px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.prompt-card:hover,
.prompt-card:focus {
    background: linear-gradient(135deg, rgba(255, 218, 167, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-color: var(--color-accent);
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    outline: none;
}

.prompt-card .category {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent);
    margin-bottom: 12px;
    opacity: 0.8;
}

.prompt-card p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-text-light);
}

/* --- How It Works --- */
.how-it-works h2 {
    font-size: 3rem;
    margin-bottom: 80px;
}

.steps-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.step-item {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--color-bg-darker);
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 0 20px rgba(255, 218, 167, 0.2);
}

.step-content h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
}

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

.step-line {
    flex: 1;
    height: 2px;
    background: rgba(255, 218, 167, 0.3);
    margin-top: 30px;
    /* Align with circle center roughly */
}

/* --- FAQ --- */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 800px;
    margin: 60px auto 0;
}

.faq-item {
    background: var(--color-card-bg);
    border-radius: var(--radius-md);
    padding: 32px;
    border-left: 4px solid var(--color-accent);
}

.faq-item h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--color-text-light);
}

.faq-item p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* --- Footer --- */
.site-footer {
    background: var(--color-bg-darker);
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

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

.copyright {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .steps-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .step-line {
        display: none;
    }

    .step-item {
        max-width: 100%;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .navbar .btn {
        display: none;
        /* Hide top CTA on mobile for simplicity, or re-style */
    }

    .navbar {
        justify-content: center;
    }
}

/* --- Legal Page Navigation --- */
.legal-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    background: rgba(47, 49, 72, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.legal-nav .container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.legal-back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    background: rgba(255, 218, 167, 0.1);
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.legal-back-btn:hover {
    background: rgba(255, 218, 167, 0.2);
    border-color: var(--color-accent);
    color: #fff;
}