* {
    box-sizing: border-box;
}

:root {
    color-scheme: dark;
    --bg: #0a0a0a;
    --panel: #111111;
    --panel-border: rgba(255, 255, 255, 0.1);
    --text: #f5f5f5;
    --muted: #a3a3a3;
    --subtle: #666666;
    --blue: #60a5fa;
    --green: #6ee7b7;
    --purple: #c4b5fd;
}

html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    isolation: isolate;
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font: 15px/1.65 "DM Sans", system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Ambient Background Background Effects */
.ambient {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
}

.glow {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
}

.fade {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top, transparent 10%, #0a0a0a 85%);
}

/* Header Navigation Bar */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    border-bottom: 1px solid var(--panel-border);
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(12px);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100% - 48px, 1080px);
    height: 64px;
    margin: 0 auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font: 600 15px/1 "Bricolage Grotesque", sans-serif;
    letter-spacing: -0.2px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 7px;
    background: #f5f5f5;
    color: #090909;
    font-size: 14px;
    font-weight: 700;
}

.brand b {
    color: var(--muted);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
}

.nav-links a {
    transition: color 0.18s ease;
}

.nav-links a:hover {
    color: var(--text);
}

/* Page Wrapper */
.page {
    position: relative;
    z-index: 1;
    width: min(100% - 48px, 1080px);
    margin: 0 auto;
    padding: 60px 0 100px;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 90px;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--subtle);
    font-size: 10px;
    letter-spacing: 1.8px;
    font-weight: 700;
    text-transform: uppercase;
}

.eyebrow i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px rgba(110, 231, 183, 0.5);
}

h1, h2, h3, h4, p {
    margin-top: 0;
}

h1 {
    margin: 18px 0 16px;
    font: 600 clamp(36px, 5vw, 62px)/1.08 "Bricolage Grotesque", sans-serif;
    letter-spacing: -2px;
}

.lead {
    max-width: 650px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
}

.lead strong {
    color: #e5e5e5;
}

.actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.18s, border-color 0.18s, transform 0.18s;
}

.button:hover {
    transform: translateY(-2px);
}

.button.light {
    background: #f5f5f5;
    color: #090909;
}

.button.light:hover {
    background: #e5e5e5;
}

.button.outline {
    border-color: rgba(255, 255, 255, 0.15);
    color: #ddd;
    background: rgba(255, 255, 255, 0.03);
}

.button.outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.badge {
    color: var(--subtle);
    font-size: 12px;
    font-weight: 500;
}

/* Workflow Flow Card */
.flow-card {
    width: min(100%, 680px);
    margin-top: 48px;
    overflow: hidden;
    text-align: left;
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    background: rgba(17, 17, 17, 0.75);
    backdrop-filter: blur(16px);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}

.card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    color: var(--subtle);
    font-size: 10px;
    letter-spacing: 1.2px;
    font-weight: 700;
}

.window-dots {
    display: flex;
    gap: 6px;
}

.window-dots i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.live {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    color: var(--muted);
    font-size: 9px;
}

.live i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
}

.flow-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 22px;
}

.step-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--subtle);
    font-size: 10px;
    letter-spacing: 1.3px;
    font-weight: 700;
}

.step-heading > span {
    color: var(--muted);
}

.step-heading > i {
    height: 1px;
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
}

.code {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: #050505;
    color: var(--muted);
    font: 12px/1 "JetBrains Mono", monospace;
}

.code b {
    color: var(--blue);
    font-weight: 500;
}

.flow-step:nth-child(2) .code b {
    color: var(--green);
}

.flow-step:nth-child(3) .code b {
    color: var(--purple);
}

.code .arrow {
    margin-left: auto;
    color: var(--subtle);
    font-family: "DM Sans", sans-serif;
}

.card-foot {
    padding: 12px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
    color: var(--subtle);
    font-size: 9px;
    letter-spacing: 1.2px;
    font-weight: 700;
}

.card-foot > span:first-child {
    color: var(--muted);
    margin-right: 4px;
}

.card-foot .divider {
    padding: 0 6px;
    color: rgba(255, 255, 255, 0.2);
}

/* Common Section Layouts */
section {
    padding: 60px 0;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 36px;
}

.section-heading h2 {
    margin: 10px 0 0;
    font: 600 clamp(26px, 3.5vw, 36px)/1.15 "Bricolage Grotesque", sans-serif;
    letter-spacing: -1px;
}

.section-heading strong {
    color: var(--muted);
}

.section-heading > p {
    max-width: 380px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

/* Feature Grid Section */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    display: flex;
    flex-direction: column;
    padding: 28px;
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    background: rgba(17, 17, 17, 0.7);
    backdrop-filter: blur(8px);
    transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.25);
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: #eee;
    font-size: 18px;
}

.card-kicker {
    color: var(--subtle);
    font-size: 9px;
    letter-spacing: 1.25px;
    font-weight: 700;
}

.feature-card h3 {
    margin: 8px 0 10px;
    font: 600 19px "Bricolage Grotesque", sans-serif;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.75;
    flex-grow: 1;
}

.feature-card p strong {
    color: var(--text);
}

.feature-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    color: var(--subtle);
    font-size: 9px;
    letter-spacing: 1px;
    font-weight: 700;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.dot.blue { background: var(--blue); }
.dot.green { background: var(--green); }
.dot.gray { background: var(--subtle); }

/* Tech Grid Section */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tech-item {
    padding: 28px;
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    background: rgba(17, 17, 17, 0.5);
}

.tech-item h4 {
    margin-bottom: 12px;
    font: 600 17px "Bricolage Grotesque", sans-serif;
    color: #fff;
}

.tech-item p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.tech-item code {
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--blue);
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
}

/* Use Cases Section */
.use-cases h2 {
    margin-bottom: 32px;
    font: 600 clamp(24px, 3vw, 32px) "Bricolage Grotesque", sans-serif;
    letter-spacing: -0.5px;
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.use-case {
    padding: 26px;
    border: 1px solid var(--panel-border);
    border-radius: 14px;
    background: rgba(17, 17, 17, 0.4);
}

.use-case h4 {
    margin-bottom: 10px;
    font: 600 16px "DM Sans", sans-serif;
    color: #fff;
}

.use-case p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

/* FAQ Section */
.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    background: rgba(17, 17, 17, 0.6);
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.faq-item summary {
    padding: 20px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    font-size: 18px;
    color: var(--subtle);
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    content: "−";
    color: var(--text);
}

.faq-item p {
    padding: 0 24px 20px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.75;
}

/* CTA Section */
.cta-section {
    margin: 40px 0;
    padding: 60px 40px;
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(17, 17, 17, 0.8) 100%);
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font: 600 clamp(26px, 3.5vw, 36px)/1.15 "Bricolage Grotesque", sans-serif;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.cta-content p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
    margin-bottom: 28px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.cta-note {
    font-size: 12px !important;
    color: var(--subtle) !important;
    margin-bottom: 0 !important;
}

/* Knowledge Base Section */
.kb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.kb-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.kb-column h3 {
    font: 600 18px "Bricolage Grotesque", sans-serif;
    color: #fff;
    margin-bottom: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.kb-column h4 {
    font: 600 14px "DM Sans", sans-serif;
    color: var(--text);
    margin-bottom: 6px;
}

.kb-column p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.75;
    margin-bottom: 12px;
}

.kb-column ul {
    margin: 0 0 16px;
    padding-left: 18px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.75;
}

.kb-column li {
    margin-bottom: 8px;
}

.kb-column li strong {
    color: var(--text);
}

/* Global Footer */
.footer {
    border-top: 1px solid var(--panel-border);
    background: rgba(10, 10, 10, 0.8);
    padding: 60px 0 30px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    width: min(100% - 48px, 1080px);
    margin: 0 auto 50px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand p {
    margin-top: 14px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.link-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 13px;
}

.link-group h4 {
    margin-bottom: 4px;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--subtle);
}

.link-group a {
    color: var(--muted);
    transition: color 0.18s;
}

.link-group a:hover {
    color: #fff;
}

.link-group span {
    color: var(--subtle);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100% - 48px, 1080px);
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--subtle);
    font-size: 12px;
}

.credit {
    font-size: 10px;
    letter-spacing: 1.1px;
    font-weight: 700;
}

.credit a {
    margin-left: 6px;
    color: var(--muted);
    transition: color 0.2s;
}

.credit a:hover {
    color: #fff;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
    .feature-grid,
    .tech-grid,
    .kb-grid {
        grid-template-columns: 1fr;
    }
    
    .use-case-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .section-heading > p {
        max-width: 100%;
    }

    .footer-container {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .nav-container {
        width: min(100% - 32px, 1080px);
    }
    
    .nav-links {
        gap: 16px;
        font-size: 12px;
    }

    .page {
        width: min(100% - 32px, 1080px);
        padding-top: 40px;
    }

    .flow-card {
        margin-top: 32px;
    }

    .cta-section {
        padding: 40px 20px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}