/* 
  Blintix - Global Styles 
  Voiceflow-Inspired Design: Deep dark mode, stark contrast, bento grids, subtle gradients, polished glassmorphism.
*/

:root {
    /* Colors */
    --bg-base: #000000;
    --bg-surface: #0a0a0a;
    --bg-card: #111111;
    --bg-card-hover: #171717;

    --text-main: #ffffff;
    --text-muted: #888888;

    /* Accents (Voiceflow-esque: Purple/Blue/Pink blurs) */
    --accent-primary: #5e6ad2;
    --accent-secondary: #f24e1e;
    --accent-gradient: linear-gradient(135deg, #a78bfa, #3b82f6);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);

    /* Layout */
    --max-w: 1200px;

    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;

    /* Shadows & Radii */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-base);
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    backface-visibility: hidden;
}

.hero-bg-glow {
    will-change: transform;
}

.reveal {
    will-change: transform, opacity;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.25s ease;
}

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 32px;
}

.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Typography elements */
.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Base Headings */
h1,
h2,
h3 {
    letter-spacing: -0.04em;
    font-weight: 600;
}

.section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 24px;
    line-height: 1.1;
}

.section-desc {
    font-size: clamp(1.125rem, 2vw, 1.35rem);
    color: var(--text-muted);
    max-width: 650px;
    margin-bottom: 48px;
    line-height: 1.5;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 999px;
    /* Pill shape is very Voiceflow */
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: #ffffff;
    color: #000000;
}

.btn-primary:hover {
    background: #e5e5e5;
    transform: scale(1.02);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-subtle);
    color: var(--text-main);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
}

.btn-ghost:hover {
    color: var(--text-main);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: calc(100% - 48px);
    max-width: 1000px;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    padding: 12px 24px;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.logo-name {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 4px;
}

.logo-name .dot {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--text-main);
}

.nav-cta {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 200px 0 160px;
    text-align: center;
}

.hero-bg-glow {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(94, 106, 210, 0.15) 0%, rgba(0, 0, 0, 0) 60%);
    z-index: -1;
    pointer-events: none;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-primary);
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.04em;
    max-width: 1000px;
    margin-bottom: 32px;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--text-muted);
    max-width: 680px;
    margin-bottom: 48px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* General Sections */
.section {
    padding: 140px 0;
    position: relative;
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
    width: 100%;
}

/* About / Story */
.about-statement {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    line-height: 1.4;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: -0.02em;
    max-width: 900px;
    margin: 0 auto;
}

.about-statement .highlight {
    color: var(--text-main);
}

/* Bento Grid (Voiceflow Style) */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 280px;
    gap: 24px;
    margin-top: 64px;
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    background: var(--bg-card-hover);
}

.bento-card.large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-card.wide {
    grid-column: span 2;
}

.bento-icon {
    position: absolute;
    top: 40px;
    left: 40px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.bento-card.large .bento-icon {
    width: 64px;
    height: 64px;
    font-size: 2rem;
    border-radius: 16px;
}

.bento-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.bento-card.large .bento-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.bento-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.5;
}

.bento-card.large .bento-desc {
    font-size: 1.25rem;
    max-width: 400px;
}

/* Philosophy */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 64px;
}

.phil-card {
    background: transparent;
    border: 1px solid var(--border-subtle);
    padding: 40px;
    border-radius: var(--radius-lg);
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.phil-checkbox {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    flex-shrink: 0;
}

.phil-content h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.phil-content h3 em {
    color: var(--text-muted);
    font-style: italic;
    font-weight: 400;
}

/* Products Table */
.products-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 12px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 24px 32px;
    text-align: left;
}

th {
    color: #666;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-subtle);
}

td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    font-size: 1.05rem;
    color: var(--text-muted);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

tr td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

tr td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.prod-name {
    color: var(--text-main);
    font-weight: 500;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 16px;
}

.prod-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border: 1px solid var(--border-subtle);
    overflow: hidden;
}

.prod-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.badge-status {
    display: inline-flex;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.badge-live {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-beta {
    background: rgba(59, 130, 246, 0.1);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-soon {
    background: transparent;
    color: var(--text-muted);
    border: 1px dashed var(--border-subtle);
}

/* Founder / Auth */
.founder-box {
    margin-top: 64px;
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 24px 32px;
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-base) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
}

.founder-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.founder-info {
    text-align: left;
}

.founder-info strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text-main);
}

.founder-info span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Subscribe */
.subscribe-section {
    position: relative;
    overflow: hidden;
}

.subscribe-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 80px 40px;
    text-align: center;
    position: relative;
}

.subscribe-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: var(--accent-gradient);
    box-shadow: 0 0 40px 10px rgba(167, 139, 250, 0.2);
}

.subscribe-form {
    display: flex;
    max-width: 480px;
    margin: 40px auto 0;
    gap: 12px;
    background: rgba(0, 0, 0, 0.4);
    padding: 8px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
}

.subscribe-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0 24px;
    color: white;
    font-size: 1rem;
    outline: none;
}

.subscribe-form input::placeholder {
    color: var(--text-muted);
}

.subscribe-form .btn {
    padding: 12px 32px;
}

/* Footer */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-subtle);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 80px;
}

.footer-brand .logo-name {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.footer-tree {
    background: var(--bg-card);
    padding: 24px 32px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.8;
}

.footer-tree strong {
    color: var(--text-main);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Scroll Reveal - Fast & Crisp */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-card.large {
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }

    .hero {
        padding: 160px 0 100px;
    }

    .navbar {
        width: calc(100% - 32px);
        top: 16px;
    }

    .nav-links,
    .nav-cta {
        display: none;
    }

    .bento-grid,
    .philosophy-grid {
        grid-template-columns: 1fr;
    }

    .bento-card.large,
    .bento-card.wide {
        grid-column: span 1;
    }

    .footer-top {
        flex-direction: column;
        gap: 40px;
    }

    .products-wrapper {
        padding: 0;
        border: none;
        background: transparent;
    }

    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
    }

    thead tr {
        display: none;
    }

    tr {
        margin-bottom: 16px;
        background: var(--bg-card);
        border: 1px solid var(--border-subtle);
        border-radius: 16px;
        padding: 16px;
    }

    td {
        padding: 8px 0;
        border: none;
    }

    .subscribe-form {
        flex-direction: column;
        border-radius: 24px;
        padding: 16px;
        background: transparent;
        border: none;
    }

    .subscribe-form input {
        padding: 16px;
        background: var(--bg-card);
        border-radius: 12px;
        border: 1px solid var(--border-subtle);
    }

    .subscribe-form .btn {
        width: 100%;
        border-radius: 12px;
    }
}