/* ============================================================
   Securify Hero — securify-hero.css
   Scoped with .sh-* prefix to avoid conflicts with any theme.
   ============================================================ */

/* ── Reset / scope ─────────────────────────────────────────── */
.sh-hero *,
.sh-hero *::before,
.sh-hero *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Section ─────────────────────────────────────────────────
   Full-viewport height, overflow hidden, black background.
   Using 100svh with 100vh fallback for mobile browsers.
*/
.sh-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    background: #000;
    font-family: 'Readex Pro', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Preloader ───────────────────────────────────────────────*/
.sh-preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    transition: opacity 0.7s ease;
}

.sh-preloader.sh-hidden {
    opacity: 0;
    pointer-events: none;
}

.sh-preloader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.sh-logo-img {
    height: 32px;
    width: auto;
    animation: sh-pulse 2s ease-in-out infinite;
}

.sh-logo-text {
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.02em;
    animation: sh-pulse 2s ease-in-out infinite;
}

.sh-preloader-bar {
    height: 2px;
    width: 128px;
    background: rgba(255,255,255,0.2);
    border-radius: 9999px;
    overflow: hidden;
}

.sh-preloader-bar-fill {
    height: 100%;
    width: 100%;
    background: #fff;
    transform-origin: left;
    animation: sh-loading 1.5s ease-in-out infinite;
}

@keyframes sh-loading {
    0%   { transform: scaleX(0); transform-origin: left; }
    50%  { transform: scaleX(1); transform-origin: left; }
    51%  { transform-origin: right; }
    100% { transform: scaleX(0); transform-origin: right; }
}

@keyframes sh-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.5; }
}

/* ── Background video ────────────────────────────────────────*/
.sh-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* ── Navbar ──────────────────────────────────────────────────*/
.sh-nav {
    position: absolute;
    z-index: 20;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 24px 0;
}

@media (min-width: 768px) {
    .sh-nav {
        padding: 24px 40px 0;
    }
}

.sh-nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 9999px;
    padding: 10px 20px;
}

.sh-nav-links {
    display: none;
    align-items: center;
    gap: 4px;
    background: rgba(23,23,23,0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 9999px;
    padding: 8px 12px;
}

@media (min-width: 768px) {
    .sh-nav-links {
        display: flex;
    }
}

.sh-nav-link {
    color: rgba(212,212,212,1);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 20px;
    border-radius: 9999px;
    transition: color 0.2s ease;
}

.sh-nav-link:hover {
    color: #fff;
}

.sh-cta-btn {
    background: #fff;
    color: #000;
    font-size: 14px;
    font-weight: 400;
    font-family: inherit;
    border: none;
    border-radius: 9999px;
    padding: 12px 24px;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.sh-cta-btn:hover {
    background: rgba(229,229,229,1);
}

/* ── Content layer ───────────────────────────────────────────*/
.sh-content {
    position: relative;
    height: 100%;
    width: 100%;
    z-index: 10;
}

/* ── Headlines ───────────────────────────────────────────────*/
.sh-headline {
    position: absolute;
    color: #fff;
    font-weight: 500;
    font-size: 12vw;
    letter-spacing: -0.04em;
    line-height: 0.95;
}

@media (min-width: 768px) {
    .sh-headline {
        font-size: 11vw;
    }
}

.sh-headline--left  { left: 16px; }
.sh-headline--right { right: 16px; }
.sh-headline--center { left: 18%; }

@media (min-width: 768px) {
    .sh-headline--left   { left: 40px; }
    .sh-headline--right  { right: 40px; }
    .sh-headline--center { left: 28%; }
}

.sh-headline--top  { top: 18%; }
.sh-headline--mid  { top: 38%; }
.sh-headline--low  { top: 58%; }

/* ── Description ─────────────────────────────────────────────*/
.sh-description {
    position: absolute;
    left: 24px;
    top: 46%;
    max-width: 260px;
    font-size: 15px;
    line-height: 1.35;
    color: rgba(255,255,255,0.9);
}

@media (min-width: 768px) {
    .sh-description {
        left: 40px;
    }
}

/* ── Stats ───────────────────────────────────────────────────*/
.sh-stat {
    position: absolute;
}

/* top-right */
.sh-stat--tr {
    right: 24px;
    top: 14%;
}
@media (min-width: 768px) {
    .sh-stat--tr { right: 96px; }
}

/* bottom-left */
.sh-stat--bl {
    left: 24px;
    bottom: 80px;
}
@media (min-width: 768px) {
    .sh-stat--bl {
        left: 80px;
        bottom: 96px;
    }
}

/* bottom-right */
.sh-stat--br {
    right: 24px;
    bottom: 64px;
}
@media (min-width: 768px) {
    .sh-stat--br {
        right: 80px;
        bottom: 80px;
    }
}

.sh-stat-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sh-stat-row--right {
    justify-content: flex-end;
}

.sh-stat-value {
    font-size: 36px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: #fff;
}

@media (min-width: 768px) {
    .sh-stat-value {
        font-size: 48px;
    }
}

.sh-stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin-top: 4px;
}

@media (min-width: 768px) {
    .sh-stat-label {
        font-size: 14px;
    }
}

.sh-stat-label--right {
    text-align: right;
}

.sh-stat-line {
    display: none;
    height: 1px;
    width: 96px;
    background: rgba(255,255,255,0.4);
}

@media (min-width: 768px) {
    .sh-stat-line {
        display: block;
    }
}

.sh-stat-line--angled-r { transform: rotate(20deg); }
.sh-stat-line--angled-l { transform: rotate(-20deg); }

/* ── Bottom gradient overlay ─────────────────────────────────*/
.sh-gradient-bottom {
    pointer-events: none;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 192px;
    background: linear-gradient(to bottom, transparent, #000);
}

/* ── Google Fonts: Readex Pro ────────────────────────────────
   Loaded via JS so it doesn't block rendering.
   If you already load this font in your theme, remove the
   @import below (handled in securify-hero.js).
*/
