/* ============================================
   DEALLO.AI — Design System & Landing Page CSS
   ============================================ */

/* ---- CSS Custom Properties ---- */
:root {
    --brand-blue: #0b70eb;
    --brand-blue-hover: #0960c8;
    --brand-blue-light: #e8f2fe;
    --brand-blue-glow: rgba(11, 112, 235, 0.15);
    --light-blue: #1f8fff;
    --purple: #bfacff;
    --dark-navy: #042e64;
    --dark: #0a0a0a;
    --dark-bg: #042e64;
    --success: #2ae795;
    --success-light: #e6fef4;
    --danger: #FF4444;
    --white: #FFFFFF;
    --off-white: #f8fcff;
    --gray-50: #f8fcff;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    --font-headline: 'Montserrat', 'Inter', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --h1-size: clamp(2.5rem, 5vw, 4rem);
    --h2-size: clamp(2rem, 4vw, 3rem);
    --h3-size: clamp(1.25rem, 2.5vw, 1.5rem);
    --body-size: 1.125rem;
    --small-size: 0.875rem;

    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --shadow-glow: 0 0 40px rgba(11, 112, 235, 0.15);

    --container-max: 1200px;
    --container-narrow: 800px;
    --section-padding: clamp(80px, 10vw, 120px);
    --nav-height: 72px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: var(--body-size);
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
    font-family: var(--font-headline);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, var(--brand-blue), #1f8fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--brand-blue);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(11, 112, 235, 0.35);
}
.btn-primary:hover {
    background: var(--brand-blue-hover);
    box-shadow: 0 6px 20px rgba(11, 112, 235, 0.45);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.4);
}
.btn-secondary:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-xl { padding: 20px 48px; font-size: 1.125rem; border-radius: var(--radius-lg); }
.btn-nav { padding: 10px 24px; font-size: 0.9rem; }

/* ---- Navigation ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo-img {
    height: 32px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 4px;
    background: var(--gray-100);
    border-radius: 100px;
    padding: 4px;
}

.nav-link {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--gray-500);
    transition: color 0.25s, background 0.25s, box-shadow 0.25s;
    position: relative;
    padding: 7px 16px;
    border-radius: 100px;
    letter-spacing: -0.01em;
}
.nav-link:hover {
    color: var(--gray-800);
    background: rgba(255,255,255,0.7);
}
.nav-link.active {
    color: var(--brand-blue);
    font-weight: 600;
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
}

.nav-actions { display: flex; align-items: center; gap: 16px; }

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}
.nav-hamburger span {
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.3s;
}
.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---- HERO ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    padding: calc(var(--nav-height) + 40px) 48px 60px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.25) saturate(0.7);
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 26, 59, 0.85) 0%, rgba(15, 23, 42, 0.92) 60%, rgba(15, 23, 42, 1) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: left;
    max-width: 560px;
    flex-shrink: 0;
}

.hero-headline {
    font-size: var(--h1-size);
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.hero-sub {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    max-width: 500px;
    margin: 0 0 32px;
}

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

.hero-note {
    margin-top: 16px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    justify-content: center;
}
.hero-note span:first-child::after {
    content: ' \00B7  ';
    white-space: pre;
}
@media (max-width: 768px) {
    .hero-note { flex-direction: column; align-items: center; gap: 4px; }
    .hero-note span:first-child::after { content: none; }
}

/* ---- Hero Mockup (Phone Frame) ---- */
.hero-mockup {
    position: relative;
    z-index: 1;
    width: 320px;
    flex-shrink: 0;
}

.hero-mockup .hero-phone {
    width: 100%;
    height: 660px;
    border-radius: 44px;
    background: #e8ecf1;
    position: relative;
    overflow: visible;
    padding: 8px;
    box-shadow:
        8px 8px 24px rgba(0, 0, 0, 0.1),
        -4px -4px 16px rgba(255, 255, 255, 0.3);
}

/* Hardware buttons */
.hw-btn {
    position: absolute;
    background: #c8d0db;
    z-index: 10;
}
.hw-vol-up {
    left: -3px;
    top: 160px;
    width: 4px;
    height: 32px;
    border-radius: 4px 0 0 4px;
}
.hw-vol-down {
    left: -3px;
    top: 200px;
    width: 4px;
    height: 32px;
    border-radius: 4px 0 0 4px;
}
.hw-power {
    right: -3px;
    top: 170px;
    width: 4px;
    height: 56px;
    border-radius: 0 4px 4px 0;
}

/* Fade gradient at bottom */
.hero-mockup .hero-phone::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.95));
    z-index: 50;
    pointer-events: none;
    border-radius: 0 0 38px 38px;
}

.hero-mockup .hero-phone-screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 38px;
    background: #fff;
}

.hero-mockup .phone-statusbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px 6px;
    background: var(--brand-blue);
    flex-shrink: 0;
    border-radius: 38px 38px 0 0;
}
.hero-mockup .phone-time {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.02em;
}
.hero-mockup .phone-status-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-mockup .phone-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px 14px;
    background: var(--brand-blue);
    flex-shrink: 0;
}
.hero-mockup .phone-logo {
    height: 24px;
    object-fit: contain;
}

.hero-mockup .mockup-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    background: #f9fafb;
    overflow: hidden;
}

.hero-mockup .mockup-main {
    flex: 1;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.hero-mockup .phone-bottombar {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 10px 8px 8px;
    background: #fff;
    border-top: 1px solid var(--gray-200);
    flex-shrink: 0;
}

.hero-mockup .phone-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 4px 10px;
    cursor: pointer;
    color: var(--gray-400);
    transition: color 0.2s;
    font-size: 0.62rem;
    font-weight: 500;
}
.hero-mockup .phone-tab:hover { color: var(--gray-600); }
.hero-mockup .phone-tab.active { color: var(--brand-blue); }
.hero-mockup .phone-tab svg { width: 22px; height: 22px; }

.hero-mockup .phone-homebar {
    width: 134px;
    height: 5px;
    background: #d1d5db;
    border-radius: 4px;
    margin: 4px auto 10px;
    flex-shrink: 0;
}

/* Mockup Phases */
.mockup-phase {
    position: absolute;
    inset: 20px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
}
.mockup-phase.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.phase-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.phase-header h3 {
    font-size: 0.9rem;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--dark);
}

.phase-badge {
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 100px;
    background: var(--brand-blue-light);
    color: var(--brand-blue);
    font-weight: 600;
}
.phase-badge.success {
    background: var(--success-light);
    color: #1ec47e;
}

/* Inventory Cards */
.inventory-cards { display: flex; flex-direction: column; gap: 10px; }
.inv-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    opacity: 0;
    transform: translateX(-20px);
}
.inv-card.show {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.inv-img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}
.inv-card-1 .inv-img { background: linear-gradient(135deg, #F97316, #FB923C); }
.inv-card-2 .inv-img { background: linear-gradient(135deg, #3B82F6, #60A5FA); }
.inv-card-3 .inv-img { background: linear-gradient(135deg, #9d8cef, #bfacff); }
.inv-name { font-size: 0.8rem; font-weight: 600; color: var(--dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv-meta { font-size: 0.68rem; color: var(--gray-400); margin-top: 2px; }

/* AI Matching */
.ai-spinner {
    width: 20px;
    height: 20px;
    border: 2.5px solid var(--gray-200);
    border-top-color: var(--brand-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.matching-visual { text-align: center; padding: 40px 20px; }
.matching-bar {
    width: 100%;
    height: 8px;
    background: var(--gray-100);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 16px;
}
.matching-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--brand-blue), var(--success));
    border-radius: 4px;
    transition: width 2s ease-in-out;
}
.phase-matching.active .matching-progress { width: 100%; }

.matching-text {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-family: var(--font-mono);
}

/* Buyer Cards */
.buyer-cards { display: flex; flex-direction: column; gap: 8px; }
.buyer-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.3s ease;
}
.buyer-card.show {
    opacity: 1;
    transform: translateY(0);
}
.buyer-card:hover {
    border-color: var(--brand-blue);
    box-shadow: var(--shadow-sm);
}

.buyer-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--brand-blue);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
}
.buyer-info { flex: 1; min-width: 0; }
.buyer-name { font-size: 0.78rem; font-weight: 600; color: var(--dark); }
.buyer-detail { font-size: 0.68rem; color: var(--gray-400); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.deallo-score {
    text-align: center;
    min-width: 50px;
}
.score-label {
    display: block;
    font-size: 0.52rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-400);
    margin-bottom: 2px;
}
.score-value {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 700;
}
.score-high .score-value { color: var(--success); }
.score-mid .score-value { color: var(--brand-blue); }
.score-ok .score-value { color: #F59E0B; }

.buyer-avatar.small { width: 30px; height: 30px; font-size: 0.6rem; }

/* Tab shared row animation */
.phase-tab .tab-row-1,
.phase-tab .tab-row-2,
.phase-tab .tab-row-3,
.phase-tab .tab-row-4 {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.phase-tab.active .tab-row-1 { opacity: 1; transform: translateY(0); transition-delay: 0.08s; }
.phase-tab.active .tab-row-2 { opacity: 1; transform: translateY(0); transition-delay: 0.16s; }
.phase-tab.active .tab-row-3 { opacity: 1; transform: translateY(0); transition-delay: 0.24s; }
.phase-tab.active .tab-row-4 { opacity: 1; transform: translateY(0); transition-delay: 0.32s; }

/* Tab: Inventory */
.tab-inv-list { display: flex; flex-direction: column; gap: 6px; }
.tab-inv-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: border-color 0.2s;
}
.tab-inv-row:hover { border-color: var(--brand-blue); }
.tab-inv-status { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.tab-inv-status.status-live { background: var(--success); box-shadow: 0 0 6px rgba(42,231,149,0.5); }
.tab-inv-status.status-pending { background: #F59E0B; }
.tab-inv-status.status-sold { background: var(--gray-300); }
.tab-inv-info { flex: 1; min-width: 0; }
.tab-inv-name { display: block; font-size: 0.78rem; font-weight: 600; color: var(--dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tab-inv-meta { display: block; font-size: 0.65rem; color: var(--gray-400); margin-top: 2px; }
.tab-inv-match { font-size: 0.7rem; font-weight: 600; color: var(--brand-blue); white-space: nowrap; }
.tab-inv-match.sold { color: var(--gray-400); }

/* Tab: Buyers CRM */
.tab-buyer-list { display: flex; flex-direction: column; gap: 6px; }
.tab-buyer-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: border-color 0.2s;
}
.tab-buyer-row:hover { border-color: var(--brand-blue); }
.tab-buyer-info { flex: 1; min-width: 0; }
.tab-buyer-name { display: block; font-size: 0.78rem; font-weight: 600; color: var(--dark); }
.tab-buyer-tags { display: flex; gap: 4px; margin-top: 3px; }
.btag {
    font-size: 0.58rem;
    padding: 1px 6px;
    background: var(--brand-blue-light);
    color: var(--brand-blue);
    border-radius: 4px;
    font-weight: 500;
}
.tab-buyer-activity { font-size: 0.65rem; color: var(--gray-400); white-space: nowrap; }
.tab-buyer-score {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
    color: var(--success);
    min-width: 30px;
    text-align: center;
}

/* Tab: Messages */
.tab-msg-list { display: flex; flex-direction: column; gap: 4px; }
.tab-msg-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: border-color 0.2s;
}
.tab-msg-row.unread { background: var(--brand-blue-light); border-color: rgba(11,112,235,0.15); }
.tab-msg-row:hover { border-color: var(--brand-blue); }
.tab-msg-info { flex: 1; min-width: 0; }
.tab-msg-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3px; }
.tab-msg-name { font-size: 0.78rem; font-weight: 600; color: var(--dark); }
.tab-msg-time { font-size: 0.6rem; color: var(--gray-400); }
.tab-msg-preview { font-size: 0.68rem; color: var(--gray-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tab-msg-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-blue); flex-shrink: 0; margin-top: 6px; }

/* Tab: Analytics */
.tab-analytics { display: flex; flex-direction: column; gap: 12px; }
.tab-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tab-stat-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 10px;
    text-align: center;
}
.tab-stat-label { font-size: 0.6rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.05em; }
.tab-stat-value { font-family: var(--font-mono); font-size: 1.05rem; font-weight: 700; color: var(--dark); margin: 4px 0 2px; }
.tab-stat-change { font-size: 0.65rem; font-weight: 600; }
.tab-stat-change.up { color: var(--success); }

.tab-chart {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 12px;
}
.tab-chart-title { font-size: 0.7rem; font-weight: 600; color: var(--dark); margin-bottom: 10px; }
.tab-chart-bars { display: flex; align-items: flex-end; gap: 8px; height: 80px; }
.chart-bar-group { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; height: 100%; justify-content: flex-end; }
.chart-bar {
    width: 100%;
    background: var(--brand-blue-light);
    border-radius: 4px 4px 0 0;
    transition: height 0.6s ease;
}
.chart-bar.highlight { background: var(--brand-blue); }
.chart-bar-group span { font-size: 0.55rem; color: var(--gray-400); }

/* ---- Section Shared ---- */
.section {
    padding: var(--section-padding) 0;
    overflow-x: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand-blue);
    margin-bottom: 12px;
    font-family: var(--font-mono);
}

.section-title {
    font-size: var(--h2-size);
    color: var(--dark);
}

/* ---- PROBLEM ---- */
.section-problem {
    background: var(--white);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.problem-card {
    padding: 36px 28px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    background: var(--white);
    transition: all 0.3s ease;
}
.problem-card:hover {
    border-color: var(--brand-blue);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.problem-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-blue-light);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}

.problem-title {
    font-size: 1.15rem;
    font-family: var(--font-headline);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.problem-desc {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ---- SOLUTION ---- */
.section-solution {
    background: var(--off-white);
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.solution-card {
    padding: 36px 28px;
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.solution-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.solution-number {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--brand-blue);
    background: var(--brand-blue-light);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.solution-title {
    font-size: 1.15rem;
    font-family: var(--font-headline);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.solution-desc {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 24px;
}

.solution-visual {
    margin-top: auto;
    padding: 20px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    min-height: 80px;
}

/* Channel Icons */
.channel-icons { display: flex; gap: 8px; }
.channel-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--white);
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
}
.channel-arrow { flex-shrink: 0; }
.ai-profile-badge {
    padding: 8px 14px;
    background: var(--brand-blue);
    color: var(--white);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    flex-basis: 100%;
}

/* Bullseye Visual */
.bullseye {
    position: relative;
    width: 140px;
    height: 140px;
}
.bullseye-ring {
    position: absolute;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
}
.scroll-reveal.visible .bullseye-ring {
    animation: ring-appear 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.bullseye-ring.ring-1 {
    width: 140px; height: 140px;
    background: rgba(11, 112, 235, 0.06);
    border: 2px solid rgba(11, 112, 235, 0.1);
    animation-delay: 0.3s;
}
.scroll-reveal.visible .bullseye-ring.ring-1 { animation-delay: 0.3s; }
.bullseye-ring.ring-2 {
    width: 96px; height: 96px;
    background: rgba(11, 112, 235, 0.1);
    border: 2px solid rgba(11, 112, 235, 0.18);
}
.scroll-reveal.visible .bullseye-ring.ring-2 { animation-delay: 0.5s; }
.bullseye-ring.ring-3 {
    width: 54px; height: 54px;
    background: rgba(11, 112, 235, 0.17);
    border: 2px solid rgba(11, 112, 235, 0.28);
}
.scroll-reveal.visible .bullseye-ring.ring-3 { animation-delay: 0.7s; }
.bullseye-center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 18px; height: 18px;
    background: var(--brand-blue);
    border-radius: 50%;
    opacity: 0;
}
.scroll-reveal.visible .bullseye-center {
    animation: ring-appear 0.5s 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes ring-appear {
    0%   { opacity: 0; transform: translate(-50%, -50%) scale(0); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Scale Visual — Bar Chart */
.scale-visual {
    display: flex;
    justify-content: center;
    width: 100%;
}
.scale-bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 16px;
    width: 100%;
    height: 120px;
}
.scale-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}
.scale-bar-val {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gray-400);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.4s, transform 0.4s;
}
.scroll-reveal.visible .scale-bar-item:nth-child(1) .scale-bar-val {
    opacity: 1; transform: translateY(0); transition-delay: 0.9s;
}
.scroll-reveal.visible .scale-bar-item:nth-child(2) .scale-bar-val {
    opacity: 1; transform: translateY(0); transition-delay: 1.15s;
}
.scroll-reveal.visible .scale-bar-item:nth-child(3) .scale-bar-val {
    opacity: 1; transform: translateY(0); transition-delay: 1.4s;
}
.scale-bar-item.active .scale-bar-val {
    color: var(--brand-blue);
    font-size: 1rem;
}
.scale-bar-track {
    width: 100%;
    height: 80px;
    background: transparent;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}
.scale-bar-fill {
    width: 100%;
    height: 0;
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(11,112,235,0.2) 0%, rgba(11,112,235,0.06) 100%);
    transition: height 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.scroll-reveal.visible .scale-bar-item:nth-child(1) .scale-bar-fill {
    height: var(--bar-h); transition-delay: 0.5s;
}
.scroll-reveal.visible .scale-bar-item:nth-child(2) .scale-bar-fill {
    height: var(--bar-h); transition-delay: 0.75s;
}
.scroll-reveal.visible .scale-bar-item:nth-child(3) .scale-bar-fill {
    height: var(--bar-h); transition-delay: 1.0s;
}
.scale-bar-item.active .scale-bar-track {
    background: transparent;
}
.scale-bar-item.active .scale-bar-fill {
    background: linear-gradient(180deg, var(--brand-blue), #1f8fff);
    box-shadow: 0 0 20px rgba(11,112,235,0.3);
}
.scale-bar-label {
    font-size: 0.7rem;
    color: var(--gray-400);
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.4s;
}
.scroll-reveal.visible .scale-bar-item:nth-child(1) .scale-bar-label {
    opacity: 1; transition-delay: 0.9s;
}
.scroll-reveal.visible .scale-bar-item:nth-child(2) .scale-bar-label {
    opacity: 1; transition-delay: 1.15s;
}
.scroll-reveal.visible .scale-bar-item:nth-child(3) .scale-bar-label {
    opacity: 1; transition-delay: 1.4s;
}
.scale-bar-item.active .scale-bar-label {
    color: var(--brand-blue);
    font-weight: 700;
}

/* ---- HOW IT WORKS ---- */
.section-how {
    background: linear-gradient(180deg, var(--white) 0%, var(--brand-blue-light) 100%);
}

.steps-container {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    justify-content: center;
}

.step-connector {
    display: flex;
    align-items: center;
    padding-top: 160px;
    flex-shrink: 0;
}

.step-card {
    flex: 1;
    max-width: 320px;
    text-align: center;
}

.step-number-badge {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    background: var(--brand-blue);
    color: var(--white);
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(11, 112, 235, 0.35);
}

.step-mockup { margin-bottom: 24px; }

.step-screen {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-md);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-title {
    font-size: 1.15rem;
    color: var(--dark);
    margin-bottom: 8px;
}

.step-desc {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* Connect Visual */
.connect-visual {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}
.connect-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    background: var(--gray-50);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray-600);
    opacity: 0;
    transform: translateX(-12px);
    transition: all 0.4s ease;
}
.connect-item.show {
    opacity: 1;
    transform: translateX(0);
}
.connect-check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--success);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.connect-check.show { opacity: 1; }

/* Upload Visual */
.upload-visual { width: 100%; }
.upload-area {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    margin-bottom: 12px;
    color: var(--gray-400);
}
.upload-text { font-size: 0.75rem; display: block; margin-top: 4px; }
.upload-items { display: flex; flex-direction: column; gap: 8px; }
.upload-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.4s ease;
}
.upload-item.show { opacity: 1; transform: translateY(0); }
.ui-thumb {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    flex-shrink: 0;
}
.ui-1 .ui-thumb { background: linear-gradient(135deg, #9b8ce8, #bfacff); }
.ui-2 .ui-thumb { background: linear-gradient(135deg, #3B82F6, #60A5FA); }
.ui-info { flex: 1; text-align: left; }
.ui-name { font-weight: 600; color: var(--dark); font-size: 0.75rem; }
.ui-cat { color: var(--gray-400); font-size: 0.65rem; }
.ui-score {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--success);
    white-space: nowrap;
}

/* Send Visual */
.send-visual { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.send-message {
    padding: 10px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--brand-blue);
}
.msg-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}
.msg-to { font-size: 0.75rem; font-weight: 600; color: var(--dark); }
.msg-channel {
    font-size: 0.6rem;
    padding: 2px 8px;
    border-radius: 100px;
    background: var(--brand-blue-light);
    color: var(--brand-blue);
    font-weight: 600;
}
.msg-body { font-size: 0.7rem; color: var(--gray-500); margin-bottom: 6px; line-height: 1.5; }
.msg-status {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    font-weight: 600;
}
.msg-status.sent { color: var(--success); }
.msg-status.opened { color: var(--brand-blue); }

/* ---- FEATURES ---- */
.section-features {
    background: var(--white);
}

.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 80px;
}
.feature-block:last-child { margin-bottom: 0; }
.feature-block.feature-reverse { direction: rtl; }
.feature-block.feature-reverse > * { direction: ltr; }

.feature-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand-blue);
    background: var(--brand-blue-light);
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 16px;
    font-family: var(--font-mono);
}

.feature-title {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 16px;
    line-height: 1.3;
}

.feature-desc {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.7;
}

.feature-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ask Deallo Mockup */
.ask-deallo-mockup {
    width: 100%;
    max-width: 420px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.chat-container { padding: 20px; }

.chat-input-area {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.chat-input {
    flex: 1;
    padding: 12px 16px;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    color: var(--dark);
    min-height: 44px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
}
.typing-text {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cursor-blink {
    animation: blink 1s infinite;
    color: var(--brand-blue);
    font-weight: 300;
}
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

.chat-send-btn {
    width: 44px;
    height: 44px;
    background: var(--brand-blue);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-results { display: flex; flex-direction: column; gap: 8px; }

.chat-result-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.4s ease;
}
.chat-result-card.show {
    opacity: 1;
    transform: translateY(0);
}

.cr-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand-blue);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}
.cr-info { flex: 1; }
.cr-name { font-size: 0.82rem; font-weight: 600; color: var(--dark); }
.cr-match { font-size: 0.7rem; color: var(--gray-400); }
.cr-score {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--success);
}

/* Phone Mockup */
.phone-mockup { display: flex; justify-content: center; }
.phone-frame {
    width: 260px;
    height: 520px;
    background: var(--dark);
    border-radius: 36px;
    padding: 12px;
    box-shadow: var(--shadow-xl), inset 0 0 0 2px rgba(255,255,255,0.1);
    position: relative;
}
.phone-notch {
    width: 100px;
    height: 24px;
    background: var(--dark);
    border-radius: 0 0 16px 16px;
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.mobile-header {
    padding: 40px 16px 12px;
    background: linear-gradient(180deg, rgba(0,102,255,0.2) 0%, transparent 100%);
}
.mobile-logo { height: 20px; }

/* Mobile scroll wrapper */
.mobile-scroll-wrap {
    flex: 1;
    overflow: hidden;
    position: relative;
}
.mobile-content {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-screen {
    min-width: 100%;
    padding: 8px 12px;
    flex-shrink: 0;
}
.mobile-screen-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Mobile dots nav */
.mobile-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 8px 0;
}
.m-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: all 0.3s;
}
.m-dot.active {
    background: var(--brand-blue);
    width: 18px;
    border-radius: 3px;
}

.mobile-card {
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mc-label { font-size: 0.65rem; color: rgba(255,255,255,0.5); }
.mc-number { font-family: var(--font-mono); font-size: 1.2rem; font-weight: 700; color: var(--white); }

.mb-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mb-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--brand-blue);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    font-weight: 700;
    flex-shrink: 0;
}
.mb-info { flex: 1; }
.mb-name { font-size: 0.68rem; font-weight: 600; color: var(--white); }
.mb-msg { font-size: 0.58rem; color: rgba(255,255,255,0.4); }
.mb-time { font-size: 0.55rem; color: rgba(255,255,255,0.3); }

/* Mobile inventory items */
.mobile-inv-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
}
.mi-color {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    flex-shrink: 0;
}
.mi-info { flex: 1; }
.mi-name { font-size: 0.7rem; font-weight: 600; color: var(--white); }
.mi-meta { font-size: 0.58rem; color: rgba(255,255,255,0.4); }
.mi-score {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--success);
}

/* Loop Visual */
.loop-visual {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.loop-svg { position: absolute; }
.loop-label {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    fill: var(--gray-600);
}
.loop-center {
    position: relative;
    z-index: 1;
    text-align: center;
}
.loop-ai-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 8px;
    background: linear-gradient(135deg, var(--brand-blue), #1f8fff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1rem;
    box-shadow: var(--shadow-glow);
}
.loop-center-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    line-height: 1.3;
}

.loop-progress {
    animation: loop-draw 4s ease-in-out infinite;
}
@keyframes loop-draw {
    0% { stroke-dashoffset: 754; }
    50% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -754; }
}

/* ---- NUMBERS ---- */
.section-numbers {
    background: var(--dark-bg);
    color: var(--white);
}
.section-numbers .section-title { color: var(--white); }

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.number-card {
    text-align: center;
    padding: 40px 24px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}
.number-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(11, 112, 235, 0.3);
}

.number-value {
    font-family: var(--font-headline);
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--brand-blue), #1f8fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}

.number-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--brand-blue);
    margin-bottom: 12px;
}

.number-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.numbers-disclaimer {
    text-align: center;
    margin-top: 40px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ---- CRM COMPARISON ---- */
.section-compare {
    background: var(--off-white);
}

.compare-table-wrap {
    overflow-x: auto;
    margin-bottom: 60px;
}

.compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.compare-table th,
.compare-table td {
    padding: 18px 24px;
    text-align: left;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.9rem;
}

.compare-table thead th {
    background: var(--gray-50);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 20px 24px;
}
.compare-table thead th span {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--gray-400);
}

.compare-old { color: var(--gray-600); }
.compare-new {
    color: var(--brand-blue);
    background: var(--brand-blue-light) !important;
}

.compare-label {
    font-weight: 600;
    color: var(--dark);
    white-space: nowrap;
}

.compare-old-cell { color: var(--gray-500); }
.compare-new-cell {
    color: var(--dark);
    font-weight: 500;
    background: rgba(11, 112, 235, 0.03);
}

.compare-table tr:last-child td { border-bottom: none; }

/* Funnel vs Loop Diagrams */
.compare-diagrams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 32px;
    align-items: center;
}

.diagram-card {
    padding: 32px;
    border-radius: var(--radius-xl);
    text-align: center;
}
.diagram-card h4 {
    font-size: 1rem;
    margin-bottom: 24px;
    font-family: var(--font-body);
}

.diagram-funnel {
    background: var(--white);
    border: 1px solid var(--gray-200);
}

.diagram-loop {
    background: var(--dark-bg);
    color: var(--white);
}

.diagram-vs {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-400);
}

/* Funnel */
.funnel-visual { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.funnel-stage {
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--white);
    width: 100%;
    max-width: 200px;
    transition: all 0.3s;
}
.fs-1 { background: var(--gray-400); max-width: 200px; }
.fs-2 { background: var(--gray-500); max-width: 170px; }
.fs-3 { background: var(--gray-600); max-width: 140px; }
.fs-4 { background: var(--gray-700); max-width: 110px; }
.fs-5 { background: var(--success); max-width: 200px; font-size: 0.75rem; }
.fs-lost { opacity: 0.7; font-weight: 400; }
.funnel-arrow { color: var(--gray-300); font-size: 0.8rem; }

/* Loop Diagram */
.loop-diagram-visual {
    display: flex;
    justify-content: center;
}
.loop-diagram-circle {
    animation: loop-draw 6s linear infinite;
    stroke-dasharray: 566;
    stroke-dashoffset: 566;
}
.loop-node { animation: node-pop 0.3s ease forwards; }
.ln-1 { animation-delay: 0.1s; }
.ln-2 { animation-delay: 0.2s; }
.ln-3 { animation-delay: 0.3s; }
.ln-4 { animation-delay: 0.4s; }
.ln-5 { animation-delay: 0.5s; }
.ln-6 { animation-delay: 0.6s; }
@keyframes node-pop {
    0% { opacity: 0; transform: scale(0.5); }
    100% { opacity: 1; transform: scale(1); }
}

/* ---- FAQ ---- */
.section-faq {
    background: var(--white);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-item:hover { border-color: var(--gray-300); }
.faq-item.open {
    border-color: var(--brand-blue);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    text-align: left;
}

.faq-chevron {
    flex-shrink: 0;
    color: var(--gray-400);
    transition: transform 0.3s ease;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--brand-blue); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.open .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 24px 20px;
    color: var(--gray-600);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ---- CTA ---- */
.section-cta {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #032350 50%, #042e64 100%);
    text-align: center;
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
}
.section-cta::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(11, 112, 235, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

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

.cta-title {
    font-size: var(--h2-size);
    color: var(--white);
    margin-bottom: 20px;
}

.cta-sub {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.cta-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 32px;
    margin-top: 36px;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ---- FOOTER ---- */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 60px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    height: 28px;
    margin-bottom: 12px;
}

.footer-tagline {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
    font-family: var(--font-body);
}

.footer-links a,
.footer-contact a,
.footer-contact p {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 10px;
    transition: color 0.2s;
}
.footer-links a:hover,
.footer-contact a:hover { color: var(--white); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    font-size: 0.8rem;
    text-align: center;
}

/* ---- Scroll Reveal Animations ---- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.scroll-reveal.delay-1 { transition-delay: 0.12s; }
.scroll-reveal.delay-2 { transition-delay: 0.24s; }
.scroll-reveal.delay-3 { transition-delay: 0.36s; }

/* Initial Hero Animations */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}
.animate-fade-in-up {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeInUp 0.8s ease forwards;
}
.delay-1 { animation-delay: 0.2s !important; }
.delay-2 { animation-delay: 0.4s !important; }
.delay-3 { animation-delay: 0.6s !important; }

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

/* ---- Scroll Navigation ---- */
.scroll-nav {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.scroll-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--gray-600);
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.25s ease;
    opacity: 1;
    transform: scale(1);
}
.scroll-nav-btn:hover {
    background: var(--brand-blue);
    color: var(--white);
    border-color: var(--brand-blue);
    box-shadow: 0 4px 14px rgba(11, 112, 235, 0.3);
    transform: scale(1.05);
}
.scroll-nav-btn.hidden {
    opacity: 0;
    transform: scale(0.5);
    pointer-events: none;
}

/* ---- Paused State: kill ALL animations, show everything ---- */
body.paused *,
body.paused *::before,
body.paused *::after {
    animation: none !important;
    transition: none !important;
}
body.paused .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
}
body.paused .animate-fade-in,
body.paused .animate-fade-in-up {
    opacity: 1 !important;
    transform: none !important;
}
body.paused .scale-bar-fill {
    height: var(--bar-h) !important;
}
body.paused .scale-bar-val,
body.paused .scale-bar-label {
    opacity: 1 !important;
    transform: none !important;
}
body.paused .bullseye-ring,
body.paused .bullseye-center {
    opacity: 1 !important;
    transform: translate(-50%, -50%) scale(1) !important;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .problem-grid,
    .solution-grid { grid-template-columns: 1fr; max-width: 100%; margin: 0 auto; }
    .feature-block { grid-template-columns: 1fr; gap: 40px; }
    .feature-block.feature-reverse { direction: ltr; }
    .steps-container { flex-direction: column; align-items: center; gap: 40px; }
    .step-connector { display: none; }
    .step-card { max-width: 400px; }
    .compare-diagrams { grid-template-columns: 1fr; }
    .diagram-vs { text-align: center; }

    .hero { flex-direction: column; gap: 40px; padding: calc(var(--nav-height) + 40px) 24px 60px; }
    .hero-content { text-align: center; max-width: 600px; }
    .hero-sub { margin: 0 auto 32px; }
    .hero-ctas { justify-content: center; }
    .hero-mockup { width: 320px; transform: scale(0.88); transform-origin: top center; }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }
    .scroll-nav { right: 16px; bottom: 16px; }
    .scroll-nav-btn { width: 40px; height: 40px; }

    .nav-links { display: none; }
    .nav-hamburger { display: flex; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--white);
        padding: 16px;
        box-shadow: var(--shadow-lg);
        gap: 2px;
        border-radius: 0 0 16px 16px;
    }
    .nav-links.open .nav-link {
        padding: 12px 16px;
        border-radius: var(--radius-lg);
    }
    .btn-nav { display: none; }

    .hero { padding: calc(var(--nav-height) + 32px) 20px 40px; gap: 32px; }
    .hero-ctas { flex-direction: column; align-items: center; }
    .hero-ctas .btn { width: 100%; max-width: 280px; }

    .hero-mockup { width: 320px; transform: scale(0.78); transform-origin: top center; margin-bottom: -80px; }

    .numbers-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }

    .compare-table th,
    .compare-table td { padding: 12px 14px; font-size: 0.8rem; }

    .cta-features { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
    .container,
    .container-narrow { padding: 0 16px; }
    .hero-headline { font-size: 2rem; }
    .section-title { font-size: 1.75rem; }
    .feature-title { font-size: 1.25rem; }
    .solution-card { padding: 28px 20px; }
    .hero-mockup { width: 320px; transform: scale(0.65); transform-origin: top center; margin-bottom: -160px; }
    .loop-visual { width: 240px; height: 240px; }
    .loop-svg { width: 240px; height: 240px; }
}
