/* --- VARIABLES --- */
:root {
    /* Brand Colors (Extracted from Dashboard) */
    --primary: #0061f2;
    --primary-dark: #004bbd;
    --secondary: #6900c7;
    
    /* Status Colors */
    --success: #00ac69;
    --warning: #f4a100;
    --danger: #e81500;
    
    /* Neutrals */
    --bg-body: #f8f9fc;
    --bg-surface: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    
    /* Spacing & Effects */
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --shadow-glow: 0 0 80px rgba(0, 97, 242, 0.15);
}

/* --- BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- UTILITIES --- */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-gradient {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section { padding: 100px 0; }
.bg-surface { background: var(--bg-surface); }
.mt-4 { margin-top: 24px; }

/* --- BUTTONS --- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; border-radius: 50px;
    font-weight: 600; cursor: pointer; transition: 0.3s;
    border: 1px solid transparent; font-size: 0.95rem;
}
.btn-primary {
    background: var(--primary); color: white;
    box-shadow: 0 4px 12px rgba(0, 97, 242, 0.3);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-outline {
    background: transparent; border-color: var(--border); color: var(--text-main);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: white; }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--primary); background: rgba(0,97,242,0.05); }
.btn-white { background: white; color: var(--primary); font-weight: 700; }
.btn-white:hover { background: #f1f5f9; transform: scale(1.05); }
.btn-xl { padding: 16px 36px; font-size: 1.1rem; }

/* --- NAVBAR --- */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.nav-inner { height: 80px; display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-box { 
    width: 40px; height: 40px; background: var(--primary); color: white;
    border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.logo-text { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.5px; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-weight: 500; color: var(--text-muted); font-size: 0.95rem; }
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; gap: 12px; }
.mobile-toggle { display: none; font-size: 1.5rem; cursor: pointer; }

/* --- HERO --- */
.hero { position: relative; padding-top: 160px; padding-bottom: 80px; overflow: hidden; }
.hero-glow {
    position: absolute; top: -100px; right: -100px; width: 600px; height: 600px;
    background: var(--shadow-glow); filter: blur(100px); z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }

.badge-new {
    display: inline-flex; align-items: center; gap: 8px;
    background: white; border: 1px solid var(--border);
    padding: 6px 14px; border-radius: 30px;
    font-size: 0.85rem; font-weight: 600; color: var(--text-muted);
    margin-bottom: 24px; box-shadow: var(--shadow-sm);
}
.pulse-dot { width: 8px; height: 8px; background: var(--success); border-radius: 50%; animation: pulse 2s infinite; }

.hero h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 24px; font-weight: 800; letter-spacing: -1px; }
.hero-sub { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 36px; max-width: 90%; }
.hero-btns { display: flex; gap: 16px; margin-bottom: 48px; }

.trust-row { display: flex; align-items: center; gap: 20px; font-size: 0.9rem; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 24px; }
.logos { display: flex; gap: 20px; font-weight: 700; opacity: 0.6; }

/* Hero Visual (3D Dashboard) */
.hero-visual { perspective: 1500px; position: relative; }
.dashboard-wrapper {
    background: var(--bg-surface);
    border-radius: 12px;
    box-shadow: 0 30px 60px -10px rgba(0,0,0,0.2);
    border: 1px solid rgba(0,0,0,0.05);
    transform: rotateY(-8deg) rotateX(4deg);
    transition: transform 0.5s ease;
    position: relative;
}
.dashboard-wrapper:hover { transform: rotateY(0) rotateX(0); }
.window-controls {
    padding: 12px 16px; background: #f1f5f9; border-bottom: 1px solid var(--border);
    border-radius: 12px 12px 0 0; display: flex; align-items: center; gap: 8px;
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.red { background: #ef4444; } .yellow { background: #f59e0b; } .green { background: #22c55e; }
.address-bar {
    margin-left: auto; margin-right: auto; width: 60%;
    background: white; padding: 4px 12px; border-radius: 6px;
    font-size: 0.75rem; color: var(--text-muted); text-align: center;
}
.main-img { border-radius: 0 0 12px 12px; }

/* Floating Cards */
.float-card {
    position: absolute; background: white; padding: 14px 20px;
    border-radius: 12px; box-shadow: var(--shadow-xl);
    display: flex; align-items: center; gap: 14px;
    border: 1px solid white; animation: float 6s ease-in-out infinite; z-index: 10;
}
.card-revenue { top: 20%; right: -40px; animation-delay: 0s; }
.card-safety { bottom: 15%; left: -40px; animation-delay: 2s; }
.icon-sq { 
    width: 44px; height: 44px; border-radius: 10px; display: flex; 
    align-items: center; justify-content: center; font-size: 1.2rem; 
}
.bg-blue-light { background: #eff6ff; } .text-blue { color: var(--primary); }
.bg-green-light { background: #f0fdf4; } .text-green { color: var(--success); }
.float-card small { display: block; color: var(--text-muted); font-size: 0.75rem; text-transform: uppercase; font-weight: 600; }
.float-card strong { font-size: 1rem; color: var(--text-main); }

/* --- BENTO GRID --- */
.section-header h2 { font-size: 2.5rem; margin-bottom: 16px; font-weight: 800; }
.section-header p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 60px; max-width: 600px; margin-left: auto; margin-right: auto; }
.tag { color: var(--primary); font-weight: 700; font-size: 0.8rem; letter-spacing: 1px; display: block; margin-bottom: 10px; }

.bento-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.bento-box {
    background: white; border: 1px solid var(--border);
    border-radius: var(--radius-xl); padding: 32px;
    transition: 0.3s; display: flex; flex-direction: column; overflow: hidden; position: relative;
}
.bento-box:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.span-2 { grid-column: span 2; display: flex; flex-direction: row; justify-content: space-between; align-items: center; }
.span-3 { grid-column: span 3; }

.icon-circle {
    width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.4rem; margin-bottom: 20px;
}
.bg-blue { background: var(--primary); }
.bg-green { background: var(--success); }
.bg-purple { background: var(--secondary); }
.bg-orange { background: #f97316; }

.bento-box h3 { font-size: 1.25rem; margin-bottom: 10px; font-weight: 700; }
.bento-box p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }

/* Visuals inside Bento */
.viz-projects { width: 40%; background: #f8fafc; padding: 20px; border-radius: 12px; border: 1px solid var(--border); }
.mini-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; background: white; padding: 8px 12px; border-radius: 6px; box-shadow: var(--shadow-sm); font-size: 0.85rem; font-weight: 600; }
.badge { font-size: 0.7rem; padding: 4px 8px; border-radius: 4px; font-weight: 700; }
.badge-green { background: #dcfce7; color: var(--success); }
.badge-yellow { background: #fef3c7; color: #d97706; }
.badge-red { background: #fee2e2; color: var(--danger); }

.row-flex { display: flex; flex-direction: row; align-items: center; justify-content: space-between; }
.bento-chart { display: flex; gap: 16px; align-items: flex-end; height: 100px; padding-right: 40px; }
.chart-bar { width: 30px; background: #e2e8f0; border-radius: 6px 6px 0 0; }
.chart-bar.active { background: var(--primary); }
.h-40 { height: 40%; } .h-60 { height: 60%; } .h-80 { height: 80%; } .h-50 { height: 50%; }

/* --- WORKFLOW / TASK DETAILS --- */
.grid-split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.task-card-mockup {
    background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-xl);
    padding: 24px; border: 1px solid var(--border); max-width: 400px; margin: 0 auto;
    transform: rotate(-3deg);
}
.tc-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; padding-bottom: 12px; border-bottom: 1px solid var(--border); font-weight: 700; }
.task-item { display: flex; gap: 12px; margin-bottom: 16px; }
.checkbox { width: 22px; height: 22px; border: 2px solid var(--border); border-radius: 6px; }
.task-info strong { display: block; font-size: 0.95rem; }
.task-info small { color: var(--text-muted); font-size: 0.8rem; }
.feature-list li { display: flex; gap: 12px; margin-bottom: 16px; font-size: 1.05rem; }

/* --- CTA --- */
.cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
    color: white; padding: 100px 0; margin-top: 100px;
}
.cta-head { font-size: 3rem; margin-bottom: 16px; }
.cta-sub { opacity: 0.8; font-size: 0.9rem; margin-top: 24px; }

/* --- FOOTER --- */
footer { background: white; padding: 80px 0 24px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 60px; }
.footer-col h4 { font-size: 1rem; color: var(--text-main); margin-bottom: 20px; font-weight: 700; }
.footer-col a { display: block; margin-bottom: 12px; color: var(--text-muted); font-size: 0.95rem; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; color: var(--text-muted); font-size: 0.9rem; }

/* --- ANIMATIONS --- */
@keyframes pulse { 0% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.5); } 100% { opacity: 1; transform: scale(1); } }
@keyframes float { 0% { transform: translateY(0); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0); } }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero h1 { font-size: 2.5rem; }
    .hero-btns { justify-content: center; }
    .trust-row { justify-content: center; }
    .bento-grid { grid-template-columns: 1fr; }
    .span-2, .span-3 { grid-column: auto; flex-direction: column; text-align: left; }
    .viz-projects, .bento-chart { width: 100%; margin-top: 20px; padding-right: 0; }
    .card-revenue, .card-safety { display: none; } /* Hide floating elements on tablet/mobile */
    .grid-split { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .nav-links, .nav-actions { display: none; }
    .mobile-toggle { display: block; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
}