:root {
    --primary: #6366f1; /* Indigo/Purple */
    --primary-dark: #4f46e5;
    --secondary: #ec4899; /* Pink */
    --bg-dark: #0f172a; /* Slate 900 */
    --bg-light: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius: 12px;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: #f8fafc;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #0f172a;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--text-main);
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a:not(.btn) {
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
}

.nav-links a:not(.btn):hover {
    color: var(--primary);
}

.mobile-menu-btn { display: none; }

/* Hero */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    background: radial-gradient(circle at top right, #eef2ff 0%, #ffffff 40%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge {
    background: #e0e7ff;
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

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

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.trust-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Abstract App Window */
.app-window {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid var(--border);
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.app-window:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.window-header {
    background: #f1f5f9;
    padding: 12px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.dots {
    display: flex;
    gap: 6px;
    margin-right: 16px;
}

.dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
}

.url-bar {
    background: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text-muted);
    flex: 1;
    text-align: center;
}

.window-body {
    height: 300px;
    display: flex;
    background: #f8fafc;
}

.ui-sidebar { width: 60px; background: white; border-right: 1px solid var(--border); }
.ui-main { flex: 1; padding: 24px; position: relative; }

.ui-card {
    background: white;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 16px;
}

.progress-bar {
    height: 6px;
    background: #f1f5f9;
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}

.fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
}

.ui-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ui-stat { background: white; padding: 12px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }

.ai-bubble {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: var(--bg-dark);
    color: white;
    padding: 12px 16px;
    border-radius: 12px;
    border-bottom-right-radius: 2px;
    font-size: 0.9rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    display: flex;
    gap: 8px;
    align-items: center;
    max-width: 260px;
}

/* Features - Bento Grid */
.section { padding: 80px 0; }

.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 16px; }
.section-header p { font-size: 1.2rem; color: var(--text-muted); }

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 24px;
}

.bento-card {
    background: white;
    border-radius: 24px;
    padding: 32px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.bento-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.card-payroll { grid-column: span 2; display: flex; flex-direction: row; align-items: center; background: linear-gradient(135deg, #fdf4ff, #fff); }
.card-ai { background: linear-gradient(135deg, #eef2ff, #fff); }
.card-geo { }
.card-onboard { grid-column: span 2; background: #fff; }

.icon-lg { width: 40px; height: 40px; color: var(--primary); margin-bottom: 16px; }

.bento-card h3 { font-size: 1.5rem; margin-bottom: 8px; font-family: 'Inter', sans-serif; }
.bento-card p { color: var(--text-muted); font-size: 0.95rem; }

.visual-payroll { display: flex; flex-direction: column; gap: 8px; margin-left: auto; }
.pill { background: white; padding: 6px 12px; border-radius: 20px; font-size: 0.8rem; box-shadow: 0 2px 4px rgba(0,0,0,0.05); color: #16a34a; font-weight: 600; }

/* Philosophy */
.philosophy-section { background: #fffbf0; } /* Cream background like Lattice */
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.check-list li { margin-bottom: 12px; display: flex; gap: 12px; font-weight: 500; }
.check-list i { color: var(--secondary); width: 20px; }

.placeholder-img {
    background: #e2e8f0;
    height: 400px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 40px;
}

.pricing-card {
    background: white;
    padding: 40px 32px;
    border-radius: 24px;
    border: 1px solid var(--border);
    position: relative;
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.1);
}

.badge-top {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.price { font-size: 2.5rem; font-weight: 700; font-family: 'Inter', sans-serif; margin: 16px 0; }
.price span { font-size: 1rem; color: var(--text-muted); font-weight: 400; }

.features-list { margin: 32px 0; }
.features-list li { margin-bottom: 12px; color: var(--text-muted); font-size: 0.95rem; }

/* Footer */
footer { background: white; padding: 80px 0 24px; border-top: 1px solid var(--border); }

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

.footer-col h4 { font-family: 'Inter', sans-serif; margin-bottom: 20px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-col a { display: block; margin-bottom: 12px; color: var(--text-muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--primary); }

.copyright { text-align: center; color: var(--text-muted); font-size: 0.9rem; border-top: 1px solid var(--border); padding-top: 24px; }

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; border: none; background: none; }
    
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-cta { justify-content: center; }
    .app-window { display: none; }
    
    .bento-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .card-payroll, .card-onboard { grid-column: span 1; }
    
    .split-layout { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
}