:root {
    /* Palette: Slate (Backgrounds/Text) & Indigo (Brand) - LIGHT MODE */
    --bg-body: #f8fafc; /* Slate 50 */
    --bg-card: #ffffff; /* White */
    --bg-card-hover: #f1f5f9; /* Slate 100 */
    
    --text-primary: #0f172a; /* Slate 900 */
    --text-secondary: #64748b; /* Slate 500 */
    --text-tertiary: #94a3b8; /* Slate 400 */
    
    --brand: #6366f1; /* Indigo 500 */
    --brand-glow: rgba(99, 102, 241, 0.2);
    --brand-dark: #4338ca; /* Indigo 700 */
    
    --border: #e2e8f0; /* Slate 200 */
    
    --max-width: 1100px;
    --header-height: 80px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* Typography */
h1, h2, h3 {
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 700;
}

h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    /* Darker gradient for light mode */
    background: linear-gradient(to bottom right, #0f172a, #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; color: var(--text-primary); }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--text-primary); }

p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

/* Layout Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 8rem 0;
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.btn-primary {
    background: var(--brand);
    color: white;
    box-shadow: 0 4px 14px var(--brand-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--brand-glow);
    background: #5b5ef5;
}

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

.btn-outline:hover {
    border-color: var(--text-secondary);
    background: var(--bg-card-hover);
}

/* Header */
.nav {
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.8);
}

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

.logo {
    font-weight: 800;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
}

/* Updated Logo Styles for Image */
.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.nav-cta {
    font-size: 0.9rem;
    padding: 0.5rem 1.25rem;
}

/* Hero */
.hero {
    padding-top: calc(var(--header-height) + 6rem);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto 4rem;
}

.hero-visual {
    perspective: 1000px;
}

.app-frame {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 0 0 1px rgba(0,0,0,0.03),
        0 25px 50px -12px rgba(0,0,0,0.15);
    transform: rotateX(2deg) translateY(10px);
    transition: transform 0.5s ease;
    margin-bottom: -4rem; /* Pull next section up slightly or let it bleed */
}

.app-frame:hover {
    transform: rotateX(0deg) translateY(0);
}

/* Product Showcase (Zig Zag) */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    margin-bottom: 8rem;
}

.feature-row.reversed {
    direction: rtl; /* Simple way to swap, reset text direction in children */
}

.feature-row.reversed > * {
    direction: ltr;
}

.feature-text h2 {
    margin-bottom: 1.5rem;
}

.feature-text ul {
    margin-top: 2rem;
}

.feature-text li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.feature-text li svg {
    color: var(--brand);
    flex-shrink: 0;
}

.feature-visual {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    aspect-ratio: 4/3;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md, 0 4px 6px -1px rgba(0,0,0,0.1));
    /* Create a subtle grid pattern background */
    background-image: linear-gradient(var(--border) 1px, transparent 1px),
                      linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: center center;
}

/* Feature Specific Visuals (CSS Art) */
/* Board Visual */
.visual-board {
    padding: 20px;
    display: flex;
    gap: 15px;
}
.col { flex: 1; background: #f8fafc; border: 1px solid var(--border); border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.card { height: 60px; background: white; border-radius: 6px; border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.card.active { border-color: var(--brand); box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15); }

/* Chat Visual */
.visual-chat {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: flex-end;
}
.msg { padding: 12px 18px; border-radius: 12px; max-width: 80%; font-size: 0.9rem; }
.msg-ai { background: var(--bg-card-hover); color: var(--text-primary); align-self: flex-start; border-bottom-left-radius: 2px; border: 1px solid var(--border); }
.msg-user { background: var(--brand); color: white; align-self: flex-end; border-bottom-right-radius: 2px; }

/* Philosophy Section */
.philosophy {
    text-align: center;
    background: linear-gradient(to bottom, var(--bg-body), #e2e8f0);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.stat-item h4 {
    font-size: 3rem;
    color: var(--brand);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    font-weight: 600;
}

/* CTA Footer */
.cta-footer {
    text-align: center;
    padding: 10rem 0 4rem;
    background: white;
}

.cta-footer h2 {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.footer-bottom {
    margin-top: 6rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-tertiary);
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
}

/* Responsive */
@media (max-width: 768px) {
    .feature-row {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .feature-row.reversed {
        direction: ltr;
    }
    
    h1 { font-size: 2.5rem; }
    
    .hero-visual {
        margin: 0 -1rem; /* Bleed on mobile */
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
