/* ==========================================================================
   HOUZIO TECHNOLOGIES — APPLE-GRADE CORPORATE DESIGN SYSTEM
   ========================================================================== */
:root {
    --hz-bg: #ffffff;
    --hz-surface: #f5f5f7;
    --hz-dark: #09090b;
    --hz-dark-card: #121216;
    --hz-ink: #1d1d1f;
    --hz-muted: #6e6e73;
    --hz-accent: #0071e3;
    --hz-accent-bright: #33a0ff;
    --hz-accent-hover: #005bb5;
    --hz-border: rgba(0, 0, 0, 0.08);
    --hz-border-dark: rgba(255, 255, 255, 0.12);
    --hz-font: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, sans-serif;
    --hz-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --hz-radius-lg: 24px;
    --hz-radius-md: 16px;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
}

body {
    font-family: var(--hz-font);
    color: var(--hz-ink);
    background-color: var(--hz-bg);
    font-weight: 300;
    line-height: 1.6;
    letter-spacing: -0.015em;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--hz-ink);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.12;
}

/* ==========================================================================
   1. PROMINENT BRAND NAVBAR (GLASSMORPHIC)
   ========================================================================== */
.hz-navbar {
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--hz-border);
    padding: 12px 0;
    transition: background 0.3s var(--hz-ease), box-shadow 0.3s var(--hz-ease);
}

.hz-navbar.scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.hz-brand-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.hz-brand-logo {
    height: 44px;
    width: auto;
    display: block;
    transition: transform 0.3s var(--hz-ease);
}

.hz-brand-wrap:hover .hz-brand-logo {
    transform: scale(1.02);
}

.hz-brand-pill {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hz-muted);
    border-left: 1px solid var(--hz-border);
    padding-left: 10px;
    line-height: 1.1;
}

.hz-nav-link {
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--hz-ink) !important;
    padding: 8px 14px !important;
    border-radius: 999px;
    transition: color 0.25s var(--hz-ease), background 0.25s var(--hz-ease);
    white-space: nowrap;
}

.hz-nav-link:hover,
.hz-nav-link.active {
    color: var(--hz-accent) !important;
    background: rgba(0, 113, 227, 0.06);
}

.hz-nav-b2b {
    color: var(--hz-ink) !important;
    font-weight: 500;
}

@media (max-width: 1199.98px) {
    .hz-brand-logo { height: 38px; }
    .hz-navbar .navbar-collapse {
        background: #ffffff;
        padding: 20px;
        border-radius: 20px;
        margin-top: 12px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
        border: 1px solid var(--hz-border);
    }
}

/* ==========================================================================
   2. BUTTONS (SURGICAL, HIGH-AUTHORITY)
   ========================================================================== */
.btn-hz-primary {
    background: var(--hz-accent);
    color: #ffffff;
    border: 1px solid var(--hz-accent);
    border-radius: 999px;
    padding: 11px 24px;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s var(--hz-ease);
    text-decoration: none;
    cursor: pointer;
}

.btn-hz-primary:hover {
    background: var(--hz-accent-hover);
    border-color: var(--hz-accent-hover);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 113, 227, 0.28);
}

.btn-hz-dark {
    background: var(--hz-ink);
    color: #ffffff;
    border: 1px solid var(--hz-ink);
    border-radius: 999px;
    padding: 11px 24px;
    font-size: 0.88rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s var(--hz-ease);
    text-decoration: none;
    cursor: pointer;
}

.btn-hz-dark:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.btn-hz-outline {
    background: transparent;
    color: var(--hz-ink);
    border: 1px solid rgba(0, 0, 0, 0.22);
    border-radius: 999px;
    padding: 11px 24px;
    font-size: 0.88rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s var(--hz-ease);
    text-decoration: none;
    cursor: pointer;
}

.btn-hz-outline:hover {
    border-color: var(--hz-ink);
    background: var(--hz-ink);
    color: #ffffff;
}

.btn-hz-glass {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 11px 24px;
    font-size: 0.88rem;
    font-weight: 400;
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s var(--hz-ease);
    text-decoration: none;
    cursor: pointer;
}

.btn-hz-glass:hover {
    background: #ffffff;
    color: var(--hz-dark);
    border-color: #ffffff;
}

.btn-hz-sm {
    padding: 8px 18px;
    font-size: 0.82rem;
}

/* ==========================================================================
   3. SECTION RHYTHM & TYPOGRAPHY
   ========================================================================== */
.hz-section {
    padding: 88px 0;
}

.hz-section-surface {
    background-color: var(--hz-surface);
}

.hz-section-dark {
    background-color: var(--hz-dark);
    color: #ffffff;
}

.hz-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--hz-accent);
    margin-bottom: 12px;
}

.hz-section-dark .hz-eyebrow {
    color: var(--hz-accent-bright);
}

.hz-title {
    font-size: clamp(1.9rem, 3.6vw, 3rem);
    font-weight: 500;
    letter-spacing: -0.035em;
    margin-bottom: 16px;
}

.hz-subtitle {
    font-size: clamp(0.98rem, 1.3vw, 1.12rem);
    color: var(--hz-muted);
    font-weight: 300;
    max-width: 620px;
}

.hz-section-dark .hz-title {
    color: #ffffff;
}

.hz-section-dark .hz-subtitle {
    color: rgba(255, 255, 255, 0.68);
}

@media (max-width: 767.98px) {
    .hz-section { padding: 56px 0; }
}

/* ==========================================================================
   4. APPLE-GRADE EDITORIAL HERO (NO STOLEN STOCK VIDEO)
   ========================================================================== */
.hz-hero {
    position: relative;
    background-color: var(--hz-dark);
    color: #ffffff;
    padding: 132px 0 88px 0;
    overflow: hidden;
}

.hz-hero::before {
    content: '';
    position: absolute;
    top: -180px;
    left: 50%;
    transform: translateX(-50%);
    width: 960px;
    height: 540px;
    background: radial-gradient(ellipse at center, rgba(51, 160, 255, 0.22) 0%, rgba(0, 113, 227, 0.05) 45%, transparent 72%);
    pointer-events: none;
    z-index: 0;
}

.hz-hero-inner {
    position: relative;
    z-index: 2;
}

.hz-hero-title {
    font-size: clamp(2.25rem, 5.2vw, 4.1rem);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1.06;
    color: #ffffff;
    margin-bottom: 20px;
}

.hz-text-gradient {
    background: linear-gradient(95deg, #ffffff 0%, #7cc4ff 55%, #33a0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Live Houzio Engine Preview Panel inside Hero */
.hz-engine-panel {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--hz-border-dark);
    border-radius: var(--hz-radius-lg);
    padding: 24px;
    backdrop-filter: blur(16px);
    text-align: left;
}

.hz-engine-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 10px;
    font-size: 0.84rem;
}

.hz-engine-row:last-child {
    margin-bottom: 0;
}

.hz-status-pass {
    color: #34d399;
    font-size: 0.74rem;
    font-weight: 500;
    background: rgba(52, 211, 153, 0.12);
    padding: 3px 10px;
    border-radius: 999px;
}

.hz-status-cut {
    color: #f87171;
    font-size: 0.74rem;
    font-weight: 500;
    background: rgba(248, 113, 113, 0.12);
    padding: 3px 10px;
    border-radius: 999px;
}

/* ==========================================================================
   5. AUTHORITY CARDS & BENTO GRIDS
   ========================================================================== */
.hz-card {
    background: #ffffff;
    border: 1px solid var(--hz-border);
    border-radius: var(--hz-radius-lg);
    padding: 32px 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.4s var(--hz-ease), box-shadow 0.4s var(--hz-ease), border-color 0.3s ease;
}

.hz-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 113, 227, 0.25);
}

.hz-card-dark {
    background: var(--hz-dark-card);
    border: 1px solid var(--hz-border-dark);
    color: #ffffff;
}

.hz-card-dark:hover {
    border-color: rgba(51, 160, 255, 0.4);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

.hz-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(0, 113, 227, 0.08);
    color: var(--hz-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.hz-card-dark .hz-icon-box {
    background: rgba(51, 160, 255, 0.14);
    color: var(--hz-accent-bright);
}

.hz-metric-val {
    font-size: clamp(2rem, 3.2vw, 2.75rem);
    font-weight: 500;
    letter-spacing: -0.04em;
    color: var(--hz-ink);
    line-height: 1;
    margin-bottom: 6px;
}

.hz-section-dark .hz-metric-val {
    color: #ffffff;
}

.hz-metric-label {
    font-size: 0.84rem;
    color: var(--hz-muted);
    margin: 0;
}

/* ==========================================================================
   6. DEVELOPER TICKER & GEO-DOMAIN MARQUEE
   ========================================================================== */
.hz-ticker {
    background: var(--hz-surface);
    border-top: 1px solid var(--hz-border);
    border-bottom: 1px solid var(--hz-border);
    padding: 16px 0;
    overflow: hidden;
}

.hz-ticker-track {
    display: flex;
    width: max-content;
    gap: 36px;
    animation: hzMarquee 32s linear infinite;
}

.hz-ticker:hover .hz-ticker-track {
    animation-play-state: paused;
}

.hz-ticker-item {
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hz-muted);
    white-space: nowrap;
}

@keyframes hzMarquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* ==========================================================================
   7. APPLE SEGMENTED CONTROL & DUAL CALCULATOR
   ========================================================================== */
.hz-segment {
    display: inline-flex;
    background: #e8e8ed;
    padding: 4px;
    border-radius: 999px;
    gap: 4px;
}

.hz-segment-btn {
    border: none;
    background: transparent;
    color: var(--hz-muted);
    font-size: 0.84rem;
    font-weight: 500;
    padding: 9px 20px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.25s var(--hz-ease);
}

.hz-segment-btn.active {
    background: #ffffff;
    color: var(--hz-ink);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Custom Sleek Range Sliders */
.hz-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: #d2d2d7;
    border-radius: 999px;
    outline: none;
    cursor: pointer;
}

.hz-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--hz-accent);
    box-shadow: 0 2px 8px rgba(0, 113, 227, 0.28);
    transition: transform 0.15s ease;
}

.hz-range::-webkit-slider-thumb:hover {
    transform: scale(1.12);
}

.hz-range::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--hz-accent);
    box-shadow: 0 2px 8px rgba(0, 113, 227, 0.28);
}

.hz-calc-output {
    background: var(--hz-dark);
    color: #ffffff;
    border-radius: 20px;
    padding: 32px 28px;
}

/* ==========================================================================
   8. REVIEWS MARQUEE (SMOOTH INFINITE)
   ========================================================================== */
.hz-reviews-wrap {
    width: 100%;
    overflow: hidden;
    padding: 12px 0 24px 0;
    -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
    mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.hz-reviews-track {
    display: flex;
    width: max-content;
    animation: hzMarquee 48s linear infinite;
    will-change: transform;
}

.hz-reviews-wrap:hover .hz-reviews-track {
    animation-play-state: paused;
}

.hz-reviews-group {
    display: flex;
    gap: 20px;
    padding-right: 20px;
    flex-shrink: 0;
}

.hz-review-card {
    width: 340px;
    flex-shrink: 0;
    background: var(--hz-dark-card);
    border: 1px solid var(--hz-border-dark);
    border-radius: 20px;
    padding: 26px;
}

/* ==========================================================================
   9. FORMS, MODALS & ACCORDION
   ========================================================================== */
.hz-input, .hz-select {
    width: 100%;
    padding: 12px 14px;
    font-size: 0.9rem;
    font-family: var(--hz-font);
    color: var(--hz-ink);
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.16);
    border-radius: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hz-input:focus, .hz-select:focus {
    outline: none;
    border-color: var(--hz-accent);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

.accordion-item {
    border: none;
    border-bottom: 1px solid var(--hz-border);
    background: transparent;
}

.accordion-button {
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--hz-ink);
    background: transparent !important;
    padding: 20px 0;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    color: var(--hz-accent);
}

.accordion-body {
    padding: 0 0 20px 0;
    font-size: 0.92rem;
    color: var(--hz-muted);
    line-height: 1.65;
}

/* ==========================================================================
   10. SCROLL REVEAL ANIMATION
   ========================================================================== */
.hz-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s var(--hz-ease), transform 0.7s var(--hz-ease);
}

.hz-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
/* ==========================================================================
   11. HOUZIO PROPRIETARY DOMAIN NETWORK (FILTERABLE GRID)
   ========================================================================== */
.hz-filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}

.hz-filter-btn {
    border: 1px solid var(--hz-border);
    background: #ffffff;
    color: var(--hz-muted);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.25s var(--hz-ease);
}

.hz-filter-btn:hover {
    border-color: var(--hz-ink);
    color: var(--hz-ink);
}

.hz-filter-btn.active {
    background: var(--hz-ink);
    border-color: var(--hz-ink);
    color: #ffffff;
}

.hz-domain-card {
    background: #ffffff;
    border: 1px solid var(--hz-border);
    border-radius: 18px;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s var(--hz-ease), box-shadow 0.3s var(--hz-ease), border-color 0.25s ease;
}

.hz-domain-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 113, 227, 0.35);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.06);
}

.hz-domain-name {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--hz-ink);
    letter-spacing: -0.02em;
    word-break: break-word;
}

.hz-domain-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(0, 113, 227, 0.08);
    color: var(--hz-accent);
}

.hz-domain-badge.live {
    background: rgba(52, 211, 153, 0.14);
    color: #059669;
}