:root {
    --primary: #2563EB;
    --primary-light: #60A5FA;
    --primary-dark: #1D4ED8;
    --secondary: #22C55E;
    --background: #F8FAFC;
    --dark: #0F172A;
    --card: #FFFFFF;
    --text-main: #111827;
    --text-muted: #64748B;
    --accent: #F59E0B;
}

html {
    scroll-behavior: smooth;
}

body.landing-page {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-poppins {
    font-family: 'Poppins', sans-serif;
}

/* Background Grid & Particles */
.landing-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    background-color: var(--background);
    background-image: 
        linear-gradient(to right, rgba(15, 23, 42, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.glow-circle {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
}
.glow-1 { top: -10%; left: -10%; width: 50vw; height: 50vw; background: rgba(37, 99, 235, 0.15); }
.glow-2 { bottom: -10%; right: -10%; width: 40vw; height: 40vw; background: rgba(34, 197, 94, 0.1); }

/* Navbar */
.landing-nav {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    padding: 20px 0;
}
.landing-nav.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}
.landing-nav .nav-link {
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s;
    font-size: 0.95rem;
}
.landing-nav .nav-link:hover {
    color: var(--dark);
}
.btn-primary-custom {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    padding: 0.6rem 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.btn-primary-custom:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
    color: white;
}
.btn-secondary-custom {
    background: white;
    color: var(--text-main);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    font-weight: 500;
    padding: 0.6rem 1.5rem;
    transition: all 0.3s ease;
}
.btn-secondary-custom:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    border-color: rgba(0,0,0,0.2);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: 140px;
    display: flex;
    align-items: center;
}
.hero h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--dark);
    margin-bottom: 1.5rem;
}
.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}
.trust-badges {
    margin-top: 3rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    opacity: 0.8;
}
.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}
/* Hero Visual — Premium Dashboard Mockup */
.hero-visual {
    position: relative;
    width: 100%;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-dashboard-mockup {
    width: 100%;
    max-width: 520px;
    background: #fff;
    border-radius: 16px;
    box-shadow:
        0 2px 4px rgba(0,0,0,0.04),
        0 12px 40px rgba(37,99,235,0.08),
        0 0 0 1px rgba(0,0,0,0.04);
    overflow: hidden;
    transform: perspective(1200px) rotateY(-3deg) rotateX(2deg);
    transition: transform 0.5s cubic-bezier(.4,0,.2,1);
    animation: heroFloat 6s ease-in-out infinite;
}
.hero-dashboard-mockup:hover {
    transform: perspective(1200px) rotateY(0deg) rotateX(0deg) scale(1.02);
}
@keyframes heroFloat {
    0%, 100% { transform: perspective(1200px) rotateY(-3deg) rotateX(2deg) translateY(0); }
    50%      { transform: perspective(1200px) rotateY(-3deg) rotateX(2deg) translateY(-8px); }
}
.mockup-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
}
.mockup-dots { display: flex; gap: 5px; }
.mockup-dots span {
    width: 8px; height: 8px;
    border-radius: 50%;
    display: block;
}
.mockup-dots span:nth-child(1) { background: #ef4444; }
.mockup-dots span:nth-child(2) { background: #f59e0b; }
.mockup-dots span:nth-child(3) { background: #22c55e; }
.mockup-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.03em;
}
.mockup-body { padding: 16px; }
.mockup-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.mockup-stat-card {
    background: #f8fafc;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #f1f5f9;
}
.mockup-stat-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.mockup-stat-label { font-size: 0.6rem; color: #94a3b8; font-weight: 500; }
.mockup-stat-value { font-size: 0.85rem; font-weight: 700; color: #0f172a; font-family: 'Poppins', sans-serif; }

/* Animated Chart Bars */
.mockup-chart {
    background: #f8fafc;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #f1f5f9;
}
.mockup-chart-label { font-size: 0.65rem; font-weight: 600; color: #64748b; margin-bottom: 10px; }
.mockup-chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 80px;
}
.mockup-bar {
    flex: 1;
    height: var(--h, 50%);
    background: linear-gradient(180deg, #2563EB 0%, #60A5FA 100%);
    border-radius: 4px 4px 0 0;
    animation: barGrow 1.2s ease-out backwards;
}
.mockup-bar:nth-child(1) { animation-delay: 0.6s; }
.mockup-bar:nth-child(2) { animation-delay: 0.7s; }
.mockup-bar:nth-child(3) { animation-delay: 0.8s; }
.mockup-bar:nth-child(4) { animation-delay: 0.9s; }
.mockup-bar:nth-child(5) { animation-delay: 1.0s; }
.mockup-bar:nth-child(6) { animation-delay: 1.1s; }
.mockup-bar:nth-child(7) { animation-delay: 1.2s; }
@keyframes barGrow {
    from { height: 0; opacity: 0; }
    to   { opacity: 1; }
}

/* Table rows */
.mockup-table-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    font-size: 0.7rem;
    font-weight: 500;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}
.mockup-table-row:last-child { border-bottom: none; }
.mockup-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.mockup-dot.bg-success { background: #22c55e; }
.mockup-dot.bg-warning { background: #f59e0b; }
.mockup-dot.bg-primary { background: #2563eb; }

/* Floating decorative icons */
.hero-float {
    position: absolute;
    width: 40px; height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    display: flex; align-items: center; justify-content: center;
    color: #2563EB;
    animation: iconFloat 4s ease-in-out infinite;
}
.hero-float-1 { top: 5%; right: 8%; animation-delay: 0s; color: #64748b; }
.hero-float-2 { bottom: 15%; left: -4%; animation-delay: 1s; color: #2563EB; }
.hero-float-3 { top: 25%; left: -6%; animation-delay: 2s; color: #22c55e; }
.hero-float-4 { bottom: 5%; right: 5%; animation-delay: 0.5s; color: #f59e0b; }
@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

@media (max-width: 991.98px) {
    .hero-visual { min-height: 360px; }
    .hero-dashboard-mockup {
        max-width: 420px;
        transform: none;
        animation: heroFloat 6s ease-in-out infinite;
    }
    .mockup-stats { grid-template-columns: 1fr 1fr 1fr; }
    .hero-float { display: none; }
}
@media (max-width: 575.98px) {
    .hero-visual { min-height: 280px; }
    .hero-dashboard-mockup { max-width: 100%; }
    .mockup-stats { grid-template-columns: 1fr; }
}

/* Live Dashboard Preview */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
}
.dashboard-mockup {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    border-radius: 12px;
    overflow: hidden;
    background: var(--card);
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
}
.dashboard-mockup-inner {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

/* Dashboard UI Elements for Animation */
.dash-card {
    background: white;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.05);
    padding: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}
.dash-bar {
    height: 8px;
    border-radius: 4px;
    background: #f1f5f9;
    overflow: hidden;
    position: relative;
}
.dash-bar-fill {
    position: absolute;
    top: 0; left: 0; height: 100%;
    background: var(--primary);
    width: 0%;
}

/* Stats Section */
.stat-card {
    padding: 2rem;
    border-radius: 16px;
    background: white;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05);
    text-align: center;
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
}
.stat-card:hover {
    transform: translateY(-5px);
}
.stat-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Poppins', sans-serif;
    margin-bottom: 0.5rem;
}
.stat-label {
    font-weight: 500;
    color: var(--text-muted);
}

/* Features Alternating */
.feature-section {
    padding: 100px 0;
}
.feature-row {
    margin-bottom: 120px;
    align-items: center;
}
.feature-row:nth-child(even) {
    flex-direction: row-reverse;
}
.feature-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark);
}
.feature-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}
.feature-list {
    list-style: none;
    padding: 0;
}
.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--text-main);
}
.feature-icon-wrapper {
    width: 32px; height: 32px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
}

/* Phone Mockup / Tracking */
.phone-mockup {
    width: 300px;
    height: 600px;
    background: white;
    border: 12px solid #1e293b;
    border-radius: 40px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
    overflow: hidden;
}
.phone-notch {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 120px; height: 25px;
    background: #1e293b;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 10;
}
.phone-screen {
    padding: 50px 20px 20px;
    height: 100%;
    background: #f8fafc;
}
.tracking-step {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    opacity: 0.4;
    transition: all 0.5s;
}
.tracking-step.active {
    opacity: 1;
}
.tracking-step.completed .step-icon {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}
.step-icon {
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: flex; align-items: center; justify-content: center;
    background: white;
    position: relative;
    z-index: 2;
}
.step-line {
    position: absolute;
    left: 14px; top: 30px;
    width: 2px; height: 40px;
    background: #cbd5e1;
    z-index: 1;
}
.tracking-step.completed .step-line {
    background: var(--secondary);
}
.step-content h6 {
    margin: 0; font-size: 0.95rem; font-weight: 600;
}
.step-content p {
    margin: 0; font-size: 0.75rem; color: var(--text-muted);
}

/* Workflow Timeline */
.workflow-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 50px 0;
}
.workflow-line {
    position: absolute;
    top: 50%; left: 0; width: 100%; height: 2px;
    background: rgba(37, 99, 235, 0.2);
    z-index: 0;
}
.workflow-line-progress {
    position: absolute;
    top: 0; left: 0; height: 100%; width: 0%;
    background: var(--primary);
}
.workflow-node {
    width: 60px; height: 60px;
    background: white;
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    z-index: 1;
    position: relative;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.1);
    color: var(--primary);
    font-size: 24px;
}
.workflow-label {
    position: absolute;
    top: 75px; left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Pricing */
.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 3rem 2rem;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.pricing-card:hover {
    transform: translateY(-10px);
}
.pricing-card.popular {
    border: 2px solid var(--primary);
    box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.15);
}
.popular-badge {
    position: absolute;
    top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Footer */
footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 80px 0 40px;
}
footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
footer ul { list-style: none; padding: 0; }
footer ul li { margin-bottom: 0.75rem; }
footer a { color: #94a3b8; text-decoration: none; transition: color 0.2s; }
footer a:hover { color: white; }

/* Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
