/* ============================================
   History Charts — Landing Page Styles (B&W Clean)
   ============================================ */

/* Body override for landing */
.landing-body {
    background: #000;
    overflow-x: hidden;
}

/* LaserFlow Canvas */
.laser-flow {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.laser-flow canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* ========== HERO ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 4rem 2rem 2rem;
    z-index: 1;
    gap: 3rem;
}

.hero-content {
    text-align: center;
    max-width: 700px;
    animation: heroFadeIn 1s ease-out;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
    letter-spacing: 0.04em;
    background: rgba(255, 255, 255, 0.03);
}

.hero-title {
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #fff;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.5) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto 2.5rem;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* B&W Buttons */
.btn-white {
    background: #fff;
    color: #000;
    border: none;
    font-weight: 700;
    letter-spacing: -0.01em;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.08);
}

.btn-white:hover {
    background: #e5e5e5;
    box-shadow: 0 0 60px rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    color: #000;
}

.btn-outline {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.btn-arrow {
    transition: transform 0.2s ease;
    display: inline-block;
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* ========== 3D CARD ========== */
.card-3d-container {
    perspective: 1200px;
    width: 100%;
    max-width: 540px;
    animation: cardFloat 1.2s ease-out 0.3s both;
}

@keyframes cardFloat {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.03, 0.98, 0.52, 0.99);
    will-change: transform;
}

.card-3d-inner {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.card-3d-preview {
    padding: 2rem 1.5rem 1rem;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-flowchart {
    width: 100%;
    height: auto;
    opacity: 0.85;
}

.mini-node rect {
    transition: all 0.3s ease;
}

.card-3d:hover .mini-node rect {
    stroke: rgba(255, 255, 255, 0.2);
}

.card-3d:hover .mn-hub rect {
    stroke: rgba(255, 255, 255, 0.4);
    fill: rgba(255, 255, 255, 0.15);
}

.card-3d-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.card-3d-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

.card-3d-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.4);
    animation: pulse 2s ease infinite;
}

.card-3d-badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ========== FLOATING DOCK ========== */
.floating-dock {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    animation: dockSlideUp 0.6s ease-out 0.5s both;
}

@keyframes dockSlideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.dock-item {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    position: relative;
}

.dock-item svg {
    width: 20px;
    height: 20px;
    transition: inherit;
}

.dock-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transform: translateY(-6px) scale(1.15);
}

.dock-item:hover svg {
    width: 22px;
    height: 22px;
}

/* Dock tooltip */
.dock-item[data-tooltip]::after {
    bottom: calc(100% + 12px);
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 8px;
}

.dock-item-cta {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.dock-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0 4px;
    flex-shrink: 0;
}

/* Dock neighbor magnification effect */
.dock-item.dock-neighbor {
    transform: translateY(-3px) scale(1.07);
}

/* ========== SECTIONS (B&W override) ========== */
.section-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.45);
    max-width: 500px;
    margin: 0 auto;
}

/* Features */
.features {
    position: relative;
    z-index: 1;
    padding: 8rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.feature-card {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-4px);
}

/* Glowing border effect */
.feature-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 21px;
    padding: 1px;
    background: conic-gradient(from var(--glow-angle, 180deg),
            transparent 0%,
            rgba(255, 255, 255, 0.12) 10%,
            rgba(255, 255, 255, 0.35) 20%,
            rgba(255, 255, 255, 0.12) 30%,
            transparent 40%,
            transparent 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.feature-card:hover::before {
    opacity: 1;
    animation: featureGlowRotate 3s linear infinite;
}

@keyframes featureGlowRotate {
    from {
        --glow-angle: 0deg;
    }

    to {
        --glow-angle: 360deg;
    }
}

@property --glow-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.feature-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6;
}

/* How It Works */
.how-it-works {
    position: relative;
    z-index: 1;
    padding: 8rem 0;
}

.steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.step-card {
    flex: 1;
    max-width: 280px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.step-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
}

.step-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.15);
    margin-bottom: 1rem;
    letter-spacing: -0.04em;
}

.step-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.step-card p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6;
}

.step-connector {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

/* CTA */
.cta-section {
    position: relative;
    z-index: 1;
    padding: 6rem 0 8rem;
}

.cta-card {
    text-align: center;
    padding: 4rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: none;
}

.cta-card h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.cta-card p {
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Footer */
.landing-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 2rem 0 6rem;
    /* extra bottom for dock */
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-brand .logo-icon {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-brand .logo-text {
    font-weight: 600;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
    transition: color 0.2s;
    text-decoration: none;
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.footer-copy {
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.2);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 3rem 1.5rem 2rem;
        gap: 2rem;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }

    .card-3d-container {
        max-width: 100%;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        flex-direction: column;
    }

    .step-connector {
        transform: rotate(90deg);
    }

    .floating-dock {
        bottom: 0.75rem;
        padding: 6px 8px;
        gap: 2px;
    }

    .dock-item {
        width: 36px;
        height: 36px;
        padding: 8px;
    }
}