/*
 * Metacloud Landing Page — Stripe-inspired design
 * Dark theme, bold typography, generous whitespace, premium feel
 */

/* ============================================
   LANDING OVERRIDES — Full-page dark takeover
   ============================================ */

html.landing-page,
html.landing-page body {
    background: #0a0a0f;
    color: #e4e4e7;
    overflow-x: hidden;
}

html.landing-page .header {
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

html.landing-page .header-logo {
    color: #ffffff;
}

html.landing-page .nav-link-item {
    color: rgba(255, 255, 255, 0.6);
}

html.landing-page .nav-link-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

html.landing-page .btn-primary {
    background: #635BFF;
    border: none;
}

html.landing-page .btn-primary:hover {
    background: #7c75ff;
}

html.landing-page .guest-banner {
    background: rgba(99, 91, 255, 0.1);
    border-bottom: 1px solid rgba(99, 91, 255, 0.15);
    color: rgba(255, 255, 255, 0.6);
}

html.landing-page .guest-banner .btn {
    background: rgba(99, 91, 255, 0.3);
    color: #ffffff;
    border: 1px solid rgba(99, 91, 255, 0.3);
}

html.landing-page .guest-banner .btn:hover {
    background: #635BFF;
}

html.landing-page .container {
    max-width: 100%;
    padding: 0;
}

/* ============================================
   HERO SECTION
   ============================================ */

.landing-hero {
    position: relative;
    min-height: min(100vh, 800px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px 40px;
    overflow: hidden;
}

/* CSS gradient fallback (hidden when WebGL canvas is active) */
.landing-hero:has(.hero-webgl)::before {
    display: none;
}

.landing-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 80%;
    height: 120%;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(99, 91, 255, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(236, 72, 153, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(251, 146, 60, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(56, 189, 248, 0.12) 0%, transparent 50%);
    filter: blur(60px);
    animation: gradient-drift 20s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

/* Subtle noise overlay for CSS fallback (hidden when WebGL active) */
.landing-hero:has(.hero-webgl)::after {
    display: none;
}

.landing-hero::after {
    content: '';
    position: absolute;
    inset: 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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
    pointer-events: none;
    z-index: 0;
}

@keyframes gradient-drift {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-3%, 2%) scale(1.02); }
    66% { transform: translate(2%, -1%) scale(0.98); }
    100% { transform: translate(-1%, 3%) scale(1.01); }
}

.landing-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
    text-align: center;
}

.landing-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(99, 91, 255, 0.1);
    border: 1px solid rgba(99, 91, 255, 0.2);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #a5b4fc;
    margin-bottom: 32px;
}

.landing-hero-eyebrow .dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.landing-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-bottom: 24px;
    background: none;
    -webkit-text-fill-color: unset;
}

.landing-hero h1 .accent {
    background: linear-gradient(135deg, #635BFF, #ec4899, #fb923c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    max-width: 560px;
    margin: 0 auto 48px;
}

/* Hero form */
.landing-hero-form {
    max-width: 560px;
    margin: 0 auto;
}

.landing-hero-form textarea {
    width: 100%;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    color: #ffffff;
    font-family: inherit;
    font-size: 1.0625rem;
    line-height: 1.6;
    resize: none;
    transition: all 0.2s ease;
    margin-bottom: 16px;
}

.landing-hero-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.landing-hero-form textarea:focus {
    outline: none;
    border-color: rgba(99, 91, 255, 0.5);
    box-shadow: 0 0 0 4px rgba(99, 91, 255, 0.1);
    background: rgba(255, 255, 255, 0.07);
}

.landing-hero-form .btn-hero {
    width: 100%;
    padding: 16px 32px;
    background: #635BFF;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 1.0625rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.landing-hero-form .btn-hero:hover {
    background: #7c75ff;
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(99, 91, 255, 0.3);
}

.landing-hero-form .btn-hero .arrow {
    transition: transform 0.2s ease;
}

.landing-hero-form .btn-hero:hover .arrow {
    transform: translateX(3px);
}

/* Template cards */
.hero-templates { margin-top: 2rem; }
.hero-templates-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
}
.hero-template-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    max-width: 580px;
    margin: 0 auto;
}
.hero-template-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 22px 14px 18px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-family: inherit;
    font-size: inherit;
}
.hero-template-card:hover {
    background: rgba(99, 91, 255, 0.12);
    border-color: rgba(99, 91, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(99, 91, 255, 0.15);
}
.hero-template-icon { font-size: 2rem; }
.hero-template-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}
.hero-template-desc {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.3;
}
.hero-template-demo {
    display: block;
    margin-top: 6px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.15s;
}
.hero-template-demo:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}
@media (max-width: 600px) {
    .hero-template-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 4px; }
    .hero-template-card { padding: 18px 10px 14px; min-height: 100px; }
    .hero-template-icon { font-size: 1.75rem; }
    .hero-template-desc { font-size: 0.6875rem; color: rgba(255, 255, 255, 0.6); }
}

/* Custom app toggle */
.hero-custom { margin-top: 1rem; }
.hero-custom-toggle summary {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    cursor: pointer;
    list-style: none;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.hero-custom-toggle summary::-webkit-details-marker { display: none; }
.hero-custom-toggle[open] .landing-hero-form { margin-top: 1rem; }

.landing-hero-note {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    margin-top: 12px;
}

.landing-hero-alt {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8125rem;
    margin-top: 8px;
}

.landing-hero-alt a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.landing-hero-alt a:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   TRUST BAR
   ============================================ */

.landing-trust {
    padding: 48px 24px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.landing-trust-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 24px;
}

.landing-trust-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 700px;
    margin: 0 auto;
}

.landing-trust-logos span {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: -0.01em;
}

/* ============================================
   TRUST BAR (inline)
   ============================================ */

.landing-trust-bar {
    padding: 20px 24px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.landing-trust-bar-inner {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   APP PREVIEW SECTION
   ============================================ */

.landing-preview {
    padding: 40px 24px 60px;
    text-align: center;
}
.landing-preview-inner {
    max-width: 900px;
    margin: 0 auto;
}
.landing-preview-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
}
.browser-frame {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.browser-bar {
    background: #1e1e2e;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.browser-dots span {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}
.browser-dots span:nth-child(1) { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #febc2e; }
.browser-dots span:nth-child(3) { background: #28c840; }
.browser-url {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-family: monospace;
    flex: 1;
    max-width: 300px;
}
.browser-frame img {
    display: block;
    width: 100%;
    height: auto;
}
.browser-frame a {
    display: block;
    transition: opacity 0.2s;
}
.browser-frame a:hover { opacity: 0.95; }
.landing-preview-link {
    margin-top: 1rem;
}
.landing-preview-link a {
    color: rgba(59, 130, 246, 0.8);
    text-decoration: none;
    font-size: 0.875rem;
}
.landing-preview-link a:hover {
    color: rgba(59, 130, 246, 1);
    text-decoration: underline;
}

/* ============================================
   STATS SECTION
   ============================================ */

.landing-stats {
    padding: 80px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.landing-stats-inner {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.landing-stat-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff 30%, rgba(255, 255, 255, 0.5));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-stat-label {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 400;
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.landing-features {
    padding: 100px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.landing-features-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.landing-section-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #635BFF;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    text-align: center;
}

.landing-section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.15;
}

.landing-section-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
    max-width: 560px;
    margin: 0 auto 64px;
    line-height: 1.6;
}

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

.landing-feature-card {
    padding: 40px 32px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.landing-feature-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(99, 91, 255, 0.2);
    transform: translateY(-2px);
}

.landing-feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 91, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 1.25rem;
}

.landing-feature-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}

.landing-feature-card p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
}

/* ============================================
   BEFORE/AFTER EXAMPLE
   ============================================ */

.landing-example {
    padding: 100px 24px;
    background: rgba(255, 255, 255, 0.02);
}

.landing-example-inner {
    max-width: 900px;
    margin: 0 auto;
}

.landing-example-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 48px;
}

@media (max-width: 640px) {
    .landing-example-grid {
        grid-template-columns: 1fr;
    }
}

.landing-example-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
}

.landing-example-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.landing-example-input .landing-example-box {
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.landing-example-output .landing-example-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.landing-example-output .landing-example-box li {
    padding: 4px 0;
    color: rgba(255, 255, 255, 0.8);
}

.landing-example-time {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8125rem;
    margin-top: 16px;
}

.landing-example-link {
    display: inline-block;
    margin-top: 16px;
    color: #60a5fa;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.875rem;
}

.landing-example-link:hover {
    color: #93bbfc;
    text-decoration: underline;
}

/* ============================================
   HOW IT WORKS
   ============================================ */

.landing-how {
    padding: 100px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.landing-how-inner {
    max-width: 800px;
    margin: 0 auto;
}

.landing-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

/* Vertical connecting line */
.landing-steps::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 48px;
    bottom: 48px;
    width: 1px;
    background: linear-gradient(to bottom, rgba(99, 91, 255, 0.3), rgba(99, 91, 255, 0.1));
}

.landing-step {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    padding: 32px 0;
}

.landing-step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 91, 255, 0.1);
    border: 1px solid rgba(99, 91, 255, 0.2);
    border-radius: 50%;
    font-size: 1.125rem;
    font-weight: 700;
    color: #a5b4fc;
    position: relative;
    z-index: 1;
}

.landing-step-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.landing-step-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
}

/* ============================================
   CTA SECTION
   ============================================ */

.landing-cta {
    padding: 100px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.landing-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(99, 91, 255, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.landing-cta-inner {
    position: relative;
    z-index: 1;
}

.landing-cta h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin-bottom: 16px;
}

.landing-cta p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 40px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.landing-cta .btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 40px;
    background: #635BFF;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 1.0625rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.landing-cta .btn-hero:hover {
    background: #7c75ff;
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(99, 91, 255, 0.3);
    color: #ffffff;
}

/* ============================================
   FOOTER
   ============================================ */

.landing-footer-new {
    padding: 40px 24px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.25);
}

.landing-footer-new a {
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.2s ease;
}

.landing-footer-new a:hover {
    color: #ffffff;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .landing-hero {
        padding: 100px 20px 60px;
        min-height: auto;
    }

    .landing-stats-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .landing-features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .landing-feature-card {
        padding: 28px 24px;
        border-color: rgba(255, 255, 255, 0.1);
    }

    .landing-feature-card p {
        font-size: 1rem;
    }

    .landing-stat-label {
        font-size: 1rem;
    }

    .landing-step {
        gap: 16px;
        padding: 20px 0;
    }

    .landing-step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .landing-steps::before {
        left: 19px;
    }

    .landing-how {
        padding: 64px 24px;
    }

    .landing-features {
        padding: 64px 24px;
    }

    .landing-example {
        padding: 64px 24px;
    }
}

@media (max-width: 640px) {
    /* Landing nav: hide links, show just CTA */
    html.landing-page .landing-nav-links {
        display: none !important;
    }
    html.landing-page .landing-nav-cta {
        display: inline-flex !important;
    }
}

@media (max-width: 480px) {
    .landing-hero {
        padding: 80px 20px 48px;
    }

    .landing-hero h1 {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .landing-hero-form textarea {
        padding: 16px 20px;
        font-size: 1rem;
    }

    .landing-features {
        padding: 64px 20px;
    }

    .landing-feature-card {
        padding: 24px 20px;
    }

    .landing-trust-logos {
        gap: 24px;
    }

    .landing-trust-logos span {
        font-size: 0.875rem;
    }

    /* Pricing cards stack on mobile */
    .landing-pricing-cards {
        flex-direction: column;
        align-items: center;
    }

    .landing-pricing-card {
        width: 100%;
        max-width: 360px;
    }

    /* Showcase teaser cards stack */
    .landing-showcase-cards {
        flex-direction: column;
        align-items: center;
    }

    .landing-showcase-card {
        width: 100%;
        max-width: 280px;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .landing-hero::before {
        animation: none;
    }

    .landing-hero-eyebrow .dot {
        animation: none;
    }
}

/* ============================================
   SHOWCASE TEASER (on landing page)
   ============================================ */

.landing-showcase-teaser {
    text-align: center;
    padding: 80px 24px;
}

.landing-showcase-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 32px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.landing-showcase-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.landing-showcase-card:hover {
    border-color: rgba(99, 91, 255, 0.3);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.landing-showcase-img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    aspect-ratio: 16/10;
    object-fit: cover;
    object-position: top;
}

.landing-showcase-name {
    font-weight: 700;
    font-size: 1rem;
    color: #e2e8f0;
    margin-top: 4px;
}

.landing-showcase-desc {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
}

.landing-showcase-link {
    font-size: 0.875rem;
    color: #a5b4fc;
    font-weight: 500;
}

/* ============================================
   PRICING SECTION
   ============================================ */

.landing-pricing {
    text-align: center;
    padding: 80px 24px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.landing-pricing-cards {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.landing-pricing-card {
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 40px 32px;
    width: 320px;
    text-align: left;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.landing-pricing-card:first-child {
    border-color: rgba(99, 91, 255, 0.4);
    box-shadow: 0 4px 24px rgba(99, 91, 255, 0.15);
}

.landing-pricing-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.landing-pricing-price {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.landing-pricing-period {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 24px;
    margin-top: 4px;
}

.landing-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
}

.landing-pricing-features li {
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.landing-pricing-features li:last-child {
    border-bottom: none;
}

.landing-pricing-coming-soon {
    opacity: 0.7;
}

.btn-hero-muted {
    background: #94a3b8 !important;
}

/* ============================================
   PIPELINE DEMO
   ============================================ */

.demo-stepper {
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    padding: 1.5rem !important;
}

.demo-stepper .pipeline-step {
    color: #e2e8f0;
}

.demo-stepper .step-icon {
    background: rgba(255,255,255,0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.demo-stepper .step-completed .step-icon {
    background: rgba(34, 197, 94, 0.2);
    border-color: #22c55e;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
}

.demo-stepper .step-active .step-icon {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    animation: pulse-blue 2s infinite;
}

.demo-stepper .step-pulse {
    animation: pulse-blue 2s infinite;
}

@keyframes pulse-blue {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

.demo-stepper .step-connector {
    height: 2px;
    background: rgba(255,255,255,0.1);
    margin: 0 1rem;
    flex: 1;
}

.demo-stepper .connector-done {
    background: linear-gradient(90deg, #22c55e, rgba(34, 197, 94, 0.5));
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
}

/* ============================================
   MICRO-INTERACTIONS & ANIMATIONS
   ============================================ */

/* Smooth page entrance */
.landing-section {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animation delays for sections */
.landing-section:nth-child(1) { animation-delay: 0.1s; }
.landing-section:nth-child(2) { animation-delay: 0.2s; }
.landing-section:nth-child(3) { animation-delay: 0.3s; }
.landing-section:nth-child(4) { animation-delay: 0.4s; }

/* Hero button hover animation */
.btn-hero {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease !important;
}

.btn-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-hero:hover::before {
    left: 100%;
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

/* Feature cards micro-interactions */
.landing-feature {
    transition: all 0.3s ease;
    border-radius: 12px;
    padding: 2rem 1.5rem !important;
    border: 1px solid transparent;
}

.landing-feature:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.1) !important;
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.landing-feature h3 {
    transition: color 0.3s ease;
}

.landing-feature:hover h3 {
    color: #fbbf24 !important;
}

/* Floating animation for the hero emoji/icon */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero-float {
    animation: float 3s ease-in-out infinite;
}

/* Showcase card improvements */
.showcase-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.showcase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(59,130,246,0.05), rgba(147,51,234,0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.showcase-card:hover::before {
    opacity: 1;
}

.showcase-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.showcase-card img {
    transition: transform 0.3s ease;
}

.showcase-card:hover img {
    transform: scale(1.05);
}

/* CTA section pulse effect */
@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
}

.cta-pulse {
    animation: ctaPulse 2s infinite;
}

/* Navigation improvements */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* Stats counter animation */
.stat-number {
    display: inline-block;
    transition: all 0.3s ease;
}

.stat-number:hover {
    transform: scale(1.1);
    color: #3b82f6;
}

/* Scroll-triggered animations */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.8s ease;
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus improvements for accessibility */
.btn:focus-visible,
.form-control:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Loading state for dynamic content */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Mobile-specific improvements */
@media (max-width: 768px) {
    .landing-feature:hover {
        transform: none; /* Disable hover transforms on mobile */
    }
    
    .showcase-card:hover {
        transform: none;
    }
    
    .btn-hero:hover {
        transform: none;
    }
}

/* ============================================
   COMPREHENSIVE MOBILE RESPONSIVE FIXES
   ============================================ */

/* Mobile fixes for 375px width (iPhone SE, etc.) */
@media (max-width: 480px) {
    
    /* STATS BAR - Fix cramped/overlapping on mobile */
    .landing-stats-inner {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 1.5rem !important;
        padding: 1.5rem !important;
        text-align: center;
    }
    
    .landing-stats-inner > div {
        margin-bottom: 0 !important;
    }
    
    .landing-stat-number {
        font-size: 1.75rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    .landing-stat-label {
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
    }
    
    /* PRICING CARDS - Full-width stacking on mobile */
    .landing-pricing-cards {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
        padding: 0 1rem !important;
    }
    
    .landing-pricing-card {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
    }
    
    /* SHOWCASE APP CARDS - 1-column layout on mobile */
    .landing-showcase-cards {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        padding: 0 1rem !important;
    }
    
    .landing-showcase-card {
        width: 100% !important;
    }
    
    /* HERO TEMPLATE GRID - Better mobile layout */
    .hero-template-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        padding: 0 0.5rem !important;
    }
    
    .hero-template-card {
        padding: 1rem !important;
        text-align: center !important;
    }
    
    /* BROWSER MOCKUP - Hide on mobile since it's too small */
    .browser-mockup,
    .hero-browser,
    .landing-browser-preview {
        display: none !important;
    }
    
    /* "YOU TYPE THIS. YOU GET THAT." - Stack on mobile */
    .landing-example-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
    }
    
    .landing-example-input,
    .landing-example-output {
        width: 100% !important;
        max-width: none !important;
    }
    
    .landing-example-box {
        padding: 1.25rem !important;
        font-size: 0.875rem !important;
    }
    
    /* FAQ SECTION - Increase text size */
    .landing-faq-item summary {
        font-size: 1.1rem !important;
        line-height: 1.4 !important;
    }
    
    .landing-faq-item p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }
    
    /* HERO SECTION - Better mobile typography */
    .landing-hero h1 {
        font-size: 2.25rem !important;
        line-height: 1.1 !important;
        margin-bottom: 1rem !important;
    }
    
    .landing-hero-subtitle {
        font-size: 1.1rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* FEATURES GRID - Single column on mobile */
    .landing-features-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    /* HOW IT WORKS - Better mobile layout */
    .landing-steps {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
    }
    
    .landing-step {
        text-align: left !important;
    }
    
    /* MOBILE NAV IMPROVEMENTS */
    .landing-nav-links {
        display: none !important;
    }
    
    .landing-nav-cta {
        display: block !important;
    }
    
    /* GENERAL MOBILE IMPROVEMENTS */
    .landing-hero,
    .landing-stats,
    .landing-features,
    .landing-examples,
    .landing-how,
    .landing-pricing,
    .landing-showcase-teaser,
    .landing-faq {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Form improvements */
    .landing-hero-form textarea {
        font-size: 1rem !important;
        padding: 1rem !important;
        min-height: 120px !important;
    }
    
    .btn-hero {
        width: 100% !important;
        padding: 1rem !important;
        font-size: 1.1rem !important;
    }
}

/* Tablet and smaller desktop fixes */
@media (max-width: 768px) and (min-width: 481px) {
    
    /* STATS BAR - 2x2 grid on tablet */
    .landing-stats-inner {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 1.5rem !important;
        padding: 2rem !important;
    }
    
    /* SHOWCASE CARDS - 2 columns on tablet */
    .landing-showcase-cards {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 1.5rem !important;
    }
    
    /* PRICING CARDS - Side by side on tablet */
    .landing-pricing-cards {
        display: flex !important;
        flex-direction: row !important;
        gap: 1.5rem !important;
        justify-content: center !important;
    }
    
    .landing-pricing-card {
        flex: 1 !important;
        max-width: 320px !important;
    }
}

/* Social Proof Metrics */
.landing-metrics {
    padding: 2rem 0;
    background: rgba(255,255,255,0.02);
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.landing-metrics-inner {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 0 1.5rem;
}
.metric {
    text-align: center;
}
.metric-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}
.metric-label {
    display: block;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
@media (max-width: 600px) {
    .landing-metrics-inner {
        gap: 1.5rem;
    }
    .metric-value {
        font-size: 1.35rem;
    }
    .metric-label {
        font-size: 0.7rem;
    }
}
