/*
 * Huteco — Product Hero
 */

/* ── Tokens riêng cho block (override từ design-system nếu cần) ─────────── */
.huteco-product-hero {
    --ph-bg:          #f8f7f4;
    --ph-bg-card:     rgba(0,0,0,0.04);
    --ph-border:      rgba(0,0,0,0.08);
    --ph-text:        #1a1a2e;
    --ph-text-muted:  rgba(26,26,46,0.55);
    --ph-accent:      var(--huteco-accent-red, #27b3e9);
    --ph-accent-glow: rgba(39,179,233,0.2);
    --ph-gold:        #c47f00;
    --ph-badge-bg:    rgba(39,179,233,0.1);
    --ph-badge-color: #1a95c8;
    --ph-fs-hero:     clamp(2rem, 4.5vw, 3.25rem);
    --ph-fs-sub:      clamp(1rem, 1.8vw, 1.2rem);
    --ph-fs-price:    clamp(1.6rem, 3vw, 2.25rem);
    --ph-fs-label:    0.8125rem;
    --ph-radius:      16px;
    --ph-transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Section shell ──────────────────────────────────────────────────────── */
.huteco-product-hero {
    position: relative;
    background: var(--ph-bg);
    overflow: hidden;
    padding: var(--huteco-space-16, 4rem) 0 var(--huteco-space-20, 5rem);
}

/* ── Engineering grid background ───────────────────────────────────────── */
.huteco-ph__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.huteco-ph__grid::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(39,179,233,0.07) 0%, transparent 70%);
}

/* ── Inner layout ───────────────────────────────────────────────────────── */
.huteco-ph__inner {
    position: relative;
    z-index: 1;
    max-width: var(--huteco-container, 1200px);
    margin: 0 auto;
    padding: 0 var(--huteco-container-px, 1.5rem);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* ── Meta badges ────────────────────────────────────────────────────────── */
.huteco-ph__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.25rem;
}

.huteco-ph__badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--ph-badge-bg);
    color: var(--ph-badge-color);
    font-size: var(--ph-fs-label);
    font-family: var(--huteco-font, 'Inter', sans-serif);
    font-weight: 700;
    letter-spacing: 0.08em;
    border-radius: 4px;
    border: 1px solid rgba(39,179,233,0.3);
}

.huteco-ph__tag {
    font-size: var(--ph-fs-label);
    color: var(--ph-text-muted);
    font-family: var(--huteco-font, sans-serif);
    letter-spacing: 0.04em;
}

/* ── Heading ────────────────────────────────────────────────────────────── */
.huteco-ph__heading {
    font-family: var(--huteco-font, sans-serif);
    font-size: var(--ph-fs-hero);
    font-weight: 900;
    color: var(--ph-text);
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.huteco-ph__sub {
    font-size: var(--ph-fs-sub);
    color: var(--ph-text-muted);
    line-height: 1.7;
    margin-bottom: 1.75rem;
    max-width: 480px;
}

/* ── Stats row ──────────────────────────────────────────────────────────── */
.huteco-ph__stats {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.huteco-ph__stat {
    display: flex;
    align-items: center;
    gap: 6px;
}

.huteco-ph__stat-value {
    display: flex;
    align-items: center;
    gap: 2px;
    color: var(--ph-gold);
    font-weight: 700;
    font-size: 0.875rem;
}

.huteco-ph__stat-label {
    font-size: var(--ph-fs-label);
    color: var(--ph-text-muted);
}

.huteco-ph__stat-divider {
    width: 1px;
    height: 20px;
    background: var(--ph-border);
}

/* ── Pricing ────────────────────────────────────────────────────────────── */
.huteco-ph__pricing {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.huteco-ph__price-sale {
    font-family: var(--huteco-font, sans-serif);
    font-size: var(--ph-fs-price);
    font-weight: 900;
    color: var(--ph-accent);
    letter-spacing: -0.02em;
}

.huteco-ph__price-orig {
    font-size: 1rem;
    color: var(--ph-text-muted);
    text-decoration: line-through;
}

.huteco-ph__discount {
    display: inline-block;
    padding: 3px 10px;
    background: var(--ph-accent);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 800;
    border-radius: 4px;
    letter-spacing: 0.02em;
}

/* ── CTA ────────────────────────────────────────────────────────────────── */
.huteco-ph__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--ph-accent);
    color: #fff;
    font-family: var(--huteco-font, sans-serif);
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 16px var(--ph-accent-glow);
    transition: transform var(--ph-transition), box-shadow var(--ph-transition), background var(--ph-transition);
    margin-bottom: 2rem;
}

.huteco-ph__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--ph-accent-glow);
    background: #1a95c8;
    color: #fff;
}

.huteco-ph__cta svg {
    transition: transform var(--ph-transition);
    flex-shrink: 0;
}

.huteco-ph__cta:hover svg {
    transform: translateX(4px);
}

/* ── Features grid ──────────────────────────────────────────────────────── */
.huteco-ph__features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.huteco-ph__feature {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--ph-bg-card);
    border: 1px solid var(--ph-border);
    border-radius: 8px;
    font-size: var(--ph-fs-label);
    color: var(--ph-text-muted);
    font-family: var(--huteco-font, sans-serif);
    transition: border-color var(--ph-transition), background var(--ph-transition);
}

.huteco-ph__feature:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.15);
    color: var(--ph-text);
}

.huteco-ph__feature-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

/* ── Visual / Product image ─────────────────────────────────────────────── */
.huteco-ph__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.huteco-ph__img-wrap {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.huteco-ph__img-wrap img {
    position: relative;
    z-index: 2;
    width: 85%;
    height: 85%;
    object-fit: contain;
    filter: drop-shadow(0 20px 60px rgba(0,0,0,0.12));
    animation: huteco-ph-float 4s ease-in-out infinite;
}

.huteco-ph__img-placeholder {
    position: relative;
    z-index: 2;
    width: 80%;
    color: rgba(255,255,255,0.3);
}

/* ── Glow rings ─────────────────────────────────────────────────────────── */
.huteco-ph__ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(39,179,233,0.15);
    pointer-events: none;
}

.huteco-ph__ring--1 {
    width: 75%;
    height: 75%;
    animation: huteco-ph-ring 3s linear infinite;
}

.huteco-ph__ring--2 {
    width: 95%;
    height: 95%;
    border-color: rgba(39,179,233,0.07);
    animation: huteco-ph-ring 5s linear infinite reverse;
}

/* ── Animations ─────────────────────────────────────────────────────────── */
@keyframes huteco-ph-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-12px); }
}

@keyframes huteco-ph-ring {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .huteco-ph__inner {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .huteco-ph__meta { justify-content: center; }
    .huteco-ph__sub  { margin-left: auto; margin-right: auto; }
    .huteco-ph__stats { justify-content: center; }
    .huteco-ph__pricing { justify-content: center; }
    .huteco-ph__cta  { margin-left: auto; margin-right: auto; display: inline-flex; }
    .huteco-ph__visual { order: -1; }
    .huteco-ph__img-wrap { max-width: 280px; }
}

@media (max-width: 480px) {
    .huteco-ph__features {
        grid-template-columns: 1fr;
    }
}
