/* =================================================================
   BORING MARKETING LANDING PAGE STYLES
   Analytical Serenity: Confident, muted, with strategic amber warmth
   ================================================================= */

/* Animation keyframes */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-subtle {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes draw-line {
    from {
        stroke-dashoffset: 1000;
    }
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes node-appear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation classes */
.animate-fade-in {
    animation: fade-in 0.6s ease-out forwards;
    opacity: 0;
}

.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out forwards;
    opacity: 0;
}

.animation-delay-100 {
    animation-delay: 100ms;
}

.animation-delay-200 {
    animation-delay: 200ms;
}

.animation-delay-300 {
    animation-delay: 300ms;
}

.animation-delay-400 {
    animation-delay: 400ms;
}

.animation-delay-500 {
    animation-delay: 500ms;
}

/* Hero constellation nodes */
.hero-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: node-appear 0.5s ease-out forwards;
}

.hero-node[data-delay="0"] { animation-delay: 0.3s; }
.hero-node[data-delay="100"] { animation-delay: 0.4s; }
.hero-node[data-delay="200"] { animation-delay: 0.5s; }
.hero-node[data-delay="300"] { animation-delay: 0.6s; }
.hero-node[data-delay="400"] { animation-delay: 0.7s; }
.hero-node[data-delay="500"] { animation-delay: 0.8s; }
.hero-node[data-delay="700"] { animation-delay: 1s; }

.hero-node-inner {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-node-data .hero-node-inner:hover {
    transform: scale(1.1);
}

.hero-node-label {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* Synthesis node (central) */
.hero-node-inner-synthesis {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #D97706, #B45309);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(217, 119, 6, 0.3);
    animation: pulse-subtle 2s ease-in-out infinite;
}

.hero-node-label-synthesis {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-brand);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Output node (brief) */
.hero-node-inner-output {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    background: var(--card);
    border: 2px solid var(--accent-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-brand);
    box-shadow: var(--shadow-elevated);
}

.hero-node-label-output {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--foreground);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Hero connection lines */
#hero-lines line {
    stroke: var(--border);
    stroke-width: 1;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw-line 1.5s ease-out forwards;
    animation-delay: 0.8s;
}

#hero-lines line.active {
    stroke: var(--accent-brand);
    stroke-width: 2;
    animation-delay: 1.2s;
}

/* Scroll-triggered animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Flow step stagger */
.flow-step {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.flow-step.visible {
    opacity: 1;
    transform: translateY(0);
}

.flow-step[data-step="1"].visible { transition-delay: 0ms; }
.flow-step[data-step="2"].visible { transition-delay: 150ms; }
.flow-step[data-step="3"].visible { transition-delay: 300ms; }

/* Brief demo opportunity hover states */
.brief-opportunity {
    transition: all 0.2s ease-out;
}

.brief-opportunity:hover {
    transform: translateX(4px);
}

/* Dashboard cards in problem section */
.dashboard-card {
    transition: opacity 0.3s ease-out;
}

/* Pricing toggle active state */
#billing-toggle[aria-checked="true"] {
    background-color: var(--accent-brand);
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Focus styles */
.btn:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent-brand);
    outline-offset: 2px;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .hero-node {
        transform: scale(0.85);
    }

    .hero-node-inner-synthesis {
        width: 3rem;
        height: 3rem;
    }

    .hero-node-inner-output {
        width: 2.75rem;
        height: 2.75rem;
    }
}

/* =================================================================
   ASCII ART VISUALIZATION
   Terminal-style animated data synthesis
   ================================================================= */

.ascii-container {
    position: relative;
    padding: 2rem 1.5rem 1.5rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg,
        rgba(15, 23, 42, 0.95) 0%,
        rgba(30, 41, 59, 0.85) 100%);
    border: 1px solid rgba(148, 163, 184, 0.15);
    box-shadow:
        0 0 0 1px rgba(148, 163, 184, 0.05),
        0 25px 60px -15px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    overflow: hidden;
}

/* Subtle scanline effect */
.ascii-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    pointer-events: none;
    z-index: 1;
}

/* Terminal header dots */
.ascii-container::after {
    content: '● ● ●';
    position: absolute;
    top: 0.75rem;
    left: 1rem;
    font-size: 0.6rem;
    letter-spacing: 0.3rem;
    color: rgba(148, 163, 184, 0.5);
}

#ascii-art {
    position: relative;
    z-index: 2;
    margin-top: 1rem;
    white-space: pre;
    line-height: 1.4;
    letter-spacing: 0.01em;
    transform: scale(0.78);
    transform-origin: top left;
}

/* ASCII character colors */
.ascii-input {
    color: #94a3b8; /* slate-400 */
}

.ascii-label {
    color: #64748b; /* slate-500 */
}

.ascii-stream {
    color: #475569; /* slate-600 */
    transition: color 0.1s ease;
}

.ascii-stream.active {
    color: #94a3b8;
}

.ascii-box {
    color: #d97706; /* amber-600 */
}

.ascii-box-inner {
    color: #f59e0b; /* amber-500 */
}

.ascii-progress {
    color: #d97706;
}

.ascii-output {
    color: #22c55e; /* green-500 */
}

.ascii-output-label {
    color: #16a34a; /* green-600 */
}

.ascii-arrow {
    color: #d97706;
}

/* Blinking cursor */
.ascii-cursor {
    animation: ascii-blink 1s step-end infinite;
}

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

/* Data flow animation */
@keyframes ascii-flow {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

.ascii-flow-char {
    animation: ascii-flow 0.8s ease-in-out infinite;
}

/* Staggered flow timing */
.ascii-flow-char:nth-child(1) { animation-delay: 0ms; }
.ascii-flow-char:nth-child(2) { animation-delay: 100ms; }
.ascii-flow-char:nth-child(3) { animation-delay: 200ms; }
.ascii-flow-char:nth-child(4) { animation-delay: 300ms; }
.ascii-flow-char:nth-child(5) { animation-delay: 400ms; }

/* Processing spinner characters */
.ascii-spinner {
    display: inline-block;
}

/* Glow effect on synthesis box */
.ascii-synthesis-glow {
    text-shadow: 0 0 10px rgba(217, 119, 6, 0.5);
}

/* Mobile adjustments for ASCII */
@media (max-width: 640px) {
    .ascii-container {
        padding: 1.5rem 1rem 1rem;
    }

    #ascii-art {
        transform: scale(0.9);
        transform-origin: top left;
    }
}

@media (max-width: 480px) {
    .ascii-container {
        padding: 1.25rem 0.75rem 0.75rem;
    }

    #ascii-art {
        transform: scale(0.75);
    }
}
