/* Homepage v2 — distinct SaaS/fintech layouts (theme via --primary-color) */

.home-page {
    --hp-bg: #050508;
    --hp-surface: #0e0e12;
    --hp-surface-2: #14141a;
    --hp-border: rgba(255, 255, 255, 0.08);
    --hp-text: #f4f4f5;
    --hp-muted: #a1a1aa;
    --hp-radius: 20px;
    --hp-radius-sm: 12px;
    --hp-pad: clamp(4rem, 8vw, 6.5rem);
    --hp-gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color2) 100%);
    --hp-glow: 0 0 80px color-mix(in srgb, var(--primary-color) 35%, transparent);
}

.home-page {
    background: var(--hp-bg);
    overflow-x: hidden;
}

/* Bands — alternating section atmospheres */
.home-band {
    position: relative;
    padding: var(--hp-pad) 0;
}

.home-band--mesh::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 0%, color-mix(in srgb, var(--primary-color) 18%, transparent), transparent 50%),
        radial-gradient(ellipse 60% 40% at 90% 100%, color-mix(in srgb, var(--primary-color2) 12%, transparent), transparent 45%);
    pointer-events: none;
}

.home-band--grid {
    background: var(--hp-surface);
    border-block: 1px solid var(--hp-border);
}

.home-band--accent {
    background: linear-gradient(180deg, var(--hp-surface) 0%, color-mix(in srgb, var(--primary-color) 8%, var(--hp-bg)) 100%);
}

.home-band--cta {
    padding-bottom: calc(var(--hp-pad) * 0.6);
}

.hp-container {
    width: min(1200px, 100% - 2rem);
    margin-inline: auto;
}

.hp-eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.hp-title {
    font-size: clamp(1.85rem, 4.5vw, 2.75rem);
    font-weight: 700;
    color: var(--hp-text);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hp-lead {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--hp-muted);
    max-width: 36rem;
}

/* —— Hero —— */
.home-hero {
    padding: clamp(6.5rem, 14vw, 9rem) 0 clamp(3rem, 6vw, 4rem);
    position: relative;
}

.home-hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    translate: -50% 0;
    width: min(900px, 90%);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--hp-border), transparent);
}

.home-hero__layout {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 992px) {
    .home-hero__layout {
        grid-template-columns: 1.05fr 0.95fr;
        gap: 4rem;
    }
}

.home-hero__chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.home-hero__chip {
    font-size: 0.75rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--hp-border);
    background: var(--hp-surface-2);
    color: var(--hp-muted);
}

.home-hero__chip--live {
    border-color: color-mix(in srgb, var(--primary-color) 50%, transparent);
    color: var(--hp-text);
}

.home-hero__chip--live::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
    margin-right: 6px;
    box-shadow: 0 0 8px var(--primary-color);
    vertical-align: middle;
}

.home-hero__headline {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--hp-text);
    margin-bottom: 1.25rem;
}

.home-hero__gradient-text {
    background: var(--hp-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-hero__sub {
    font-size: 1.1rem;
    color: var(--hp-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 28rem;
}

.home-hero__cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.home-hero__visual-frame {
    position: relative;
    border-radius: 24px;
    padding: 1px;
    background: var(--hp-gradient);
    box-shadow: var(--hp-glow);
}

.home-hero__visual-inner {
    background: var(--hp-surface);
    border-radius: 23px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1500 / 931;
}

.home-hero__visual-inner img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
}

.home-hero__float-card {
    position: absolute;
    background: var(--hp-surface-2);
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius-sm);
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    color: var(--hp-text);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.home-hero__float-card strong {
    display: block;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.home-hero__float-card--tl { top: 12%; left: -8%; }
.home-hero__float-card--br { bottom: 14%; right: -6%; }

@media (max-width: 991px) {
    .home-hero__float-card--tl,
    .home-hero__float-card--br { display: none; }
}

/* —— Social proof ribbon —— */
.hp-proof-ribbon {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .hp-proof-ribbon {
        grid-template-columns: auto 1fr;
        align-items: center;
        gap: 3rem;
    }
}

.hp-proof-score {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: var(--hp-surface-2);
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius);
    min-width: 260px;
}

.hp-proof-avatars {
    display: flex;
}

.hp-proof-avatars img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--hp-bg);
    margin-left: -12px;
}

.hp-proof-avatars img:first-child { margin-left: 0; }

.hp-proof-score__num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--hp-text);
    line-height: 1;
}

.hp-proof-score__stars {
    color: var(--primary-color);
    font-size: 0.85rem;
}

.hp-logo-wall {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    align-items: center;
    justify-content: flex-start;
}

.hp-logo-wall__item {
    flex: 0 0 calc(25% - 1.125rem);
    min-width: 100px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.55;
    filter: grayscale(1) brightness(1.4);
    transition: opacity 0.25s, filter 0.25s;
}

.hp-logo-wall__item:hover {
    opacity: 1;
    filter: grayscale(0);
}

.hp-logo-wall__item img {
    max-height: 36px;
    max-width: 90px;
    object-fit: contain;
}

@media (max-width: 575px) {
    .hp-logo-wall__item { flex: 0 0 calc(33.33% - 1rem); }
}

/* —— Partnership / platform —— */
.hp-platform {
    display: grid;
    gap: 3rem;
}

@media (min-width: 992px) {
    .hp-platform {
        grid-template-columns: 280px 1fr;
        gap: 4rem;
    }
}

.hp-stat-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hp-stat-block {
    padding: 1.25rem 1.5rem;
    background: var(--hp-surface-2);
    border: 1px solid var(--hp-border);
    border-left: 3px solid var(--primary-color);
    border-radius: var(--hp-radius-sm);
    transition: transform 0.2s, border-color 0.2s;
}

.hp-stat-block:hover {
    transform: translateX(6px);
    border-left-color: var(--primary-color);
}

.hp-stat-block__value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--hp-text);
    line-height: 1;
}

.hp-stat-block__label {
    font-size: 0.8rem;
    color: var(--hp-muted);
    margin-top: 0.35rem;
}

.hp-feature-bento {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .hp-feature-bento {
        grid-template-columns: repeat(2, 1fr);
    }
}

.hp-feature-tile {
    position: relative;
    padding: 2rem;
    background: var(--hp-surface-2);
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius);
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.hp-feature-tile::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--primary-color) 25%, transparent), transparent 70%);
    pointer-events: none;
}

.hp-feature-tile:hover {
    border-color: color-mix(in srgb, var(--primary-color) 40%, transparent);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.hp-feature-tile--wide {
    grid-column: 1 / -1;
}

@media (min-width: 768px) {
    .hp-feature-tile--wide {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 1.5rem;
        align-items: start;
    }
}

.hp-feature-tile__index {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.hp-feature-tile__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: color-mix(in srgb, var(--primary-color) 15%, transparent);
    margin-bottom: 1rem;
}

.hp-feature-tile__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--hp-text);
    margin-bottom: 0.5rem;
}

.hp-feature-tile__desc {
    font-size: 0.9rem;
    color: var(--hp-muted);
    line-height: 1.65;
    margin: 0;
}

.hp-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
}

.hp-pill-row span {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: var(--hp-bg);
    border: 1px solid var(--hp-border);
    color: var(--hp-muted);
}

/* —— Services (resources) —— */
.hp-services-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius);
    overflow: hidden;
    background: var(--hp-surface-2);
}

.hp-service-row {
    display: grid;
    gap: 1.25rem;
    padding: 2rem;
    border-bottom: 1px solid var(--hp-border);
    transition: background 0.2s;
}

.hp-service-row:last-child { border-bottom: none; }

.hp-service-row:hover {
    background: color-mix(in srgb, var(--primary-color) 6%, var(--hp-surface-2));
}

@media (min-width: 768px) {
    .hp-service-row {
        grid-template-columns: 80px 1fr 48px;
        align-items: start;
        gap: 2rem;
    }
}

.hp-service-row__num {
    font-size: 2.5rem;
    font-weight: 800;
    color: color-mix(in srgb, var(--primary-color) 35%, transparent);
    line-height: 1;
}

.hp-service-row__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--hp-text);
    margin-bottom: 0.5rem;
}

.hp-service-row__text {
    font-size: 0.9rem;
    color: var(--hp-muted);
    line-height: 1.7;
    margin: 0;
}

.hp-service-row__arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--hp-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    align-self: center;
    transition: background 0.2s, border-color 0.2s;
}

.hp-service-row:hover .hp-service-row__arrow {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* —— Pricing —— */
.hp-pricing-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .hp-pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        align-items: stretch;
    }
}

.hp-price-card {
    position: relative;
    padding: 2rem;
    border-radius: var(--hp-radius);
    border: 1px solid var(--hp-border);
    background: var(--hp-surface-2);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, box-shadow 0.25s;
}

.hp-price-card:hover {
    transform: translateY(-6px);
}

.hp-price-card--featured {
    border-color: color-mix(in srgb, var(--primary-color) 50%, transparent);
    background: linear-gradient(160deg, color-mix(in srgb, var(--primary-color) 12%, var(--hp-surface-2)), var(--hp-surface-2));
    box-shadow: var(--hp-glow);
}

.hp-price-card--featured::before {
    content: "Popular";
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    background: var(--hp-gradient);
    color: #fff;
}

.hp-price-card__name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--hp-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hp-price-card__price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--hp-text);
    margin: 0.5rem 0 1.5rem;
}

.hp-price-card__price small {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--hp-muted);
}

.hp-price-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    flex-grow: 1;
}

.hp-price-card li {
    font-size: 0.85rem;
    color: var(--hp-muted);
    padding: 0.4rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.hp-price-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* —— Testimonials —— */
.hp-testimonials-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .hp-testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.hp-quote-card {
    padding: 2rem;
    background: var(--hp-surface-2);
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: border-color 0.25s;
}

.hp-quote-card:hover {
    border-color: color-mix(in srgb, var(--primary-color) 35%, transparent);
}

.hp-quote-card__mark {
    font-size: 4rem;
    line-height: 0.5;
    font-family: Georgia, serif;
    color: var(--primary-color);
    opacity: 0.4;
    margin-bottom: 0.5rem;
}

.hp-quote-card__text {
    font-size: 0.95rem;
    color: var(--hp-text);
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.hp-quote-card__author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--hp-border);
}

.hp-quote-card__author img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
}

/* —— Metrics showcase —— */
.hp-metrics-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--hp-border);
    border-radius: var(--hp-radius);
    overflow: hidden;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .hp-metrics-strip {
        grid-template-columns: repeat(4, 1fr);
    }
}

.hp-metric-cell {
    background: var(--hp-surface-2);
    padding: 2rem 1.5rem;
    text-align: center;
}

.hp-metric-cell__val {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    background: var(--hp-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hp-metric-cell__lbl {
    font-size: 0.8rem;
    color: var(--hp-muted);
    margin-top: 0.35rem;
}

.hp-showcase-split {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
    align-items: center;
}

@media (min-width: 992px) {
    .hp-showcase-split {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

.hp-showcase-visual {
    position: relative;
    border-radius: var(--hp-radius);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.hp-showcase-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hp-showcase-visual__badge {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    padding: 1.25rem;
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius-sm);
}

.hp-mini-cards {
    display: grid;
    gap: 1rem;
}

.hp-mini-card {
    padding: 1.5rem;
    border-radius: var(--hp-radius-sm);
    border: 1px solid var(--hp-border);
}

.hp-mini-card--gradient {
    background: var(--hp-gradient);
    border: none;
    color: #fff;
}

.hp-mini-card--dark {
    background: var(--hp-surface-2);
}

.hp-mini-card__val {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

/* —— Blog editorial —— */
.hp-blog-editorial {
    display: grid;
    gap: 1.5rem;
    margin-top: 3rem;
}

@media (min-width: 992px) {
    .hp-blog-editorial {
        grid-template-columns: 1.4fr 1fr;
        grid-template-rows: 1fr 1fr;
    }
}

.hp-blog-featured {
    grid-row: span 2;
    position: relative;
    border-radius: var(--hp-radius);
    overflow: hidden;
    min-height: 320px;
    display: block;
    text-decoration: none;
}

.hp-blog-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hp-blog-featured:hover img {
    transform: scale(1.04);
}

.hp-blog-featured__content {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 55%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
}

.hp-blog-side {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--hp-surface-2);
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius-sm);
    text-decoration: none;
    transition: border-color 0.2s;
}

.hp-blog-side:hover {
    border-color: color-mix(in srgb, var(--primary-color) 40%, transparent);
}

.hp-blog-side img {
    width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.hp-blog-side__title {
    font-size: 0.9rem;
    color: var(--hp-text);
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.hp-blog-tag {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-color);
    font-weight: 700;
}

/* —— Payout CTA —— */
.hp-cta-banner {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    padding: clamp(2.5rem, 5vw, 4rem);
    display: grid;
    gap: 2rem;
    align-items: center;
    background: var(--hp-surface-2);
    border: 1px solid var(--hp-border);
}

.hp-cta-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        var(--hp-gradient);
    opacity: 0.12;
    pointer-events: none;
}

.hp-cta-banner::after {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, color-mix(in srgb, var(--primary-color) 40%, transparent), transparent 65%);
    pointer-events: none;
}

@media (min-width: 768px) {
    .hp-cta-banner {
        grid-template-columns: 1fr auto;
    }
}

.hp-cta-banner__content {
    position: relative;
    z-index: 1;
}

.hp-cta-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.hp-cta-tags span {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--hp-text);
}

.hp-cta-banner__actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 200px;
}

/* —— FAQ split —— */
.hp-faq-split {
    display: grid;
    gap: 3rem;
    margin-top: 3rem;
}

@media (min-width: 992px) {
    .hp-faq-split {
        grid-template-columns: 0.9fr 1.1fr;
        gap: 4rem;
        align-items: start;
    }
}

.hp-faq-intro {
    position: sticky;
    top: 6rem;
}

.hp-faq-list .accordion-item {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid var(--hp-border) !important;
    border-radius: 0 !important;
}

.hp-faq-list .accordion-item:last-child {
    border-bottom: none !important;
}

.hp-faq-list .accordion-button {
    background: transparent !important;
    color: var(--hp-text) !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    padding: 1.35rem 0 !important;
    box-shadow: none !important;
}

.hp-faq-list .accordion-button:not(.collapsed) {
    color: var(--primary-color) !important;
}

.hp-faq-list .accordion-button::after {
    background-color: var(--hp-surface-2) !important;
    border: 1px solid var(--hp-border);
    border-radius: 8px !important;
    width: 2rem;
    height: 2rem;
    background-size: 1rem !important;
    filter: none;
}

.hp-faq-list .accordion-body {
    color: var(--hp-muted);
    padding: 0 0 1.35rem !important;
    line-height: 1.75;
    font-size: 0.95rem;
}

/* Section header row */
.hp-section-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: 0;
}

.hp-section-head .hp-lead {
    margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
    .hp-feature-tile:hover,
    .hp-price-card:hover,
    .hp-service-row:hover,
    .hp-stat-block:hover {
        transform: none;
    }
}

@media (max-width: 767px) {
    .hp-blog-featured {
        grid-row: span 1;
        min-height: 240px;
    }
}
