:root {
    --bg-dark: #050505;
    --bg-card: rgba(255, 255, 255, 0.02);
    --bg-card-hover: rgba(255, 255, 255, 0.05);

    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.4);

    --text-main: #ededed;
    --text-muted: #888888;

    --border-light: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(255, 255, 255, 0.2);

    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    /* Subtler noise texture */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    overflow-x: hidden;
    line-height: 1.6;
}

/* Typography Polish */
h1 {
    font-family: var(--font-display);
    font-size: 5rem;
    line-height: 1;
    letter-spacing: -0.04em;
    font-weight: 500;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

h2 {
    font-family: var(--font-display);
    font-size: 3rem;
    letter-spacing: -0.03em;
    font-weight: 500;
}

p {
    font-size: 1.1rem;
    color: var(--text-muted);
    letter-spacing: -0.01em;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.glow-text {
    background: linear-gradient(180deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    color: transparent;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 10px 24px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #fff;
}

.btn-nav-cta {
    background: #fff;
    color: #000;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 100px;
    text-decoration: none;
    transition: transform 0.2s;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
    position: relative;
    text-align: center;
}

.spotlight {
    position: absolute;
    top: -20vh;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 80vh;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 24px;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.1);
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    margin-top: 40px;
}

.btn-primary {
    background: #fff;
    color: #000;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* High-Fidelity Dashboard Mockup */
.mockup-container {
    margin-top: 80px;
    width: 100%;
    max-width: 1100px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: #0a0a0a;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    position: relative;
    transform: perspective(1000px) rotateX(1deg);
    transition: transform 0.4s ease;
}

.mockup-container:hover {
    transform: perspective(1000px) rotateX(0deg);
}

.mockup-header {
    height: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.01);
}

.traffic-lights {
    display: flex;
    gap: 8px;
}

.light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #3c3c3c;
}

.yellow {
    background: #3c3c3c;
}

.green {
    background: #3c3c3c;
}

.mockup-body {
    display: grid;
    grid-template-columns: 240px 1fr;
    height: 600px;
}

.mockup-sidebar {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.01);
    padding: 24px;
}

.sidebar-item {
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin-bottom: 16px;
    width: 60%;
}

.sidebar-item.active {
    background: rgba(99, 102, 241, 0.2);
    width: 80%;
}

.mockup-main {
    padding: 32px;
    background: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.chart-area {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 200px;
    width: 100%;
    margin-top: 40px;
}

.bar {
    flex: 1;
    background: linear-gradient(to top, rgba(99, 102, 241, 0.2), rgba(99, 102, 241, 0.6));
    border-top: 2px solid #818cf8;
    border-radius: 4px 4px 0 0;
    opacity: 0.8;
    transition: height 1s ease;
}

/* Trust Section */
.trust {
    padding: 60px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.01);
    text-align: center;
}

.trust p {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 32px;
    opacity: 0.6;
}

.logos {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    opacity: 0.7;
}

/* Bento Grid */
.bento-section {
    padding: 160px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 300px;
    gap: 24px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--border-glow);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: #fff;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: #fff;
    font-weight: 500;
}

.card p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.card.col-span-2 {
    grid-column: span 2;
}

.card.row-span-2 {
    grid-row: span 2;
}

.code-block {
    font-family: 'Consolas', monospace;
    font-size: 0.8rem;
    color: #a5b4fc;
    margin-top: 20px;
    opacity: 0.7;
    line-height: 1.8;
}

/* Architecture Flow Diagram */
.flow-diagram {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 60px 0;
    width: 100%;
}

.flow-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 2;
}

.flow-node-icon {
    width: 64px;
    height: 64px;
    padding: 16px;
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
    border: 1px solid var(--border-glow);
    border-radius: 16px;
    color: var(--primary);
    box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.3);
}

.flow-node h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
}

.flow-line {
    height: 2px;
    width: 80px;
    background: linear-gradient(90deg, var(--border-light), var(--primary), var(--border-light));
    opacity: 0.5;
}

@media (max-width: 768px) {
    .flow-diagram {
        flex-direction: column;
    }

    .flow-line {
        width: 2px;
        height: 80px;
        background: linear-gradient(180deg, var(--border-light), var(--primary), var(--border-light));
    }
}

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

details {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    margin-bottom: 16px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

details:hover {
    border-color: var(--border-glow);
    background: var(--bg-card-hover);
}

details[open] {
    background: var(--bg-card-hover);
    border-color: var(--primary-glow);
}

summary {
    list-style: none;
    font-weight: 500;
    font-size: 1.1rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

details[open] summary::after {
    transform: rotate(45deg);
    color: #fff;
}

details p {
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    border-top: 1px solid var(--border-light);
    padding-top: 16px;
}

/* Use Cases */
.use-case-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.use-case-item {
    display: flex;
    gap: 24px;
    padding: 32px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.use-case-item:hover {
    transform: translateY(-4px);
    border-color: var(--border-glow);
}

.use-case-icon {
    min-width: 48px;
    height: 48px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

/* Final CTA */
.cta-section {
    position: relative;
    padding: 120px 0;
    text-align: center;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.cta-box {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glow);
    padding: 60px;
    border-radius: 24px;
    display: inline-block;
    max-width: 800px;
}

/* Footer & Media Queries */
footer {
    border-top: 1px solid var(--border-light);
    padding: 80px 0;
    background: #020202;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 24px;
    display: inline-block;
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .card.col-span-2 {
        grid-column: span 1;
    }

    .card.row-span-2 {
        grid-row: span 1;
    }

    .use-case-grid {
        grid-template-columns: 1fr;
    }

    .cta-box {
        padding: 32px;
        width: 100%;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2rem;
    }
}