/* ═══════════════════════════════════════
   BLOX COMMERCIAL — HOMEPAGE
   Premium corporate aesthetic
═══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Syne:wght@700;800&display=swap');

:root {
    --font-body: 'Outfit', sans-serif;
    --font-display: 'Syne', sans-serif;
}

/* ── REVEAL ANIMATIONS ── */
/* Fallback: show content after 2.5s if JS is delayed/blocked */
@keyframes reveal-fallback { to { opacity: 1; transform: none; } }

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    animation: reveal-fallback 0s 2.5s forwards;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
    animation: none;
}
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    animation: reveal-fallback 0s 2.5s forwards;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); animation: none; }

/* Stagger children */
.stagger > * { transition-delay: calc(var(--i, 0) * 80ms); }

/* ── HERO ── */
.hp-hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #0d0f13;
    font-family: var(--font-body);
}

.hp-hero-slider { position: absolute; inset: 0; z-index: 0; }
.hp-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 2s ease; }
.hp-slide--active { opacity: 0.15; }

.hp-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(160deg, rgba(13,15,19,0.95) 0%, rgba(20,22,28,0.88) 60%, rgba(30,35,42,0.8) 100%);
    z-index: 1;
}

/* Noise texture overlay */
.hp-hero::after {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
}

.hp-hero-inner {
    max-width: 1180px; margin: 0 auto; padding: 7rem 2rem 3.5rem;
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem;
    align-items: center; position: relative; z-index: 2; width: 100%;
}

.hp-hero-label {
    display: inline-block; font-size: 0.6rem; text-transform: uppercase;
    letter-spacing: 4px; color: var(--orange); font-weight: 600;
    margin-bottom: 1.25rem; padding: 6px 14px;
    border: 1px solid rgba(255,103,0,0.25); border-radius: 100px;
    font-family: var(--font-body);
}

.hp-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    font-weight: 800; line-height: 1.05;
    margin-bottom: 1.2rem; color: #fff;
    letter-spacing: -0.02em;
}

.hp-hero h1 em {
    font-style: normal; color: var(--orange); display: block;
    background: linear-gradient(135deg, #FF6700, #FF8A3D);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hp-hero-sub {
    font-size: 0.92rem; color: rgba(255,255,255,0.5);
    line-height: 1.7; margin-bottom: 2rem; max-width: 440px;
    font-weight: 300;
}

.hp-hero-btns { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ── BUTTONS ── */
.hp-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 12px 24px; font-weight: 600; font-size: 0.82rem;
    border-radius: 8px; text-decoration: none;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    font-family: var(--font-body); cursor: pointer; border: none;
    letter-spacing: 0.02em;
}

.hp-btn--primary {
    background: linear-gradient(135deg, #FF6700, #FF7A1A);
    color: #fff; box-shadow: 0 4px 20px rgba(255,103,0,0.3), inset 0 1px 0 rgba(255,255,255,0.15);
}
.hp-btn--primary:hover {
    transform: translateY(-2px); box-shadow: 0 8px 32px rgba(255,103,0,0.4);
    color: #fff; background: linear-gradient(135deg, #e55d00, #FF6700);
}

.hp-btn--outline {
    border: 1.5px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.8); background: transparent;
}
.hp-btn--outline:hover { border-color: rgba(255,255,255,0.4); color: #fff; transform: translateY(-2px); }

.hp-btn--lg { padding: 14px 32px; font-size: 0.88rem; }

/* ── FORM CARD ── */
.hp-form-card {
    background: #fff; border-radius: 16px; padding: 1.75rem;
    color: var(--text); box-shadow: 0 24px 80px rgba(0,0,0,0.35);
}
.hp-form-card h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; margin-bottom: 0.15rem; }
.hp-form-sub { color: var(--text-muted); font-size: 0.78rem; margin-bottom: 1rem; font-weight: 300; }
.hp-form-card label { display: block; font-size: 0.6rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-secondary); margin-bottom: 4px; }
.hp-form-card input, .hp-form-card select { width: 100%; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 0.82rem; margin-bottom: 0.65rem; font-family: var(--font-body); transition: border-color 0.2s; background: var(--off-white); }
.hp-form-card input:focus, .hp-form-card select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,103,0,0.08); background: #fff; }
.hp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }
.hp-form-submit { width: 100%; padding: 11px; background: linear-gradient(135deg, #FF6700, #FF7A1A); color: #fff; border: none; border-radius: 8px; font-size: 0.85rem; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: all 0.3s; font-family: var(--font-body); }
.hp-form-submit:hover { box-shadow: 0 6px 20px rgba(255,103,0,0.3); transform: translateY(-1px); }
.hp-form-note { text-align: center; font-size: 0.7rem; color: var(--text-muted); margin-top: 0.4rem; font-weight: 300; }

/* ── DOTS ── */
.hp-hero-dots { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 3; }
.hp-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.2); border: none; cursor: pointer; transition: all 0.3s; padding: 0; }
.hp-dot--active { background: var(--orange); width: 24px; border-radius: 4px; }

/* ── STATS ── */
.hp-stats { background: #161920; border-top: 1px solid rgba(255,255,255,0.04); font-family: var(--font-body); }
.hp-stats-inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.hp-stat { padding: 1.75rem 1.25rem; text-align: center; border-right: 1px solid rgba(255,255,255,0.04); }
.hp-stat:last-child { border-right: none; }
.hp-stat h3 { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--orange); display: inline; line-height: 1; }
.hp-stat-prefix { font-size: 1rem; font-weight: 700; color: var(--orange); vertical-align: super; }
.hp-stat-suffix { font-size: 0.85rem; font-weight: 600; color: var(--orange); }
.hp-stat p { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,255,255,0.35); font-weight: 500; margin-top: 0.35rem; }

/* ── SECTION HEADERS ── */
.hp-label { display: inline-block; font-size: 0.6rem; text-transform: uppercase; letter-spacing: 3px; color: var(--orange); font-weight: 600; margin-bottom: 0.6rem; font-family: var(--font-body); }
.hp-section-header h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 800; margin-bottom: 0.6rem; line-height: 1.15; letter-spacing: -0.02em; }
.hp-section-sub { font-size: 0.85rem; line-height: 1.7; max-width: 520px; margin-bottom: 2rem; font-weight: 300; font-family: var(--font-body); }

/* ── PAIN POINTS ── */
.hp-pain { padding: 4rem 2rem; background: #fff; color: var(--text); font-family: var(--font-body); }
.hp-pain-inner { max-width: 1180px; margin: 0 auto; }
.hp-pain-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; }
.hp-pain-card { padding: 1.5rem; border-radius: 12px; border: 1px solid var(--border); background: var(--off-white); position: relative; overflow: hidden; transition: all 0.3s; }
.hp-pain-card:hover { border-color: var(--orange); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.05); }
.hp-pain-card::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: var(--orange); border-radius: 3px 0 0 3px; }
.hp-pain-card h3 { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; margin-bottom: 0.3rem; padding-left: 0.75rem; }
.hp-pain-card p { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.6; font-weight: 300; padding-left: 0.75rem; }

/* ── SERVICES ── */
.hp-services { padding: 4rem 2rem; background: #0d0f13; color: #fff; font-family: var(--font-body); }
.hp-services-inner { max-width: 1180px; margin: 0 auto; }
.hp-services .hp-section-sub { color: rgba(255,255,255,0.45); }
.hp-services .hp-section-header h2 { color: #fff; }

.hp-svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

.hp-svc-card {
    background: rgba(255,255,255,0.03); border-radius: 12px; padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.06); transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative; overflow: hidden;
}
.hp-svc-card:hover { border-color: rgba(255,103,0,0.3); background: rgba(255,103,0,0.04); transform: translateY(-3px); }

.hp-svc-num { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: rgba(255,103,0,0.1); line-height: 1; margin-bottom: 0.5rem; display: block; }
.hp-svc-card h3 { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; color: #fff; margin-bottom: 0.4rem; }
.hp-svc-card p { color: rgba(255,255,255,0.45); font-size: 0.78rem; line-height: 1.6; margin-bottom: 0.75rem; font-weight: 300; }
.hp-svc-link { display: inline-flex; align-items: center; gap: 4px; color: var(--orange); text-decoration: none; font-weight: 600; font-size: 0.75rem; transition: gap 0.3s; }
.hp-svc-link:hover { gap: 8px; }

/* ── IMAGE STRIP ── */
.hp-image-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; overflow: hidden; }
.hp-image-strip img { width: 100%; height: 180px; object-fit: cover; display: block; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); filter: saturate(0.8); }
.hp-image-strip img:hover { transform: scale(1.06); filter: saturate(1); }

/* ── WHY BLOX ── */
.hp-why { padding: 4rem 2rem; background: #161920; color: #fff; font-family: var(--font-body); }
.hp-why-inner { max-width: 1180px; margin: 0 auto; }
.hp-why .hp-section-header h2 { color: #fff; }

.hp-why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2rem; }
.hp-why-card { padding: 1.5rem 1.25rem; border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; transition: all 0.35s; }
.hp-why-card:hover { border-color: rgba(255,103,0,0.25); background: rgba(255,103,0,0.03); transform: translateY(-2px); }

.hp-why-icon { margin-bottom: 0.75rem; width: 40px; height: 40px; background: rgba(255,103,0,0.08); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.hp-why-icon svg { width: 18px; height: 18px; }
.hp-why-card h3 { font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; margin-bottom: 0.35rem; }
.hp-why-card p { color: rgba(255,255,255,0.4); font-size: 0.78rem; line-height: 1.6; font-weight: 300; }

/* 24/7 highlight */
.hp-why-card--highlight { border-color: rgba(255,103,0,0.2); background: rgba(255,103,0,0.05); }
.hp-why-card--highlight .hp-why-icon { background: var(--orange); }
.hp-why-card--highlight .hp-why-icon svg { stroke: #fff !important; }

/* ── ABOUT ── */
.hp-about { padding: 4rem 2rem; background: #fff; color: var(--text); font-family: var(--font-body); }
.hp-about-inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.hp-about-content h2 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; margin-bottom: 1rem; letter-spacing: -0.02em; line-height: 1.15; }
.hp-about-content h2 span { color: var(--orange); }
.hp-about-content p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 1rem; font-weight: 300; }
.hp-about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.5rem; }
.hp-about-stat { padding: 1rem; background: var(--off-white); border-radius: 10px; border: 1px solid var(--border); }
.hp-about-stat strong { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; color: var(--orange); display: block; }
.hp-about-stat span { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); font-weight: 500; }
.hp-about-img { border-radius: 16px; overflow: hidden; }
.hp-about-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }

/* ── ASSETS ── */
.hp-assets { padding: 4rem 2rem; background: var(--off-white); color: var(--text); font-family: var(--font-body); }
.hp-assets-inner { max-width: 1180px; margin: 0 auto; }
.hp-assets-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.hp-asset-card { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: #fff; transition: all 0.35s; }
.hp-asset-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); border-color: var(--orange); }
.hp-asset-img { overflow: hidden; height: 140px; }
.hp-asset-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.hp-asset-card:hover .hp-asset-img img { transform: scale(1.06); }
.hp-asset-info { padding: 1rem; }
.hp-asset-info h3 { font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; margin-bottom: 0.15rem; }
.hp-asset-info p { color: var(--text-secondary); font-size: 0.75rem; font-weight: 300; }

/* ── TESTIMONIAL ── */
.hp-testimonial { padding: 3rem 2rem; background: #0d0f13; color: #fff; font-family: var(--font-body); }
.hp-test-inner { max-width: 580px; margin: 0 auto; text-align: center; }
.hp-test-quote-mark { font-size: 2.5rem; color: var(--orange); line-height: 1; font-family: Georgia, serif; margin-bottom: 0.2rem; }
.hp-test-quote { font-size: 0.95rem; line-height: 1.7; color: rgba(255,255,255,0.75); margin-bottom: 1rem; font-weight: 300; font-style: italic; border: none; padding: 0; margin-left: 0; margin-right: 0; }
.hp-test-author { font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; color: #fff; margin-bottom: 0.1rem; }
.hp-test-role { color: var(--orange); font-size: 0.7rem; font-weight: 500; }

/* ── CTA ── */
.hp-cta { padding: 4rem 2rem; background: linear-gradient(160deg, #1a2530 0%, #0d1218 100%); color: #fff; text-align: center; font-family: var(--font-body); position: relative; overflow: hidden; }
.hp-cta::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle at 30% 50%, rgba(255,103,0,0.06) 0%, transparent 50%); pointer-events: none; }
.hp-cta h2 { font-family: var(--font-display); font-size: clamp(1.4rem, 2.5vw, 1.8rem); font-weight: 800; margin-bottom: 0.5rem; letter-spacing: -0.02em; position: relative; }
.hp-cta p { color: rgba(255,255,255,0.4); font-size: 0.85rem; margin-bottom: 1.5rem; font-weight: 300; position: relative; }
.hp-cta-btns { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; position: relative; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .hp-hero-inner { grid-template-columns: 1fr; padding-top: 5rem; }
    .hp-svc-grid { grid-template-columns: repeat(2, 1fr); }
    .hp-why-grid { grid-template-columns: repeat(2, 1fr); }
    .hp-assets-grid { grid-template-columns: repeat(2, 1fr); }
    .hp-about-inner { grid-template-columns: 1fr; }
    .hp-pain-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hp-hero h1 { font-size: 1.8rem; }
    .hp-hero-inner { padding: 4rem 1.25rem 2.5rem; gap: 1.5rem; }
    .hp-services, .hp-why, .hp-assets, .hp-testimonial, .hp-cta, .hp-pain, .hp-about { padding: 3rem 1.25rem; }
    .hp-svc-grid, .hp-why-grid, .hp-assets-grid { grid-template-columns: 1fr; }
    .hp-stats-inner { grid-template-columns: repeat(2, 1fr); }
    .hp-image-strip { grid-template-columns: repeat(2, 1fr); }
    .hp-image-strip img { height: 120px; }
    .hp-form-row { grid-template-columns: 1fr; }
    .hp-hero-btns, .hp-cta-btns { flex-direction: column; align-items: stretch; }
    .hp-btn { justify-content: center; }
    .hp-about-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .hp-hero h1 { font-size: 1.5rem; }
    .hp-stat h3 { font-size: 1.6rem; }
    .hp-stat { padding: 1.25rem 0.75rem; }
}
