/* Premium landing page (index.php only). Builds on the tokens in style.css and
   shares the navy / coral / gold language of dashboard-premium.css. */

html, body { overflow-x: clip; }

/* The page renders its own navbar; hide the stock guest one. */
.navbar { display: none !important; }

.hp {
    --hp-ink: #0B1029;
    --hp-navy: #141B3C;
    --hp-navy-2: #1B2350;
    --hp-coral: #FF6B4A;
    --hp-coral-2: #E85A3A;
    --hp-gold: #F5C26B;
    --hp-line: #E7E8F1;
    --hp-soft: #F7F8FC;
    --hp-muted: #5B6172;
    --hp-radius: 22px;
    --hp-shadow: 0 1px 2px rgb(11 16 41 / 0.04), 0 8px 24px -12px rgb(11 16 41 / 0.14);
    --hp-shadow-hover: 0 2px 4px rgb(11 16 41 / 0.05), 0 22px 40px -18px rgb(11 16 41 / 0.28);

    /* Break out of the header's centred .container so sections can run full width. */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-top: -2rem;
    color: var(--text-dark);
    font-family: var(--font-body);
}

.hp-wrap { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.hp h1, .hp h2, .hp h3, .hp h4 { font-family: var(--font-display); letter-spacing: -0.02em; }

/* ---------- Buttons ---------- */
.hp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.95rem 1.6rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}
.hp-btn:hover { transform: translateY(-2px); }
.hp-btn:focus-visible { outline: 3px solid var(--hp-gold); outline-offset: 3px; }
.hp-btn-coral {
    background: linear-gradient(135deg, var(--hp-coral), var(--hp-coral-2));
    color: #fff;
    box-shadow: 0 10px 24px -10px rgb(255 107 74 / 0.75);
}
.hp-btn-coral:hover { box-shadow: 0 16px 30px -12px rgb(255 107 74 / 0.85); color: #fff; }
.hp-btn-ghost {
    background: rgb(255 255 255 / 0.06);
    border-color: rgb(255 255 255 / 0.22);
    color: #fff;
}
.hp-btn-ghost:hover { background: rgb(255 255 255 / 0.12); color: #fff; }
.hp-btn-light { background: #fff; color: var(--hp-navy); box-shadow: 0 10px 24px -14px rgb(11 16 41 / 0.6); }
.hp-btn-light:hover { color: var(--hp-navy); }
.hp-btn-sm { padding: 0.65rem 1.1rem; font-size: 0.88rem; }

/* ---------- Hero ---------- */
.hp-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(900px 480px at 85% -10%, rgb(255 107 74 / 0.22), transparent 60%),
        radial-gradient(700px 420px at -10% 110%, rgb(108 123 201 / 0.22), transparent 60%),
        linear-gradient(180deg, var(--hp-ink) 0%, var(--hp-navy) 100%);
    color: #fff;
    padding-bottom: 5.5rem;
}
.hp-hero::before {
    /* fine dot grid */
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgb(255 255 255 / 0.07) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
    pointer-events: none;
}

.hp-nav {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 0;
}
.hp-brand { display: flex; align-items: center; gap: 0.65rem; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.hp-brand img { height: 40px; width: 40px; object-fit: cover; border-radius: 11px; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.15); }
.hp-brand:hover { color: #fff; }
.hp-nav-links { display: flex; align-items: center; gap: 0.35rem; }
.hp-nav-links > a:not(.hp-btn) {
    color: rgb(255 255 255 / 0.78);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
}
.hp-nav-links > a:not(.hp-btn):hover { color: #fff; background: rgb(255 255 255 / 0.08); }

.hp-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 3.5rem;
    align-items: center;
    padding-top: 3.5rem;
}

.hp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 0.9rem 0.4rem 0.45rem;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.07);
    border: 1px solid rgb(255 255 255 / 0.14);
    font-size: 0.82rem;
    font-weight: 600;
    color: rgb(255 255 255 / 0.88);
    margin-bottom: 1.5rem;
}
.hp-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}
.hp-meta .hp-eyebrow { margin-bottom: 0; }
.hp-clock {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.07);
    border: 1px solid rgb(255 255 255 / 0.14);
    font-size: 0.82rem;
    font-weight: 600;
    color: rgb(255 255 255 / 0.88);
    white-space: nowrap;
}
.hp-clock i { color: var(--hp-gold); }
.hp-clock-sep { width: 4px; height: 4px; border-radius: 50%; background: rgb(255 255 255 / 0.35); }
#hpClockTime { font-family: var(--font-mono); font-variant-numeric: tabular-nums; min-width: 7.6ch; }
.hp-clock-tz {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    padding: 0.12rem 0.4rem;
    border-radius: 6px;
    background: rgb(245 194 107 / 0.16);
    color: var(--hp-gold);
}
.hp-eyebrow-dot {
    display: inline-grid;
    place-items: center;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: rgb(16 185 129 / 0.18);
    color: #34D399;
    font-size: 0.7rem;
}

.hp-hero h1 {
    font-size: clamp(2.3rem, 5.2vw, 3.9rem);
    line-height: 1.04;
    font-weight: 800;
    margin: 0 0 1.25rem;
    color: #fff;
}
.hp-hero h1 em {
    font-style: normal;
    background: linear-gradient(100deg, var(--hp-coral) 10%, var(--hp-gold) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hp-lead {
    font-size: 1.1rem;
    line-height: 1.65;
    color: rgb(255 255 255 / 0.74);
    max-width: 34rem;
    margin: 0 0 2rem;
}
.hp-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.hp-assure {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.4rem;
    margin-top: 2.1rem;
    padding: 0;
    font-size: 0.88rem;
    color: rgb(255 255 255 / 0.7);
}
.hp-assure li { display: flex; align-items: center; gap: 0.5rem; }
.hp-assure i { color: var(--hp-gold); }

/* Hero product mockup */
.hp-visual { position: relative; padding: 1.5rem 0.5rem 2.5rem; }
.hp-visual::before {
    content: "";
    position: absolute;
    inset: 8% 6% 4% 10%;
    background: radial-gradient(closest-side, rgb(255 107 74 / 0.35), transparent);
    filter: blur(30px);
}
.hp-card {
    position: relative;
    background: #fff;
    color: var(--text-dark);
    border-radius: var(--hp-radius);
    padding: 1.4rem;
    box-shadow: 0 30px 60px -24px rgb(0 0 0 / 0.55), 0 0 0 1px rgb(255 255 255 / 0.4);
    max-width: 400px;
    margin-left: auto;
    transform: rotate(-1.2deg);
}
.hp-card-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 1.15rem; }
.hp-card-title { display: flex; align-items: center; gap: 0.7rem; font-weight: 700; font-size: 0.98rem; }
.hp-card-icon {
    display: grid; place-items: center;
    width: 40px; height: 40px;
    border-radius: 12px;
    background: #FFF1EC;
    color: var(--hp-coral);
    font-size: 1.1rem;
}
.hp-card-sub { display: block; font-weight: 500; font-size: 0.78rem; color: var(--hp-muted); }
.hp-chip {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    background: #E8FBF3;
    color: #047857;
}
.hp-fields { display: grid; gap: 0.15rem; border-top: 1px dashed var(--hp-line); border-bottom: 1px dashed var(--hp-line); padding: 0.75rem 0; }
.hp-field { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.86rem; padding: 0.3rem 0; }
.hp-field span:first-child { color: var(--hp-muted); }
.hp-field span:last-child { font-family: var(--font-mono); font-weight: 600; }
.hp-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 1rem; font-size: 0.82rem; color: var(--hp-muted); }
.hp-card-foot b { color: var(--text-dark); }
.hp-pdf { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.5rem 0.85rem; border-radius: 10px; background: var(--hp-navy); color: #fff; font-weight: 700; font-size: 0.8rem; }

.hp-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: rgb(255 255 255 / 0.96);
    color: var(--text-dark);
    border-radius: 16px;
    padding: 0.7rem 0.95rem;
    box-shadow: 0 18px 36px -16px rgb(0 0 0 / 0.55);
    font-size: 0.82rem;
    animation: hp-bob 6s ease-in-out infinite;
}
.hp-float b { display: block; font-size: 0.9rem; }
.hp-float small { color: var(--hp-muted); }
.hp-float-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-size: 0.95rem; }
.hp-float-wallet { left: 0; bottom: 0.5rem; }
.hp-float-wallet .hp-float-icon { background: #E8FBF3; color: #059669; }
.hp-float-data { right: -0.5rem; top: -0.25rem; animation-delay: -3s; }
.hp-float-data .hp-float-icon { background: #FFF6E5; color: #B7791F; }
@keyframes hp-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Networks strip ---------- */
.hp-networks {
    position: relative;
    z-index: 2;
    margin-top: -2.4rem;
}
.hp-networks-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    background: #fff;
    border: 1px solid var(--hp-line);
    border-radius: var(--hp-radius);
    box-shadow: var(--hp-shadow);
    padding: 1.15rem 1.6rem;
}
.hp-networks-label { font-size: 0.85rem; font-weight: 600; color: var(--hp-muted); }
.hp-networks-logos { display: flex; align-items: center; flex-wrap: wrap; gap: 1.6rem; }
.hp-networks-logos img { height: 34px; width: auto; border-radius: 8px; filter: grayscale(0.15); opacity: 0.92; transition: transform 0.2s ease, opacity 0.2s ease; }
.hp-networks-logos img:hover { opacity: 1; transform: scale(1.06); }

/* ---------- Sections ---------- */
.hp-section { padding: 5.5rem 0; }
.hp-section-soft { background: var(--hp-soft); }
.hp-head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.hp-kicker {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--hp-coral);
    margin-bottom: 0.8rem;
}
.hp-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.12; font-weight: 800; margin: 0 0 0.85rem; color: var(--hp-navy); }
.hp-head p { color: var(--hp-muted); font-size: 1.04rem; line-height: 1.6; margin: 0; }

/* Services */
.hp-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.hp-svc {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--hp-line);
    border-radius: 18px;
    padding: 1.4rem 1.3rem 1.2rem;
    box-shadow: var(--hp-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    color: inherit;
}
.hp-svc:hover { transform: translateY(-4px); box-shadow: var(--hp-shadow-hover); border-color: #FFD3C6; color: inherit; }
.hp-svc-icon {
    display: grid; place-items: center;
    width: 46px; height: 46px;
    border-radius: 14px;
    font-size: 1.15rem;
    margin-bottom: 1rem;
}
.hp-tone-coral { background: #FFF1EC; color: var(--hp-coral); }
.hp-tone-navy { background: #ECEEF8; color: var(--hp-navy); }
.hp-tone-gold { background: #FFF6E5; color: #B7791F; }
.hp-tone-green { background: #E8FBF3; color: #059669; }
.hp-tone-violet { background: #F0EEFC; color: #6C5DD3; }
.hp-svc h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 0.35rem; color: var(--hp-navy); }
.hp-svc p { font-size: 0.86rem; line-height: 1.5; color: var(--hp-muted); margin: 0 0 1.1rem; }
.hp-svc-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.85rem;
    border-top: 1px solid var(--hp-line);
    font-size: 0.82rem;
}
.hp-price { color: var(--hp-muted); }
.hp-price b { font-family: var(--font-mono); color: var(--hp-navy); font-size: 0.92rem; }
.hp-svc-arrow { color: var(--hp-coral); transition: transform 0.2s ease; }
.hp-svc:hover .hp-svc-arrow { transform: translateX(3px); }

/* Steps */
.hp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: step; }
.hp-step {
    position: relative;
    background: #fff;
    border: 1px solid var(--hp-line);
    border-radius: var(--hp-radius);
    padding: 1.75rem 1.6rem;
    box-shadow: var(--hp-shadow);
}
.hp-step-num {
    display: inline-grid; place-items: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--hp-navy);
    color: #fff;
    font-family: var(--font-mono);
    font-weight: 600;
    margin-bottom: 1.1rem;
    box-shadow: 0 0 0 6px #ECEEF8;
}
.hp-step h3 { font-size: 1.15rem; font-weight: 700; margin: 0 0 0.45rem; color: var(--hp-navy); }
.hp-step p { font-size: 0.92rem; line-height: 1.55; color: var(--hp-muted); margin: 0; }
.hp-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 3.15rem;
    right: -1.25rem;
    width: 1.25rem;
    border-top: 2px dashed #D5D8E8;
}

/* Stats band */
.hp-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: linear-gradient(135deg, var(--hp-ink), var(--hp-navy-2));
    border-radius: 26px;
    color: #fff;
    overflow: hidden;
    position: relative;
}
.hp-stats::after {
    content: "";
    position: absolute;
    width: 360px; height: 360px;
    right: -120px; top: -180px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgb(255 107 74 / 0.35), transparent);
    pointer-events: none;
}
.hp-stat { padding: 2.1rem 1.6rem; position: relative; z-index: 1; }
.hp-stat + .hp-stat { border-left: 1px solid rgb(255 255 255 / 0.09); }
.hp-stat b { display: block; font-family: var(--font-display); font-size: clamp(1.9rem, 3.2vw, 2.5rem); font-weight: 800; line-height: 1; margin-bottom: 0.45rem; }
.hp-stat b span { color: var(--hp-coral); }
.hp-stat small { font-size: 0.88rem; color: rgb(255 255 255 / 0.68); }

/* Why us */
.hp-why { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3rem; align-items: center; }
.hp-why-copy .hp-head { text-align: left; margin: 0 0 1.75rem; }
.hp-why-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.hp-why-item {
    background: #fff;
    border: 1px solid var(--hp-line);
    border-radius: 18px;
    padding: 1.35rem 1.25rem;
    box-shadow: var(--hp-shadow);
}
.hp-why-item .hp-svc-icon { width: 42px; height: 42px; font-size: 1.05rem; margin-bottom: 0.85rem; }
.hp-why-item h4 { font-size: 1rem; font-weight: 700; margin: 0 0 0.35rem; color: var(--hp-navy); }
.hp-why-item p { font-size: 0.86rem; line-height: 1.5; color: var(--hp-muted); margin: 0; }

/* FAQ */
.hp-faq { max-width: 800px; margin: 0 auto; display: grid; gap: 0.75rem; }
.hp-faq details {
    background: #fff;
    border: 1px solid var(--hp-line);
    border-radius: 16px;
    padding: 0 1.3rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.hp-faq details[open] { border-color: #FFD3C6; box-shadow: var(--hp-shadow); }
.hp-faq summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 0;
    font-weight: 700;
    color: var(--hp-navy);
}
.hp-faq summary::-webkit-details-marker { display: none; }
.hp-faq summary::after {
    content: "+";
    flex-shrink: 0;
    display: grid; place-items: center;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--hp-soft);
    color: var(--hp-coral);
    font-size: 1.15rem;
    transition: transform 0.2s ease;
}
.hp-faq details[open] summary::after { transform: rotate(45deg); }
.hp-faq details p { margin: 0 0 1.15rem; color: var(--hp-muted); line-height: 1.6; font-size: 0.94rem; }

/* Final CTA */
.hp-final {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 3.75rem 2rem;
    text-align: center;
    color: #fff;
    background:
        radial-gradient(600px 300px at 100% 0%, rgb(245 194 107 / 0.35), transparent 60%),
        linear-gradient(135deg, var(--hp-coral) 0%, #D9443E 55%, #9E2F52 100%);
}
.hp-final h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; margin: 0 0 0.75rem; color: #fff; }
.hp-final p { color: rgb(255 255 255 / 0.85); font-size: 1.04rem; margin: 0 auto 1.9rem; max-width: 34rem; }
.hp-final .hp-cta { justify-content: center; }
.hp-final .hp-btn-ghost { border-color: rgb(255 255 255 / 0.45); }

/* Reveal on scroll (enabled by JS only, so content is visible without it) */
.hp-js .hp-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.hp-js .hp-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .hp-float { animation: none; }
    .hp-js .hp-reveal { opacity: 1; transform: none; transition: none; }
    .hp-btn, .hp-svc { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .hp-services { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
    .hp-hero-grid { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 2rem; }
    .hp-hero-copy { text-align: center; }
    .hp-meta { justify-content: center; }
    .hp-lead { margin-left: auto; margin-right: auto; }
    .hp-cta, .hp-assure { justify-content: center; }
    .hp-card { margin: 0 auto; }
    .hp-services { grid-template-columns: repeat(2, 1fr); }
    .hp-steps { grid-template-columns: 1fr; }
    .hp-step:not(:last-child)::after { display: none; }
    .hp-stats { grid-template-columns: repeat(2, 1fr); }
    .hp-stat:nth-child(3) { border-left: 0; }
    .hp-stat:nth-child(n+3) { border-top: 1px solid rgb(255 255 255 / 0.09); }
    .hp-why { grid-template-columns: 1fr; }
    .hp-why-copy .hp-head { text-align: center; margin: 0 auto 0.5rem; }
}
@media (max-width: 600px) {
    .hp-wrap { padding: 0 1rem; }
    .hp-nav-links > a:not(.hp-btn) { display: none; }
    .hp-brand span { display: none; }
    .hp-hero { padding-bottom: 4.5rem; }
    .hp-lead { font-size: 1rem; }
    .hp-cta .hp-btn { flex: 1 1 100%; }
    .hp-float-data { right: 0; top: -0.75rem; }
    .hp-float-wallet { left: 0; bottom: -0.25rem; }
    .hp-card { transform: none; padding: 1.15rem; }
    .hp-networks-inner { justify-content: center; text-align: center; padding: 1rem; }
    .hp-networks-logos { justify-content: center; gap: 1.1rem; }
    .hp-networks-logos img { height: 28px; }
    .hp-section { padding: 4rem 0; }
    .hp-services { grid-template-columns: 1fr; }
    .hp-why-list { grid-template-columns: 1fr; }
    .hp-stat { padding: 1.5rem 1.1rem; }
    .hp-final { padding: 2.75rem 1.25rem; border-radius: 22px; }
}
