﻿/* ==========================================
   0. RESPONSIVE TOKENS (fluid type + spacing)
   ========================================== */
:root {
    --lp-fs-xs: clamp(0.7rem, 0.68rem + 0.1vw, 0.78rem);
    --lp-fs-sm: clamp(0.78rem, 0.75rem + 0.2vw, 0.9rem);
    --lp-fs-md: clamp(0.86rem, 0.82rem + 0.25vw, 1rem);
    --lp-fs-lg: clamp(0.95rem, 0.9rem + 0.35vw, 1.15rem);
    --lp-fs-h4: clamp(0.98rem, 0.92rem + 0.3vw, 1.12rem);
    --lp-fs-h3: clamp(1.15rem, 1rem + 0.7vw, 1.4rem);
    --lp-fs-h2: clamp(1.5rem, 1.1rem + 2vw, 2.75rem);
    --lp-fs-hero-h1: clamp(2rem, 1.2rem + 4.5vw, 4.4rem);
    --lp-fs-hero-h2: clamp(1.1rem, 0.9rem + 1.4vw, 2rem);
    --lp-sp-1: clamp(6px, 0.5vw + 4px, 10px);
    --lp-sp-2: clamp(10px, 1vw + 6px, 16px);
    --lp-sp-3: clamp(14px, 1.5vw + 8px, 24px);
    --lp-sp-4: clamp(18px, 2.5vw + 8px, 32px);
    --lp-sp-5: clamp(28px, 5vw + 8px, 64px);
    --lp-radius: clamp(14px, 1.5vw + 8px, 20px);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
}

/* ==========================================
   1. PREMIUM HERO & AMBIENT ANIMATIONS
   ========================================== */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(125deg, #0F3166 0%, #1B4F9C 45%, #1F62AE 75%, #27A8D8 100%);
    color: #fff;
    padding: clamp(36px, 8vw, 76px) 0 clamp(48px, 10vw, 96px);
    isolation: isolate;
}

    /* Animated Architectural Blueprint Grid Overlay */
    .hero::before {
        content: "";
        position: absolute;
        inset: -50%;
        background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
        background-size: clamp(32px, 5vw, 48px) clamp(32px, 5vw, 48px);
        transform: perspective(600px) rotateX(25deg);
        animation: blueprintDrift 28s linear infinite;
        z-index: -2;
        pointer-events: none;
    }

@keyframes blueprintDrift {
    0% {
        transform: perspective(600px) rotateX(25deg) translateY(0);
    }

    100% {
        transform: perspective(600px) rotateX(25deg) translateY(48px);
    }
}

/* Ambient Glowing Orbs (scale down on small screens) */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(clamp(50px, 8vw, 85px));
    z-index: -1;
    pointer-events: none;
    opacity: 0.55;
    animation: orbFloat 10s ease-in-out infinite alternate;
}

.orb-1 {
    width: clamp(220px, 40vw, 420px);
    height: clamp(220px, 40vw, 420px);
    background: #27A8D8;
    top: -120px;
    left: -100px;
}

.orb-2 {
    width: clamp(200px, 35vw, 360px);
    height: clamp(200px, 35vw, 360px);
    background: #0F9D8A;
    bottom: -140px;
    right: 8%;
    animation-delay: -5s;
}

@keyframes orbFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(35px, -25px) scale(1.1);
    }
}

.hero .in {
    display: grid;
    gap: clamp(28px, 5vw, 48px);
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
}

    .hero .in > * {
        min-width: 0;
    }

@media (min-width: 960px) {
    .hero .in {
        grid-template-columns: 1.12fr 0.88fr;
    }
}

/* Staggered Hero Entrance */
.h-anim {
    opacity: 0;
    transform: translateY(28px);
    animation: heroEntry 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.h-d1 {
    animation-delay: 0.1s;
}

.h-d2 {
    animation-delay: 0.22s;
}

.h-d3 {
    animation-delay: 0.34s;
}

.h-d4 {
    animation-delay: 0.46s;
}

.h-d5 {
    animation-delay: 0.58s;
}

@keyframes heroEntry {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Live Pulse Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--lp-sp-1);
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border-radius: 99px;
    padding: 6px clamp(12px, 2vw, 18px);
    font-size: var(--lp-fs-xs);
    font-weight: 700;
    letter-spacing: 0.06em;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    max-width: 100%;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    flex: none;
    background: #34D399;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
    animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
    70% {
        box-shadow: 0 0 0 10px rgba(52, 211, 153, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
    }
}

.hero h1 {
    font-size: var(--lp-fs-hero-h1);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.035em;
    margin: clamp(14px, 2vw, 20px) 0 10px;
    overflow-wrap: anywhere;
    background: linear-gradient(180deg, #FFFFFF 0%, #E2E8F0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h2 {
    font-size: var(--lp-fs-hero-h2);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin: 0 0 var(--lp-sp-3);
    color: #BAE6FD;
}

.hero p {
    font-size: var(--lp-fs-lg);
    line-height: 1.6;
    max-width: 34em;
    margin: 0 0 var(--lp-sp-4);
    color: rgba(255, 255, 255, 0.9);
}

/* Hero Meta Pills */
.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--lp-sp-1) var(--lp-sp-2);
    margin-bottom: var(--lp-sp-4);
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--lp-sp-1);
    background: rgba(11, 18, 32, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 7px clamp(10px, 1.5vw, 14px);
    border-radius: 10px;
    font-size: var(--lp-fs-sm);
    font-weight: 500;
    backdrop-filter: blur(6px);
    max-width: 100%;
}

    .meta-pill svg {
        width: 16px;
        height: 16px;
        flex: none;
        stroke: #38BDF8;
        fill: none;
        stroke-width: 2;
    }

/* Shimmer CTA Buttons */
.btns {
    display: flex;
    gap: var(--lp-sp-2);
    flex-wrap: wrap;
}

.btn-hero-primary {
    position: relative;
    overflow: hidden;
    background: #fff;
    color: #1550A5;
    font-weight: 700;
    font-size: var(--lp-fs-md);
    border-radius: 12px;
    padding: clamp(12px, 1.5vw + 6px, 15px) clamp(20px, 3vw, 32px);
    min-height: 46px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--lp-sp-1);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}

    .btn-hero-primary::after {
        content: "";
        position: absolute;
        top: 0;
        left: -120%;
        width: 60%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(21, 80, 165, 0.12), transparent);
        transform: skewX(-20deg);
        transition: left 0.6s ease;
    }

    .btn-hero-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 18px 36px rgba(0, 0, 0, 0.3);
    }

        .btn-hero-primary:hover::after {
            left: 140%;
        }

    .btn-hero-primary .arr {
        transition: transform 0.25s ease;
    }

    .btn-hero-primary:hover .arr {
        transform: translateX(5px);
    }

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-weight: 600;
    font-size: var(--lp-fs-md);
    border-radius: 12px;
    padding: clamp(12px, 1.5vw + 6px, 15px) clamp(18px, 2.5vw, 24px);
    min-height: 46px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--lp-sp-1);
    backdrop-filter: blur(8px);
    transition: all 0.25s ease;
}

    .btn-hero-secondary:hover {
        background: rgba(255, 255, 255, 0.18);
        border-color: #fff;
        transform: translateY(-2px);
    }

/* CTA buttons full width on phones */
@media (max-width: 520px) {
    .btns {
        flex-direction: column;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
    }
}

/* ==========================================
   2. 3D INTERACTIVE HERO PANEL CARD
   ========================================== */
.panel-wrap {
    perspective: 1200px;
    min-width: 0;
}

.panel {
    position: relative;
    background: var(--card);
    color: var(--ink);
    border-radius: clamp(16px, 2vw + 8px, 22px);
    padding: clamp(16px, 3vw, 28px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 28px 65px rgba(7, 18, 36, 0.38), 0 0 0 1px rgba(255,255,255,0.08);
    transform-style: preserve-3d;
    transition: transform 0.2s ease-out;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--lp-sp-2);
    margin-bottom: var(--lp-sp-3);
    padding-bottom: var(--lp-sp-2);
    border-bottom: 1px solid var(--line);
}

.panel .logo {
    padding: 0;
    height: clamp(34px, 5vw, 46px);
    width: auto;
    max-width: 60%;
}

.panel-tag {
    font-size: var(--lp-fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 5px 12px;
    border-radius: 99px;
    background: var(--tint);
    color: var(--primary);
    white-space: nowrap;
}

.s {
    position: relative;
    display: flex;
    gap: var(--lp-sp-2);
    background: var(--note);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: clamp(12px, 2vw, 18px);
    margin-bottom: var(--lp-sp-2);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease, box-shadow 0.28s ease;
    overflow: hidden;
}

    .s:last-child {
        margin-bottom: 0;
    }

    .s > div {
        min-width: 0;
    }

    .s::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: linear-gradient(180deg, var(--primary), #27A8D8);
        opacity: 0;
        transition: opacity 0.25s ease;
    }

    .s:hover {
        transform: translateX(6px);
        border-color: var(--primary);
        box-shadow: 0 10px 25px rgba(21, 80, 165, 0.08);
    }

        .s:hover::before {
            opacity: 1;
        }

    .s .n {
        flex: none;
        height: clamp(30px, 4vw, 36px);
        min-width: clamp(34px, 5vw, 42px);
        border-radius: 10px;
        background: var(--tint);
        color: var(--primary);
        font-weight: 800;
        font-size: var(--lp-fs-sm);
        display: grid;
        place-items: center;
        transition: background 0.25s ease, color 0.25s ease;
    }

    .s:hover .n {
        background: var(--primary);
        color: var(--primary-ink);
    }

    .s b {
        display: block;
        font-size: var(--lp-fs-md);
        margin-bottom: 4px;
        color: var(--ink);
    }

    .s span {
        display: block;
        color: var(--muted);
        font-size: var(--lp-fs-sm);
        line-height: 1.5;
        overflow-wrap: anywhere;
    }

.lnk {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--lp-sp-1);
    margin-top: var(--lp-sp-2);
    background: var(--primary);
    color: var(--primary-ink);
    padding: 9px 16px;
    border-radius: 9px;
    font-weight: 600;
    font-size: var(--lp-fs-sm);
    text-decoration: none;
    transition: filter 0.2s ease, transform 0.2s ease;
}

    .lnk:hover {
        filter: brightness(1.1);
        transform: translateY(-1px);
    }

/* ==========================================
   3. SVG SCROLL-DRIVEN "HOW IT WORKS"
   ========================================== */
.how {
    position: relative;
    padding: clamp(44px, 8vw, 88px) 0 clamp(48px, 9vw, 96px);
    overflow: hidden;
}

.how-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto clamp(32px, 6vw, 64px);
}

.eyebrow {
    display: inline-block;
    font-size: var(--lp-fs-xs);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #0F9D8A;
    background: rgba(15, 157, 138, 0.1);
    padding: 5px 14px;
    border-radius: 99px;
    margin-bottom: var(--lp-sp-1);
}

.how h2 {
    font-size: var(--lp-fs-h2);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin: 0 0 var(--lp-sp-2);
    color: var(--ink);
}

.how-header p {
    color: var(--muted);
    font-size: var(--lp-fs-lg);
    margin: 0;
    line-height: 1.6;
}

/* Interactive SVG Journey Container */
.journey-stage {
    position: relative;
    padding: 20px 0;
}

/* Desktop Horizontal SVG Winding Path */
.journey-svg-wrap {
    display: none;
}

@media (min-width: 1050px) {
    .journey-svg-wrap {
        display: block;
        position: absolute;
        top: 52%;
        left: 5%;
        right: 5%;
        transform: translateY(-50%);
        z-index: 0;
        pointer-events: none;
    }

    .journey-svg {
        width: 100%;
        height: 140px;
        overflow: visible;
    }
}

.six {
    position: relative;
    z-index: 1;
    display: grid;
    gap: var(--lp-sp-3);
    grid-template-columns: minmax(0, 1fr);
}

    .six > * {
        min-width: 0;
    }

@media (min-width: 640px) {
    .six {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Tablet range: 3 columns before the full 5-column desktop row */
@media (min-width: 820px) and (max-width: 1049px) {
    .six {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1050px) {
    .six {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 18px;
    }
}

/* Step Card with Scroll Reveal & SVG Draw */
.step-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: clamp(14px, 1.5vw + 8px, 18px);
    padding: clamp(18px, 2.5vw, 26px) clamp(16px, 2vw, 20px) clamp(16px, 2.5vw, 24px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--lp-sp-2);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

    .step-card.is-visible {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    .step-card.is-active {
        border-color: rgba(15, 157, 138, 0.55);
        box-shadow: 0 18px 40px rgba(15, 157, 138, 0.1);
    }

    .step-card:hover {
        transform: translateY(-6px);
        border-color: var(--primary);
        box-shadow: 0 20px 42px rgba(21, 80, 165, 0.12);
    }

/* Top Row Inside Step Card */
.step-top {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.step-icon-box {
    width: clamp(44px, 5vw, 52px);
    height: clamp(44px, 5vw, 52px);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(15, 157, 138, 0.14), rgba(39, 168, 216, 0.14));
    border: 1px solid rgba(15, 157, 138, 0.25);
    display: grid;
    place-items: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.step-card:hover .step-icon-box {
    transform: scale(1.08) rotate(-3deg);
    background: linear-gradient(135deg, #0F9D8A, #1550A5);
}

.step-icon-box svg {
    width: 50%;
    height: 50%;
    stroke: #0F9D8A;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s, stroke 0.3s ease;
}

.step-card.is-visible .step-icon-box svg {
    stroke-dashoffset: 0;
}

.step-card:hover .step-icon-box svg {
    stroke: #fff;
}

.step-num-watermark {
    font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
    font-weight: 800;
    color: var(--line);
    font-variant-numeric: tabular-nums;
    line-height: 1;
    transition: color 0.3s ease;
}

.step-card.is-active .step-num-watermark,
.step-card:hover .step-num-watermark {
    color: rgba(15, 157, 138, 0.35);
}

.step-body small {
    display: inline-block;
    color: #0F9D8A;
    font-weight: 700;
    font-size: var(--lp-fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.step-body strong {
    display: block;
    font-size: var(--lp-fs-h4);
    line-height: 1.35;
    color: var(--ink);
    margin-bottom: 8px;
    overflow-wrap: anywhere;
}

.step-body p {
    margin: 0;
    font-size: var(--lp-fs-sm);
    color: var(--muted);
    line-height: 1.5;
}

/* ==========================================
   4. BENTO DETAILS & SCHEDULE STRIP
   ========================================== */
.bento-sec {
    padding: 0 0 clamp(36px, 7vw, 72px);
}

.bento-grid {
    display: grid;
    gap: var(--lp-sp-3);
    grid-template-columns: minmax(0, 1fr);
}

    .bento-grid > * {
        min-width: 0;
    }

@media (min-width: 860px) {
    .bento-grid {
        grid-template-columns: 1.15fr 0.85fr;
    }
}

.bento-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--lp-radius);
    padding: clamp(18px, 3.5vw, 32px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.04);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

    .bento-card.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

    .bento-card h3 {
        margin: 0 0 8px;
        font-size: var(--lp-fs-h3);
        font-weight: 800;
        letter-spacing: -0.02em;
        line-height: 1.25;
    }

    .bento-card > p {
        margin: 0 0 var(--lp-sp-3);
        color: var(--muted);
        font-size: var(--lp-fs-md);
        line-height: 1.55;
    }

/* Payment Milestones Bar */
.pay-bars {
    display: grid;
    gap: var(--lp-sp-2);
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 540px) {
    .pay-bars {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.pay-box {
    background: var(--note);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: var(--lp-sp-3) var(--lp-sp-2);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

    .pay-box:hover {
        transform: translateY(-4px);
        border-color: var(--primary);
    }

.pay-pct {
    display: block;
    font-size: clamp(1.5rem, 1.2rem + 1vw, 1.85rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 6px;
}

.pay-box strong {
    display: block;
    font-size: var(--lp-fs-sm);
    color: var(--ink);
    margin-bottom: 4px;
}

.pay-box small {
    display: block;
    color: var(--muted);
    font-size: var(--lp-fs-xs);
    line-height: 1.4;
}

/* Onsite Slot Windows Card */
.slot-card {
    background: linear-gradient(135deg, #123770 0%, #1B4F9C 60%, #1F62AE 100%);
    color: #fff;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .slot-card > p {
        color: rgba(255, 255, 255, 0.85);
    }

.slot-list {
    display: grid;
    gap: var(--lp-sp-2);
    margin-bottom: var(--lp-sp-3);
}

.slot-row {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: var(--lp-sp-2) clamp(12px, 2vw, 16px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--lp-sp-1);
    backdrop-filter: blur(6px);
}

    .slot-row b {
        font-size: var(--lp-fs-md);
    }

    .slot-row span {
        font-size: var(--lp-fs-xs);
        background: rgba(15, 157, 138, 0.35);
        border: 1px solid rgba(52, 211, 153, 0.45);
        padding: 4px 10px;
        border-radius: 99px;
        font-weight: 600;
    }

/* ==========================================
   5. PHONE OVERRIDES (smaller type, tighter layout)
   ========================================== */
@media (max-width: 600px) {
    .hero h1 {
        font-size: 1.85rem;
        line-height: 1.12;
    }

    .hero h2 {
        font-size: 1.05rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .meta-pill {
        font-size: 0.76rem;
    }

    .panel-head {
        flex-wrap: wrap;
    }

    .how h2 {
        font-size: 1.5rem;
    }

    .how-header p {
        font-size: 0.9rem;
    }

    .bento-card h3 {
        font-size: 1.15rem;
    }

    /* Hover lift is awkward on touch screens: keep layout stable */
    .s:hover {
        transform: none;
    }
}

/* ==========================================
   6. TOUCH, ACCESSIBILITY & MOTION
   ========================================== */
@media (hover: none) {
    .step-card:hover,
    .pay-box:hover,
    .btn-hero-primary:hover,
    .btn-hero-secondary:hover {
        transform: none;
    }

    .step-card.is-visible:hover {
        transform: translateY(0) scale(1);
    }
}

/* Disable the 3D tilt feel and heavy animation on small / reduced-motion devices */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }

    .h-anim,
    .step-card,
    .bento-card {
        opacity: 1 !important;
        transform: none !important;
    }

    .step-icon-box svg {
        stroke-dashoffset: 0 !important;
    }
}
