/* AXIOM Collective — Shared Styles (MASTERPROMPT Design System) */

/* ===== CSS Variables ===== */
:root {
    /* Primary */
    --heritage-green: #183A2B;
    --refined-navy: #08153B;
    --charcoal: #1A1A1A;
    --near-black: #0B0B0B;

    /* Accents */
    --gold: #C8A165;
    --cherry: #640C0C;
    --mocha: #402C21;

    /* Neutrals */
    --ivory: #F2ECE8;
    --text-light: #E8E4DF;
    --muted: #7A7570;

    /* Functional */
    --enhance-green: #2ECC71;
    --gold-glow: rgba(200,161,101,0.12);
    --green-glow: rgba(24,58,43,0.25);
}

/* ===== Base ===== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--near-black);
    color: var(--text-light);
}

::selection {
    background: rgba(200, 161, 101, 0.3);
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--near-black);
}
::-webkit-scrollbar-thumb {
    background: var(--heritage-green);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* ===== Typography Helpers ===== */
.font-mono {
    font-family: 'JetBrains Mono', monospace;
}
.font-caveat {
    font-family: 'Caveat', cursive;
}

/* ===== Glassmorphism Cards ===== */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: all 0.3s ease;
}
.glass-card:hover {
    border-color: rgba(200, 161, 101, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Stagger Delays ===== */
.stagger-1 { transition-delay: 0ms; }
.stagger-2 { transition-delay: 100ms; }
.stagger-3 { transition-delay: 200ms; }
.stagger-4 { transition-delay: 300ms; }
.stagger-5 { transition-delay: 400ms; }

/* ===== Hero Fade-Up Animation ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.fade-up {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}
.fade-up-delay-1 { animation-delay: 0ms; }
.fade-up-delay-2 { animation-delay: 200ms; }
.fade-up-delay-3 { animation-delay: 400ms; }

/* ===== Voice Agent Waveform ===== */
.waveform-bar {
    display: inline-block;
    width: 4px;
    background: var(--gold);
    border-radius: 2px;
    animation: waveform 1.2s ease-in-out infinite;
}
.waveform-bar:nth-child(1) { animation-delay: 0s; height: 12px; }
.waveform-bar:nth-child(2) { animation-delay: 0.1s; height: 20px; }
.waveform-bar:nth-child(3) { animation-delay: 0.2s; height: 32px; }
.waveform-bar:nth-child(4) { animation-delay: 0.3s; height: 24px; }
.waveform-bar:nth-child(5) { animation-delay: 0.15s; height: 28px; }
.waveform-bar:nth-child(6) { animation-delay: 0.25s; height: 16px; }
.waveform-bar:nth-child(7) { animation-delay: 0.35s; height: 36px; }
.waveform-bar:nth-child(8) { animation-delay: 0.05s; height: 20px; }
.waveform-bar:nth-child(9) { animation-delay: 0.2s; height: 28px; }
.waveform-bar:nth-child(10) { animation-delay: 0.1s; height: 14px; }
.waveform-bar:nth-child(11) { animation-delay: 0.3s; height: 24px; }
.waveform-bar:nth-child(12) { animation-delay: 0.15s; height: 32px; }

@keyframes waveform {
    0%, 100% { height: 8px; }
    50% { height: 32px; }
}

/* ===== Chatbot Typing Indicator ===== */
.typing-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    animation: typing 1.4s ease-in-out infinite;
}
.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1); }
}

/* ===== Document Processor Data Flow ===== */
@keyframes dataFlow {
    0% { transform: translateX(-100%); opacity: 0; }
    30% { opacity: 1; }
    70% { opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
}
.data-flow-line {
    animation: dataFlow 2.5s ease-in-out infinite;
}
.data-flow-line:nth-child(2) { animation-delay: 0.5s; }
.data-flow-line:nth-child(3) { animation-delay: 1s; }

/* ===== Stat Badge Pulse ===== */
@keyframes pulseBadge {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
.stat-badge.visible {
    animation: pulseBadge 0.6s ease-in-out 1;
}

/* ===== Count-Up Number ===== */
.count-up {
    font-family: 'JetBrains Mono', monospace;
    font-variant-numeric: tabular-nums;
}

/* ===== Social Proof Ticker ===== */
@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.ticker-track {
    animation: ticker 30s linear infinite;
}
.ticker-track:hover {
    animation-play-state: paused;
}

/* ===== FAQ Accordion ===== */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s ease;
}
.faq-item.active .faq-answer {
    max-height: 300px;
}
.faq-icon {
    transition: transform 0.3s ease;
}
.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* ===== Geometric Hero Animation ===== */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(2deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}
@keyframes pulse-glow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}
.geo-shape {
    position: absolute;
    border: 1px solid rgba(200, 161, 101, 0.2);
    border-radius: 12px;
    animation: float 8s ease-in-out infinite;
}
.geo-shape:nth-child(2) { animation-delay: -2s; animation-duration: 10s; }
.geo-shape:nth-child(3) { animation-delay: -4s; animation-duration: 12s; }
.geo-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    animation: pulse-glow 3s ease-in-out infinite;
}

/* ===== Process Timeline Connector ===== */
.timeline-connector {
    position: relative;
}
.timeline-connector::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--gold), transparent);
    transform: translateY(-50%);
}
.timeline-connector:last-child::after {
    display: none;
}

/* ===== CTA Glow Hover ===== */
.cta-glow {
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(200, 161, 101, 0.2);
}
.cta-glow:hover {
    box-shadow: 0 8px 40px rgba(200, 161, 101, 0.4);
    transform: translateY(-2px);
}

/* ===== Gold Gradient Text ===== */
.gold-gradient-text {
    background: linear-gradient(to right, #C8A165, #E5D4B0, #C8A165);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* ===== Chatbot Demo ===== */
.chat-message {
    animation: fadeUp 0.4s ease forwards;
    opacity: 0;
}
.chat-message:nth-child(1) { animation-delay: 0s; }
.chat-message:nth-child(2) { animation-delay: 0.8s; }
.chat-message:nth-child(3) { animation-delay: 1.6s; }
.chat-message:nth-child(4) { animation-delay: 2.4s; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .waveform-bar {
        width: 3px;
    }
    .geo-shape {
        display: none;
    }
}
