@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    --bg-base: #0a0a0c;
    --bg-card: #121216;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    
    --color-tech: #facc15;
    --color-tech-bg: rgba(250, 204, 21, 0.1);
    
    --color-biz: #ef4444;
    --color-biz-bg: rgba(239, 68, 68, 0.1);
    
    --color-consumer: #3b82f6;
    --color-consumer-bg: rgba(59, 130, 246, 0.1);

    --border-subtle: #27272a;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 1rem;
    z-index: 200;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 1rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Typography Utilities */
.text-success { color: #22c55e; }
.text-uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.1em; }
.font-semibold { font-weight: 600; }
.text-sm { font-size: 0.875rem; }

/* Margin / Layout Utilities */
.m-0 { margin: 0 !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-6 { margin-bottom: 1.5rem !important; }
.flex-center { display: flex; justify-content: center; }

/* Visibility & Transpancy Utilities */
.d-none { display: none !important; }
.d-flex { display: flex !important; }
.d-block { display: block !important; }

.opacity-0 { opacity: 0 !important; }
.opacity-100 { opacity: 1 !important; }
.opacity-70 { opacity: 0.7 !important; }

.anim-container { transition: opacity 0.5s ease; }

/* Navigation / Top Bar */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    z-index: 100;
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(12px);
}

.brand, .brand a {
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.global-ping {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    color: var(--color-tech);
    background: var(--bg-card);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
}

.ping-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-tech);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-tech);
}

/* Ambient Center Glow */
.hero-glow {
    position: absolute;
    top: 20vh;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

/* Hero Section */
.hero {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 20vh auto 15vh auto;
    text-align: center;
    padding: 0 2rem;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin: 1rem 0 2rem 0;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin: 0 auto 3rem auto;
    line-height: 1.6;
    max-width: 700px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-tech { border: 1px solid var(--color-tech); color: var(--color-tech); }
.btn-tech:hover { background: var(--color-tech-bg); box-shadow: 0 0 20px rgba(250, 204, 21, 0.2); }

.btn-biz { border: 1px solid var(--color-biz); color: var(--color-biz); }
.btn-biz:hover { background: var(--color-biz-bg); box-shadow: 0 0 20px rgba(239, 68, 68, 0.2); }

.btn-consumer { border: 1px solid var(--color-consumer); color: var(--color-consumer); }
.btn-consumer:hover { background: var(--color-consumer-bg); box-shadow: 0 0 20px rgba(59, 130, 246, 0.2); }

/* Generic Section Layout */
.section-box {
    max-width: 1200px;
    margin: 0 auto 8rem auto;
    padding: 0 2rem;
}

.layout-split {
    display: flex;
    align-items: center;
    gap: 4rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 4rem;
    position: relative;
    overflow: hidden;
}

.layout-split.reverse {
    flex-direction: row-reverse;
}

.content-pane {
    flex: 1;
    position: relative;
    z-index: 10;
}

.visual-pane {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-base);
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    min-height: 350px;
    position: relative;
    overflow: hidden;
}

.visual-pane-consumer {
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1) 0%, var(--bg-base) 70%);
}

/* Ping Header per section */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
}

.local-ping {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Section Specific Styles */
.tag-tech { background: var(--color-tech-bg); color: var(--color-tech); }
.ping-tech .ping-dot { background-color: var(--color-tech); box-shadow: 0 0 8px var(--color-tech); }

.tag-biz { background: var(--color-biz-bg); color: var(--color-biz); }
.ping-biz .ping-dot { background-color: var(--color-biz); box-shadow: 0 0 8px var(--color-biz); }

.tag-consumer { background: var(--color-consumer-bg); color: var(--color-consumer); }
.ping-consumer .ping-dot { background-color: var(--color-consumer); box-shadow: 0 0 8px var(--color-consumer); }

.content-pane h2 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 1rem 0;
    line-height: 1.1;
}

.content-pane p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 2rem 0;
}


/* Visual Pane Examples */
.visual-tech {
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(250, 204, 21, 0.03) 2px, rgba(250, 204, 21, 0.03) 4px);
    padding: 2rem;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    min-width: 0;
}

.code-block {
    font-family: 'JetBrains Mono', monospace;
    color: var(--color-tech);
    font-size: 0.875rem;
    line-height: 1.5;
    white-space: pre;
    opacity: 0.8;
    text-shadow: 0 0 5px rgba(250, 204, 21, 0.2);
    max-width: 100%;
}

.visual-biz {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 80%;
    max-width: 100%;
    min-width: 0;
}

.biz-alert {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-sizing: border-box;
    width: 100%;
}
.biz-alert .icon {
    width: 12px; height: 12px; border-radius: 50%; background: var(--color-biz); box-shadow: 0 0 10px var(--color-biz);
}

.icon-success {
    background: #22c55e !important;
    box-shadow: 0 0 10px #22c55e !important;
}

.biz-alert-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    color: #fff;
    min-width: 0;
    overflow-wrap: anywhere;
}

.visual-consumer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 80%;
    max-width: 100%;
    min-width: 0;
}

.chat-bubble {
    padding: 1rem 1.25rem;
    border-radius: 20px;
    font-size: 0.9375rem;
    max-width: 80%;
    line-height: 1.4;
}

.chat-left {
    background: #27272a;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-left-last {
    border-top-left-radius: 4px;
}

.chat-right {
    background: var(--color-consumer);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* Animation Classes */
.op-0 { opacity: 0; transform: translateY(10px); }
.fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 1rem 1.25rem;
    background: #27272a;
    border-radius: 20px;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    width: fit-content;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--text-secondary);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.coming-soon-banner {
    text-align: center;
    padding: 8rem 2rem;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,0.02));
}

.deployment-text {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.terminal-container {
    display: flex;
    justify-content: center;
}

.terminal-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--color-tech);
    display: inline-flex;
    align-items: center;
    margin: 1rem 0 0 0;
    text-shadow: 0 0 10px rgba(250, 204, 21, 0.3);
    text-align: left;
}

.terminal-text::before {
    content: '>';
    margin-right: 1rem;
    opacity: 0.5;
}

#loading-dots {
    display: inline-block;
    width: 2.5rem; /* Enough space for 3 dots */
    text-align: left;
}

.cursor {
    display: inline-block;
    width: 12px;
    height: clamp(1.5rem, 4vw, 2.5rem);
    background-color: var(--color-tech);
    margin-left: 8px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.coming-soon-banner p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    font-family: 'Inter', sans-serif;
    margin: 0;
}

.footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 0.875rem;
    background: var(--bg-base);
}

.footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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


/* Legal Elements for privacy.html */
.legal-main {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 15vh auto 10vh auto;
    padding: 0 2rem;
}

.legal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 4rem;
}

.legal-card h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.legal-updated {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    color: var(--color-tech);
    margin-bottom: 3rem;
    display: inline-block;
    background: rgba(250, 204, 21, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
}

.legal-card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem 0;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.5rem;
}

.legal-card p, .legal-card li {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0 0 1.5rem 0;
}

.legal-card ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.legal-card li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.legal-card a {
    color: var(--color-tech);
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-card a:hover {
    text-decoration: underline;
}

.legal-kicker {
    margin: 0 0 1rem 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

@media (max-width: 900px) {
    .layout-split, .layout-split.reverse { flex-direction: column; padding: 2rem; gap: 2rem; }
    .visual-pane { width: 100%; min-height: 250px; }
    .hero { margin: 15vh auto 10vh auto; }
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
    .content-pane h2 { font-size: 2rem; }
    .nav { padding: 1rem; }
    .brand { font-size: 0.75rem; }
    .global-ping { font-size: 0.75rem; padding: 0.4rem 0.8rem; }
    .coming-soon-banner { padding: 4rem 1rem; }
    .coming-soon-banner h2 { font-size: 2rem; }
    .terminal-text { font-size: 1.2rem; margin-top: 1.5rem; }
}

@media (max-width: 768px) {
    .section-box {
        padding: 0 1rem;
    }

    .layout-split,
    .layout-split.reverse {
        padding: 1.5rem;
    }

    .visual-pane {
        padding: 1rem;
        min-height: auto;
        box-sizing: border-box;
    }

    .visual-tech,
    .visual-biz,
    .visual-consumer {
        width: 100%;
        max-width: 100%;
    }

    .visual-tech {
        min-height: 320px;
        max-height: 320px;
        padding: 1.25rem;
        overflow: auto;
    }

    .visual-biz,
    .visual-consumer {
        padding: 0.5rem;
    }

    .code-block {
        font-size: 0.8125rem;
        white-space: pre-wrap;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .biz-alert {
        padding: 1rem 0.875rem;
    }

    .legal-card { padding: 2rem; }
}

/* 404 page */
.not-found-main {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    box-sizing: border-box;
}

.not-found-card {
    width: min(760px, 100%);
    background: linear-gradient(180deg, rgba(18, 18, 22, 0.96), rgba(10, 10, 12, 0.98));
    border: 1px solid var(--border-subtle);
    border-radius: 28px;
    padding: 4rem 3rem;
    text-align: center;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.not-found-code {
    margin: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(4rem, 14vw, 7rem);
    line-height: 1;
    letter-spacing: -0.05em;
    color: var(--text-primary);
    text-shadow: 0 0 30px rgba(250, 204, 21, 0.12);
}

.not-found-card h1 {
    margin: 1.25rem 0 1rem;
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.not-found-copy {
    max-width: 520px;
    margin: 0 auto 2.25rem;
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.not-found-actions {
    display: flex;
    justify-content: center;
}

.not-found-actions a {
    text-decoration: none;
    min-width: 180px;
}

@media (max-width: 768px) {
    .not-found-main {
        padding: 7rem 1rem 3rem;
    }

    .not-found-card {
        padding: 2.5rem 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
