/* ══════════════════════════════════════════════════
   LANDING PAGE — Clean Premium Redesign
   ══════════════════════════════════════════════════ */

/* ─── Base container ───────────────────────────── */
.landing {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* ensure all children above the bg layer */
.landing > * {
    position: relative;
    z-index: 1;
}

/* ─── Static modern background ─────────────────── */
.landing-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 100% 100%, rgba(99, 102, 241, 0.05) 0%, transparent 40%),
                var(--bg-main);
}

html[data-theme="light"] .landing-bg {
    background: radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 100% 100%, rgba(37, 99, 235, 0.03) 0%, transparent 50%),
                #f8fafc;
}


/* ─── Navbar ───────────────────────────────────── */
.landing-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(10,10,15,0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    transition: background 0.3s, box-shadow 0.3s;
}

.landing-header.scrolled {
    background: rgba(10,10,15,0.97);
    box-shadow: 0 4px 32px rgba(0,0,0,0.35);
}

html[data-theme="light"] .landing-header {
    background: rgba(241,245,249,0.85);
}

html[data-theme="light"] .landing-header.scrolled {
    background: rgba(241,245,249,0.98);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.landing-nav {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.landing-nav-logo {
    display: flex;
    align-items: center;
}

.landing-logo {
    height: 40px;
    width: auto;
    user-select: none;
}

.landing-logo-sm {
    height: 32px;
    width: auto;
    user-select: none;
}

.landing-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lnd-signup-btn {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, #4f46e5 100%);
    border-color: transparent !important;
    box-shadow: 0 3px 14px rgba(37,99,235,0.35);
    color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lnd-signup-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(37,99,235,0.5);
    color: #fff !important;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, #4f46e5 100%);
}

/* ─── Hero ─────────────────────────────────────── */
.landing-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1160px;
    margin: 0 auto;
    padding: 6rem 1.5rem 5rem;
    width: 100%;
    position: relative;
}



.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

html[dir="rtl"] .hero-content {
    align-items: flex-start;
    text-align: right;
}

/* badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    border: 1px solid var(--border-glass);
    border-radius: 999px;
    padding: 0.3rem 0.9rem;
    margin-bottom: 1.5rem;
    background: rgba(255,255,255,0.03);
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
    animation: badge-pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes badge-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

.landing-hero-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 1.1rem;
    letter-spacing: -0.035em;
}

.landing-hero-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 460px;
}

.landing-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    justify-content: flex-start;
}

html[dir="rtl"] .landing-hero-actions {
    justify-content: flex-start;
}

.hero-cta-primary {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, #4f46e5 100%);
    border-color: transparent !important;
    box-shadow: 0 4px 18px rgba(37,99,235,0.4);
    color: #fff;
    font-weight: 600;
    gap: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(37,99,235,0.55);
    color: #fff !important;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, #4f46e5 100%);
}

/* ─── Hero Mini Stats Strip ────────────────────── */
.hero-mini-stats {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    background: var(--bg-card);
    overflow: hidden;
}

.hms-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    gap: 0.2rem;
    flex: 1;
    text-align: center;
}

.hms-val {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    line-height: 1;
}

.hms-val--green {
    color: var(--success);
}

.hms-label {
    font-size: 0.6rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.hms-divider {
    width: 1px;
    background: var(--border-glass);
    align-self: stretch;
    flex-shrink: 0;
}

/* ─── Hero visual / dashboard preview ─────────── */
.hero-visual {
    position: relative;
}

.hero-preview-bg-glow {
    position: absolute;
    inset: 20% -10% -10% 10%;
    background: radial-gradient(ellipse, rgba(37,99,235,0.18) 0%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
}

.hero-preview {
    position: relative;
    z-index: 1;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow:
        0 2px 0 rgba(255,255,255,0.05) inset,
        0 24px 70px rgba(0,0,0,0.45),
        0 0 0 1px rgba(255,255,255,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-preview:hover {
    transform: translateY(-4px);
    box-shadow:
        0 2px 0 rgba(255,255,255,0.05) inset,
        0 36px 90px rgba(0,0,0,0.55),
        0 0 0 1px rgba(37,99,235,0.25);
}

html[data-theme="light"] .hero-preview {
    box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 0 0 1px var(--border-glass);
}

/* bar entrance animation */
#hero-bars .preview-bar {
    opacity: 0;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.34,1.56,0.64,1);
}

/* ─── Ticker / Marquee ─────────────────────────── */
.landing-ticker {
    overflow: hidden;
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    padding: 0.7rem 0;
    background: rgba(255,255,255,0.012);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: tickerScroll 26s linear infinite;
}

@keyframes tickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-33.333%); }
}

html[dir="rtl"] .ticker-track {
    animation: tickerScrollRtl 26s linear infinite;
}

@keyframes tickerScrollRtl {
    0%   { transform: translateX(0); }
    100% { transform: translateX(33.333%); }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 2.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    white-space: nowrap;
    border-right: 1px solid var(--border-glass);
}

.ticker-item .fi {
    color: var(--accent-cyan);
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* ─── AI Feature Section ───────────────────────── */
.landing-ai-feature {
    padding: 7rem 1.5rem;
    background: linear-gradient(180deg, transparent 0%, rgba(59,130,246,0.03) 50%, transparent 100%);
}

.landing-ai-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.ai-feature-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

html[dir="rtl"] .ai-feature-content {
    align-items: flex-start;
    text-align: right;
}

.ai-feature-checklist {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ai-check-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.97rem;
    color: var(--text-primary);
}

.ai-check-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    border-radius: 50%;
    background: rgba(37,99,235,0.12);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    border: 1px solid rgba(37,99,235,0.2);
    flex-shrink: 0;
}

.ai-chat-preview {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 0;
}

html[data-theme="light"] .ai-chat-preview {
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.ai-chat-glow-tr {
    position: absolute;
    top: -50px; right: -50px;
    width: 160px; height: 160px;
    background: rgba(255, 255, 255, 0.05);
    filter: blur(50px);
    border-radius: 50%;
    pointer-events: none;
}

.ai-chat-glow-bl {
    position: absolute;
    bottom: -50px; left: -50px;
    width: 130px; height: 130px;
    background: rgba(255, 255, 255, 0.03);
    filter: blur(50px);
    border-radius: 50%;
    pointer-events: none;
}

html[data-theme="light"] .ai-chat-glow-tr,
html[data-theme="light"] .ai-chat-glow-bl {
    background: rgba(0, 0, 0, 0.04);
}

.ai-chat-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-glass);
    background: rgba(255,255,255,0.02);
    position: relative;
    z-index: 1;
}

.ai-chat-header-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1rem;
    flex-shrink: 0;
}

html[data-theme="light"] .ai-chat-header-icon {
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    border: none;
}

.ai-online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan-dim);
    margin-left: auto;
    flex-shrink: 0;
    animation: badge-pulse 2s ease-in-out infinite;
}

html[data-theme="light"] .ai-online-dot {
    background: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan-dim);
}

.ai-chat-container {
    position: relative;
    z-index: 2; /* Ensure bubbles stay above the pulse */
    padding: 1.25rem 1.25rem 6.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ai-chat-bubble {
    padding: 0.8rem 1.1rem;
    max-width: 88%;
    font-size: 0.88rem;
    line-height: 1.5;
    border-radius: 14px;
    position: relative;
    z-index: 3; /* Always on top of any overlapping glow */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.ai-chat-bubble.user-bubble {
    align-self: flex-end;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px 14px 0 14px;
    color: var(--text-primary);
}

.ai-chat-bubble.ai-bubble-success {
    align-self: flex-start;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px 14px 14px 0;
    color: var(--text-secondary);
}

html[data-theme="light"] .ai-chat-bubble.user-bubble {
    color: #111;
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .ai-chat-bubble.ai-bubble-success {
    color: #333;
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

/* RTL: Fix text direction in chat bubbles so icons/punctuation appear at the end */
html[dir="rtl"] .ai-chat-bubble {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .ai-chat-bubble.user-bubble {
    border-radius: 14px 14px 14px 0;
}

html[dir="rtl"] .ai-chat-bubble.ai-bubble-success {
    border-radius: 14px 14px 0 14px;
}

.ai-mic-wrapper {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-mic-btn {
    position: relative;
    z-index: 2;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

html[data-theme="light"] .ai-mic-btn {
    background: var(--accent-cyan);
    color: #fff;
    border: none;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2);
}

.ai-mic-pulse,
.ai-mic-pulse2 {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.3);
    animation: aiPulse 2.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

html[data-theme="light"] .ai-mic-pulse,
html[data-theme="light"] .ai-mic-pulse2 {
    background: rgba(37, 99, 235, 0.15);
}

.ai-mic-pulse2 { animation-delay: 1.25s; }

@keyframes aiPulse {
    0%   { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* ─── Features Section ─────────────────────────── */
.landing-features {
    padding: 5rem 1.5rem;
    max-width: 1160px;
    margin: 0 auto;
    width: 100%;
}

.landing-features-inner {
    border-top: 1px solid var(--border-glass);
    padding-top: 4rem;
}

.lnd-section-head {
    margin-bottom: 3rem;
    text-align: center;
}

.lnd-section-title {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-top: 0.5rem;
}

.section-overline {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-cyan);
}

.feature-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.feature-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border-left: 2px solid transparent;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.feature-item:hover {
    border-left-color: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

html[dir="rtl"] .feature-item {
    border-left: none;
    border-right: 2px solid transparent;
}
html[dir="rtl"] .feature-item:hover {
    border-right-color: var(--accent-cyan);
}

.feature-num {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.06em;
}

html[dir="rtl"] .feature-num { right: auto; left: 1rem; }

.feature-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    background: var(--accent-cyan-dim);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    font-size: 1.1rem;
    border: 1px solid rgba(37,99,235,0.12);
    transition: background 0.2s, transform 0.2s;
}

.feature-item:hover .feature-icon {
    background: rgba(37,99,235,0.18);
    transform: scale(1.06);
}

.feature-body { flex: 1; min-width: 0; }

.feature-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.feature-desc {
    font-size: 0.83rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ─── Stats Row Section ────────────────────────── */
.lnd-stats-section {
    padding: 4rem 1.5rem;
    background: linear-gradient(180deg,transparent 0%,rgba(37,99,235,0.03) 50%,transparent 100%);
}

.lnd-stats-row {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.lnd-stat {
    flex: 1;
    min-width: 160px;
    max-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.25rem;
    gap: 0.6rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lnd-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

/* Icon — directly an <i> tag, no wrapper div */
.lnd-stat-icon {
    font-size: 1.6rem;
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lnd-stat-icon--blue   { background: rgba(37,99,235,0.12);  color: var(--accent-cyan); }
.lnd-stat-icon--green  { background: rgba(16,185,129,0.12); color: #10b981; }
.lnd-stat-icon--sky    { background: rgba(59,130,246,0.12); color: #60a5fa; }
.lnd-stat-icon--purple { background: rgba(168,85,247,0.12); color: #c084fc; }

.lnd-stat-val {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
    line-height: 1;
}

.lnd-stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.4;
}

/* ─── CTA Section ──────────────────────────────── */
.landing-cta {
    padding: 2rem 1.5rem 6rem;
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
}

.landing-cta-inner {
    position: relative;
    text-align: center;
    padding: 3.5rem 2.5rem;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 120%, rgba(37,99,235,0.14) 0%, transparent 60%);
    pointer-events: none;
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    border: 1px solid rgba(37,99,235,0.2);
    border-radius: 999px;
    padding: 0.3rem 0.9rem;
    margin-bottom: 1.25rem;
    background: rgba(37,99,235,0.07);
    position: relative;
}

.landing-cta-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.025em;
    position: relative;
}

.landing-cta-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.65;
    position: relative;
    font-size: 1rem;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    position: relative;
}

html[dir="rtl"] .cta-actions {
    justify-content: flex-start;
}

.cta-contact-btn {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
    border-color: transparent !important;
    box-shadow: 0 4px 18px rgba(34, 197, 94, 0.4);
    font-weight: 600;
    color: #fff !important;
    gap: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex: 1;
    min-width: 200px;
    justify-content: center;
}

.cta-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(34, 197, 94, 0.55);
    color: #fff !important;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
}


.cta-main-btn {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, #4f46e5 100%);
    border-color: transparent !important;
    box-shadow: 0 4px 18px rgba(37,99,235,0.4);
    font-weight: 600;
    color: #fff;
    gap: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex: 1;
    min-width: 200px;
    justify-content: center;
}

.cta-main-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(37,99,235,0.55);
    color: #fff !important;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, #4f46e5 100%);
}

/* ─── Footer ───────────────────────────────────── */
.landing-footer {
    border-top: 1px solid var(--border-glass);
    padding: 2rem 1.5rem 1.5rem;
}

.lnd-footer-inner {
    max-width: 1160px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.lnd-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.lnd-footer-tagline {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.lnd-footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--accent-cyan);
}

.lnd-footer-copy {
    font-size: 0.73rem;
    color: var(--text-muted);
    text-align: center;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-glass);
    max-width: 1160px;
    margin: 0 auto;
}

/* ─── Shared helpers ───────────────────────────── */
.btn-lg {
    padding: 0.85rem 1.75rem;
    font-size: 0.95rem;
    min-height: 46px;
}

/* ─── Responsive ───────────────────────────────── */
@media (max-width: 1100px) {
    .feature-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 980px) {
    .landing-ai-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .ai-feature-content {
        max-width: 560px;
        margin: 0 auto;
        align-items: flex-start;
    }
    .ai-feature-checklist {
        align-items: flex-start;
    }
}

@media (max-width: 860px) {
    .landing-hero {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 4rem 1.25rem 3.5rem;
        gap: 3rem;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    .hero-content {
        align-items: center;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }
    html[dir="rtl"] .hero-content { align-items: flex-start; }
    .landing-hero-actions { justify-content: center; }
    html[dir="rtl"] .landing-hero-actions { justify-content: flex-start; }
    .hero-mini-stats { width: 100%; max-width: 420px; margin: 0 auto; }
    .hero-visual {
        width: 100%;
        max-width: 460px; /* limits width to look nice */
        margin: 0 auto; /* centers it */
    }
}

@media (max-width: 640px) {
    .landing-nav { padding: 0 1rem; height: 62px; }
    .lnd-login-btn span, .lnd-signup-btn span { display: none; }
    .feature-list { grid-template-columns: 1fr; }
    .landing-cta-inner { padding: 2.5rem 1.25rem; }
    .lnd-stats-row { gap: 0.75rem; }
    .lnd-stat { min-width: 140px; padding: 1.5rem 1rem; }
    .lnd-footer-inner { flex-direction: column; align-items: center; text-align: center; }
    .landing-hero-actions { flex-direction: column; width: 100%; }
    .landing-hero-actions .btn { width: 100%; justify-content: center; }
    .preview-stat { 
        width: auto !important; 
        padding: 0.75rem 0.25rem;
    }
    .preview-stat-val {
        font-size: 1.1rem;
    }
    .preview-stat-key {
        font-size: 0.55rem;
        letter-spacing: 0.04em;
    }
    .preview-worker-tag { display: none; } /* hide tag on super small to prevent overflow */
}

@media (max-width: 400px) {
    .preview-stat { flex: 1 1 45%; }
}

/* ════════════════════════════════════════════════════
   DASHBOARD PREVIEW WIDGET (hero-preview inner elements)
   ════════════════════════════════════════════════════ */

/* Top bar row */
.preview-topbar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-glass);
    background: rgba(255,255,255,0.02);
}

html[data-theme="light"] .preview-topbar {
    background: rgba(0,0,0,0.02);
}

/* macOS traffic dots */
.preview-dots {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.preview-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-glass);
    display: block;
    flex-shrink: 0;
}

.preview-dots span:nth-child(1) { background: #ff5f57; }
.preview-dots span:nth-child(2) { background: #ffbd2e; }
.preview-dots span:nth-child(3) { background: #28ca41; }

.preview-topbar-label {
    flex: 1;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-clock {
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

/* Stats row */
.preview-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--border-glass);
}

.preview-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 0.5rem;
    gap: 0.2rem;
    text-align: center;
    border-bottom: 1px solid var(--border-glass);
}

/* DOM order: stat(1) divider(2) stat(3) divider(4) stat(5) divider(6) stat(7) */
/* Column 1 (left): stats at positions 1 and 5 get right border */
.preview-stat:nth-child(1),
.preview-stat:nth-child(5) {
    border-right: 1px solid var(--border-glass);
}

/* Bottom row: stats at positions 5 and 7 get no bottom border */
.preview-stat:nth-child(5),
.preview-stat:nth-child(7) {
    border-bottom: none;
}

.preview-stat-divider {
    display: none;
}

.preview-stat-val {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
    line-height: 1;
}

.preview-stat-val--on {
    color: var(--success);
}

.preview-stat-key {
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    line-height: 1;
}

/* Worker rows */
.preview-workers {
    list-style: none;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border-glass);
}

.preview-worker {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.4rem 1rem;
    transition: background var(--transition);
}

.preview-worker:hover {
    background: var(--bg-card-hover);
}

.preview-worker-av {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: var(--accent-cyan-dim);
    color: var(--accent-cyan);
    font-size: 0.58rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

.preview-worker-av--off {
    background: rgba(255,255,255,0.04);
    color: var(--text-muted);
}

.preview-worker-name {
    flex: 1;
    font-size: 0.8rem;
    color: var(--text-primary);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-worker-tag {
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    border: 1px solid var(--border-glass);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    flex-shrink: 0;
    white-space: nowrap;
}

.preview-worker-tag--in {
    color: var(--success);
    border-color: rgba(46,213,115,0.25);
    background: rgba(46,213,115,0.06);
}

/* Mini bar chart */
.preview-bar-section {
    padding: 0.75rem 1rem 0.85rem;
}

.preview-bar-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.65rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 36px;
}

.preview-bar {
    flex: 1;
    height: var(--h, 50%);
    background: rgba(37,99,235,0.22);
    border-radius: 3px 3px 0 0;
}

.preview-bar--accent {
    background: rgba(37,99,235,0.55);
}

.mobile-logo { display: none !important; }
.desktop-logo { display: block !important; }

@media (max-width: 640px) {
    .desktop-logo { display: none !important; }
    .mobile-logo { display: block !important; }

    .landing-nav {
        height: 60px;
        padding: 0 1rem;
        gap: 0.5rem;
    }

    .landing-logo {
        height: 48px; /* Bigger logo on mobile */
    }

    .landing-nav-actions {
        gap: 0.35rem;
    }

    /* Hide text in buttons to make them icons on small screens */
    .lnd-login-btn span,
    .lnd-signup-btn span {
        display: none;
    }

    .lnd-login-btn,
    .lnd-signup-btn {
        width: 40px;
        height: 40px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }

    .lnd-login-btn i,
    .lnd-signup-btn i {
        margin: 0;
        font-size: 1.1rem;
    }
}

@media (max-width: 400px) {
    .landing-logo {
        height: 42px;
    }
}

