:root {
    --primary-color: #e95484;
    /* Data Talk Pink */
    --secondary-color: #2d2e3e;
    /* Data Talk Navy */
    --accent-color: #e95484;
    --text-color: #2d2e3e;
    --text-light: #525368;
    --background: #f8f7f2;
    /* Data Talk Beige */
    --white: #ffffff;
    --border-color: rgba(45, 46, 62, 0.1);
    --font-family: 'Inter', 'Plus Jakarta Sans', sans-serif;
    --container-width: 1200px;
    --header-bg: rgba(248, 247, 242, 0.8);
    --bento-bg-1: #ebeafc;
    --bento-bg-2: #fdfdfb;
    --bento-bg-3: #f6ecf0;

    /* Layout Tokens */
    --radius-lg: 2rem;
    --radius-md: 1rem;
    --section-spacing: 120px;

    /* Surfaces */
    --surface-primary: #ffffff;
    --surface-secondary: #fdfdfb;
    --surface-tertiary: #f0eee2;
    --surface-hover: rgba(45, 46, 62, 0.05);
    --surface-active: rgba(233, 84, 132, 0.1);
    --shadow-color: rgba(45, 46, 62, 0.2);
    --code-bg: rgba(45, 46, 62, 0.05);
    --chart-border-top: rgba(45, 46, 62, 0.12);
    --input-bg: #ffffff;
    --shadow-soft: 0 10px 30px -5px rgba(45, 46, 62, 0.08);
}

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

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--background);
    background: var(--background);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.6;
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-section #particle-canvas {
    position: absolute;
    height: 100%;
    mask-image: radial-gradient(circle at center, transparent 20%, black 60%);
    -webkit-mask-image: radial-gradient(circle at center, transparent 20%, black 60%);
}

/* Dashboard Subtle Background */
.dashboard-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: var(--background);
}

.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    will-change: transform;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(66, 133, 244, 0.2) 0%, rgba(66, 133, 244, 0) 70%);
    /* Blue */
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(234, 67, 53, 0.15) 0%, rgba(234, 67, 53, 0) 70%);
    /* Red */
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(251, 188, 5, 0.1) 0%, rgba(251, 188, 5, 0) 70%);
    /* Yellow */
    opacity: 0.3;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-spacing) 0;
    position: relative;
}

.section-feature {
    background-color: var(--secondary-color);
    color: #ffffff;
    border-radius: var(--radius-lg);
    margin: 20px;
}

.section-feature .section-title {
    color: #ffffff;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -0.03em;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 24px;
    margin-top: 40px;
}

.bento-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.bento-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.bento-item p {
    color: var(--text-light);
    font-size: 1rem;
}

.bento-item img {
    max-width: 100%;
    height: auto;
    margin-top: 20px;
    align-self: center;
}

.col-6 {
    grid-column: span 6;
}

.col-4 {
    grid-column: span 4;
}

.col-8 {
    grid-column: span 8;
}

.col-12 {
    grid-column: span 12;
}

@media (max-width: 768px) {

    .col-6,
    .col-4,
    .col-8 {
        grid-column: span 12;
    }

    .section-title {
        font-size: 2.25rem;
    }
}

/* Header */
.site-header {
    width: 100%;
    z-index: 100;
    padding: 30px 0;
    position: sticky;
    top: 0;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    gap: 12px;
    letter-spacing: -0.05em;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: conic-gradient(from 0deg, #f87171 0deg 120deg, #60a5fa 120deg 240deg, #34d399 240deg 360deg);
    border-radius: 50%;
    position: relative;
    transform: rotate(-15deg);
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--background);
    border-radius: 50%;
    z-index: 2;
}

.logo-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background: var(--background);
    transform: translateY(-50%) rotate(30deg);
    transform-origin: left center;
}

/* Logo variation for contrast backgrounds */
.logo-light .logo-icon::before,
.logo-light .logo-icon::after {
    background: var(--secondary-color);
}


.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: var(--primary-color);
    /* Blue on hover */
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.95rem;
}

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

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

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 1px solid var(--primary-color);
    box-shadow: 0 4px 14px rgba(233, 84, 132, 0.3);
}

.btn-primary:hover {
    background-color: #d63d6e;
    border-color: #d63d6e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 84, 132, 0.4);
}

.btn-navy {
    background-color: var(--secondary-color);
    color: #ffffff;
    border: 1px solid var(--secondary-color);
}

.btn-navy:hover {
    background-color: #1e1f2a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 46, 62, 0.2);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.15rem;
}

/* Pricing Badge */
.badge-recommended {
    position: absolute;
    top: 0;
    right: 20px;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(233, 84, 132, 0.3);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
}

/* Hero Section */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hero-section {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-section .container {
    padding-top: 40px;
    padding-bottom: 60px;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
    width: 100%;
}

.hero-content {
    max-width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    /* Prevent button from stretching */
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -0.02em;
    color: var(--text-color);
    opacity: 1;
}

.hero-subhead {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 40px;
    font-weight: 400;
    opacity: 1;
}

.hero-footnote {
    margin-top: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.hero-image {
    max-width: 45%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 25px -5px rgba(0, 0, 0, 0.1));
}

/* Responsive */
@media (max-width: 768px) {
    .site-header {
        position: relative;
    }

    .main-nav,
    .header-actions {
        display: none;
    }

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

    .hero-section .container {
        flex-direction: column;
        padding-top: 40px;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 50px;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-image {
        max-width: 80%;
    }
}

/* Shared interactive-element base (prevents duplication across CSS modules) */
.chart-action-btn,
.btn-dash-action,
.table-toggle-btn,
.regenerate-btn,
.followup-chip,
.card-resize-btn,
.data-preview-toggle {
    font-family: var(--font-family);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

/* Chat Hero UI */
.chat-hero-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    max-width: 800px;
    /* Constrain width for readability */
    margin: 0 auto;
    padding-bottom: 10vh;
    /* Visual balance */
}

.chat-hero-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--text-color) 0%, var(--text-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.chat-input-wrapper {
    width: 100%;
    position: relative;
    border-radius: 16px;
    background: var(--surface-secondary);
    box-shadow: 0 4px 20px var(--shadow-color);
    border: 1px solid var(--border-color);
    padding: 10px;
    transition: box-shadow 0.3s, border-color 0.3s, background 0.3s, transform 0.3s;
}

.chat-input-wrapper:hover,
.chat-input-wrapper:focus-within {
    box-shadow: 0 8px 30px rgba(66, 133, 244, 0.15);
    border-color: var(--primary-color);
    background: var(--surface-primary);
    transform: translateY(-2px);
}

.chat-hero-input {
    width: 100%;
    min-height: 60px;
    border: none;
    background: transparent;
    padding: 15px 50px 15px 20px;
    /* Space for buttons */
    font-size: 1.1rem;
    font-family: var(--font-family);
    color: var(--text-color);
    resize: none;
    outline: none;
}

.chat-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px 5px 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 5px;
}

.chat-tools {
    display: flex;
    gap: 10px;
}

.send-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.send-btn:hover {
    transform: scale(1.05);
}

.suggestions-row {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.suggestion-chip {
    padding: 8px 16px;
    background: var(--surface-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.suggestion-chip:hover {
    background: var(--surface-primary);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px var(--shadow-color);
}

/* FAQ Section */
.faq-section {
    background-color: var(--background);
    padding: 100px 0;
}

.faq-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-color);
}

.faq-list {
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 32px 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    transition: all 0.2s ease;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-icon {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--primary-color);
    opacity: 0.7;
    font-size: 1.2rem;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    margin-top: 20px;
    opacity: 1;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    opacity: 1;
}

.faq-answer p {
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.6;
    max-width: 800px;
}

.thinking-img {
    filter: drop-shadow(0 0 50px rgba(233, 84, 132, 0.3));
}
