/* Landing page (index.html) - v4.0.42. Self-contained `lp-` namespace so the
   older generic hero/feature-card rules in main.css/beebot.css don't apply. */
.lp {
    --lp-ink: #1f1d33;
    --lp-muted: #64627a;
    --lp-accent: #6e62c8;
    --lp-accent-2: #8b7bea;
    --lp-accent-ink: #4f46a8;
    --lp-accent-soft: rgba(110, 98, 200, 0.1);
    --lp-teal: #3fb6cf;
    --lp-card: rgba(255, 255, 255, 0.82);
    --lp-card-solid: #ffffff;
    --lp-border: rgba(110, 98, 200, 0.14);
    --lp-shadow: 0 18px 50px rgba(64, 56, 140, 0.10);
    --lp-shadow-hover: 0 24px 56px rgba(64, 56, 140, 0.16);
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 0.25rem 2.5rem;
    color: var(--lp-ink);
}

html[data-theme="dark"] .lp {
    --lp-ink: #ecebfa;
    --lp-muted: #a9a7c4;
    --lp-accent-ink: #c3b9ff;
    --lp-accent-soft: rgba(139, 123, 234, 0.16);
    --lp-card: rgba(31, 32, 47, 0.78);
    --lp-card-solid: #1f2030;
    --lp-border: rgba(139, 123, 234, 0.2);
    --lp-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    --lp-shadow-hover: 0 24px 56px rgba(0, 0, 0, 0.45);
}

.lp h1, .lp h2, .lp h3 { color: var(--lp-ink); }
.lp svg { flex-shrink: 0; }

/* ---------- Hero ---------- */
.lp-hero {
    position: relative;
    overflow: hidden;
    padding: 3.25rem 3rem;
    border-radius: 28px;
    border: 1px solid var(--lp-border);
    background:
        radial-gradient(1200px 400px at 100% 0%, rgba(139, 123, 234, 0.16), transparent 60%),
        radial-gradient(700px 380px at 0% 100%, rgba(63, 182, 207, 0.14), transparent 60%),
        var(--lp-card);
    box-shadow: var(--lp-shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lp-hero-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(110, 98, 200, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(110, 98, 200, 0.06) 1px, transparent 1px);
    background-size: 36px 36px;
    -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 70%);
    mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 70%);
}

.lp-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}

.lp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.38rem 0.85rem;
    border-radius: 999px;
    background: var(--lp-accent-soft);
    color: var(--lp-accent-ink);
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--lp-border);
}

.lp-title {
    margin: 1.15rem 0 1rem;
    line-height: 1.35;
    font-weight: 800;
}

.lp-title-brand {
    display: block;
    font-size: clamp(2.4rem, 5.2vw, 3.6rem);
    letter-spacing: -0.01em;
    background: linear-gradient(120deg, var(--lp-accent) 0%, var(--lp-accent-2) 45%, var(--lp-teal) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--lp-accent);
}

.lp-title-line {
    display: block;
    margin-top: 0.35rem;
    font-size: clamp(1.25rem, 2.4vw, 1.7rem);
    font-weight: 700;
    color: var(--lp-ink);
}

.lp-lead {
    max-width: 34rem;
    margin: 0 0 1.75rem;
    font-size: 1.04rem;
    line-height: 2;
    color: var(--lp-muted);
}

.lp-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.7rem 1.45rem;
    border-radius: 14px;
    font-size: 0.98rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.lp-btn:focus-visible { outline: 3px solid rgba(110, 98, 200, 0.35); outline-offset: 2px; }

.lp-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--lp-accent) 0%, var(--lp-accent-2) 100%);
    box-shadow: 0 12px 28px rgba(110, 98, 200, 0.32);
}

.lp-btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(110, 98, 200, 0.4);
}

.lp-btn-ghost {
    color: var(--lp-accent-ink);
    background: var(--lp-card-solid);
    border-color: var(--lp-border);
}

.lp-btn-ghost:hover {
    color: var(--lp-accent-ink);
    border-color: var(--lp-accent);
    transform: translateY(-2px);
}

.lp-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.4rem;
    margin: 1.75rem 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.88rem;
    color: var(--lp-muted);
}

.lp-trust li { display: inline-flex; align-items: center; gap: 0.4rem; }
.lp-trust svg { color: #22a06b; }

/* ---------- Hero visual (decorative product preview) ---------- */
.lp-hero-visual {
    position: relative;
    padding: 1.5rem 1rem;
}

.lp-window {
    position: relative;
    border-radius: 20px;
    background: var(--lp-card-solid);
    border: 1px solid var(--lp-border);
    box-shadow: 0 30px 70px rgba(64, 56, 140, 0.18);
    overflow: hidden;
    transform: perspective(1400px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.4s ease;
}

.lp-hero-visual:hover .lp-window { transform: perspective(1400px) rotateY(0) rotateX(0); }

.lp-window-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--lp-border);
    background: var(--lp-accent-soft);
}

.lp-window-dots { display: inline-flex; gap: 0.35rem; direction: ltr; }
.lp-window-dots i { width: 10px; height: 10px; border-radius: 50%; background: #e4e1f5; }
.lp-window-dots i:nth-child(1) { background: #ff7b72; }
.lp-window-dots i:nth-child(2) { background: #f5c451; }
.lp-window-dots i:nth-child(3) { background: #4cc38a; }

.lp-window-title {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--lp-muted);
}

.lp-window-body {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.15rem 1.1rem 0.6rem;
}

.lp-msg {
    max-width: 88%;
    font-size: 0.86rem;
    line-height: 1.9;
}

.lp-msg-user {
    align-self: flex-start;
    padding: 0.6rem 0.9rem;
    border-radius: 16px 16px 4px 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--lp-accent) 0%, var(--lp-accent-2) 100%);
}

.lp-msg-bot {
    align-self: flex-end;
    padding: 0.75rem 0.95rem;
    border-radius: 16px 16px 16px 4px;
    background: var(--lp-accent-soft);
    border: 1px solid var(--lp-border);
    color: var(--lp-ink);
}

.lp-msg-bot p { margin: 0 0 0.55rem; }
.lp-msg-bot sup { color: var(--lp-accent-ink); font-weight: 700; }

.lp-msg-head {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--lp-accent-ink);
}

.lp-avatar {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    color: #fff;
    background: linear-gradient(135deg, var(--lp-accent) 0%, var(--lp-teal) 100%);
}

.lp-skeleton { display: grid; gap: 0.35rem; margin-bottom: 0.6rem; }
.lp-skeleton i { display: block; height: 7px; border-radius: 4px; background: rgba(110, 98, 200, 0.16); }
.lp-skeleton i:last-child { width: 62%; }

.lp-sources { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.lp-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.55rem;
    border-radius: 8px;
    font-size: 0.72rem;
    color: var(--lp-accent-ink);
    background: var(--lp-card-solid);
    border: 1px solid var(--lp-border);
}

.lp-window-input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0.6rem 1.1rem 1.1rem;
    padding: 0.55rem 0.6rem 0.55rem 0.9rem;
    border-radius: 12px;
    border: 1px solid var(--lp-border);
    font-size: 0.8rem;
    color: var(--lp-muted);
}

.lp-window-input i {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    color: #fff;
    background: var(--lp-accent);
}

.lp-float {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.8rem;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--lp-ink);
    background: var(--lp-card-solid);
    border: 1px solid var(--lp-border);
    box-shadow: 0 14px 34px rgba(64, 56, 140, 0.16);
    animation: lp-float 6s ease-in-out infinite;
}

.lp-float svg { color: var(--lp-accent); }
.lp-float-a { top: 0; left: -0.5rem; }
.lp-float-b { bottom: 0.25rem; right: -0.25rem; animation-delay: -3s; }
.lp-float-b svg { color: var(--lp-teal); }

@keyframes lp-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ---------- Sections ---------- */
.lp-section { margin-top: 3.5rem; }

.lp-section-head {
    max-width: 40rem;
    margin: 0 auto 1.75rem;
    text-align: center;
}

.lp-section-head h2 {
    margin: 0.5rem 0;
    font-size: clamp(1.35rem, 2.6vw, 1.75rem);
    font-weight: 800;
}

.lp-section-head p { margin: 0; color: var(--lp-muted); line-height: 1.9; }

.lp-kicker {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--lp-accent);
    letter-spacing: 0.02em;
}

.lp-section-head--row {
    max-width: none;
    margin-bottom: 1rem;
    text-align: start;
}

.lp-section-head--row h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.lp-section-head--row h2 svg { color: var(--lp-accent); }

/* Feature cards */
.lp-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.1rem;
}

.lp-feature {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.4rem 1.35rem;
    border-radius: 20px;
    background: var(--lp-card);
    border: 1px solid var(--lp-border);
    box-shadow: 0 8px 26px rgba(64, 56, 140, 0.06);
    color: var(--lp-ink);
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.lp-feature::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--lp-accent), var(--lp-teal));
    opacity: 0;
    transition: opacity 0.2s ease;
}

a.lp-feature:hover {
    color: var(--lp-ink);
    transform: translateY(-4px);
    box-shadow: var(--lp-shadow-hover);
    border-color: rgba(110, 98, 200, 0.35);
}

a.lp-feature:hover::after { opacity: 1; }

.lp-feature-icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    border-radius: 14px;
    color: var(--lp-accent-ink);
    background: var(--lp-accent-soft);
    transition: background 0.2s ease, color 0.2s ease;
}

a.lp-feature:hover .lp-feature-icon {
    color: #fff;
    background: linear-gradient(135deg, var(--lp-accent) 0%, var(--lp-accent-2) 100%);
}

.lp-feature h3 { margin: 0 0 0.45rem; font-size: 1.06rem; font-weight: 800; }
.lp-feature p { flex: 1; margin: 0; font-size: 0.9rem; line-height: 1.95; color: var(--lp-muted); }

.lp-feature-more {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1rem;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--lp-accent-ink);
}

.lp-feature-more svg { transition: transform 0.2s ease; }
a.lp-feature:hover .lp-feature-more svg { transform: translateX(-4px); }

/* Steps */
.lp-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lp-steps li {
    position: relative;
    padding: 1.5rem 1.4rem;
    border-radius: 20px;
    background: var(--lp-card);
    border: 1px dashed var(--lp-border);
}

.lp-step-num {
    position: absolute;
    top: 1rem;
    left: 1.2rem;
    font-size: 2.6rem;
    font-weight: 900;
    line-height: 1;
    color: var(--lp-accent);
    opacity: 0.14;
}

.lp-step-icon {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 0.9rem;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--lp-accent) 0%, var(--lp-teal) 100%);
    box-shadow: 0 10px 24px rgba(110, 98, 200, 0.28);
}

.lp-steps h3 { margin: 0 0 0.35rem; font-size: 1rem; font-weight: 800; }
.lp-steps p { margin: 0; font-size: 0.88rem; line-height: 1.9; color: var(--lp-muted); }

/* Admin shortcuts */
.lp-admin {
    padding: 1.4rem 1.5rem 1.5rem;
    border-radius: 22px;
    background: var(--lp-card);
    border: 1px solid var(--lp-border);
}

.lp-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 0.7rem;
}

.lp-tile {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1rem;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--lp-ink);
    text-decoration: none;
    background: var(--lp-card-solid);
    border: 1px solid var(--lp-border);
    transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.lp-tile svg { color: var(--lp-accent); }

.lp-tile:hover {
    color: var(--lp-accent-ink);
    border-color: var(--lp-accent);
    transform: translateY(-2px);
}

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    .lp-hero { padding: 2.75rem 2.25rem; }
    .lp-hero-grid { gap: 2rem; }
}

@media (max-width: 991.98px) {
    .lp-hero-grid { grid-template-columns: 1fr; }
    .lp-hero-copy { text-align: center; }
    .lp-lead { margin-inline: auto; }
    .lp-cta, .lp-trust { justify-content: center; }
    .lp-hero-visual { max-width: 520px; margin: 0 auto; width: 100%; }
    .lp-window { transform: none; }
}

@media (max-width: 767.98px) {
    .lp-steps { grid-template-columns: 1fr; }
    .lp-section { margin-top: 2.5rem; }
}

@media (max-width: 575.98px) {
    .lp-hero { padding: 2rem 1.1rem; border-radius: 22px; }
    .lp-btn { flex: 1 1 100%; }
    .lp-float { display: none; }
    .lp-hero-visual { padding: 0.5rem 0 0; }
}

@media (prefers-reduced-motion: reduce) {
    .lp-float { animation: none; }
    .lp-window, .lp-btn, .lp-feature, .lp-tile { transition: none; }
}
