/* =========================================================
   HERO / FRONT SECTION — v2
   Signature: a live "link → conversion" card, since the core
   product promise (and the PX logo's chain glyph) is turning
   one pasted link into a tracked, auto-posted affiliate link.
   Palette + type match about.css / video.css / brands.css.
========================================================= */

:root {
    --ink: #0f172a;
    --muted: #475569;
    --blue: #4f6ef7;
    --violet: #7c3aed;
    --violet-deep: #5a1fd6;
    --bg-soft: #f4f6ff;
    --bg-card: #ffffff;
    --line: rgba(79, 110, 247, 0.18);
    --grad: linear-gradient(135deg, var(--blue) 0%, var(--violet) 100%);
    --grad-soft: linear-gradient(135deg, rgba(79, 110, 247, 0.12), rgba(124, 58, 237, 0.12));
    --shadow-lg: 0 30px 60px -20px rgba(124, 58, 237, 0.2);
    --shadow-sm: 0 10px 25px -10px rgba(0, 0, 0, 0.08);
    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* ==========================
   SECTION SHELL
========================== */


.front-text {
    position: relative;
    min-height: 100vh;
    width: 100%;
    background: linear-gradient(180deg, #f4f6ff 0%, #e2e8ff 100%);
    color: #0f172a;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 6% 80px;
}


/* soft ambient blobs, same language as .abt-glow / .hv-glow */
.hs-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}
.hs-glow-a {
    width: 560px;
    height: 560px;
    top: -160px;
    right: -120px;
    background: var(--grad);
    opacity: 0.22;
}
.hs-glow-b {
    width: 460px;
    height: 460px;
    bottom: -180px;
    left: -140px;
    background: var(--blue);
    opacity: 0.14;
}

/* faint dot grid, gives the hero some texture without noise */
.hs-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(11, 17, 48, 0.08) 1.5px, transparent 1.5px);
    background-size: 30px 30px;
    -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 40%, black 0%, transparent 75%);
    mask-image: radial-gradient(ellipse 60% 55% at 50% 40%, black 0%, transparent 75%);
    opacity: 0.6;
    z-index: 0;
}

.hs-wrap {
    position: relative;
    z-index: 1;
    max-width: 1300px;
    width: 100%;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 70px;
    align-items: center;
}

/* ==========================
   COPY SIDE
========================== */
.hs-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    animation: hsRise 0.8s cubic-bezier(.16,.8,.3,1) both;
}

.hs-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--violet-deep);
    background: var(--grad-soft);
    border: 1px solid var(--line);
    padding: 8px 16px;
    border-radius: 999px;
}

.hs-eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #28c840;
    box-shadow: 0 0 0 0 rgba(40, 200, 64, 0.6);
    animation: hsDotPulse 1.8s ease-out infinite;
    flex-shrink: 0;
}

.front-text h1 {
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0;
}

.highlight {
    position: relative;
    display: inline-block;
    
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.highlight::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 6px;
    height: 5px;
    width: 100%;
    background: var(--grad);
    opacity: 0.18;
    border-radius: 6px;
    z-index: -1;
    transform-origin: left;
    animation: hsSweep 1.1s cubic-bezier(.16,.8,.3,1) 0.5s both;
}

@keyframes hsSweep {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.front-text p {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.7;
    color: var(--muted);
    max-width: 520px;
    margin: 0;
}

.hs-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 6px;
}

.hs-btn {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15.5px;
    padding: 15px 28px;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.hs-btn-primary {
    background: var(--grad);
    color: #fff;
    box-shadow: var(--shadow-lg);
}
.hs-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -12px rgba(90, 31, 214, 0.45);
}

.hs-btn-ghost {
    background: #fff;
    color: var(--ink);
    border: 1.5px solid var(--line);
}
.hs-btn-ghost i { color: var(--violet); font-size: 13px; }
.hs-btn-ghost:hover {
    border-color: var(--violet);
    color: var(--violet-deep);
    transform: translateY(-3px);
}

.hs-stats {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 18px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    width: 100%;
}

.hs-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hs-stat-num {
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.hs-stat-num i { font-size: 13px; color: #f5b400; }

.hs-stat span:last-child {
    font-size: 13px;
    color: var(--muted);
}

.hs-stat-divider {
    width: 1px;
    height: 34px;
    background: var(--line);
}

/* ==========================
   VISUAL SIDE — link converter card
========================== */
.hs-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: hsRise 0.9s cubic-bezier(.16,.8,.3,1) 0.15s both;
}

.hs-frame {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    background: var(--bg-card);
    border-radius: 22px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.15s ease-out;
}

.hs-frame-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    background: #fafaff;
    border-bottom: 1px solid var(--line);
}
.hs-frame-bar span:nth-child(1),
.hs-frame-bar span:nth-child(2),
.hs-frame-bar span:nth-child(3) {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.hs-frame-bar span:nth-child(1) { background: #ff5f57; }
.hs-frame-bar span:nth-child(2) { background: #febc2e; }
.hs-frame-bar span:nth-child(3) { background: #28c840; }

.hs-frame-url {
    margin-left: 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 4px 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hs-frame-body {
    padding: 26px 26px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hs-field-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
}

/* ---- dashboard header row ---- */
.hs-dash-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.hs-dash-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--violet);
    margin-bottom: 4px;
}

.hs-dash-title {
    font-family: var(--font-display);
    font-size: 16.5px;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
}

.hs-dash-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--grad);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

/* ---- stat tiles ---- */
.hs-stat-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.hs-tile {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 12px 13px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hs-tile-label {
    font-size: 11px;
    color: var(--muted);
}

.hs-tile-value {
    font-family: var(--font-mono);
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.hs-tile-delta {
    font-size: 11px;
    font-weight: 600;
    color: #1a9e4a;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.hs-tile-delta i { font-size: 9px; }

/* ---- mini bar chart ---- */
.hs-chart-block { display: flex; flex-direction: column; }

.hs-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 64px;
    padding: 0 2px;
}

.hs-bars span {
    flex: 1;
    height: var(--h, 40%);
    background: var(--grad);
    border-radius: 5px;
    opacity: 0.85;
    transform: scaleY(0);
    transform-origin: bottom;
    animation: hsGrow 0.7s cubic-bezier(.16,.8,.3,1) forwards;
}
.hs-bars span:last-child { opacity: 1; }
.hs-bars span:nth-child(1) { animation-delay: 0.05s; }
.hs-bars span:nth-child(2) { animation-delay: 0.12s; }
.hs-bars span:nth-child(3) { animation-delay: 0.19s; }
.hs-bars span:nth-child(4) { animation-delay: 0.26s; }
.hs-bars span:nth-child(5) { animation-delay: 0.33s; }
.hs-bars span:nth-child(6) { animation-delay: 0.4s; }
.hs-bars span:nth-child(7) { animation-delay: 0.47s; }

@keyframes hsGrow {
    to { transform: scaleY(1); }
}

/* ---- integrations strip ---- */
.hs-integrations {
    padding-top: 16px;
    border-top: 1px dashed var(--line);
}

.hs-integration-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.hs-int-chip {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 6px 14px -8px rgba(11, 17, 48, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hs-int-chip:hover {
    transform: translateY(-3px);
    border-color: transparent;
    box-shadow: 0 12px 20px -8px rgba(90, 31, 214, 0.3);
}

.hs-int-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* floating proof badge, echoes .abt-stats / auto-badge language */
.hs-floating-badge {
    position: absolute;
    z-index: 2;
    bottom: -22px;
    left: -30px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: var(--shadow-sm);
    animation: hsFloat 4.5s ease-in-out infinite;
}

.hs-floating-badge i {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--grad);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.hs-floating-badge strong {
    display: block;
    font-family: var(--font-mono);
    font-size: 16px;
    color: var(--ink);
}

.hs-floating-badge span {
    font-size: 12.5px;
    color: var(--muted);
}

/* ==========================
   KEYFRAMES
========================== */
@keyframes hsRise {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes hsDotPulse {
    0% { box-shadow: 0 0 0 0 rgba(40, 200, 64, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(40, 200, 64, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 200, 64, 0); }
}

@keyframes hsBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

@keyframes hsFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
    .hs-copy, .hs-visual, .highlight::after, .hs-eyebrow-dot,
    .hs-bars span, .hs-floating-badge {
        animation: none !important;
        transform: none !important;
    }
}
/* ==========================
   RESPONSIVE  HERO SECTION 
========================== */
@media (max-width: 1080px) {
    .hs-wrap {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    .hs-copy { align-items: center; }
    .front-text p { max-width: 100%; }
    .hs-stats { justify-content: center; }
    .hs-frame { max-width: 100%; }
}

@media (max-width: 560px) {
    .front-text {
        padding: 95px 16px 60px;
        max-width: 100vw;
        overflow: hidden;
    }
    .hs-glow-a { width: 300px; height: 300px; right: 0; }
    .hs-glow-b { width: 250px; height: 250px; left: 0; }
    .front-text h1 { font-size: 34px; line-height: 1.2; word-break: break-word; }
    .front-text p { font-size: 15px; }
    .hs-actions { flex-direction: column; width: 100%; }
    .hs-btn { width: 100%; justify-content: center; }
    .hs-stats { flex-wrap: wrap; gap: 14px; row-gap: 12px; justify-content: space-around; }
    .hs-stat-divider { display: none; }
    .hs-floating-badge { left: 50%; transform: translateX(-50%); bottom: -18px; width: calc(100% - 32px); justify-content: center; }
    .hs-frame-body { padding: 18px 16px 20px; gap: 16px; }
}

@media (max-width: 400px) {
    .front-text h1 { font-size: 28px; }
    .hs-stat-tiles { grid-template-columns: 1fr; gap: 8px; }
}
