/* =========================================================
   RD Labs — Premium SaaS Landing
   Glassmorphism + Neumorphism + Depth + Motion
   Scoped under body.landing so other pages stay unaffected.
   ========================================================= */

body.landing {
    --indigo-400: #818cf8;
    --indigo-500: #6366f1;
    --indigo-600: #4f46e5;
    --violet-400: #a78bfa;
    --violet-500: #8b5cf6;
    --violet-600: #7c3aed;
    --pink-500: #ec4899;
    --cyan-300: #67e8f9;
    --cyan-400: #22d3ee;
    --cyan-500: #06b6d4;
    --slate-950: #020617;
    --slate-900: #0a0f1f;
    --slate-850: #0d1428;
    --slate-800: #131a32;
    --slate-700: #1e2747;
    --neon-glow: 0 0 22px rgba(124, 58, 237, 0.45), 0 0 60px rgba(99, 102, 241, 0.25);

    background:
        radial-gradient(ellipse at 20% -10%, rgba(124, 58, 237, 0.22), transparent 55%),
        radial-gradient(ellipse at 80% 0%, rgba(6, 182, 212, 0.16), transparent 55%),
        radial-gradient(ellipse at 50% 110%, rgba(236, 72, 153, 0.12), transparent 60%),
        var(--slate-950);
    color: #e2e8f0;
    overflow-x: hidden;
}

body.landing::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 0%, rgba(2, 6, 23, 0.4) 80%, var(--slate-950) 100%),
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 2px,
            rgba(255, 255, 255, 0.012) 3px,
            transparent 4px
        );
    pointer-events: none;
    z-index: 0;
}

/* ---------- Header override on dark theme ---------- */
body.landing header {
    background: rgba(10, 15, 31, 0.55);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03), 0 12px 48px rgba(2, 6, 23, 0.5);
    justify-content: flex-start;
    gap: 18px;
}

body.landing header .logo { margin-right: auto; }

/* Persistent product CTA in header */
body.landing .header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, var(--violet-600), var(--indigo-500), var(--cyan-500));
    background-size: 200% 200%;
    animation: btn-shift 6s ease-in-out infinite;
    box-shadow:
        0 10px 24px rgba(99, 102, 241, 0.35),
        inset 0 0 0 1px rgba(255, 255, 255, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    white-space: nowrap;
}

body.landing .header-cta:hover {
    transform: translateY(-2px);
    box-shadow:
        0 14px 32px rgba(99, 102, 241, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

body.landing .header-cta svg { transition: transform 0.3s ease; }
body.landing .header-cta:hover svg { transform: translate(2px, -2px); }

@media (max-width: 480px) {
    body.landing .header-cta { padding: 9px 14px; }
    body.landing .header-cta-label { display: none; }
    body.landing .header-cta::before {
        content: 'Labz';
        font-weight: 700;
        letter-spacing: 0.02em;
    }
}

body.landing nav ul li a:hover,
body.landing nav ul li a:focus-visible,
body.landing nav ul li a.active {
    background: rgba(124, 58, 237, 0.18);
    color: #fff;
}

body.landing main {
    position: relative;
    z-index: 1;
}

/* ---------- Hero with Canvas ---------- */
.lp-hero {
    position: relative;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(80px, 12vw, 140px) clamp(20px, 4vw, 32px) clamp(80px, 10vw, 120px);
    overflow: hidden;
    isolation: isolate;
}

#bg-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: block;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, black 60%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 60%, transparent 100%);
}

.lp-hero-inner {
    position: relative;
    max-width: 920px;
    text-align: center;
    z-index: 2;
}

/* Animated gradient orb pulses behind hero text */
.lp-hero-inner::before {
    content: '';
    position: absolute;
    width: 520px;
    height: 520px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(124, 58, 237, 0.35) 0%, transparent 65%);
    filter: blur(60px);
    z-index: -1;
    animation: pulse-orb 8s ease-in-out infinite;
}

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

/* Glass pill badge */
.lp-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(226, 232, 240, 0.92);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.lp-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cyan-400);
    box-shadow: 0 0 10px var(--cyan-400), 0 0 20px var(--cyan-400);
    animation: dot-pulse 2.4s ease-in-out infinite;
}

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

.lp-badge .pill-tag {
    background: linear-gradient(135deg, var(--violet-500), var(--cyan-500));
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 3px 8px;
    border-radius: 999px;
    text-transform: uppercase;
}

/* Headline + subhead */
.lp-hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
    margin: 0 0 20px;
}

.lp-hero h1 .grad {
    background: linear-gradient(135deg, #c4b5fd 0%, #67e8f9 50%, #f0abfc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    background-size: 200% 200%;
    animation: grad-shift 8s ease-in-out infinite;
}

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

.lp-hero p.lead {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: rgba(226, 232, 240, 0.7);
    max-width: 640px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

/* Premium CTA buttons */
.lp-btn-row {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.lp-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    isolation: isolate;
    font-family: inherit;
}

.lp-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--violet-600) 0%, var(--indigo-500) 60%, var(--cyan-500) 120%);
    background-size: 180% 180%;
    box-shadow:
        0 10px 28px rgba(99, 102, 241, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 1px 0 rgba(255, 255, 255, 0.2) inset;
    animation: btn-shift 6s ease-in-out infinite;
}

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

.lp-btn-primary::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--violet-500), var(--cyan-400));
    z-index: -1;
    filter: blur(18px);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.lp-btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 16px 38px rgba(99, 102, 241, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.lp-btn-primary:hover::after { opacity: 0.9; }

.lp-btn-ghost {
    color: rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lp-btn-ghost:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* App URL chip under hero CTAs */
.lp-app-link {
    margin-top: 22px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(226, 232, 240, 0.5);
    font-size: 0.84rem;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.lp-app-link svg { color: var(--cyan-300); }
.lp-app-link code {
    color: var(--cyan-300);
    background: rgba(34, 211, 238, 0.08);
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid rgba(34, 211, 238, 0.18);
}

/* Trust strip */
.lp-trust {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px 36px;
    color: rgba(226, 232, 240, 0.45);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.lp-trust span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.lp-trust span::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(167, 139, 250, 0.6);
    box-shadow: 0 0 8px rgba(167, 139, 250, 0.6);
}

/* ---------- Section base for landing ---------- */
.lp-section {
    position: relative;
    padding: clamp(80px, 12vw, 140px) clamp(20px, 4vw, 32px);
    z-index: 1;
}

.lp-section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.lp-section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
}

.lp-section-header h2 {
    font-size: clamp(1.8rem, 3.6vw, 2.8rem);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 14px;
}

.lp-section-header p {
    color: rgba(226, 232, 240, 0.6);
    font-size: 1.05rem;
    line-height: 1.7;
}

.lp-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--violet-400);
    margin-bottom: 16px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.25);
}

/* ---------- Floating glass feature cards ---------- */
.lp-features {
    perspective: 1400px;
}

.lp-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    transform-style: preserve-3d;
}

.lp-card {
    position: relative;
    padding: 32px;
    border-radius: 24px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 20px 60px rgba(2, 6, 23, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 1px 0 rgba(255, 255, 255, 0.08) inset;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    transform-style: preserve-3d;
    overflow: hidden;
    isolation: isolate;
}

/* glow ring on hover */
.lp-card::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(34, 211, 238, 0.3), transparent 70%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

/* shimmer line at top */
.lp-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.6), transparent);
    pointer-events: none;
}

.lp-card:hover {
    transform: translateY(-8px) rotateX(2deg);
    box-shadow:
        0 30px 80px rgba(124, 58, 237, 0.3),
        0 0 0 1px rgba(139, 92, 246, 0.4) inset;
    border-color: rgba(139, 92, 246, 0.3);
}

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

.lp-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(34, 211, 238, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #c4b5fd;
    box-shadow: 0 8px 22px rgba(124, 58, 237, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    position: relative;
}

.lp-card-icon svg {
    width: 26px;
    height: 26px;
}

.lp-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.lp-card p {
    font-size: 0.95rem;
    color: rgba(226, 232, 240, 0.6);
    line-height: 1.65;
    margin: 0;
}

/* ---------- Dashboard preview (neumorphic-glass hybrid) ---------- */
.lp-dashboard {
    position: relative;
    margin: 0 auto;
    max-width: 1080px;
    padding: 28px;
    border-radius: 28px;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow:
        0 40px 100px rgba(2, 6, 23, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 -10px 30px rgba(124, 58, 237, 0.15) inset;
    transform: perspective(1800px) rotateX(8deg) rotateY(-3deg);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lp-dashboard:hover {
    transform: perspective(1800px) rotateX(4deg) rotateY(-1deg) translateY(-6px);
}

.lp-dashboard::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--violet-500), var(--cyan-400), var(--pink-500));
    opacity: 0.4;
    filter: blur(40px);
    z-index: -1;
}

/* dashboard top bar (window chrome) */
.lp-dash-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 4px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 22px;
}

.lp-dash-bar .dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}
.lp-dash-bar .dot.r { background: #ef4444; box-shadow: 0 0 10px rgba(239, 68, 68, 0.5); }
.lp-dash-bar .dot.y { background: #eab308; box-shadow: 0 0 10px rgba(234, 179, 8, 0.5); }
.lp-dash-bar .dot.g { background: #22c55e; box-shadow: 0 0 10px rgba(34, 197, 94, 0.5); }

.lp-dash-bar .url {
    margin-left: 14px;
    flex: 1;
    background: rgba(0, 0, 0, 0.25);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.78rem;
    color: rgba(226, 232, 240, 0.55);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* dashboard grid */
.lp-dash-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 18px;
}

@media (max-width: 720px) {
    .lp-dash-grid { grid-template-columns: 1fr; }
    .lp-dashboard { transform: none; }
    .lp-dashboard:hover { transform: translateY(-4px); }
}

.lp-stat-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.lp-stat {
    padding: 18px;
    border-radius: 16px;
    background: rgba(13, 20, 40, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.lp-stat .label {
    font-size: 0.74rem;
    color: rgba(226, 232, 240, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.lp-stat .value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.lp-stat .delta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #4ade80;
    margin-top: 4px;
}

.lp-stat .delta.down { color: #f87171; }

.lp-chart-card {
    padding: 22px;
    border-radius: 16px;
    background: rgba(13, 20, 40, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.lp-chart-card .head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 18px;
}

.lp-chart-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}

.lp-chart-card .legend {
    font-size: 0.78rem;
    color: rgba(226, 232, 240, 0.5);
}

.lp-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    flex: 1;
    height: 160px;
}

.lp-bar {
    flex: 1;
    background: linear-gradient(180deg, var(--violet-500), var(--indigo-600));
    border-radius: 6px 6px 2px 2px;
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.4);
    animation: bar-rise 1s cubic-bezier(0.34, 1.56, 0.64, 1) backwards, bar-pulse 4s ease-in-out infinite;
    min-height: 12%;
    position: relative;
}

.lp-bar:nth-child(odd) {
    background: linear-gradient(180deg, var(--cyan-400), var(--indigo-500));
    box-shadow: 0 0 16px rgba(34, 211, 238, 0.4);
}

@keyframes bar-rise {
    from { height: 0; opacity: 0; }
}

@keyframes bar-pulse {
    0%, 100% { filter: brightness(1); }
    50%      { filter: brightness(1.18); }
}

/* ---------- CTA section with glowing button ---------- */
.lp-cta {
    text-align: center;
    padding: clamp(80px, 14vw, 160px) clamp(20px, 4vw, 32px);
    position: relative;
    overflow: hidden;
}

.lp-cta::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(124, 58, 237, 0.25) 0%, transparent 60%);
    filter: blur(60px);
    pointer-events: none;
    animation: pulse-orb 10s ease-in-out infinite;
}

.lp-cta-inner {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    z-index: 2;
}

.lp-cta h2 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 18px;
}

.lp-cta p {
    color: rgba(226, 232, 240, 0.7);
    font-size: 1.1rem;
    margin-bottom: 36px;
}

.lp-cta-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    border-radius: 18px;
    font-size: 1.08rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, var(--violet-600), var(--indigo-500), var(--cyan-500));
    background-size: 200% 200%;
    animation: btn-shift 5s ease-in-out infinite;
    box-shadow:
        0 16px 40px rgba(124, 58, 237, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.12) inset,
        0 1px 0 rgba(255, 255, 255, 0.25) inset;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.lp-cta-btn::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 26px;
    background: linear-gradient(135deg, var(--violet-500), var(--cyan-400));
    z-index: -1;
    filter: blur(28px);
    opacity: 0.7;
    animation: pulse-orb 4s ease-in-out infinite;
}

.lp-cta-btn:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow:
        0 24px 60px rgba(124, 58, 237, 0.65),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

/* ---------- Footer override on dark theme ---------- */
body.landing footer {
    background:
        linear-gradient(180deg, transparent 0%, rgba(10, 15, 31, 0.7) 30%, var(--slate-950) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 1;
}

body.landing footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
}

body.landing footer p,
body.landing footer ul li,
body.landing footer ul li a {
    color: rgba(226, 232, 240, 0.55);
}

body.landing footer h4 {
    color: rgba(255, 255, 255, 0.95);
}

body.landing footer ul li a:hover {
    color: var(--cyan-300);
}

body.landing .footer-bottom {
    color: rgba(226, 232, 240, 0.4);
    border-top-color: rgba(255, 255, 255, 0.06);
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* stagger children */
.lp-feature-grid .lp-card.reveal       { transition-delay: calc(var(--i, 0) * 0.08s); }
.lp-steps .lp-step.reveal              { transition-delay: calc(var(--i, 0) * 0.12s); }
.lp-team-grid .lp-team-card.reveal     { transition-delay: calc(var(--i, 0) * 0.07s); }

/* Anchor scroll offset so #team lands below the fixed header */
section[id] {
    scroll-margin-top: calc(var(--header-height) + 24px);
}

/* =========================================================
   Team / Leadership grid (text-only, glass aesthetic)
   ========================================================= */
.lp-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.lp-team-card {
    position: relative;
    padding: 30px 28px 28px;
    border-radius: 22px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 20px 60px rgba(2, 6, 23, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Top hairline gradient */
.lp-team-card::before {
    content: '';
    position: absolute;
    top: 0; left: 12%; right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.55), transparent);
    pointer-events: none;
}

/* Soft accent corner glow */
.lp-team-card::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    top: -110px;
    right: -110px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.28), transparent 70%);
    filter: blur(20px);
    pointer-events: none;
    z-index: -1;
    opacity: 0.55;
    transition: opacity 0.4s ease;
}

.lp-team-card:hover {
    transform: translateY(-6px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow:
        0 30px 80px rgba(124, 58, 237, 0.32),
        inset 0 0 0 1px rgba(139, 92, 246, 0.25);
}

.lp-team-card:hover::after { opacity: 1; }

.lp-team-role {
    display: inline-block;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cyan-300);
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.22);
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.lp-team-card h3 {
    font-size: 1.45rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.lp-team-card p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: rgba(226, 232, 240, 0.65);
    margin: 0;
}

/* =========================================================
   Inspiration block (Thirukkural quote)
   ========================================================= */
.lp-inspiration {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.lp-inspiration::before {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(124, 58, 237, 0.18), transparent 60%);
    filter: blur(70px);
    pointer-events: none;
    z-index: 0;
}

.lp-inspiration-inner {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto;
    padding: 56px clamp(20px, 4vw, 48px);
    border-radius: 28px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    box-shadow:
        0 30px 80px rgba(2, 6, 23, 0.55),
        inset 0 0 0 1px rgba(255, 255, 255, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.lp-inspiration-inner h2 {
    color: #fff;
    margin-bottom: 22px;
}

.lp-inspiration-inner blockquote {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    font-style: italic;
    line-height: 1.7;
    color: #fff;
    margin: 0 auto 20px;
    max-width: 680px;
    padding: 0;
    border: none;
}

.lp-inspiration-inner blockquote em {
    display: block;
    margin-top: 14px;
    font-size: 0.85rem;
    color: var(--cyan-300);
    font-style: normal;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.lp-inspiration-inner > p {
    color: rgba(226, 232, 240, 0.7);
    max-width: 560px;
    margin: 0 auto;
    font-size: 1rem;
}

/* =========================================================
   Contact section (single-page)
   ========================================================= */
.lp-contact .contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 28px;
    max-width: 1080px;
    margin: 0 auto;
}

@media (max-width: 820px) {
    .lp-contact .contact-wrap {
        grid-template-columns: 1fr;
    }
}

/* The dark-themed .contact-info / .contact-form rules already exist
   in landing.css (sub-page overrides) and apply here too. */

/* Launch-Labz CTA inside the contact info panel */
.contact-launch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 16px;
    margin: 8px 0 26px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, border-color 0.3s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.contact-launch:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.32);
}

.contact-launch span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-launch strong {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.01em;
}

.contact-launch em {
    font-style: normal;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
}

.contact-launch svg {
    color: var(--cyan-300);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.contact-launch:hover svg { transform: translate(2px, -2px); }

/* =========================================================
   How-It-Works / Process steps
   ========================================================= */
.lp-steps {
    list-style: none;
    counter-reset: step;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0;
    margin: 0;
}

@media (max-width: 880px) {
    .lp-steps { grid-template-columns: 1fr; }
}

.lp-step {
    position: relative;
    padding: 36px 28px 32px;
    border-radius: 24px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 20px 60px rgba(2, 6, 23, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.lp-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.5), transparent);
    pointer-events: none;
}

.lp-step:hover {
    transform: translateY(-6px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 30px 80px rgba(124, 58, 237, 0.28);
}

.lp-step-num {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--violet-400);
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.25);
    padding: 4px 10px;
    border-radius: 999px;
    display: inline-block;
    margin-bottom: 18px;
}

.lp-step-body h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.lp-step-body p {
    font-size: 0.96rem;
    color: rgba(226, 232, 240, 0.62);
    line-height: 1.65;
    margin: 0;
}

.lp-step-icon {
    position: absolute;
    top: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(34, 211, 238, 0.18));
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #c4b5fd;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.lp-step-icon svg { width: 22px; height: 22px; }

/* =========================================================
   Sub-page dark-theme overrides
   Applied automatically when <body class="landing"> is set on
   any page that uses the shared styles.css structure.
   ========================================================= */

/* ----- Sub-page hero (uses .hero from styles.css) ----- */
body.landing .hero {
    background: transparent;
    position: relative;
    overflow: hidden;
}

body.landing .hero::before,
body.landing .hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

body.landing .hero::before {
    width: 560px;
    height: 560px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(124, 58, 237, 0.32) 0%, transparent 60%);
    filter: blur(60px);
    animation: pulse-orb 9s ease-in-out infinite;
}

body.landing .hero::after {
    width: 380px;
    height: 380px;
    top: 25%;
    right: 8%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.22) 0%, transparent 60%);
    filter: blur(50px);
}

body.landing .hero > * {
    position: relative;
    z-index: 1;
}

body.landing .hero h1 { color: #fff; }
body.landing .hero p {
    color: rgba(226, 232, 240, 0.72);
}

/* Eyebrow on dark theme */
body.landing .eyebrow {
    background: rgba(139, 92, 246, 0.12);
    color: var(--violet-400);
    border: 1px solid rgba(139, 92, 246, 0.25);
}

body.landing .hero .eyebrow {
    background: rgba(34, 211, 238, 0.12);
    color: var(--cyan-300);
    border-color: rgba(34, 211, 238, 0.25);
}

/* ----- Section bg variants on dark theme ----- */
body.landing .section-alt {
    background: linear-gradient(180deg, transparent 0%, rgba(13, 20, 40, 0.45) 50%, transparent 100%);
}

body.landing main > section {
    position: relative;
}

/* Section heading text */
body.landing .section-header h2,
body.landing h2 { color: #fff; }
body.landing .section-header p,
body.landing section > p,
body.landing .section-narrow p { color: rgba(226, 232, 240, 0.65); }

body.landing h3 { color: #fff; }

/* ----- Cards (.card from styles.css) -> glass on dark ----- */
body.landing .card {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 20px 60px rgba(2, 6, 23, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    color: #e2e8f0;
    position: relative;
    overflow: hidden;
}

body.landing .card::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.45), transparent);
    pointer-events: none;
}

body.landing .card h3 { color: #fff; }
body.landing .card p { color: rgba(226, 232, 240, 0.65); }
body.landing .card ul li { color: rgba(226, 232, 240, 0.72); }
body.landing .card ul li::before {
    background: linear-gradient(135deg, var(--violet-500), var(--cyan-400));
}

body.landing .card:hover {
    transform: translateY(-6px);
    border-color: rgba(139, 92, 246, 0.35);
    box-shadow:
        0 30px 80px rgba(124, 58, 237, 0.3),
        inset 0 0 0 1px rgba(139, 92, 246, 0.2);
}

body.landing .card-icon {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(34, 211, 238, 0.2));
    color: #c4b5fd;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 22px rgba(124, 58, 237, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ----- Service / list pills ----- */
body.landing .service-list li {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(226, 232, 240, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.landing .service-list li:hover {
    border-color: rgba(139, 92, 246, 0.4);
    background: rgba(139, 92, 246, 0.08);
}

/* ----- Buttons on dark theme ----- */
body.landing .btn-outline {
    color: rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.landing .btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(139, 92, 246, 0.5);
    color: #fff;
    transform: translateY(-2px);
}

body.landing .btn-primary {
    background: linear-gradient(135deg, var(--violet-600), var(--indigo-500), var(--cyan-500));
    background-size: 200% 200%;
    color: #fff;
    box-shadow:
        0 10px 28px rgba(99, 102, 241, 0.45),
        inset 0 0 0 1px rgba(255, 255, 255, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    animation: btn-shift 6s ease-in-out infinite;
}

body.landing .btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 16px 38px rgba(99, 102, 241, 0.55),
        inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

body.landing .btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ----- Inspiration section (used on services / team / index) ----- */
body.landing .inspiration {
    background:
        radial-gradient(ellipse at top, rgba(139, 92, 246, 0.22), transparent 60%),
        radial-gradient(ellipse at bottom, rgba(34, 211, 238, 0.14), transparent 60%),
        rgba(10, 15, 31, 0.55);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

body.landing .inspiration h2 { color: #fff; }
body.landing .inspiration blockquote { color: #e2e8f0; }
body.landing .inspiration blockquote em { color: var(--cyan-300); }
body.landing .inspiration p { color: rgba(226, 232, 240, 0.72); }

/* ----- Carousel scroll-cards on dark theme ----- */
body.landing .scroll-card {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #fff;
    box-shadow:
        0 20px 60px rgba(2, 6, 23, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    font-weight: 500;
}

/* Bootstrap carousel arrows: invert so they read on dark */
body.landing .carousel-control-prev,
body.landing .carousel-control-next {
    filter: none;
    opacity: 0.5;
}

body.landing .carousel-control-prev:hover,
body.landing .carousel-control-next:hover {
    opacity: 0.95;
}

body.landing .carousel-control-prev-icon,
body.landing .carousel-control-next-icon {
    background-color: rgba(139, 92, 246, 0.25);
    border-radius: 50%;
    padding: 16px;
    background-size: 50% 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ----- Team grid on dark theme ----- */
body.landing .team-member {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 20px 60px rgba(2, 6, 23, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

body.landing .team-member:hover {
    transform: translateY(-6px);
    border-color: rgba(139, 92, 246, 0.35);
    box-shadow: 0 30px 80px rgba(124, 58, 237, 0.3);
}

body.landing .team-member h3 { color: #fff; }
body.landing .team-member p { color: var(--cyan-300); font-weight: 500; }

body.landing .team-member .avatar {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(34, 211, 238, 0.16));
}

/* ----- Team preview pills on home (already dark-styled but reinforce) ----- */
body.landing .team-preview-grid .pill {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.4);
}

body.landing .team-preview-grid .pill strong { color: #fff; }
body.landing .team-preview-grid .pill span { color: var(--cyan-300); }

body.landing .team-preview-grid .pill:hover {
    border-color: rgba(139, 92, 246, 0.45);
    transform: translateY(-3px);
}

/* ----- Contact info panel ----- */
body.landing .contact-info {
    background:
        linear-gradient(160deg, rgba(124, 58, 237, 0.35) 0%, rgba(34, 211, 238, 0.18) 100%),
        rgba(13, 20, 40, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    box-shadow:
        0 30px 80px rgba(2, 6, 23, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    color: #fff;
}

body.landing .contact-info h3 { color: #fff; }
body.landing .contact-info p { color: rgba(255, 255, 255, 0.85); }
body.landing .contact-info ul li { color: rgba(255, 255, 255, 0.95); }
body.landing .contact-info ul li svg { color: var(--cyan-300); }
body.landing .contact-info a { color: #fff; }
body.landing .contact-info a:hover { color: var(--cyan-300); }

/* ----- Contact form ----- */
body.landing .contact-form {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    box-shadow:
        0 30px 80px rgba(2, 6, 23, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

body.landing .contact-form h2 { color: #fff; text-align: left; }
body.landing .contact-form .form-hint { color: rgba(226, 232, 240, 0.6); }
body.landing .contact-form label { color: rgba(226, 232, 240, 0.85); }

body.landing .contact-form input,
body.landing .contact-form textarea {
    background: rgba(13, 20, 40, 0.55);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    color: #fff;
}

body.landing .contact-form input::placeholder,
body.landing .contact-form textarea::placeholder {
    color: rgba(226, 232, 240, 0.35);
}

body.landing .contact-form input:focus,
body.landing .contact-form textarea:focus {
    border-color: var(--violet-500);
    background: rgba(13, 20, 40, 0.75);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.18);
}

body.landing .contact-form button[type="submit"] {
    background: linear-gradient(135deg, var(--violet-600), var(--indigo-500), var(--cyan-500));
    background-size: 200% 200%;
    color: #fff;
    box-shadow:
        0 10px 28px rgba(99, 102, 241, 0.45),
        inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    animation: btn-shift 6s ease-in-out infinite;
}

body.landing .contact-form button[type="submit"]:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 38px rgba(99, 102, 241, 0.55);
}

/* ----- About-block headings ----- */
body.landing .about-block h3 { color: var(--violet-400); }

/* ----- Subtle ambient orbs in sub-page sections ----- */
body.landing main > section.section-alt::before,
body.landing main > section:not(.hero):not(.inspiration):not(.lp-section):not(.lp-cta):not(.section-dark):not(.lp-hero)::before {
    content: '';
    position: absolute;
    width: 460px;
    height: 460px;
    top: -120px;
    right: -160px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.12), transparent 65%);
    filter: blur(70px);
    pointer-events: none;
    z-index: 0;
}

body.landing main > section > * {
    position: relative;
    z-index: 1;
}
