/* Variables & Reset */
:root {
    --bg-color: #FAFAFA;
    /* Slightly warmer/softer white for background */
    --card-bg: #FFFFFF;
    --text-primary: #111827;
    /* Gray 900 */
    --text-secondary: #525252;
    /* Gray 600 - better contrast than 500 */
    --border-color: #E5E5E5;
    /* Gray 200 */
    --border-hover: #A3A3A3;
    /* Gray 400 */
    --primary-black: #000000;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 999px;
    /* Larger radius for modern feel */
    --radius-xl: 24px;
    --container-width: 1200px;
    /* Increased for modern screens */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --section-padding: 140px;
    --section-padding: 140px;
    --section-padding-mobile: 80px;
}

@font-face {
    font-family: 'Cal Sans';
    src: url(https://cdn.jsdelivr.net/fontsource/fonts/cal-sans@latest/latin-400-normal.woff2) format("woff2"),
        url(https://cdn.jsdelivr.net/fontsource/fonts/cal-sans@latest/latin-400-normal.woff) format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Typography - Premium & Tight */
h1,
h2,
h3,
h4 {
    color: var(--text-primary);
    letter-spacing: -0.03em;
    /* Tighter tracking for headings */
    font-weight: 600;
}

h1 {
    font-size: 3.75rem;
    /* 60px */
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
}

h2 {
    font-size: 2.25rem;
    /* 36px */
    /* 36px */
    line-height: 1.2;
    margin-bottom: 3rem;
    /* Increased from 1rem for better hierarchy */
    text-align: center;
}

h3 {
    font-size: 1.25rem;
    /* 20px */
    line-height: 1.4;
    /* 20px */
    line-height: 1.4;
    margin-bottom: 1.25rem;
    /* Increased from 0.5rem to fix Tilda Mistake #6 */
    font-weight: 600;
}

p {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    /* 17px - slightly larger for readability */
    line-height: 1.7;
    /* Increased from 1.6 for better readability */
}

.section-desc {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
    font-size: 1.125rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 0.9375rem;
    letter-spacing: -0.01em;
}

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

.btn-primary:hover {
    background-color: #F5F5F5;
    border-color: #D4D4D4;
}

.btn-black {
    background-color: var(--primary-black);
    color: #FFFFFF;
    border: 1px solid var(--primary-black);
}

.btn-black:hover {
    background-color: #262626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: none;
    font-weight: 600;
    padding: 8px 20px;
    font-size: 0.9375rem;
}

.btn-ghost:hover {
    color: var(--primary-black);
    background-color: transparent;
    opacity: 0.7;
}

/* Header */
.header {
    background-color: #FFFFFF;
    /* Matches surface */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 0.5rem 0;
    border-bottom: 1px solid #E5E5E5;
}

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

.logo {
    font-family: 'Cal Sans', sans-serif;
    font-size: 2rem;
    font-weight: 400;
    /* Cal Sans is naturally bold, use 400 to avoid faux-bold */
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-controls .btn-black {
    border-radius: var(--radius-full);
    padding: 10px 24px;
    font-size: 0.9375rem;
}

.mobile-menu-btn {
    display: none;
    /* Hidden by default on desktop */
    background: none;
    border: none;
    padding: 0.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.mobile-link {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.5rem 0;
}

.lang-btn {
    background: none;
    border: none;
    padding: 6px 10px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.lang-btn:hover {
    background-color: #E5E5E5;
    color: var(--text-primary);
}

.lang-btn.active {
    background-color: #E5E5E5;
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    padding: 200px 0 140px;
    text-align: center;
}

.hero-content {
    max-width: 720px;
    margin: 0 auto;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.waitlist-form {
    display: flex;
    gap: 0.75rem;
    max-width: 460px;
    margin: 0 auto;
    position: relative;
}

.email-input {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    outline: none;
    transition: all 0.2s;
    background-color: var(--card-bg);
    color: var(--text-primary);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.email-input:focus {
    border-color: var(--primary-black);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.form-success {
    color: var(--text-primary);
    margin-top: 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.trust-badge {
    display: block;
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    opacity: 0.8;
    line-height: 1.5;
}

.trust-badge svg {
    /* SVG is now inline in HTML */
    color: var(--text-primary);
}

.hidden {
    display: none;
}

/* Sections General */
section {
    padding: var(--section-padding) 0;
}

.section-title {
    margin-bottom: 3.5rem;
}

/* Bento Grid Layouts */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    /* Increased gap */
}

.bento-card {
    padding: 2.5rem;
    /* More internal padding */
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-align: left;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.bento-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    min-height: 48px;
    /* Ensure alignment even if empty */
}

/* Global Icon Wrapper Style - Unified */
.icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #F3F4F6;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

/* Remove margin if inside header, let header handle spacing */
.card-header .icon-wrapper {
    margin-bottom: 0;
}

/* If used outside header (standalone), add margin */
.bento-card>.icon-wrapper {
    margin-bottom: 1.5rem;
}

.icon-wrapper svg {
    width: 24px;
    height: 24px;
    color: var(--text-primary);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background-color: #F3F4F6;
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
    letter-spacing: -0.01em;
}

/* Testimonials */
.testimonials {
    background-color: #FAFAFA;
}

.test-text {
    font-size: 1.0625rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-style: italic;
    flex-grow: 1;
}

.test-author {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Use Cases List */
.use-cases-footer {
    text-align: center;
    margin-top: 3rem;
    color: var(--text-secondary);
    font-size: 1.125rem;
    font-weight: 500;
}

.list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all 0.2s;
}

.list-item:hover {
    border-color: var(--border-hover);
    background: #FAFAFA;
}

.list-icon {
    color: var(--text-primary);
    flex-shrink: 0;
    opacity: 0.8;
}

.uc-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
}

/* FAQ Section */
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

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

.faq-item:last-child {
    border-bottom: none;
}

.faq-summary {
    list-style: none;
    cursor: pointer;
    padding: 1.5rem 0;
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s;
}

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

.faq-summary::-webkit-details-marker {
    display: none;
}

.faq-summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-secondary);
    transition: transform 0.2s;
}

details[open] .faq-summary::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.6;
    max-width: 90%;
}

/* CTA Section */
.cta-section {
    padding: 160px 0;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.cta-container h2 {
    margin-bottom: 1.5rem;
}

.cta-container p {
    margin-bottom: 3rem;
    font-size: 1.25rem;
}

/* Footer */
.footer {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    background: var(--bg-color);
}

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

.footer-logo {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-copy {
    color: #A3A3A3;
    font-size: 0.875rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero {
        padding: 120px 0 60px;
    }

    section {
        padding: var(--section-padding-mobile) 0;
    }

    .section-title {
        margin-bottom: 2.5rem;
        font-size: 2rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .bento-card {
        padding: 1.5rem;
    }

    .list-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .waitlist-form {
        flex-direction: column;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Hide desktop CTA on mobile to save space */
    .header-controls .btn-black {
        display: none;
    }

    .footer-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}