/* biptip homepage — dark editorial layout */

body.is-home {
    --hp-bg: #0c0b09;
    --hp-surface: #141210;
    --hp-card: #1a1815;
    --hp-border: rgba(255, 255, 255, 0.08);
    --hp-text: #ece5d8;
    --hp-muted: rgba(236, 229, 216, 0.58);
    --hp-accent: #c4b59a;
    --hp-accent-dim: rgba(196, 181, 154, 0.14);
    --hp-green: #34d399;

    background: var(--hp-bg);
    color: var(--hp-text);
}

/* ——— NAV (home) ——— */
body.is-home .nav {
    background: rgba(12, 11, 9, 0.5);
    border-bottom-color: transparent;
}

body.is-home .nav.is-solid {
    background: rgba(12, 11, 9, 0.92);
    border-bottom-color: var(--hp-border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

body.is-home .brand img {
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

body.is-home .nav-links a:not(.nav-cta) {
    color: var(--hp-muted);
    font-size: 0.8125rem;
}

body.is-home .nav-links a:not(.nav-cta):hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

body.is-home .nav-cta {
    background: var(--hp-accent);
    color: var(--hp-bg) !important;
    box-shadow: none;
}

body.is-home .nav-cta:hover {
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* ——— SHARED HP ——— */
.hp-section {
    padding: 5.5rem 0;
    position: relative;
}

.hp-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--hp-accent);
    margin-bottom: 0.85rem;
}

.hp-label::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--hp-accent);
}

.hp-head h2 {
    font-family: var(--display);
    font-weight: 600;
    font-optical-sizing: auto;
    font-size: clamp(1.9rem, 3.8vw, 2.75rem);
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 0.65rem;
}

.hp-head > p:last-child,
.hp-head.hp-head--split > p {
    color: var(--hp-muted);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 32rem;
}

.hp-head--center {
    text-align: center;
    max-width: 36rem;
    margin-inline: auto;
}

.hp-head--center > p:last-child { margin-inline: auto; }

.hp-head--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: end;
    margin-bottom: 2.5rem;
}

.hp-head--split > p {
    justify-self: end;
    text-align: right;
    max-width: 22rem;
}

.hp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.8rem 1.35rem;
    border-radius: 11px;
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hp-btn:hover { transform: translateY(-2px); }

.hp-btn--primary {
    background: var(--hp-accent);
    color: var(--hp-bg);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.hp-btn--primary:hover {
    background: #fff;
    color: var(--hp-bg);
}

.hp-btn--ghost {
    background: transparent;
    border-color: var(--hp-border);
    color: var(--hp-text);
}

.hp-btn--ghost:hover {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.hp-btn--wa {
    background: #22c55e;
    color: #fff;
}

.hp-btn--wa:hover { background: #16a34a; color: #fff; }

/* ——— HERO ——— */
.hp-hero {
    position: relative;
    min-height: min(92vh, 920px);
    display: flex;
    align-items: center;
    padding: 7.5rem 0 4rem;
    overflow: hidden;
}

.hp-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% -10%, rgba(196, 181, 154, 0.18), transparent),
        radial-gradient(ellipse 50% 40% at 10% 90%, rgba(66, 54, 32, 0.35), transparent),
        linear-gradient(180deg, #12100c 0%, var(--hp-bg) 100%);
}

.hp-hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}

.hp-hero-glow--1 {
    width: 32rem;
    height: 32rem;
    top: -8rem;
    right: 5%;
    background: rgba(196, 181, 154, 0.12);
}

.hp-hero-glow--2 {
    width: 24rem;
    height: 24rem;
    bottom: 0;
    left: -6rem;
    background: rgba(66, 54, 32, 0.25);
}

.hp-hero-gridlines {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}

.hp-hero-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 3rem;
    align-items: center;
}

.hp-kicker {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--hp-accent);
    margin-bottom: 1.1rem;
}

.hp-hero h1 {
    font-family: var(--display);
    font-weight: 600;
    font-optical-sizing: auto;
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
    color: #fff;
    margin-bottom: 1.15rem;
}

.hp-hero h1 em {
    font-style: normal;
    color: var(--hp-accent);
}

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

.hp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 2.25rem;
}

.hp-metrics {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--hp-border);
}

.hp-metrics li {
    padding-right: 0.5rem;
}

.hp-metrics strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.15rem;
}

.hp-metrics span {
    font-size: 0.75rem;
    color: var(--hp-muted);
    line-height: 1.45;
}

.hp-hero-stage {
    position: relative;
}

.hp-device-frame {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--hp-border);
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    background: var(--hp-card);
}

.hp-device-frame img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center 40%;
}

.hp-signal-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem 1rem;
    background: rgba(12, 11, 9, 0.88);
    backdrop-filter: blur(12px);
    border: 1px solid var(--hp-border);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    left: -1rem;
    bottom: 1.5rem;
    max-width: 16rem;
    animation: hpFloat 5s ease-in-out infinite;
}

.hp-signal-card--door {
    left: auto;
    right: -0.5rem;
    top: 1.5rem;
    bottom: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    padding: 0.65rem 0.9rem;
    animation-delay: -2.5s;
}

.hp-signal-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--hp-green);
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.6);
    animation: hpPulse 2s ease infinite;
}

.hp-signal-card strong {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
}

.hp-signal-card span {
    font-size: 0.6875rem;
    color: var(--hp-muted);
}

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

@keyframes hpPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ——— TICKER ——— */
.hp-ticker {
    border-block: 1px solid var(--hp-border);
    background: var(--hp-surface);
    overflow: hidden;
    padding: 0.85rem 0;
}

.hp-ticker-track {
    display: flex;
    gap: 2.5rem;
    width: max-content;
    animation: hpTicker 35s linear infinite;
}

.hp-ticker span {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hp-muted);
    white-space: nowrap;
}

.hp-ticker span::before {
    content: '◆';
    margin-right: 2.5rem;
    color: var(--hp-accent);
    font-size: 0.45rem;
    vertical-align: middle;
}

@keyframes hpTicker {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ——— FLOW ——— */
.hp-flow {
    background: var(--hp-bg);
}

.hp-flow .hp-head { margin-bottom: 2.5rem; }

.hp-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    counter-reset: step;
}

.hp-step {
    position: relative;
    padding: 1.75rem 1.5rem;
    background: var(--hp-card);
    border: 1px solid var(--hp-border);
    border-radius: 18px;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.hp-step:hover {
    border-color: rgba(196, 181, 154, 0.25);
    transform: translateY(-3px);
}

.hp-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 1.1rem;
    border-radius: 10px;
    background: var(--hp-accent-dim);
    color: var(--hp-accent);
    font-family: var(--display);
    font-weight: 600;
    font-size: 0.9rem;
}

.hp-step h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.45rem;
    letter-spacing: -0.02em;
}

.hp-step p {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--hp-muted);
}

/* ——— KIT BENTO ——— */
.hp-kit {
    background:
        radial-gradient(ellipse 60% 50% at 100% 0%, rgba(196, 181, 154, 0.08), transparent),
        var(--hp-surface);
}

.hp-bento {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 1rem;
    align-items: start;
}

.hp-bento-visual {
    margin: 0;
    padding: 2rem;
    background: var(--hp-card);
    border: 1px solid var(--hp-border);
    border-radius: 22px;
    position: sticky;
    top: 5.5rem;
}

.hp-bento-visual img { width: 100%; height: auto; }

.hp-bento-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.hp-bento-item {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 1rem 1.1rem;
    background: var(--hp-card);
    border: 1px solid var(--hp-border);
    border-radius: 14px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.hp-bento-item:hover {
    border-color: rgba(196, 181, 154, 0.22);
}

.hp-bento-item.is-featured {
    background: linear-gradient(135deg, #2a2318 0%, #3d3224 100%);
    border-color: rgba(196, 181, 154, 0.2);
}

.hp-bento-idx {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--hp-accent-dim);
    color: var(--hp-accent);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hp-bento-item.is-featured .hp-bento-idx {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.hp-bento-item h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.15rem;
}

.hp-bento-item p {
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--hp-muted);
}

.hp-bento-item.is-featured p { color: rgba(255, 255, 255, 0.7); }

/* ——— CLIENTS ——— */
.hp-clients { background: var(--hp-bg); }

.hp-clients .hp-head { margin-bottom: 2.25rem; }

.hp-client-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.85rem;
}

.hp-client {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.35rem 0.85rem;
    background: #f2ede6;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hp-client:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.hp-client img {
    max-width: 100%;
    max-height: 52px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.hp-client span {
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--brand-mid);
}

/* ——— WHY ——— */
.hp-why {
    background:
        radial-gradient(ellipse 50% 60% at 0% 50%, rgba(196, 181, 154, 0.1), transparent),
        var(--hp-surface);
}

.hp-why .hp-head { margin-bottom: 2rem; }

.hp-why-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.hp-why-card {
    padding: 1.75rem 1.5rem;
    background: var(--hp-card);
    border: 1px solid var(--hp-border);
    border-radius: 18px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.hp-why-card:hover {
    transform: translateY(-3px);
    border-color: rgba(196, 181, 154, 0.2);
}

.hp-why-icon {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 1rem;
    border-radius: 11px;
    background: var(--hp-accent-dim);
    color: var(--hp-accent);
}

.hp-why-icon svg {
    width: 1.15rem;
    height: 1.15rem;
}

.hp-why-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.4rem;
}

.hp-why-card p {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--hp-muted);
}

/* ——— FAQ ——— */
.hp-faq { background: var(--hp-bg); }

.hp-faq-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
    align-items: start;
}

.hp-faq-link { margin-top: 1.25rem; }

.hp-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.hp-faq-item {
    background: var(--hp-card);
    border: 1px solid var(--hp-border);
    border-radius: 14px;
    overflow: hidden;
}

.hp-faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1.05rem 1.2rem;
    font-weight: 650;
    font-size: 0.9375rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.hp-faq-item summary::-webkit-details-marker { display: none; }

.hp-faq-item summary::after {
    content: '+';
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 8px;
    background: var(--hp-accent-dim);
    color: var(--hp-accent);
    font-size: 1.1rem;
    font-weight: 600;
    display: grid;
    place-items: center;
    line-height: 1;
}

.hp-faq-item[open] summary::after { content: '–'; }

.hp-faq-item p {
    padding: 0 1.2rem 1.1rem;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--hp-muted);
}

/* ——— CONTACT ——— */
.hp-contact {
    padding-bottom: 6rem;
    background: var(--hp-surface);
}

.hp-contact-panel {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    padding: 2.5rem;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(196, 181, 154, 0.12) 0%, transparent 50%),
        var(--hp-card);
    border: 1px solid var(--hp-border);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

.hp-contact-main h2 {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    color: #fff;
    margin-bottom: 0.6rem;
    letter-spacing: -0.03em;
}

.hp-contact-main > p {
    color: var(--hp-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 28rem;
}

.hp-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.hp-contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    font-style: normal;
}

.hp-contact-details a,
.hp-contact-details > div {
    display: block;
    padding: 0.9rem 1rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--hp-border);
    border-radius: 14px;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
}

.hp-contact-details a:hover {
    border-color: rgba(196, 181, 154, 0.3);
}

.hp-contact-details small {
    display: block;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--hp-accent);
    margin-bottom: 0.2rem;
}

.hp-contact-details span {
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--hp-muted);
}

/* ——— RESPONSIVE ——— */
@media (max-width: 1024px) {
    .hp-hero-layout,
    .hp-bento,
    .hp-faq-layout,
    .hp-contact-panel,
    .hp-head--split {
        grid-template-columns: 1fr;
    }

    .hp-head--split > p {
        justify-self: start;
        text-align: left;
        max-width: none;
    }

    .hp-bento-visual { position: static; }

    .hp-client-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .hp-hero {
        min-height: auto;
        padding: 6.5rem 0 3rem;
    }

    .hp-hero-stage { order: -1; }

    .hp-hero-layout {
        display: flex;
        flex-direction: column;
    }

    .hp-metrics { grid-template-columns: 1fr; gap: 0.85rem; }

    .hp-steps,
    .hp-why-grid {
        grid-template-columns: 1fr;
    }

    .hp-client-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hp-signal-card--door { display: none; }

    .hp-section { padding: 3.75rem 0; }

    .hp-contact-panel { padding: 1.5rem; }
}

/* ——— FOOTER (home) ——— */
body.is-home footer {
    margin-top: 0;
    border-top: 1px solid var(--hp-border);
    background: #080807;
}

body.is-home .footer-wordmark:hover {
    color: var(--hp-accent);
}

@media (max-width: 560px) {
    .hp-signal-card {
        left: 0.5rem;
        right: 0.5rem;
        max-width: none;
    }

    .hp-ticker { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .hp-ticker-track,
    .hp-signal-card,
    .hp-signal-dot {
        animation: none !important;
    }
}
