/* Cosmic Astrology AI — professional landing page */

.landing-page {
    --landing-section-y: clamp(3.25rem, 8vw, 5.75rem);
    --landing-card-radius: 1rem;
    --landing-border: rgba(148, 163, 184, 0.14);
    --landing-surface: rgba(15, 26, 46, 0.72);
}

/* Landing uses full-bleed hero; avoid double navbar offset from global main */
main:has(.landing-page) {
    padding-top: 0;
}

/* ── Hero ── */
.landing-hero {
    position: relative;
    min-height: min(100svh, 920px);
    display: flex;
    align-items: center;
    padding: calc(5.5rem + env(safe-area-inset-top, 0px)) 0 clamp(3rem, 7vw, 4.5rem);
    overflow: hidden;
    background:
        radial-gradient(ellipse 90% 70% at 15% 20%, rgba(124, 58, 237, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse 70% 55% at 88% 75%, rgba(34, 211, 238, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 50% 100%, rgba(37, 99, 235, 0.08) 0%, transparent 60%),
        var(--gradient-night-sky);
}

.landing-hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.3), transparent);
}

.landing-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.landing-hero-aurora {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 45% at 20% 10%, rgba(167, 139, 250, 0.14) 0%, transparent 55%),
        radial-gradient(ellipse 55% 40% at 80% 30%, rgba(34, 211, 238, 0.1) 0%, transparent 50%);
    animation: landing-aurora 14s ease-in-out infinite alternate;
}

@keyframes landing-aurora {
    0% { opacity: 0.65; transform: translateY(0); }
    100% { opacity: 1; transform: translateY(12px); }
}

.landing-hero-bg .stars {
    opacity: 0.5;
}

.landing-hero-bg .stars-2 {
    opacity: 0.35;
}

.landing-hero-content {
    position: relative;
    z-index: 2;
}

.landing-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    margin-bottom: 1.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-color);
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

.landing-hero-title {
    font-family: 'Playfair Display', 'Cinzel', Georgia, serif;
    font-size: clamp(2rem, 4.5vw + 0.5rem, 3.25rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: 1.15rem;
    max-width: 16ch;
}

.landing-hero-title .highlight {
    display: block;
    margin-top: 0.2em;
    background: var(--gradient-journey);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-hero-lead {
    font-size: clamp(1rem, 1.5vw + 0.65rem, 1.125rem);
    line-height: 1.7;
    color: var(--text-cosmic);
    max-width: 36rem;
    margin-bottom: 1.85rem;
}

.landing-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.85rem;
}

.landing-hero-actions .btn-primary-glow,
.landing-hero-actions .btn-landing-secondary {
    min-height: 2.85rem;
    padding: 0.7rem 1.4rem;
    font-size: 0.9375rem;
    border-radius: 0.65rem;
    font-weight: 600;
}

.btn-landing-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--landing-border);
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-landing-secondary:hover {
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(34, 211, 238, 0.35);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.landing-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.35rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.landing-trust-row li {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.landing-trust-row li i {
    color: var(--gold);
    font-size: 0.75rem;
}

/* Scroll hint */
.landing-scroll-hint {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.landing-scroll-hint:hover {
    opacity: 1;
}

.landing-scroll-mouse {
    display: block;
    width: 22px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    position: relative;
}

.landing-scroll-wheel {
    position: absolute;
    top: 7px;
    left: 50%;
    width: 3px;
    height: 7px;
    margin-left: -1.5px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    animation: landing-scroll-bounce 2s ease-in-out infinite;
}

@keyframes landing-scroll-bounce {
    0%, 100% { opacity: 1; transform: translateY(0); }
    50% { opacity: 0.3; transform: translateY(6px); }
}

/* Chart wheel visual */
.landing-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: clamp(0.5rem, 3vw, 2rem) 0;
}

.landing-chart-wheel {
    position: relative;
    width: min(100%, 400px);
    aspect-ratio: 1;
    margin-inline: auto;
}

.chart-wheel-disc {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: 50%;
    border: 1px solid rgba(251, 191, 36, 0.22);
    background:
        radial-gradient(circle at 50% 50%, rgba(10, 22, 40, 0.95) 0%, rgba(15, 26, 46, 0.85) 42%, transparent 43%),
        conic-gradient(
            from 0deg,
            rgba(124, 58, 237, 0.14) 0deg 30deg,
            rgba(15, 26, 46, 0.4) 30deg 60deg,
            rgba(34, 211, 238, 0.12) 60deg 90deg,
            rgba(15, 26, 46, 0.4) 90deg 120deg,
            rgba(245, 158, 11, 0.12) 120deg 150deg,
            rgba(15, 26, 46, 0.4) 150deg 180deg,
            rgba(124, 58, 237, 0.14) 180deg 210deg,
            rgba(15, 26, 46, 0.4) 210deg 240deg,
            rgba(34, 211, 238, 0.12) 240deg 270deg,
            rgba(15, 26, 46, 0.4) 270deg 300deg,
            rgba(245, 158, 11, 0.12) 300deg 330deg,
            rgba(15, 26, 46, 0.4) 330deg 360deg
        );
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 24px 64px rgba(0, 0, 0, 0.45),
        inset 0 0 80px rgba(124, 58, 237, 0.1);
    animation: chart-wheel-glow 8s ease-in-out infinite alternate;
}

.chart-wheel-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(148, 163, 184, 0.18);
    pointer-events: none;
    z-index: 1;
}

.chart-wheel-ring-outer {
    inset: 6%;
}

.chart-wheel-ring-inner {
    inset: 22%;
    border-style: solid;
    border-color: rgba(251, 191, 36, 0.18);
}

.chart-wheel-center {
    position: absolute;
    inset: 38%;
    z-index: 3;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(145deg, rgba(6, 13, 24, 0.95), rgba(15, 26, 46, 0.9));
    border: 1px solid rgba(34, 211, 238, 0.25);
    box-shadow: inset 0 0 24px rgba(124, 58, 237, 0.15);
}

.chart-wheel-center i {
    font-size: 1.35rem;
    color: var(--gold-bright);
    margin-bottom: 0.35rem;
}

.chart-wheel-center span {
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.chart-wheel-glyph {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.75rem;
    height: 1.75rem;
    margin: -0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: var(--gold);
    transform: rotate(var(--angle)) translateY(calc(-1 * min(42vw, 168px))) rotate(calc(-1 * var(--angle)));
    opacity: 0.88;
    z-index: 2;
}

.landing-stat-cards {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 4;
}

.landing-stat-card {
    position: absolute;
    padding: 0.6rem 0.85rem;
    border-radius: 0.65rem;
    background: var(--landing-surface);
    border: 1px solid var(--landing-border);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    font-size: 0.7rem;
    line-height: 1.35;
    color: var(--text-muted);
    max-width: 8rem;
}

.landing-stat-card strong {
    display: block;
    font-size: 0.78rem;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.landing-stat-card--tl { top: 8%; left: -2%; }
.landing-stat-card--br { bottom: 10%; right: -2%; }

@keyframes chart-wheel-glow {
    0% { box-shadow: 0 0 0 1px rgba(255,255,255,0.04), 0 24px 64px rgba(0,0,0,0.45), inset 0 0 60px rgba(124,58,237,0.06); }
    100% { box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 28px 72px rgba(0,0,0,0.5), inset 0 0 90px rgba(34,211,238,0.12); }
}

/* ── Credentials strip ── */
.landing-credentials {
    padding: 1.5rem 0;
    background: rgba(6, 13, 24, 0.75);
    border-bottom: 1px solid var(--landing-border);
    border-top: 1px solid rgba(34, 211, 238, 0.08);
}

.landing-credentials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.landing-credential {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border-radius: var(--landing-card-radius);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--landing-border);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.landing-credential:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(34, 211, 238, 0.22);
}

.landing-credential-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.6rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(37, 99, 235, 0.15));
    color: var(--accent-color);
    font-size: 0.95rem;
}

.landing-credential h3 {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 0.2rem;
    color: var(--text-light);
}

.landing-credential p {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--text-muted);
}

/* ── Section shell ── */
.landing-section {
    padding: var(--landing-section-y) 0;
}

.landing-section--alt {
    background: var(--darker-bg);
}

.landing-section-header {
    max-width: 42rem;
    margin: 0 auto 2.75rem;
    text-align: center;
}

.landing-section-header .section-subtitle {
    max-width: 36rem;
    margin-inline: auto;
    color: var(--text-muted);
    font-size: clamp(0.9375rem, 1.2vw + 0.5rem, 1.05rem);
    line-height: 1.65;
}

/* ── How it works ── */
.landing-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    counter-reset: landing-step;
    position: relative;
}

.landing-step {
    display: flex;
    gap: 1.15rem;
    padding: 1.4rem 1.35rem;
    border-radius: var(--landing-card-radius);
    background: var(--landing-surface);
    border: 1px solid var(--landing-border);
    counter-increment: landing-step;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.landing-step:hover {
    border-color: rgba(34, 211, 238, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.landing-step-num {
    flex-shrink: 0;
    width: 2.6rem;
    height: 2.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.65rem;
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gold-bright);
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.landing-step h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.025rem;
    font-weight: 600;
    margin: 0 0 0.4rem;
    color: var(--text-light);
}

.landing-step p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.landing-page .zodiac-section {
    padding-top: var(--landing-section-y);
    padding-bottom: var(--landing-section-y);
    background:
        linear-gradient(180deg, var(--dark-bg) 0%, var(--cosmic-indigo) 100%),
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(124, 58, 237, 0.06) 0%, transparent 55%);
}

.landing-zodiac-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
}

.landing-zodiac-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 1.05rem 0.5rem;
    text-align: center;
    text-decoration: none;
    border-radius: var(--landing-card-radius);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--landing-border);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 6.75rem;
}

.landing-zodiac-card:hover {
    color: inherit;
    background: rgba(124, 58, 237, 0.12);
    border-color: rgba(34, 211, 238, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.landing-zodiac-glyph {
    font-size: 1.75rem;
    line-height: 1;
    color: var(--gold);
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.25);
}

.landing-zodiac-name {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: 0.02em;
}

.landing-zodiac-hint {
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* ── Feature cards (landing) ── */
.landing-features-grid .feature-card-modern {
    padding: 1.6rem;
    border-radius: var(--landing-card-radius);
    border-color: var(--landing-border);
}

.landing-features-grid .icon-wrapper {
    width: 3.1rem;
    height: 3.1rem;
    font-size: 1.25rem;
    border-radius: 0.65rem;
}

.landing-features-grid .feature-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
}

.landing-features-grid .feature-description {
    font-size: 0.875rem;
    line-height: 1.6;
}

.landing-features-grid .feature-link {
    font-size: 0.875rem;
    font-weight: 600;
}

/* ── Quote & blog (landing polish) ── */
.landing-quote .quote-card {
    border-radius: var(--landing-card-radius);
    border: 1px solid var(--landing-border);
    max-width: 42rem;
    margin-inline: auto;
    padding: clamp(2rem, 5vw, 3rem);
}

.landing-blog .blog-card {
    border-radius: var(--landing-card-radius);
    border-color: var(--landing-border);
}

/* ── CTA ── */
.landing-cta {
    background:
        linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(15, 26, 46, 0.95) 45%, rgba(34, 211, 238, 0.1) 100%);
}

.landing-cta .cta-card,
.landing-cta-card {
    border-radius: 1.25rem;
    padding: clamp(1.75rem, 4vw, 2.75rem);
    border: 1px solid rgba(34, 211, 238, 0.2);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.landing-cta-card .cta-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.landing-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

@media (min-width: 992px) {
    .landing-cta-actions {
        justify-content: flex-end;
    }
}

.landing-cta-actions .btn {
    min-height: 2.85rem;
    border-radius: 0.65rem;
    padding-inline: 1.35rem;
    font-weight: 600;
}

/* Landing footer spacing */
body:has(.landing-page) .footer-modern {
    margin-top: 0;
}

/* ── Responsive ── */
@media (min-width: 576px) {
    .landing-credentials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .landing-zodiac-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem;
    }
}

@media (min-width: 768px) {
    .landing-credentials-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }

    .landing-steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }

    .landing-step {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 1.75rem 1.25rem;
    }

    .landing-zodiac-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .landing-hero-actions .btn-primary-glow,
    .landing-hero-actions .btn-landing-secondary {
        min-height: 3rem;
        padding: 0.75rem 1.5rem;
    }
}

@media (min-width: 992px) {
    .landing-hero-title {
        max-width: none;
    }

    .landing-stat-card--tl { left: 0; }
    .landing-stat-card--br { right: 0; }

    .landing-scroll-hint {
        display: block;
    }
}

@media (max-width: 991px) {
    .landing-hero-visual {
        margin-top: 0;
    }

    .landing-chart-wheel {
        width: min(78vw, 320px);
    }

    .landing-stat-card--tl { top: 4%; left: 0; }
    .landing-stat-card--br { bottom: 4%; right: 0; }

    .landing-scroll-hint {
        display: none;
    }
}

@media (max-width: 575px) {
    .landing-hero {
        min-height: auto;
        padding-bottom: 2.5rem;
    }

    .landing-hero-title {
        max-width: none;
    }

    .landing-hero-actions {
        flex-direction: column;
    }

    .landing-hero-actions .btn-primary-glow,
    .landing-hero-actions .btn-landing-secondary {
        width: 100%;
    }

    .landing-cta-actions {
        flex-direction: column;
    }

    .landing-cta-actions .btn {
        width: 100%;
    }

    .landing-stat-cards {
        display: none;
    }

    .landing-hero-bg .stars-2 {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .chart-wheel-disc,
    .landing-hero-aurora,
    .landing-scroll-wheel {
        animation: none;
    }

    .landing-zodiac-card:hover,
    .btn-landing-secondary:hover,
    .landing-step:hover {
        transform: none;
    }
}
