﻿/* ============================================================
   BookingTimeline — v2.4 (galaxy with slow sun-orbit planets)
   - Connectors sized to band pixels so lines start exactly at Qlynic core
   - Meteor (shahab) trail direction fixed for LTR and RTL
   - All classes namespaced (.bt-*) to avoid master conflicts
   ============================================================ */

:root {
    --bt-bg: #0b1022;
    --bt-text: #e7eaf3;
    --bt-muted: #93a4b5;
    --bt-pri: #A78BFA;
    --bt-acc: #22D3EE;
    --bt-border: rgba(148,163,184,.24);
    --bt-card: rgba(17,26,47,.72);
    --bt-shadow: 0 24px 62px rgba(0,0,0,.45);
}

.bt-main {
    background: radial-gradient(1400px 1200px at 85% -10%, rgba(34,211,238,.08), transparent 60%), radial-gradient(1200px 900px at 10% -20%, rgba(167,139,250,.08), transparent 60%), var(--bt-bg);
    color: var(--bt-text);
    min-height: 100%;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    scroll-behavior: smooth;
}

/* Galaxy band */
.bt-galaxy {
    position: relative;
    width: 100%;
    height: 240px; /* fixed band height */
    overflow: hidden; /* confine visuals */
    border-bottom: 1px solid var(--bt-border);
    background: rgba(15,22,38,.60);
}

.bt-galaxy-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.bt-galaxy-orbits {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
}

/* Planets and connectors layer */
.bt-planets {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.bt-connectors {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
    width: 100%;
    height: 100%;
}

/* Nodes */
.bt-node {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    box-shadow: 0 0 18px rgba(34,211,238,.8), 0 0 26px rgba(167,139,250,.6);
    transform: translate(-9px,-9px); /* center tiny node around coords */
}

    .bt-node.bt-core {
        width: 22px;
        height: 22px;
        transform: translate(-11px,-11px);
        background: radial-gradient(circle at 50% 50%, #fff, #a6dfff 60%, transparent 70%);
        left: 50%;
        top: 62%; /* stays steady in the band */
    }

.bt-node-label {
    position: absolute;
    left: 50%;
    top: calc(100% + 6px);
    transform: translateX(-50%);
    color: #cfe3ff;
    font-weight: 700;
    font-size: .78rem;
    white-space: nowrap;
}

/* Planets are tiny glowing spheres; color accents vary via classes */
.bt-planet {
    background: radial-gradient(circle at 50% 50%, #fff, #9bdcff 60%, transparent 70%);
}

    .bt-planet.p2 {
        box-shadow: 0 0 18px rgba(167,139,250,.8), 0 0 26px rgba(34,211,238,.5);
    }

    .bt-planet.p3 {
        box-shadow: 0 0 18px rgba(124,58,237,.7), 0 0 26px rgba(34,197,94,.45);
    }

    .bt-planet.p4 {
        box-shadow: 0 0 18px rgba(14,165,233,.7), 0 0 26px rgba(244,114,182,.4);
    }

    .bt-planet.p5 {
        box-shadow: 0 0 18px rgba(234,88,12,.7), 0 0 26px rgba(14,165,233,.4);
    }

/* Connectors styling (slight glow) */
.bt-connectors line {
    stroke-linecap: round;
    filter: drop-shadow(0 0 4px rgba(34,211,238,.5));
}

/* Meteor (shahab) streak */
.bt-meteor {
    position: absolute;
    left: 0;
    top: 0;
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, rgba(34,211,238,0), rgba(34,211,238,.9), rgba(167,139,250,0));
    box-shadow: 0 0 16px rgba(34,211,238,.9);
    border-radius: 12px;
    pointer-events: none;
    will-change: transform, opacity;
    opacity: .0;
    animation: btMeteorFly var(--bt-meteor-dur, 3000ms) ease-out forwards;
}

    .bt-meteor::after {
        /* luminous head (LTR) */
        content: "";
        position: absolute;
        right: 8px;
        top: -4px;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: radial-gradient(circle at 50% 50%, #fff, #a6dfff 60%, transparent 70%);
        box-shadow: 0 0 16px rgba(34,211,238,.9), 0 0 32px rgba(167,139,250,.6);
    }
    /* RTL meteor: reverse gradient and head position so trail is behind the head */
    .bt-meteor.rtl {
        background: linear-gradient(270deg, rgba(34,211,238,0), rgba(34,211,238,.9), rgba(167,139,250,0));
    }

        .bt-meteor.rtl::after {
            right: auto;
            left: 8px;
        }

@keyframes btMeteorFly {
    0% {
        transform: translate(var(--bt-meteor-start-x, -40px), var(--bt-meteor-start-y, 40px)) rotate(var(--bt-meteor-rot, 12deg));
        opacity: .0;
    }

    10% {
        opacity: .9;
    }

    90% {
        opacity: .9;
    }

    100% {
        transform: translate(var(--bt-meteor-end-x, 100vw), var(--bt-meteor-end-y, 60px)) rotate(var(--bt-meteor-rot, 12deg));
        opacity: .0;
    }
}

/* Sections */
.bt-section {
    margin: 32px auto 46px;
}

.bt-sec-head {
    text-align: center;
    display: grid;
    gap: 8px;
    justify-items: center;
    margin-bottom: 18px;
}

    .bt-sec-head h2 {
        margin: 0;
        font-weight: 900;
        letter-spacing: .2px;
        font-size: clamp(1.6rem,3.4vw,2.2rem);
    }

    .bt-sec-head p {
        margin: 0;
        color: var(--bt-muted);
        max-width: 820px;
    }

.bt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid var(--bt-border);
    text-decoration: none;
    font-weight: 800;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

    .bt-btn.primary {
        background: linear-gradient(135deg, var(--bt-pri), var(--bt-acc));
        color: #0b1022;
        border: 0;
        box-shadow: 0 16px 34px rgba(99,102,241,.35);
    }

    .bt-btn.ghost {
        background: rgba(255,255,255,.06);
        color: #eaf1ff;
        border-color: rgba(148,163,184,.35);
    }

    .bt-btn:hover {
        transform: translateY(-1px);
    }

.bt-hero {
    position: relative;
}

.bt-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 42px 16px 8px;
    text-align: center;
}

.bt-headline {
    margin: 0;
    font-size: clamp(2rem,5vw,3.2rem);
    font-weight: 900;
    background: linear-gradient(90deg,#fff,#e7f0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bt-subhead {
    color: var(--bt-muted);
    max-width: 960px;
    margin: 12px auto 0;
}

.bt-cta {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.bt-how {
    max-width: 1200px;
    padding: 0 16px;
}

.bt-how-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 12px;
}

.bt-how-step {
    border: 1px solid var(--bt-border);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,.05), transparent), var(--bt-card);
    box-shadow: var(--bt-shadow);
    padding: 16px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

    .bt-how-step:hover {
        transform: translateY(-2px);
        border-color: rgba(167,139,250,.42);
        box-shadow: 0 24px 70px rgba(0,0,0,.4);
    }

.bt-step-ico {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--bt-pri), var(--bt-acc));
    color: #0b1022;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 24px rgba(99,102,241,.35);
}

.bt-how-step h3 {
    margin: 10px 0 6px;
    font-weight: 900;
}

.bt-how-step p {
    margin: 0 0 6px;
    color: var(--bt-muted);
}

.bt-muted {
    color: #b5c1d6;
    font-size: .85rem;
}

@media (max-width:1000px) {
    .bt-how-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media (max-width:640px) {
    .bt-how-grid {
        grid-template-columns: 1fr;
    }
}

.bt-gallery {
    max-width: 1200px;
    padding: 0 16px;
}

.bt-card-grid {
    display: grid;
    grid-template-columns: repeat(12,1fr);
    gap: 12px;
}

.bt-card {
    grid-column: span 6;
    border: 1px solid var(--bt-border);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,.05), transparent), var(--bt-card);
    box-shadow: var(--bt-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bt-card-wide {
    grid-column: span 12;
}

.bt-card img {
    display: block;
    width: 100%;
    height: auto;
}

.bt-card-body {
    padding: 12px 14px;
}

    .bt-card-body h3 {
        margin: 0 0 6px;
        font-weight: 900;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .bt-card-body p {
        margin: 0;
        color: var(--bt-muted);
    }

@media (max-width:980px) {
    .bt-card, .bt-card-wide {
        grid-column: span 12;
    }
}

.bt-features {
    max-width: 1100px;
    padding: 0 16px;
}

.bt-feat-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 12px;
}

.bt-feat {
    border: 1px solid var(--bt-border);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,.05), transparent), var(--bt-card);
    padding: 16px;
    box-shadow: var(--bt-shadow);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

    .bt-feat:hover {
        transform: translateY(-2px);
        border-color: rgba(167,139,250,.42);
        box-shadow: 0 24px 70px rgba(0,0,0,.4);
    }

.bt-badge {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--bt-pri), var(--bt-acc));
    color: #0b1022;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 24px rgba(99,102,241,.35);
}

.bt-feat h3 {
    margin: 10px 0 6px;
    font-weight: 900;
}

.bt-feat p {
    margin: 0;
    color: var(--bt-muted);
}

@media (max-width:980px) {
    .bt-feat-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media (max-width:640px) {
    .bt-feat-grid {
        grid-template-columns: 1fr;
    }
}

.bt-cta {
    max-width: 1100px;
    padding: 0 16px;
}

.bt-cta-inner {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 16px;
    align-items: center;
    border: 1px solid var(--bt-border);
    border-radius: 22px;
    background: radial-gradient(800px 260px at 30% 30%, rgba(167,139,250,.20), transparent 70%), radial-gradient(840px 300px at 70% 70%, rgba(34,211,238,.20), transparent 70%), rgba(17,26,47,.90);
    box-shadow: var(--bt-shadow);
    padding: 20px;
}

.bt-cta-copy h2 {
    margin: 0 0 6px;
    font-weight: 900;
    font-size: clamp(1.5rem,3.2vw,2rem);
}

.bt-cta-copy p {
    margin: 0;
    color: var(--bt-muted);
}

.bt-cta-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

@media (max-width:900px) {
    .bt-cta-inner {
        grid-template-columns: 1fr;
    }
}

/* Code styling */
.bt-how code, .bt-gallery code {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    padding: .12em .35em;
    border-radius: .4em;
    color: #e8f3ff;
}
