/* --- VARIABLES --- */
:root {
    --primary: #6366f1; /* Indigo */
    --accent: #06b6d4; /* Cyan */
    --dark: #0f172a;   /* Slate 900 */
    --surface: #ffffff;
    --bg: #f8fafc;     /* Slate 50 */
    --text-main: #334155;
    --text-muted: #64748b;
    --border: #e2e8f0;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    --gradient: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 { font-family: 'Space Grotesk', sans-serif; font-weight: 500; color: var(--dark); }

/* --- UTILITIES --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-sm { padding: 6px 18px; font-size: 0.85rem; }

.btn-primary {
    background: var(--dark);
    color: white;
    border-color: var(--dark);
}
.btn-primary:hover {
    background: #1e293b;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: white; }

/* --- HEADER --- */
header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 12px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 5%; padding-right: 5%;
    z-index: 1000;
}

.logo-container { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.brand-text { font-size: 1.25rem; font-weight: 600; color: var(--dark); }
.highlight { color: var(--primary); }
.tld { font-size:0.8em; opacity:0.5; font-weight: 300; }

nav ul { display: flex; list-style: none; gap: 25px; }
nav a { text-decoration: none; color: var(--text-main); font-size: 0.9rem; font-weight: 400; transition: color 0.2s; }
nav a:hover { color: var(--primary); }

/* --- HERO --- */
.hero {
    position: relative;
    height: 80vh;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.6));
    z-index: -1;
}

.video-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: -2;
}

.hero-content { position: relative; z-index: 1; }
.hero-content h1 {
    font-size: 3.5rem; line-height: 1.1; margin-bottom: 15px; color: white;
    font-weight: 400; letter-spacing: -1px;
}
.hero-content p { font-size: 1.2rem; margin: 0 auto 30px; color: #cbd5e1; font-weight: 300; }
.hero-btns { display: flex; gap: 15px; justify-content: center; }

/* --- SECTIONS --- */
.section-header { text-align: center; margin: 60px 0 40px; }
.section-header h3 { font-size: 2rem; margin-bottom: 8px; letter-spacing: -0.5px; }
.section-header p { color: var(--text-muted); font-size: 0.95rem; }

/* Market Grid */
.market-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 80px; }

.market-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.market-card:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }

.img-wrapper { height: 180px; width: 100%; overflow: hidden; background: #cbd5e1; }
.img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.market-card:hover .img-wrapper img { transform: scale(1.05); }

.card-content { padding: 20px; }
.tag { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--primary); font-weight: 600; margin-bottom: 8px; display: block; }
.market-card h4 { font-size: 1.25rem; margin-bottom: 8px; }
.market-card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 15px; line-height: 1.5; }
.source-link { font-size: 0.8rem; color: var(--text-muted); text-decoration: none; border-bottom: 1px solid #e2e8f0; }
.source-link:hover { color: var(--primary); border-color: var(--primary); }

/* Stats */
.stats-section {
    background: var(--dark);
    border-radius: var(--radius-lg);
    padding: 50px;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
    text-align: center; color: white; margin-bottom: 80px;
}
.stat-number { display: block; font-size: 2.5rem; font-weight: 600; color: var(--accent); margin-bottom: 5px; }
.stat-label { font-size: 0.9rem; color: #94a3b8; display: block; margin-bottom: 10px; }
.stat-citation { font-size: 0.7rem; color: #64748b; text-decoration: none; opacity: 0.7; }
.stat-citation:hover { opacity: 1; text-decoration: underline; }

/* SaaS Cards */
.concepts { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-bottom: 80px; }
.card { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; }
.card h3 { font-size: 1.5rem; margin-bottom: 10px; }
.feature-list li { margin-bottom: 10px; font-size: 0.9rem; color: var(--text-muted); padding-left: 15px; position: relative; }
.feature-list li::before { content: ''; position: absolute; left: 0; top: 8px; width: 4px; height: 4px; background: var(--primary); border-radius: 50%; }

/* Blog Grid */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 80px; }
.blog-card { text-decoration: none; background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.2s; }
.blog-card:hover { border-color: var(--primary); }
.blog-img-wrapper { height: 150px; width: 100%; overflow: hidden; background: #cbd5e1; }
.blog-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.blog-card:hover .blog-img-wrapper img { transform: scale(1.05); }
.blog-info { padding: 20px; }
.blog-info h5 { font-size: 1.1rem; margin-bottom: 8px; line-height: 1.3; color: var(--dark); }
.blog-info p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 15px; }
.read-more { font-size: 0.8rem; color: var(--primary); font-weight: 500; }

/* VISUALIZATION WITH CHART */
.visualization { 
    position: relative; 
    border-radius: var(--radius-lg); 
    overflow: hidden; 
    margin-bottom: 80px; 
    background: #000; 
    max-height: 550px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.visualization img { width: 100%; height: 100%; opacity: 0.8; object-fit: cover; }

.chart-overlay-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 5;
    pointer-events: none; 
}

/* CHART CARD - GHOST MODE DEFAULT */
.chart-card {
    background: rgba(255, 255, 255, 0.0);
    backdrop-filter: blur(0px);
    border: 1px solid rgba(255,255,255,0.0);
    border-radius: 16px;
    padding: 30px;
    width: 100%;
    max-width: 700px;
    opacity: 0.2; 
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    pointer-events: auto; 
}

/* INTERACTION STATES */
.chart-card:hover,
.chart-card:focus,
.chart-card:active {
    opacity: 1;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-color: rgba(255,255,255,0.8);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    transform: scale(1.02);
    outline: none;
}

.chart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; flex-wrap: wrap; }
.chart-header h4 { font-size: 1.5rem; color: var(--dark); }
.chart-source { font-size: 0.7rem; color: var(--primary); background: rgba(99, 102, 241, 0.1); padding: 4px 10px; border-radius: 20px; font-weight: 600; }
.canvas-wrapper { width: 100%; height: 300px; position: relative; }

/* Ads */
.ad-container { margin: 40px auto; padding: 20px; background: #f8fafc; border: 1px dashed #cbd5e1; text-align: center; color: #94a3b8; font-size: 0.8rem; border-radius: var(--radius-md); opacity: 0; transition: opacity 0.5s; }
.ad-container.active { opacity: 1; }

/* CTA & Footer */
.cta-section { text-align: center; padding: 60px 20px; background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: 60px; }

/* Updated Form Styling for Multiple Fields */
#waitlist-form { 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
    max-width: 400px; 
    margin: 0 auto; 
}

#waitlist-form input { 
    padding: 12px 20px; 
    border: 1px solid var(--border); 
    border-radius: var(--radius-sm); 
    outline: none; 
    width: 100%;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
}

#waitlist-form input:focus { border-color: var(--primary); }
#waitlist-form button { width: 100%; padding: 12px; }

footer { background: white; border-top: 1px solid var(--border); padding: 50px 0; font-size: 0.9rem; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-logo { font-family: 'Space Grotesk'; font-weight: 700; color: var(--dark); text-decoration: none; font-size: 1.2rem; }
.footer-col a { display: block; color: var(--text-muted); text-decoration: none; margin-bottom: 8px; }
.footer-col a:hover { color: var(--primary); }
.copyright { text-align: center; margin-top: 40px; font-size: 0.8rem; color: #cbd5e1; }

/* Blog Article Styles */
.article-container { max-width: 760px; margin: 140px auto 60px; }
.breadcrumbs { margin-bottom: 20px; font-size: 0.85rem; color: var(--text-muted); }
.breadcrumbs a { text-decoration: none; color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--primary); }
.article-header { margin-bottom: 40px; text-align: center; }
.article-header h1 { font-size: 2.5rem; line-height: 1.2; margin-bottom: 15px; }
.article-meta { font-size: 0.9rem; color: var(--text-muted); display: flex; align-items: center; justify-content: center; gap: 10px; }
.article-hero-img { width: 100%; height: auto; max-height: 450px; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: 50px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.article-content { font-size: 1.15rem; line-height: 1.8; color: #334155; }
.article-content h2 { font-size: 1.8rem; margin: 50px 0 20px; color: var(--dark); }
.article-content p { margin-bottom: 25px; }
.article-content ul { margin-bottom: 25px; padding-left: 20px; }
.article-content li { margin-bottom: 10px; padding-left: 5px; }
.article-content blockquote { border-left: 4px solid var(--primary); padding-left: 20px; margin: 30px 0; font-size: 1.3rem; font-style: italic; color: var(--dark); background: #f8fafc; padding: 20px 20px 20px 30px; border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.related-posts { border-top: 1px solid var(--border); margin-top: 80px; padding-top: 50px; }

@media (max-width: 768px) {
    header { padding: 15px; }
    nav { display: none; }
    .hero-content h1 { font-size: 2.5rem; }
    .stats-section { grid-template-columns: 1fr; }
    .concepts { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .chart-card { padding: 15px; }
    .canvas-wrapper { height: 250px; }
    .article-header h1 { font-size: 2rem; }
    .article-container { margin-top: 100px; padding: 0 20px; }
}