/**
 * Public homepage — uses theme.css variables from /xpro/css/theme.css
 */
body.rx-landing {
    overflow-x: hidden;
}

.rx-landing-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(79, 70, 229, 0.18), transparent 55%),
        radial-gradient(ellipse 60% 40% at 100% 20%, rgba(124, 58, 237, 0.1), transparent 50%),
        radial-gradient(ellipse 50% 35% at 0% 80%, rgba(236, 72, 153, 0.08), transparent 50%),
        var(--rx-gradient-soft);
}

.rx-landing-wrap {
    position: relative;
    z-index: 1;
}

/* Navbar */
.rx-home-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--rx-border);
}

.rx-home-nav__inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.rx-home-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    min-width: 0;
}

.rx-home-brand img {
    width: auto;
    height: 2.75rem;
    max-width: 9rem;
    object-fit: contain;
    border-radius: 0.65rem;
    flex-shrink: 0;
}

.rx-home-brand__text {
    min-width: 0;
}

.rx-home-brand__name {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--rx-text);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rx-home-brand__tag {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--rx-text-muted);
    margin-top: 0.1rem;
}

.rx-home-links {
    display: none;
    align-items: center;
    gap: 1.5rem;
}

.rx-home-links a {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--rx-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

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

.rx-home-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.rx-home-actions .rx-btn {
    padding: 0.55rem 1rem;
    font-size: 0.78rem;
    border-radius: 0.75rem;
}

/* Hero */
.rx-hero {
    max-width: 72rem;
    margin: 0 auto;
    padding: 3.5rem 1.25rem 2.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.rx-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--rx-primary);
    background: rgba(79, 70, 229, 0.08);
    border: 1px solid var(--rx-border-strong);
    margin-bottom: 1rem;
}

.rx-hero-badge__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    animation: rxHomePulse 1.6s infinite;
}

@keyframes rxHomePulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.rx-hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin: 0 0 1rem;
    color: var(--rx-text);
}

.rx-hero h1 span {
    background: var(--rx-gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.rx-hero__lead {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--rx-text-muted);
    max-width: 32rem;
    margin: 0 0 1.5rem;
}

.rx-hero__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.rx-hero-card {
    background: var(--rx-surface);
    border: 1.5px solid var(--rx-border);
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: var(--rx-shadow-lg);
    position: relative;
    overflow: hidden;
}

.rx-hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--rx-gradient-brand);
}

.rx-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.rx-hero-stat {
    text-align: center;
    padding: 0.85rem 0.5rem;
    border-radius: 1rem;
    background: var(--rx-bg-soft);
    border: 1px solid var(--rx-border);
}

.rx-hero-stat strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--rx-primary);
    font-variant-numeric: tabular-nums;
}

.rx-hero-stat span {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--rx-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.rx-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 10rem;
    border-radius: 1.15rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.06), rgba(124, 58, 237, 0.1));
    border: 1px dashed var(--rx-border-strong);
}

.rx-hero-visual i {
    font-size: 3.5rem;
    background: var(--rx-gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0.85;
}

/* Sections */
.rx-section {
    max-width: 72rem;
    margin: 0 auto;
    padding: 3rem 1.25rem;
}

.rx-section--soft {
    background: rgba(255, 255, 255, 0.55);
    border-block: 1px solid var(--rx-border);
}

.rx-section-head {
    text-align: center;
    margin-bottom: 2rem;
}

.rx-section-head h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 0.5rem;
    color: var(--rx-text);
}

.rx-section-head p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--rx-text-muted);
    max-width: 28rem;
    margin-inline: auto;
    line-height: 1.6;
}

/* Features */
.rx-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.rx-feature {
    padding: 1.35rem;
    border-radius: var(--rx-radius-lg);
    background: var(--rx-surface);
    border: 1.5px solid var(--rx-border);
    box-shadow: var(--rx-shadow-sm);
    transition: transform 0.25s, box-shadow 0.25s;
}

.rx-feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--rx-shadow-md);
}

.rx-feature__icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rx-gradient-brand);
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1rem;
    box-shadow: var(--rx-shadow-glow);
}

.rx-feature h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 800;
}

.rx-feature p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.65;
    color: var(--rx-text-muted);
}

/* Trading engines */
.rx-home-sources {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 52rem;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .rx-home-sources { grid-template-columns: 1fr 1fr; }
}

.rx-home-source {
    position: relative;
    overflow: hidden;
    padding: 1.35rem 1.25rem;
    border-radius: 1.25rem;
    border: 1px solid transparent;
    animation: rxHomeFadeUp 0.55s ease both;
}

.rx-home-source--expert {
    background: linear-gradient(145deg, #eff6ff, #dbeafe);
    border-color: #93c5fd;
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.12);
}

.rx-home-source--bot {
    background: linear-gradient(145deg, #f5f3ff, #ede9fe);
    border-color: #c4b5fd;
    box-shadow: 0 16px 40px rgba(124, 58, 237, 0.12);
    animation-delay: 0.08s;
}

.rx-home-source__shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.5) 50%, transparent 60%);
    transform: translateX(-120%);
    animation: rxHomeShimmer 3.5s ease-in-out infinite;
    pointer-events: none;
}

.rx-home-source--bot .rx-home-source__shimmer { animation-delay: 1.2s; }

.rx-home-source__icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.65rem;
    position: relative;
    z-index: 1;
}

.rx-home-source--expert .rx-home-source__icon { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.rx-home-source--bot .rx-home-source__icon { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }

.rx-home-source__tag {
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #2563eb;
    position: relative;
    z-index: 1;
}

.rx-home-source--bot .rx-home-source__tag { color: #7c3aed; }

.rx-home-source h3 {
    margin: 0.25rem 0 0.4rem;
    font-size: 1.05rem;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.rx-home-source p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.6;
    color: #475569;
    position: relative;
    z-index: 1;
}

/* Premium feature cards */
.rx-features--premium .rx-feature {
    animation: rxHomeFadeUp 0.5s ease both;
}

.rx-feature--blue .rx-feature__icon { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.rx-feature--purple .rx-feature__icon { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.rx-feature--green .rx-feature__icon { background: linear-gradient(135deg, #4ade80, #16a34a); }
.rx-feature--indigo .rx-feature__icon { background: linear-gradient(135deg, #818cf8, #4f46e5); }
.rx-feature--pink .rx-feature__icon { background: linear-gradient(135deg, #f472b6, #db2777); }
.rx-feature--amber .rx-feature__icon { background: linear-gradient(135deg, #fbbf24, #d97706); }
.rx-feature--cyan .rx-feature__icon { background: linear-gradient(135deg, #22d3ee, #0891b2); }
.rx-feature--rose .rx-feature__icon { background: linear-gradient(135deg, #fb7185, #e11d48); }

/* How it works */
.rx-home-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .rx-home-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .rx-home-steps { grid-template-columns: repeat(4, 1fr); }
}

.rx-home-step {
    padding: 1.25rem 1.1rem;
    border-radius: 1.15rem;
    background: var(--rx-surface);
    border: 1.5px solid var(--rx-border);
    box-shadow: var(--rx-shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rx-home-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--rx-shadow-md);
}

.rx-home-step__num {
    font-size: 1.75rem;
    font-weight: 900;
    background: var(--rx-gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.rx-home-step h3 {
    margin: 0 0 0.35rem;
    font-size: 0.92rem;
    font-weight: 800;
}

.rx-home-step p {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.55;
    color: var(--rx-text-muted);
}

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

@keyframes rxHomeShimmer {
    0%, 100% { transform: translateX(-120%); }
    50% { transform: translateX(120%); }
}

.rx-section--sources {
    padding-top: 2rem;
}

/* Plans on homepage — wider than shop mobile layout */
.rx-home-plans {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.25rem 3rem;
}

.rx-home-plans .shop-page {
    max-width: none;
    padding: 0;
}

.rx-home-plans .shop-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .rx-home-links { display: flex; }
    .rx-hero {
        grid-template-columns: 1.1fr 0.9fr;
        padding-top: 4rem;
    }
    .rx-home-plans .shop-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .rx-home-plans .shop-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* CTA */
.rx-cta {
    max-width: 56rem;
    margin: 0 auto 3rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
    border-radius: 1.75rem;
    background: var(--rx-gradient-brand);
    color: #fff;
    box-shadow: var(--rx-shadow-glow);
}

.rx-cta h2 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.rx-cta p {
    margin: 0 auto 1.25rem;
    max-width: 32rem;
    font-size: 0.9rem;
    line-height: 1.7;
    opacity: 0.92;
}

.rx-cta .rx-btn {
    background: #fff;
    color: var(--rx-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Footer */
.rx-home-footer {
    border-top: 1px solid var(--rx-border);
    background: rgba(255, 255, 255, 0.7);
    padding: 2.5rem 1.25rem 1.5rem;
}

.rx-home-footer__inner {
    max-width: 72rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2rem;
}

.rx-home-footer h3 {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    font-weight: 800;
}

.rx-home-footer p,
.rx-home-footer a {
    font-size: 0.8rem;
    line-height: 1.8;
    color: var(--rx-text-muted);
    text-decoration: none;
}

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

.rx-home-copy {
    max-width: 72rem;
    margin: 2rem auto 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--rx-border);
    text-align: center;
    font-size: 0.75rem;
    color: var(--rx-text-light);
}

@media (max-width: 700px) {
    .rx-home-footer__inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .rx-hero-stats {
        grid-template-columns: 1fr;
    }
    .rx-home-actions .rx-btn-outline {
        display: none;
    }
}
