/*
 * HBShorter homepage. Flat by design: no shadows and no hover effects.
 * Motion is for entrance, drift and reveal only, and is switched off for visitors who ask for reduced motion.
 * Colours come from the theme variables set in Settings.
 */

.hb-home-body {margin: 0; background: var(--hb-bg); color: var(--hb-text); font-family: var(--hb-font-body, Inter, system-ui, sans-serif); line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;}
:where(.hb-home-body a) {color: inherit;}
.hb-home-body h1, .hb-home-body h2, .hb-home-body h3 {font-family: var(--hb-font-heading, Poppins, system-ui, sans-serif); color: var(--hb-text); margin: 0;}
.hb-wrap {width: min(1160px, calc(100% - 32px)); margin-inline: auto;}

/* Top bar */
.hb-home-top {border-bottom: 1px solid var(--hb-border); background: var(--hb-surface);}
.hb-home-top-row {display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px;}
.hb-home-brand {text-decoration: none; display: inline-flex; align-items: center;}
.hb-home-wordmark {white-space: nowrap; font-family: var(--hb-font-heading, Poppins, sans-serif); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em;}
.hb-logo-img {display: block; height: 50px; width: auto; max-width: 220px; object-fit: contain;}
.hb-home-nav {display: flex; align-items: center; gap: 22px; font-size: 0.95rem; font-weight: 500;}
.hb-home-nav a {text-decoration: none; white-space: nowrap;}

/* Buttons */
.hb-cta {display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 1px solid transparent; white-space: nowrap;}
.hb-cta-primary {background: var(--hb-primary); color: var(--hb-primary-contrast);}
.hb-cta-line {border-color: var(--hb-border); color: var(--hb-text); background: transparent;}
.hb-cta-small {min-height: 40px; padding: 0 18px; font-size: 0.92rem;}
.hb-cta-light {background: #ffffff; color: #0f172a;}
.hb-cta-outline {border-color: rgba(255, 255, 255, 0.5); color: #ffffff; background: transparent;}

/* Hero */
.hb-landing {position: relative; overflow: hidden; padding: 88px 0 104px; background: var(--hb-bg);}
.hb-landing-glow {position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px; border-radius: 50%; pointer-events: none;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--hb-primary) 22%, transparent), transparent 70%);
    animation: hb-drift 14s ease-in-out infinite alternate;}
.hb-landing-grid {position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 64px; align-items: center;}
.hb-eyebrow {font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hb-primary); margin: 0 0 16px;}
.hb-landing-title {font-size: clamp(2.3rem, 5.2vw, 3.8rem); line-height: 1.06; letter-spacing: -0.03em; font-weight: 800; margin-bottom: 22px;}
.hb-landing-sub {font-size: 1.15rem; color: var(--hb-muted); max-width: 40em; margin: 0 0 32px;}
.hb-landing-actions {display: flex; flex-wrap: wrap; gap: 12px;}
.hb-note {margin: 22px 0 0; font-size: 0.9rem; color: var(--hb-muted);}

/* Hero visual: a composer card, a views card and their motion */
.hb-stage {position: relative; padding-bottom: 252px;}
.hb-composer {position: relative; width: min(100%, 400px); margin-left: auto; border: 1px solid var(--hb-border); border-radius: 24px; background: var(--hb-surface); padding: 24px; display: grid; gap: 16px;}
.hb-composer-head {display: flex; align-items: center; gap: 12px;}
.hb-composer-head strong {display: block; font-family: var(--hb-font-heading, Poppins, sans-serif);}
.hb-composer-head .hb-meta {font-size: 0.82rem; color: var(--hb-muted);}
.hb-avatar {display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--hb-primary); color: var(--hb-primary-contrast); font-weight: 800;}
.hb-lines {display: grid; gap: 10px; font-size: 1rem;}
.hb-line {display: block; clip-path: inset(0 100% 0 0); animation: hb-wipe 0.9s cubic-bezier(.4,0,.2,1) forwards;}
.hb-line-1 {animation-delay: 0.9s;}
.hb-line-2 {animation-delay: 2.0s;}
.hb-line-3 {animation-delay: 3.1s;}
.hb-line b {color: var(--hb-primary);}
.hb-platforms {display: flex; gap: 8px; flex-wrap: wrap;}
.hb-chip {font-size: 0.82rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--hb-border); color: var(--hb-muted); animation: hb-chip 6s ease-in-out infinite;}
.hb-chip-1 {animation-delay: 0s;}
.hb-chip-2 {animation-delay: 2s;}
.hb-chip-3 {animation-delay: 4s;}

.hb-earn {position: absolute; left: 0; bottom: 0; width: min(100%, 300px); border: 1px solid var(--hb-border); border-radius: 22px; background: var(--hb-surface); padding: 20px 22px; display: grid; gap: 6px;}
.hb-earn-label {font-size: 0.8rem; font-weight: 600; color: var(--hb-muted); text-transform: uppercase; letter-spacing: 0.08em;}
.hb-earn-num {font-family: var(--hb-font-heading, Poppins, sans-serif); font-size: 2.2rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums;}
.hb-bars {display: grid; gap: 10px; margin-top: 6px;}
.hb-bar-row {display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: 10px;}
.hb-bar-row .hb-flag, .hb-bar-row .hb-flag-text {width: 24px;}
.hb-bar {display: block; height: 10px; border-radius: 999px; background: color-mix(in srgb, var(--hb-primary) 12%, transparent); overflow: hidden;}
.hb-bar > span {display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--hb-primary);}

/* Ticker */
.hb-ticker {overflow: hidden; background: var(--hb-primary); color: var(--hb-primary-contrast); padding: 16px 0; white-space: nowrap;}
.hb-ticker-track {display: inline-flex; align-items: center; gap: 22px; animation: hb-marquee 32s linear infinite; font-family: var(--hb-font-heading, Poppins, sans-serif); font-weight: 700; font-size: 1.05rem;}
.hb-ticker-track i {width: 8px; height: 8px; border-radius: 2px; background: currentColor; opacity: 0.7; display: inline-block;}

/* Sections */
.hb-section {padding: 96px 0;}
.hb-section-alt {background: var(--hb-surface); border-top: 1px solid var(--hb-border); border-bottom: 1px solid var(--hb-border);}
.hb-h2 {font-size: clamp(1.8rem, 3.4vw, 2.5rem); line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; margin-bottom: 14px;}
.hb-lead {font-size: 1.1rem; color: var(--hb-muted); max-width: 46em; margin: 0 0 44px;}

/* Steps, with a line that draws across */
.hb-steps-wrap {position: relative; margin-top: 40px;}
.hb-steps-line {position: absolute; left: 0; right: 0; top: -1px; height: 2px; display: block; background: var(--hb-border);}
.hb-steps-line > span {display: block; height: 100%; background: var(--hb-primary); transform: scaleX(0); transform-origin: left;}
.hb-steps {list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px;}
.hb-step {padding-top: 28px;}
.hb-step-no {display: block; font-family: var(--hb-font-heading, Poppins, sans-serif); font-weight: 800; font-size: 0.95rem; color: var(--hb-primary); margin-bottom: 14px;}
.hb-step h3 {font-size: 1.25rem; font-weight: 700; margin-bottom: 10px;}
.hb-step p {margin: 0; color: var(--hb-muted);}

/* Two columns */
.hb-split {display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start;}
.hb-checks {list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hb-border);}
.hb-checks li {position: relative; padding: 20px 0 20px 34px; border-bottom: 1px solid var(--hb-border); color: var(--hb-text); font-size: 1.02rem;}
.hb-checks li::before {content: ""; position: absolute; left: 0; top: 27px; width: 12px; height: 12px; border-radius: 3px; background: var(--hb-primary);}

/* Posts */
.hb-post-grid {display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 8px;}
.hb-post-card {border: 1px solid var(--hb-border); border-radius: 22px; background: var(--hb-surface); padding: 26px; display: grid; gap: 14px; align-content: start;}
.hb-post-tag {justify-self: start; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--hb-primary); padding: 5px 11px; border-radius: 999px; background: color-mix(in srgb, var(--hb-primary) 11%, transparent);}
.hb-post-text {margin: 0; font-size: 1rem; color: var(--hb-text);}
.hb-post-link {color: var(--hb-primary); font-weight: 700;}

/* Closing band */
.hb-band {background: var(--hb-primary); color: var(--hb-primary-contrast); padding: 80px 0;}
.hb-band .hb-h2, .hb-band h2 {color: var(--hb-primary-contrast);}
.hb-band-row {display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap;}
.hb-band-sub {margin: 0; opacity: 0.9; font-size: 1.05rem;}

/* Footer */
.hb-home-foot {padding: 32px 0; border-top: 1px solid var(--hb-border); font-size: 0.92rem; color: var(--hb-muted);}
.hb-home-foot-row {display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;}
.hb-home-foot nav {display: flex; gap: 20px; flex-wrap: wrap;}
.hb-home-foot a {text-decoration: none;}

/* Entrance and reveal. Content is visible without JavaScript; the reveal only starts once the script runs. */
.hb-in {animation: hb-rise 0.9s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d, 0ms);}
.hb-float {animation: hb-float 7s ease-in-out infinite;}
.hb-float-slow {animation: hb-float 9s ease-in-out infinite reverse;}
.hb-js [data-reveal] {opacity: 0; transform: translateY(26px); transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms);}
.hb-js [data-reveal].is-in {opacity: 1; transform: none;}
.hb-js .hb-steps-line[data-reveal] {opacity: 1; transform: none;}
.hb-js .hb-steps-line[data-reveal] > span {transition: transform 1.6s cubic-bezier(.6,0,.2,1) 0.2s;}
.hb-js .hb-steps-line.is-in > span {transform: scaleX(1);}
.hb-js .hb-bars[data-reveal] {opacity: 1; transform: none;}
.hb-js .hb-bar > span {transform: scaleX(0); transform-origin: left; transition: transform 1.4s cubic-bezier(.2,.7,.2,1) 0.3s;}
.hb-js .hb-bars.is-in .hb-bar > span {transform: scaleX(1);}
.hb-js .hb-bars.is-in .hb-bar-row:nth-child(2) .hb-bar > span {transition-delay: 0.45s;}
.hb-js .hb-bars.is-in .hb-bar-row:nth-child(3) .hb-bar > span {transition-delay: 0.6s;}

@keyframes hb-rise {from {opacity: 0; transform: translateY(22px);} to {opacity: 1; transform: none;}}
@keyframes hb-wipe {to {clip-path: inset(0 0 0 0);}}
@keyframes hb-float {0%, 100% {transform: translateY(0);} 50% {transform: translateY(-12px);}}
@keyframes hb-drift {from {transform: translate(0, 0) scale(1);} to {transform: translate(-40px, 30px) scale(1.08);}}
@keyframes hb-marquee {from {transform: translateX(0);} to {transform: translateX(-50%);}}
@keyframes hb-chip {0%, 100% {color: var(--hb-muted); border-color: var(--hb-border);} 12%, 30% {color: var(--hb-primary); border-color: var(--hb-primary);} 42% {color: var(--hb-muted); border-color: var(--hb-border);}}

@media (prefers-reduced-motion: reduce) {
    .hb-landing-glow, .hb-float, .hb-float-slow, .hb-ticker-track, .hb-chip, .hb-in, .hb-line {animation: none !important;}
    .hb-line {clip-path: none;}
    .hb-js [data-reveal], .hb-js .hb-bar > span, .hb-js .hb-steps-line > span {transition: none !important; opacity: 1; transform: none;}
}

/* Tablet and phone */
@media (max-width: 960px) {
    .hb-steps {grid-template-columns: 1fr; gap: 28px;}
    .hb-steps-line {display: none;}
    .hb-landing-grid, .hb-split {grid-template-columns: 1fr; gap: 44px;}
    .hb-post-grid {grid-template-columns: 1fr;}
    .hb-stage {min-height: 0; padding-bottom: 0;}
    .hb-composer {margin-left: 0;}
    .hb-earn {position: relative; left: auto; bottom: auto; margin-top: 16px;}
}
@media (max-width: 640px) {
    .hb-wrap {width: calc(100% - 32px);}
    .hb-nav-secondary {display: none;}
    .hb-home-nav {gap: 14px;}
    .hb-home-wordmark {font-size: 1.05rem;}
    .hb-landing {padding: 52px 0 64px;}
    .hb-section {padding: 64px 0;}
    .hb-lead {margin-bottom: 30px;}
    .hb-landing-actions .hb-cta {flex: 1 1 100%;}
    .hb-band {padding: 60px 0;}
    .hb-band-row .hb-landing-actions .hb-cta {flex: 1 1 100%;}
    .hb-ticker-track {font-size: 0.95rem;}
}
