/* =============================================
   SIGNL — Landing Page (Dark, Minimal, Dynamic)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&display=swap');

/* ── Landing-scoped tokens ── */
:root {
    --l-bg: #08080d;
    --l-text: #e8e8ec;
    --l-muted: #5a5a66;
    --l-dim: #2a2a33;
    --l-green: #34d399;
    --l-red: #f87171;
    --l-accent: #8b7cf6;
}

/* ── Film grain overlay ── */
.l-grain {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px;
}

/* ── Ambient gradient orbs ── */
.l-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

.l-orb-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -150px;
    background: radial-gradient(circle, rgba(139, 124, 246, 0.07), transparent 70%);
    animation: l-orb-drift 20s ease-in-out infinite alternate;
}

.l-orb-2 {
    width: 500px;
    height: 500px;
    bottom: 20%;
    left: -200px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.04), transparent 70%);
    animation: l-orb-drift 25s ease-in-out infinite alternate-reverse;
}

@keyframes l-orb-drift {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(40px, -30px);
    }
}

/* ── Scroll-reveal system ── */
.l-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.l-reveal.l-visible {
    opacity: 1;
    transform: translateY(0);
}

.l-reveal-d1 {
    transition-delay: 0.12s;
}

.l-reveal-d2 {
    transition-delay: 0.24s;
}

.l-reveal-d3 {
    transition-delay: 0.36s;
}

/* ── Nav override for landing ── */
#landing-logo {
    font-family: 'Inter', var(--font-sans);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.14em;
    color: var(--l-text);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

#landing-logo .logo-ecg {
    color: var(--l-accent);
    opacity: 0.85;
}

.nav-cta {
    color: var(--text-secondary) !important;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-cta:hover {
    color: var(--l-text) !important;
}

/* ── Hero ── */
.l-hero {
    position: relative;
    padding: 0;
    text-align: center;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.l-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
    padding: 22vh 24px 0;
    text-shadow: 0 2px 40px rgba(8, 8, 13, 0.6);
}

.l-scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--l-muted);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    z-index: 1;
    animation: l-float 3s ease-in-out infinite;
}

@keyframes l-float {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-6px);
    }
}

.l-hero h1 {
    font-family: 'Syne', sans-serif;
    font-size: 4.2rem;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: var(--l-text);
    margin-bottom: 28px;
}

.l-hero-sub {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--l-muted);
    max-width: 520px;
    margin: 0 auto 40px;
}

.l-hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Buttons ── */
.l-btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 13px 30px;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: #08080d;
    background: var(--l-text);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
}

.l-btn-primary:hover {
    background: #fff;
    color: #08080d;
    transform: translateY(-1px);
    box-shadow: 0 4px 24px rgba(255, 255, 255, 0.08);
}

.l-btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: 13px 30px;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--l-muted);
    background: transparent;
    border: 1px solid var(--l-dim);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.l-btn-ghost:hover {
    border-color: var(--l-muted);
    color: var(--l-text);
    transform: translateY(-1px);
}

/* ── How It Works ── */
.l-how {
    position: relative;
    padding: 80px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    z-index: 1;
}

.l-how-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

.l-section-heading {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--l-text);
    text-align: center;
    margin-bottom: 56px;
}

.l-how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.l-how-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.l-how-card:hover {
    border-color: rgba(139, 124, 246, 0.2);
    box-shadow: 0 8px 40px rgba(139, 124, 246, 0.06);
}

.l-how-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 124, 246, 0.12);
    border-radius: 10px;
    color: var(--l-accent);
    margin-bottom: 4px;
}

.l-how-num {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--l-accent);
    letter-spacing: 0.06em;
    opacity: 0.6;
}

.l-how-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--l-text);
    letter-spacing: -0.01em;
    margin: 0;
}

.l-how-card p {
    font-size: 0.88rem;
    color: var(--l-muted);
    line-height: 1.65;
    margin: 0;
}

/* ── Wins ── */
.l-wins {
    position: relative;
    padding: 100px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    z-index: 1;
}

.l-wins-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.l-wins-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--l-muted);
    margin-bottom: 56px;
}

.l-wins-row {
    display: flex;
    justify-content: center;
    gap: 100px;
    margin-bottom: 48px;
}

.l-win {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 160px;
}

.l-win-ticker {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--l-text);
    letter-spacing: 0.04em;
}

.l-win-return {
    font-family: 'Syne', sans-serif;
    font-size: 3.4rem;
    font-weight: 800;
    color: var(--l-green);
    line-height: 1;
    letter-spacing: -0.02em;
    margin: 6px 0;
    transition: text-shadow 0.3s ease;
}

.l-win:hover .l-win-return {
    text-shadow: 0 0 40px rgba(52, 211, 153, 0.3);
}

.l-win-meta {
    font-size: 0.75rem;
    color: var(--l-muted);
    max-width: 180px;
}

.l-wins-link {
    font-size: 0.82rem;
    color: var(--l-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.l-wins-link:hover {
    color: var(--l-text);
}

/* ── What you get ── */
.l-what {
    position: relative;
    padding: 100px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    z-index: 1;
}

.l-what-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.l-what-text h2 {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--l-text);
    margin-bottom: 24px;
}

.l-what-text p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--l-muted);
    margin-bottom: 16px;
}

.l-what-emphasis {
    color: var(--l-text) !important;
    font-weight: 500;
}

/* Signal card */
.l-what-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 28px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.l-what-card:hover {
    border-color: rgba(139, 124, 246, 0.15);
    box-shadow: 0 8px 40px rgba(139, 124, 246, 0.04);
}

.l-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.l-card-ticker {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--l-text);
}

.l-card-score {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--l-green);
}

.l-card-score-max {
    font-size: 0.7em;
    color: var(--l-muted);
    font-weight: 400;
}

.l-card-levels {
    display: flex;
    flex-direction: column;
}

.l-card-level {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.l-card-level:last-child {
    border-bottom: none;
}

.l-card-level-label {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--l-muted);
}

.l-card-level-value {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--l-text);
}

.l-green {
    color: var(--l-green);
}

.l-red {
    color: var(--l-red);
}

/* ── Pricing ── */
.l-pricing {
    position: relative;
    padding: 100px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    z-index: 1;
}

.l-pricing-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.l-pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.l-pricing-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
}

.l-pricing-featured {
    border-color: rgba(139, 124, 246, 0.35);
    position: relative;
    box-shadow: 0 0 30px rgba(139, 124, 246, 0.08);
}

.l-pricing-featured::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(139, 124, 246, 0.2), transparent 50%);
    z-index: -1;
}

.l-pricing-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.l-pricing-card-header h3 {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--l-text);
    margin: 0;
}

.l-badge {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #08080d;
    background: var(--l-green);
    padding: 4px 10px;
    border-radius: 20px;
}

.l-pricing-price {
    margin-bottom: 8px;
}

.l-pricing-amount {
    font-family: 'Syne', sans-serif;
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--l-text);
    line-height: 1;
}

.l-pricing-period {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--l-muted);
    margin-left: 2px;
}

.l-pricing-trial-note {
    font-size: 0.82rem;
    color: var(--l-green);
    font-weight: 500;
    margin-bottom: 20px;
}

.l-pricing-features {
    flex: 1;
    margin-bottom: 24px;
}

.l-pricing-feature {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 0;
    font-size: 0.88rem;
    color: var(--l-text);
    line-height: 1.45;
}

.l-check {
    color: var(--l-green);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.l-lock {
    font-size: 0.78rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.l-feature-disabled {
    color: var(--l-dim) !important;
}

.l-pricing-tagline {
    font-size: 0.82rem;
    color: var(--l-muted);
    text-align: center;
    font-style: italic;
    margin-bottom: 16px;
}

.l-btn-full {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.l-btn-gradient {
    display: inline-flex;
    align-items: center;
    padding: 14px 30px;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    color: #08080d;
    background: linear-gradient(135deg, #00E676, #00D2FF);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
    letter-spacing: 0.01em;
}

.l-btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(0, 230, 118, 0.2);
}

/* ── Footer ── */
.l-footer {
    position: relative;
    padding: 48px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    z-index: 1;
}

.l-footer-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

.l-footer-disclaimer {
    font-size: 0.72rem;
    color: var(--l-dim);
    line-height: 1.6;
    max-width: 600px;
    margin-bottom: 32px;
}

.l-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.l-footer-copy {
    font-size: 0.75rem;
    color: var(--l-dim);
}

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

.l-footer-links a {
    font-size: 0.78rem;
    color: var(--l-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* ── Responsive ── */
@media (max-width: 768px) {
    .l-hero {
        padding: 0;
    }

    .l-hero-inner {
        padding-top: 18vh;
    }

    .l-hero h1 {
        font-size: 2.8rem;
    }

    .l-how-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .l-wins-row {
        flex-direction: column;
        gap: 48px;
    }

    .l-win-return {
        font-size: 2.8rem;
    }

    .l-what-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .l-orb-1 {
        width: 300px;
        height: 300px;
    }

    .l-orb-2 {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 480px) {
    .l-hero h1 {
        font-size: 2.2rem;
    }

    .l-hero-sub {
        font-size: 1rem;
    }

    .l-hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    .l-wins-row {
        gap: 36px;
    }
}

/* =============================================
   SHARED CLASSES — DO NOT REMOVE
   Used by pricing.html, performance.html, developers.html
   ============================================= */

/* -- Pricing cards (pricing.html) -- */
.pricing-preview {
    padding: var(--space-4xl) 0;
}

.pricing-preview h2 {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    border-color: rgba(108, 92, 231, 0.4);
    position: relative;
    box-shadow: 0 0 30px rgba(108, 92, 231, 0.1);
}

.pricing-card.featured::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.3), transparent 50%);
    z-index: -1;
}

.pricing-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.pricing-card-header h3 {
    font-size: 1.2rem;
}

.pricing-price {
    margin-bottom: var(--space-lg);
}

.pricing-amount {
    font-family: var(--font-mono);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.pricing-period {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.pricing-features {
    flex: 1;
    margin-bottom: var(--space-lg);
}

.pricing-feature {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.pricing-feature .check {
    color: var(--green);
}

.pricing-feature .cross {
    color: var(--text-disabled);
}

.pricing-feature.disabled {
    color: var(--text-disabled);
}

/* -- Footer (performance.html, developers.html) -- */
.landing-footer {
    padding: var(--space-3xl) 0;
    border-top: 1px solid var(--border);
}

.landing-footer-links {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
}

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

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

.landing-footer-copy {
    color: var(--text-disabled);
    font-size: 0.8rem;
}

/* -- Shared responsive -- */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}