/* ===========================================
   StemScribe Landing Page Styles
   =========================================== */

/* --- Layout & Sections --- */

.landing-body {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(13, 13, 18, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s;
}

.landing-nav .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.landing-nav .logo-symbol {
    font-size: 1.4rem;
    background: linear-gradient(90deg, var(--psych-orange), var(--psych-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: spin-slow 20s linear infinite;
    display: inline-block;
}

.landing-nav .logo-img {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: contain;
}

.landing-nav .logo-text {
    font-family: 'Righteous', cursive;
    font-size: 1.4rem;
    background: linear-gradient(90deg, var(--psych-orange), var(--psych-pink), var(--psych-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.nav-links-landing {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links-landing a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-cta {
    padding: 0.5rem 1.2rem;
    background: linear-gradient(135deg, var(--psych-orange), var(--psych-pink));
    border: none;
    border-radius: 8px;
    color: #fff !important;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.1s;
}

.nav-cta:hover {
    opacity: 0.9;
    color: #fff !important;
}

.nav-cta:active {
    transform: scale(0.97);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Psychedelic Background (reused from app) --- */

.landing-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
}

.landing-bg .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
}

.landing-bg .orb-1 {
    width: 600px;
    height: 600px;
    background: var(--psych-orange);
    top: -200px;
    right: -100px;
    animation: float-orb 15s ease-in-out infinite;
}

.landing-bg .orb-2 {
    width: 500px;
    height: 500px;
    background: var(--psych-pink);
    bottom: -150px;
    left: -100px;
    animation: float-orb 18s ease-in-out infinite reverse;
}

.landing-bg .orb-3 {
    width: 400px;
    height: 400px;
    background: var(--psych-purple);
    top: 40%;
    left: 50%;
    animation: float-orb 20s ease-in-out infinite;
}

@keyframes float-orb {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -20px); }
    66% { transform: translate(-20px, 15px); }
}

/* Grain overlay */
.landing-bg::after {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    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.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
    mix-blend-mode: overlay;
}

/* --- Hero Section --- */

.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    position: relative;
}

.hero-label {
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--psych-orange);
    margin-bottom: 1.5rem;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(255, 123, 84, 0.3);
    border-radius: 20px;
    background: rgba(255, 123, 84, 0.08);
}

.hero-headline {
    font-family: 'Righteous', cursive;
    font-size: 4rem;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    text-shadow: 0 1px 0 rgba(255,255,255,0.05), 0 -1px 0 rgba(0,0,0,0.3);
}

.hero-headline .highlight {
    font-size: 5rem;
    display: block;
    background: linear-gradient(90deg, var(--psych-orange), var(--psych-pink), var(--psych-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradient-shift 4s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.hero-subtitle {
    font-family: 'Outfit', 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    color: var(--text-dim);
    max-width: 550px;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Animated wave bars */
.hero-waves {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin: 2rem 0 2.5rem;
}

.hero-wave {
    width: 60px;
    height: 3px;
    border-radius: 2px;
    animation: wave-pulse 2s ease-in-out infinite;
}

.hero-wave:nth-child(1) {
    background: var(--psych-orange);
    animation-delay: 0s;
}

.hero-wave:nth-child(2) {
    background: var(--psych-pink);
    animation-delay: 0.3s;
}

.hero-wave:nth-child(3) {
    background: var(--psych-purple);
    animation-delay: 0.6s;
}

@keyframes wave-pulse {
    0%, 100% { transform: scaleX(1); opacity: 0.6; }
    50% { transform: scaleX(1.5); opacity: 1; }
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, var(--psych-orange), var(--psych-pink));
    border: none;
    border-radius: 10px;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
}

.btn-primary:hover { opacity: 0.9; }
.btn-primary:active { transform: scale(0.97); }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.hero-note {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* --- Section Shared --- */

.landing-section {
    padding: 5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.section-label {
    font-family: 'Bebas Neue', 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--psych-orange);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: 'Righteous', cursive;
    font-size: 2.5rem;
    color: var(--text);
    margin-bottom: 1rem;
    text-shadow: 0 1px 0 rgba(255,255,255,0.05), 0 -1px 0 rgba(0,0,0,0.3);
}

.section-subtitle {
    font-family: 'Outfit', 'Space Grotesk', sans-serif;
    color: var(--text-dim);
    font-size: 1.05rem;
    max-width: 600px;
    line-height: 1.7;
    margin-bottom: 3rem;
}

/* --- How It Works --- */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    transition: border-color 0.3s, transform 0.2s;
}

.step-card:hover {
    border-color: rgba(255, 123, 84, 0.2);
    transform: translateY(-4px);
}

.step-number {
    font-family: 'Righteous', cursive;
    font-size: 3rem;
    background: linear-gradient(135deg, var(--psych-orange), var(--psych-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

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

.step-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.step-desc {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Arrow connectors between steps */
.step-card:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1.25rem;
    top: 50%;
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid var(--psych-orange);
    border-top: 2px solid var(--psych-orange);
    transform: rotate(45deg) translateY(-50%);
    opacity: 0.4;
}

/* --- Features Grid --- */

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 2rem 1.5rem;
    transition: border-color 0.3s, transform 0.2s;
}

.feature-card:hover {
    border-color: rgba(255, 123, 84, 0.2);
    transform: translateY(-3px);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.feature-desc {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.6;
}

.feature-badge {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
}

.badge-free {
    background: rgba(152, 195, 121, 0.15);
    color: var(--psych-green);
    border: 1px solid rgba(152, 195, 121, 0.3);
}

.badge-premium {
    background: rgba(229, 192, 123, 0.15);
    color: var(--psych-yellow);
    border: 1px solid rgba(229, 192, 123, 0.3);
}

.badge-pro {
    background: rgba(198, 120, 221, 0.15);
    color: var(--psych-purple);
    border: 1px solid rgba(198, 120, 221, 0.3);
}

/* --- Comparison --- */

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

.comparison-cards {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    margin-top: 2rem;
}

.compare-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 2rem;
    text-align: left;
}

.compare-card.them {
    opacity: 0.7;
}

.compare-card.us {
    border-color: rgba(255, 123, 84, 0.3);
    box-shadow: 0 0 30px rgba(255, 123, 84, 0.08);
}

.compare-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.compare-label.them-label { color: var(--text-dim); }
.compare-label.us-label { color: var(--psych-orange); }

.compare-price {
    font-family: 'Righteous', cursive;
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.compare-price-note {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 1.25rem;
}

.compare-list {
    list-style: none;
    padding: 0;
}

.compare-list li {
    padding: 0.4rem 0;
    font-size: 0.9rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.compare-list li .check { color: var(--psych-green); }
.compare-list li .cross { color: #ff5252; }

.compare-vs {
    font-family: 'Righteous', cursive;
    font-size: 1.5rem;
    color: var(--text-dim);
    opacity: 0.4;
}

/* --- Pricing --- */

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

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.price-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    transition: border-color 0.3s, transform 0.2s;
}

.price-card:hover {
    transform: translateY(-4px);
}

.price-card.featured {
    border-color: rgba(255, 123, 84, 0.4);
    box-shadow: 0 0 40px rgba(255, 123, 84, 0.1);
}

.price-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.25rem 1rem;
    background: linear-gradient(135deg, var(--psych-orange), var(--psych-pink));
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    white-space: nowrap;
}

.price-tier {
    font-family: 'Righteous', cursive;
    font-size: 1.4rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.price-amount {
    font-family: 'Righteous', cursive;
    font-size: 3rem;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.price-amount .dollar { font-size: 1.5rem; vertical-align: top; }
.price-amount .period {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    color: var(--text-dim);
    font-weight: 400;
}

.price-desc {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.price-features {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-bottom: 2rem;
}

.price-features li {
    padding: 0.4rem 0;
    font-size: 0.9rem;
    color: var(--text-dim);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.price-features li .check {
    color: var(--psych-green);
    flex-shrink: 0;
    margin-top: 2px;
}

.price-cta {
    display: block;
    width: 100%;
    padding: 0.75rem;
    border-radius: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
}

.price-cta:hover { opacity: 0.9; }
.price-cta:active { transform: scale(0.97); }

.price-cta.primary {
    background: linear-gradient(135deg, var(--psych-orange), var(--psych-pink));
    border: none;
    color: #fff;
}

.price-cta.secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text);
}

/* --- Beta Access --- */

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

.beta-box {
    max-width: 500px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 3rem 2.5rem;
}

.beta-badge-landing {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 20px;
    color: #00ff88;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.beta-title {
    font-family: 'Righteous', cursive;
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.beta-desc {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.beta-form {
    display: flex;
    gap: 0.75rem;
}

.beta-input {
    flex: 1;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    text-align: center;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    outline: none;
    transition: border-color 0.2s;
}

.beta-input:focus {
    border-color: var(--psych-orange);
}

.beta-input::placeholder {
    text-transform: none;
    letter-spacing: normal;
    color: var(--text-dim);
}

.beta-submit {
    padding: 0.9rem 1.5rem;
    background: linear-gradient(135deg, #00ff88, #00ccff);
    border: none;
    border-radius: 10px;
    color: #0d0d12;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.beta-submit:hover { opacity: 0.9; }

.beta-note {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.beta-note a {
    color: var(--psych-orange);
    text-decoration: none;
}

/* --- Footer --- */

.landing-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-brand .logo-symbol {
    font-size: 1.1rem;
    background: linear-gradient(90deg, var(--psych-orange), var(--psych-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-brand .logo-img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    object-fit: contain;
}

.footer-brand .logo-text {
    font-family: 'Righteous', cursive;
    font-size: 1.1rem;
    color: var(--text-dim);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

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

.footer-copy {
    color: var(--text-dim);
    font-size: 0.8rem;
    width: 100%;
    text-align: center;
    margin-top: 1rem;
}

.footer-copy a {
    color: var(--psych-orange);
    text-decoration: none;
}

/* --- Responsive --- */

@media (max-width: 768px) {
    .nav-links-landing {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(13, 13, 18, 0.95);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

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

    .mobile-menu-toggle {
        display: block;
    }

    .hero-headline {
        font-size: 2.5rem;
    }

    .hero-headline .highlight {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .step-card:not(:last-child)::after {
        display: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .comparison-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .compare-vs {
        display: none;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .beta-form {
        flex-direction: column;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-cta-group {
        flex-direction: column;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 2rem;
    }

    .hero-headline .highlight {
        font-size: 2.8rem;
    }

    .landing-section {
        padding: 3rem 1.25rem;
    }

    .beta-box {
        padding: 2rem 1.5rem;
    }
}
