/*
 * Young Blogger Academy — landing layout on Neural Glass theme
 * Uses welcome-neural.css tokens; brand accents for logo / motto / CTA
 */

:root {
    --brand-blue: #6495ed;
    --brand-magenta: #d23c77;
    --brand-magenta-rgb: 210, 60, 119;
    --font-logo: "Unbounded", sans-serif;
    --font-motto: "Comfortaa", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body.landing-page {
    font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    color: var(--text-strong, #e8e8e8);
    background: var(--neural-page-bg, #0a0612);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Match app light/dark neural backdrop */
html[data-theme="light"] body.landing-page .neural-background {
    background: linear-gradient(135deg, var(--neural-page-bg) 0%, var(--neural-bg-mid) 50%, var(--neural-bg-end) 100%) !important;
    animation: none;
}

html[data-theme="light"] body.landing-page .neural-line {
    opacity: 0.15;
}

html[data-theme="light"] body.landing-page .geometric-shapes .shape {
    border-color: rgba(var(--accent-rgb), 0.2);
    opacity: 0.6;
}

html[data-theme="light"] body.landing-page {
    color: var(--text-strong);
}

html[data-theme="light"] body.landing-page .glass {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* Header */
.landing-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

html[data-theme="light"] .landing-header {
    background: rgba(255, 255, 255, 0.72);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

.landing-header__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.landing-logo {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0;
    text-decoration: none;
    color: var(--brand-blue);
    font-family: var(--font-logo);
    font-weight: 900;
    font-size: clamp(0.95rem, 2.2vw, 1.15rem);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.landing-logo:visited {
    color: var(--brand-blue);
}

.landing-logo__mark {
    flex-shrink: 0;
    width: 0.4em;
    height: 0.4em;
    display: inline-grid;
    place-items: center;
    align-self: baseline;
    margin-inline: 0.015em;
    /* like © / ° */
    position: relative;
    top: -0.55em;
}

.landing-logo__mark svg {
    width: 100%;
    height: 100%;
    display: block;
}

.landing-header__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
    position: relative;
}

.landing-page .lang-switch-group {
    display: inline-flex;
    align-items: stretch;
    gap: 0;
    padding: 3px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.landing-page .lang-switch-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: inherit;
    color: rgba(255, 255, 255, 0.6);
    background: transparent;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.landing-page .lang-switch-option:visited {
    color: rgba(255, 255, 255, 0.6);
}

.landing-page .lang-switch-option:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(var(--accent-rgb, 224, 163, 255), 0.12);
}

.landing-page .lang-switch-option.active,
.landing-page .lang-switch-option.active:visited {
    color: #fff;
    background: linear-gradient(135deg, rgba(var(--accent-rgb, 224, 163, 255), 0.35), rgba(var(--accent-2-rgb, 255, 105, 180), 0.3));
    box-shadow: 0 2px 8px rgba(var(--accent-rgb, 224, 163, 255), 0.25);
}

html[data-theme="light"] .landing-page .lang-switch-group {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(var(--accent-rgb, 124, 58, 237), 0.25);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .landing-page .lang-switch-option,
html[data-theme="light"] .landing-page .lang-switch-option:visited {
    color: var(--text-muted, #4c3d6b);
}

html[data-theme="light"] .landing-page .lang-switch-option:hover,
html[data-theme="light"] .landing-page .lang-switch-option:visited:hover {
    color: var(--text-strong, #1f0d36);
    background: rgba(var(--accent-rgb, 124, 58, 237), 0.1);
}

html[data-theme="light"] .landing-page .lang-switch-option.active,
html[data-theme="light"] .landing-page .lang-switch-option.active:visited {
    color: #fff !important;
    background: linear-gradient(135deg, var(--accent-3, #6d28d9), var(--accent, #7c3aed));
    box-shadow: 0 2px 8px rgba(var(--accent-rgb, 124, 58, 237), 0.35);
}

.landing-nav {
    display: flex;
    align-items: center;
    gap: 8px 28px;
    list-style: none;
}

.landing-nav a {
    color: var(--brand-magenta);
    text-decoration: none;
    font-family: var(--font-motto);
    font-size: 0.95rem;
    font-weight: 600;
    transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.landing-nav a:visited {
    color: var(--brand-magenta);
}

.landing-nav a:hover {
    opacity: 0.8;
    transform: translateY(-1px);
    color: var(--accent-hover, var(--brand-magenta));
}

.landing-nav-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(var(--brand-magenta-rgb), 0.45);
    color: var(--brand-magenta);
    border-radius: 10px;
    padding: 8px 12px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
}

html[data-theme="light"] .landing-nav-toggle {
    background: rgba(210, 60, 119, 0.06);
}

/* Hero */
.landing-hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: clamp(48px, 10vh, 96px) 24px clamp(40px, 6vh, 64px);
    text-align: center;
    min-height: min(88vh, 820px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    animation: heroEnter 0.9s ease both;
}

@keyframes heroEnter {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

.landing-hero__brand {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    color: var(--brand-blue);
    font-family: var(--font-logo);
    font-weight: 900;
    font-size: clamp(1.75rem, 5.5vw, 3.25rem);
    letter-spacing: -0.03em;
    line-height: 1.15;
    max-width: 18ch;
}

.landing-hero__brand .landing-logo__mark {
    width: 0.36em;
    height: 0.36em;
    top: -0.58em;
}

.landing-hero__brand .record-pulse {
    transform-origin: center;
    animation: recordPulse 1.8s ease-in-out infinite;
}

@keyframes recordPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.72; transform: scale(0.88); }
}

.landing-motto {
    color: var(--brand-magenta);
    font-family: var(--font-motto);
    font-size: clamp(0.95rem, 2.4vw, 1.45rem);
    font-weight: 500;
    white-space: nowrap;
    max-width: none;
    padding-inline: 12px;
    animation: mottoFade 1.1s 0.15s ease both;
}

@keyframes mottoFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.landing-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    padding: 18px 44px;
    min-width: min(100%, 320px);
    background: var(--brand-magenta);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-family: var(--font-motto);
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 14px 36px rgba(var(--brand-magenta-rgb), 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.2s ease;
    animation: ctaPop 1s 0.3s ease both;
}

.landing-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 18px 44px rgba(var(--brand-magenta-rgb), 0.45);
    background: #c2326a;
}

.landing-cta:active {
    transform: translateY(-1px) scale(0.99);
}

.landing-cta--contact {
    min-width: min(100%, 380px);
    padding: 22px 52px;
    font-size: clamp(1.2rem, 2.8vw, 1.5rem);
    border-radius: 16px;
    box-shadow:
        0 16px 40px rgba(var(--brand-magenta-rgb), 0.42),
        0 0 0 4px rgba(var(--brand-magenta-rgb), 0.2);
}

.landing-cta--contact:hover {
    box-shadow:
        0 20px 48px rgba(var(--brand-magenta-rgb), 0.52),
        0 0 0 5px rgba(var(--brand-magenta-rgb), 0.25);
}

@keyframes ctaPop {
    from { opacity: 0; transform: translateY(12px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Sections */
.landing-section {
    max-width: 1100px;
    margin: 0 auto 28px;
    padding: 36px 28px;
}

.landing-section__title {
    font-family: var(--font-logo);
    font-weight: 900;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    color: var(--accent, var(--brand-blue));
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.landing-section__lead {
    color: var(--text-muted, rgba(255, 255, 255, 0.7));
    font-size: 1.05rem;
    max-width: 52ch;
    margin-bottom: 28px;
}

.landing-section--tint {
    max-width: 1100px;
}

.landing-section--tint .landing-section__inner {
    max-width: none;
    padding-inline: 0;
}

.landing-prose {
    color: var(--text-muted, rgba(255, 255, 255, 0.7));
    font-size: 1.05rem;
    max-width: 60ch;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 26px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

html[data-theme="light"] .pricing-card {
    background: rgba(255, 255, 255, 0.55);
    border-color: rgba(0, 0, 0, 0.08);
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--brand-magenta-rgb), 0.45);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.pricing-card--featured {
    border-color: rgba(var(--brand-magenta-rgb), 0.55);
    box-shadow: 0 12px 32px rgba(var(--brand-magenta-rgb), 0.18);
}

.pricing-card__name {
    font-family: var(--font-logo);
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--accent, var(--brand-blue));
}

.pricing-card__price {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--brand-magenta);
}

.pricing-card__price span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.pricing-card__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
    flex: 1;
}

/* Reviews */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.review-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

html[data-theme="light"] .review-card {
    background: rgba(255, 255, 255, 0.55);
    border-color: rgba(0, 0, 0, 0.08);
}

.review-card__text {
    color: var(--text-muted);
    font-size: 0.98rem;
    margin-bottom: 14px;
}

.review-card__author {
    font-weight: 700;
    color: var(--brand-magenta);
    font-size: 0.9rem;
}

.contact-block {
    display: flex;
    flex-wrap: wrap;
    gap: 28px 48px;
    align-items: center;
}

.contact-block .landing-cta--contact {
    margin-top: 8px;
}

.contact-block a {
    color: var(--brand-magenta);
    font-weight: 700;
    text-decoration: none;
}

.contact-block a:visited {
    color: var(--brand-magenta);
}

.contact-block a:hover {
    text-decoration: underline;
    color: var(--accent-hover, var(--brand-magenta));
}

.landing-footer {
    text-align: center;
    padding: 32px 24px 48px;
    color: var(--text-muted);
    font-size: 0.85rem;
    opacity: 0.85;
}

.landing-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Auth modal — glass panel matching site */
.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-modal.is-open {
    display: flex;
}

.auth-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: backdropIn 0.25s ease;
}

@keyframes backdropIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.auth-modal__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    max-height: min(92vh, 900px);
    overflow-y: auto;
    animation: panelIn 0.3s ease;
}

.auth-modal__panel.auth-card {
    margin: 0;
}

@keyframes panelIn {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.35rem;
    line-height: 1;
    display: grid;
    place-items: center;
    transition: background 0.2s ease, color 0.2s ease;
}

html[data-theme="light"] .auth-modal__close {
    background: rgba(0, 0, 0, 0.06);
}

.auth-modal__close:hover {
    background: rgba(var(--brand-magenta-rgb), 0.18);
    color: var(--brand-magenta);
}

.auth-modal__title {
    text-align: center;
    font-family: var(--font-logo);
    font-weight: 900;
    font-size: 1.15rem;
    color: var(--brand-blue);
    margin-bottom: 20px;
    padding-right: 28px;
}

body.auth-modal-open {
    overflow: hidden;
}

/* Accent auth tabs/submit toward brand magenta while keeping neural inputs */
.landing-page .auth-tab[aria-selected="true"],
.landing-page .auth-tab.active {
    color: var(--brand-magenta);
    border-bottom-color: var(--brand-magenta);
}

.landing-page .submit-btn {
    background: linear-gradient(135deg, var(--brand-magenta), #e85a92);
    color: #fff;
}

.landing-page .submit-btn:hover {
    box-shadow: 0 8px 24px rgba(var(--brand-magenta-rgb), 0.4);
}

.landing-page .form-group input:focus {
    border-color: var(--brand-magenta);
    box-shadow: 0 0 0 3px rgba(var(--brand-magenta-rgb), 0.2);
}

html[data-theme="light"] .landing-page .form-group .form-label {
    color: var(--text-muted);
}

html[data-theme="light"] .landing-page .form-group input {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.12);
    color: var(--text-strong);
}

html[data-theme="light"] .landing-page .auth-tab {
    color: var(--text-muted);
}

html[data-theme="light"] .landing-page .auth-alert-error {
    color: #b91c1c;
}

html[data-theme="light"] .landing-page .auth-alert-success {
    color: var(--text-strong);
}

html[data-theme="light"] .landing-page .input-wrap .toggle-password {
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 900px) {
    .pricing-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .landing-nav-toggle {
        display: inline-flex;
    }

    .landing-nav {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        left: auto;
        min-width: 200px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(20, 16, 28, 0.96);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        padding: 8px 12px;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
        z-index: 50;
    }

    html[data-theme="light"] .landing-nav {
        background: rgba(255, 255, 255, 0.97);
        border-color: rgba(0, 0, 0, 0.08);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    }

    .landing-nav.is-open {
        display: flex;
    }

    .landing-nav a {
        padding: 12px 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    html[data-theme="light"] .landing-nav a {
        border-bottom-color: rgba(0, 0, 0, 0.06);
    }

    .landing-header {
        position: relative;
    }

    .landing-header__inner,
    .landing-header__actions {
        position: relative;
    }

    .landing-hero {
        min-height: auto;
        padding-top: 40px;
        padding-bottom: 48px;
    }

    .landing-section {
        padding: 28px 20px;
        margin-bottom: 20px;
    }
}
