/* ==========================================
   AI Hybrid Voice Caller - Documentation Styles
   Modern glassmorphism design with animations
   ========================================== */

/* CSS Variables */
:root {
    /* Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);

    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);

    --accent-primary: #8b5cf6;
    --accent-secondary: #06b6d4;
    --accent-gradient: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);

    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing */
    --container-max: 1200px;
    --section-padding: 100px;

    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
}

.logo-icon {
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

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

.nav-btn {
    background: var(--accent-gradient);
    padding: 8px 16px !important;
    border-radius: 8px;
    color: white !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: float 8s ease-in-out infinite;
}

.hero-glow-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-primary);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.hero-glow-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-secondary);
    bottom: -100px;
    left: -100px;
    animation-delay: 2s;
}

.hero-glow-3 {
    width: 300px;
    height: 300px;
    background: #ec4899;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 4s;
    opacity: 0.2;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, 20px);
    }
}

.hero-content {
    max-width: 650px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-bottom: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

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

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

.btn-secondary:hover {
    background: var(--bg-card-hover);
}

/* Hero Visual - Aura Morph */
@keyframes heroFloat {

    0%,
    100% {
        transform: translateY(-50%) translateX(0);
    }

    50% {
        transform: translateY(-52%) translateX(10px);
    }
}

.hero-visual {
    position: absolute;
    right: 5%;
    top: 30%;
    transform: translateY(-50%);
    z-index: 1;
    animation: heroFloat 8s ease-in-out infinite;
}

.aura-morph-container {
    position: relative;
    width: 600px;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#auraMorphCanvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.aura-morph-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
    z-index: 10;
    background: rgba(15, 15, 25, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 2.5rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 240px;
    height: 240px;
}

.aura-title {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.9);
    animation: titlePulse 3s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.aura-morph-container:hover .aura-title {
    transform: scale(1.1);
}

.aura-subtitle {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-top: 8px;
}

@keyframes titlePulse {

    0%,
    100% {
        opacity: 0.9;
        text-shadow: 0 0 20px rgba(139, 92, 246, 0.8);
    }

    50% {
        opacity: 1;
        text-shadow: 0 0 40px rgba(139, 92, 246, 1), 0 0 60px rgba(6, 182, 212, 0.5);
    }
}

/* Keep legacy styles for potential reuse */
.phone-mockup {
    width: 280px;
    height: 560px;
    background: linear-gradient(145deg, #1a1a2e 0%, #0d0d14 100%);
    border-radius: 40px;
    padding: 12px;
    box-shadow:
        0 50px 100px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #12121a 0%, #0a0a0f 100%);
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.call-ui {
    text-align: center;
    padding: 40px 20px;
}

.caller-avatar {
    width: 100px;
    height: 100px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 24px;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
    }

    50% {
        box-shadow: 0 0 60px rgba(139, 92, 246, 0.8);
    }
}

.caller-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.call-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--success);
    font-size: 0.9rem;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

.call-wave {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 40px;
}

.call-wave span {
    width: 4px;
    height: 20px;
    background: var(--accent-gradient);
    border-radius: 4px;
    animation: wave 1s ease-in-out infinite;
}

.call-wave span:nth-child(1) {
    animation-delay: 0s;
}

.call-wave span:nth-child(2) {
    animation-delay: 0.1s;
}

.call-wave span:nth-child(3) {
    animation-delay: 0.2s;
}

.call-wave span:nth-child(4) {
    animation-delay: 0.3s;
}

.call-wave span:nth-child(5) {
    animation-delay: 0.4s;
}

@keyframes wave {

    0%,
    100% {
        height: 20px;
    }

    50% {
        height: 40px;
    }
}

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

.section-dark {
    background: var(--bg-secondary);
}

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

.section-badge {
    display: inline-block;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Architecture Diagram */
.architecture-diagram {
    max-width: 800px;
    margin: 0 auto;
}

.arch-layer {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.arch-layer-middle {
    align-items: center;
}

.arch-node {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px 32px;
    text-align: center;
    transition: all var(--transition-base);
    min-width: 160px;
}

.arch-node:hover {
    transform: translateY(-4px);
    box-shadow: var(--glass-shadow);
}

.arch-trigger {
    border-color: var(--accent-primary);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.2);
}

.arch-service {
    border-color: var(--info);
}

.arch-engine {
    border-color: var(--warning);
}

.arch-ai {
    border-color: var(--success);
}

.arch-db {
    border-color: var(--accent-secondary);
}

.arch-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.arch-label {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
}

.arch-sublabel {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.arch-connector {
    display: flex;
    justify-content: center;
    padding: 16px 0;
}

.connector-arrow {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.arch-divider {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 28px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255, 255, 255, 0.1), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.service-card:hover::after {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--glass-shadow);
    border-color: rgba(255, 255, 255, 0.15);
}

.service-card-wide {
    grid-column: span 2;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.service-icon svg {
    width: 24px;
    height: 24px;
}

.service-icon-twilio {
    background: linear-gradient(135deg, #f22f46 0%, #d32011 100%);
}

.service-icon-gemini {
    background: linear-gradient(135deg, #4285f4 0%, #1a73e8 100%);
}

.service-icon-mistral {
    background: linear-gradient(135deg, #ff7000 0%, #ff5500 100%);
}

.service-icon-openai {
    background: linear-gradient(135deg, #10a37f 0%, #0d8a6a 100%);
}

.service-icon-mongo {
    background: linear-gradient(135deg, #00684a 0%, #00ed64 100%);
}

.service-title {
    font-size: 1.1rem;
    font-weight: 600;
    flex: 1;
}

.service-tag {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tag-primary {
    background: rgba(139, 92, 246, 0.2);
    color: var(--accent-primary);
}

.tag-success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.tag-warning {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.tag-neutral {
    background: rgba(156, 163, 175, 0.2);
    color: #9ca3af;
}

.tag-info {
    background: rgba(59, 130, 246, 0.2);
    color: var(--info);
}

.service-body {
    margin-bottom: 20px;
}

.service-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-features li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-features li::before {
    content: '•';
    color: var(--accent-primary);
}

.service-config {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
}

.service-config code {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-secondary);
}

/* MongoDB Collections */
.mongo-collections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.collection {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 12px 16px;
}

.collection-icon {
    font-size: 1.25rem;
}

.collection-name {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

.collection-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: auto;
}

/* Hybrid Engine */
.engine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
}

.engine-path {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 32px;
}

.engine-fast {
    border-color: rgba(245, 158, 11, 0.3);
}

.engine-smart {
    border-color: rgba(16, 185, 129, 0.3);
}

.path-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.path-icon {
    font-size: 1.5rem;
}

.path-title {
    font-size: 1.25rem;
    font-weight: 600;
    flex: 1;
}

.path-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.path-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

/* Intent Table */
.intent-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.intent-row {
    display: grid;
    grid-template-columns: 100px 1fr 100px;
    gap: 16px;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.85rem;
}

.intent-name {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--accent-primary);
}

.intent-triggers {
    color: var(--text-secondary);
}

.intent-action {
    color: var(--text-muted);
    text-align: right;
}

.intent-unknown {
    border: 1px dashed var(--glass-border);
}

.intent-unknown .intent-action {
    color: var(--success);
}

/* AI Flow */
.ai-flow {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.ai-step {
    display: flex;
    justify-content: center;
}

.ai-bubble {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 16px 20px;
    max-width: 360px;
    position: relative;
}

.ai-patient {
    margin-right: auto;
    border-bottom-left-radius: 4px;
}

.ai-bot {
    margin-left: auto;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-bottom-right-radius: 4px;
}

.bubble-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.ai-process {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.ai-process .arrow {
    color: var(--warning);
}

/* Fallback Chain */
.fallback-chain {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
}

.chain-title {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.chain-items {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.chain-item {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
}

.chain-primary {
    background: rgba(59, 130, 246, 0.2);
    color: var(--info);
}

.chain-fallback1 {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.chain-fallback2 {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.chain-error {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
}

.chain-arrow {
    color: var(--text-muted);
}

/* Timeline */
.timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--glass-border);
}

.timeline-item {
    display: flex;
    gap: 24px;
    padding-bottom: 32px;
    position: relative;
}

.timeline-marker {
    width: 42px;
    height: 42px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.timeline-content {
    flex: 1;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px 24px;
}

.timeline-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.timeline-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.timeline-code {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--accent-secondary);
    white-space: pre-wrap;
}

.speech-bubble {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(6, 182, 212, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 16px;
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-secondary);
}

/* API Table */
.api-table {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
}

.api-row {
    display: grid;
    grid-template-columns: 100px 1fr 1fr;
    gap: 16px;
    padding: 16px 24px;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.api-row:last-child {
    border-bottom: none;
}

.api-header {
    background: rgba(0, 0, 0, 0.2);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.api-endpoint code {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-secondary);
}

.api-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.method-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: var(--font-mono);
}

.method-get {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.method-post {
    background: rgba(59, 130, 246, 0.2);
    color: var(--info);
}

.api-cta {
    text-align: center;
    margin-top: 32px;
}

/* Capabilities Grid */
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 12px;
}

.capability {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 16px 20px;
    transition: all var(--transition-base);
}

.capability:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
}

.capability-icon {
    font-size: 1.25rem;
}

.capability-name {
    flex: 1;
    font-size: 0.9rem;
}

.capability-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
}

.status-working {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.status-pending {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

/* Quick Start */
.quickstart-steps {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.quickstart-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--accent-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.code-block {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 14px 18px;
}

.code-block code {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-secondary);
}

.copy-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    transition: color var(--transition-fast);
}

.copy-btn:hover {
    color: var(--text-primary);
}

.copy-btn.copied {
    color: var(--success);
}

/* Cost Table */
.cost-table {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

.cost-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    padding: 16px 24px;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.cost-row:last-child {
    border-bottom: none;
}

.cost-header {
    background: rgba(0, 0, 0, 0.2);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.cost-service {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.cost-icon {
    font-size: 1.1rem;
}

.cost-free {
    color: var(--success);
    font-size: 0.9rem;
}

.cost-paid {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--glass-border);
    padding: 60px 24px 30px;
}

.footer-content {
    text-align: center;
    margin-bottom: 40px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Advanced Animations */
.reveal-3d {
    opacity: 0;
    transform: perspective(1000px) rotateX(10deg) translateY(40px) scale(0.95);
    filter: blur(10px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform, opacity, filter;
}

.reveal-3d.visible {
    opacity: 1;
    transform: perspective(1000px) rotateX(0) translateY(0) scale(1);
    filter: blur(0);
}

/* Custom Cursor */
#customCursor {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1),
        width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
    transform: translate(-50%, -50%);
}

#customCursor.active {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Responsive */
@media (max-width: 1200px) {
    .aura-morph-container {
        width: 500px;
        height: 500px;
    }
}

@media (max-width: 1024px) {
    .hero-visual {
        display: none;
    }

    .hero {
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-actions {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .service-card-wide {
        grid-column: span 1;
    }

    .engine-grid {
        grid-template-columns: 1fr;
    }

    .intent-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .intent-action {
        text-align: left;
    }

    .api-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .api-header {
        display: none;
    }

    .cost-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .cost-header {
        display: none;
    }

    .collection-desc {
        display: none;
    }
}

/* Animation delays */
.animate-on-scroll[style*="--delay: 0"] {
    transition-delay: 0ms;
}

.animate-on-scroll[style*="--delay: 1"] {
    transition-delay: 100ms;
}

.animate-on-scroll[style*="--delay: 2"] {
    transition-delay: 200ms;
}

.animate-on-scroll[style*="--delay: 3"] {
    transition-delay: 300ms;
}

.animate-on-scroll[style*="--delay: 4"] {
    transition-delay: 400ms;
}

.animate-on-scroll[style*="--delay: 5"] {
    transition-delay: 500ms;
}

.animate-on-scroll[style*="--delay: 6"] {
    transition-delay: 600ms;
}

.animate-on-scroll[style*="--delay: 7"] {
    transition-delay: 700ms;
}

.animate-on-scroll[style*="--delay: 8"] {
    transition-delay: 800ms;
}

.animate-on-scroll[style*="--delay: 9"] {
    transition-delay: 900ms;
}

.animate-on-scroll[style*="--delay: 10"] {
    transition-delay: 1000ms;
}

/* Explosion Transition Overlay */
#explosionOverlay {
    position: fixed;
    inset: 0;
    background: #0a0a0f;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

#explosionOverlay.active {
    opacity: 1;
    pointer-events: all;
}

.going-text {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
}

#explosionOverlay.active .going-text {
    opacity: 1;
    transform: scale(1);
    animation: textGlow 2s ease-in-out infinite;
}

@keyframes textGlow {

    0%,
    100% {
        text-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
    }

    50% {
        text-shadow: 0 0 60px rgba(139, 92, 246, 0.8), 0 0 100px rgba(6, 182, 212, 0.3);
    }
}