/* ========================================
   PHP-Retry Action — Landing Page Styles
   ======================================== */

/* --- Base --- */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #030303;
    color: #f4f4f5;
    scroll-behavior: smooth;
}

/* Hide scrollbars but keep scroll */
*,
*::before,
*::after {
    scrollbar-width: none;
}

*::-webkit-scrollbar {
    display: none;
}

.mono {
    font-family: 'JetBrains Mono', monospace;
}

/* --- Hero --- */
.hero-title {
    line-height: 1.1 !important;
    background: linear-gradient(to bottom, #ffffff 40%, #71717a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Glass Card --- */
.glass {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- Sections --- */
section {
    scroll-margin-top: 5rem;
}

/* ========================================
   Pipeline / Timeline
   ======================================== */
.pipeline-container {
    position: relative;
    padding-left: 28px;
}

@media (min-width: 768px) {
    .pipeline-container {
        padding-left: 50px;
    }
}

.track {
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: transparent;
}

@media (min-width: 768px) {
    .track {
        left: 20px;
    }
}

.track-bg {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    background: #18181b;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to bottom, #3b82f6, #ec4899, #8b5cf6);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
    transition: height 0.1s linear;
    z-index: 2;
}

/* --- Dots --- */
.dot {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #030303;
    border: 2px solid #27272a;
    border-radius: 50%;
    z-index: 10;
    transition: all 0.3s ease;
}

.dot.active {
    border-color: #3b82f6;
    background: #3b82f6;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.9);
    transform: translate(-50%, -50%) scale(1.3);
}

/* --- Step Nodes --- */
.step-node {
    position: relative;
    margin-bottom: 3.5rem;
    opacity: 0.15;
    transition: opacity 0.4s ease;
    transition-delay: 0.1s;
}

.step-node:last-child {
    margin-bottom: 0;
}

.step-node.active {
    opacity: 1;
}

/* ========================================
   Terminal Card
   ======================================== */
.term-line {
    opacity: 0;
    line-height: 1.8;
    max-height: 0;
    overflow: hidden;
    transition:
        opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.term-line.visible {
    opacity: 1;
    max-height: 2em;
}

.term-morph {
    line-height: 1.8;
}

.term-morph .morph-inner {
    transition: opacity 0.25s ease;
}

.term-morph .morph-inner.swapping {
    opacity: 0;
}

.term-content {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========================================
   Table Scroll Hint
   ======================================== */
.table-fade {
    position: relative;
    overflow: hidden;
    border-radius: inherit;
}

.table-fade::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to right, transparent, #030303);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
}

.table-fade.has-overflow::after {
    opacity: 1;
}

.table-fade.scrolled-end::after {
    opacity: 0;
}

.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
