/* Critical first-paint shell. Keep this file small and limited to above-fold home UI. */
:root {
    --bg-main: #020202;
    --red-main: #4A4A4A;
    --red-glow: rgba(74, 74, 74, 0.4);
    --font-heading: 'Space Grotesk', sans-serif;
    --text-dim: #8b8b8b;
    --blood: #da291c;
    --void: #0a0a0a;
    --text-main: #ffffff;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, Tahoma, 'Microsoft YaHei', 'Noto Sans Arabic', 'Noto Sans Devanagari', 'Noto Sans SC', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    background-color: #000000 !important;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    line-height: 1.6;
    font-size-adjust: 0.508;
}

.app-boot-loader {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    opacity: 1;
    visibility: visible;
    transition: opacity .22s ease, visibility .22s ease;
    animation: bsBootFailsafeHide .01s linear 12s forwards;
}

.app-boot-loader.is-hiding {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.newtons-cradle {
    --uib-size: 50px;
    --uib-speed: 1.2s;
    --uib-color: #474554;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--uib-size);
    height: var(--uib-size);
}

.newtons-cradle__dot {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    width: 25%;
    transform-origin: center top;
}

.newtons-cradle__dot::after {
    content: '';
    display: block;
    width: 100%;
    height: 25%;
    border-radius: 50%;
    background-color: var(--uib-color);
}

.newtons-cradle__dot:first-child { animation: swing var(--uib-speed) linear infinite; }
.newtons-cradle__dot:last-child { animation: swing2 var(--uib-speed) linear infinite; }
.newtons-cradle--compact { --uib-size: 22px; }

@keyframes swing {
    0% { transform: rotate(0deg); animation-timing-function: ease-out; }
    25% { transform: rotate(70deg); animation-timing-function: ease-in; }
    50% { transform: rotate(0deg); animation-timing-function: linear; }
}

@keyframes swing2 {
    0% { transform: rotate(0deg); animation-timing-function: linear; }
    50% { transform: rotate(0deg); animation-timing-function: ease-out; }
    75% { transform: rotate(-70deg); animation-timing-function: ease-in; }
}

@keyframes bsBootFailsafeHide {
    to { opacity: 0; visibility: hidden; pointer-events: none; }
}

.spa-view {
    display: none;
    width: 100vw;
    min-height: 100vh;
    position: relative;
}

.spa-view.active {
    display: block;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 23px;
    z-index: 5000;
    background: transparent;
    pointer-events: none;
}

header > * {
    pointer-events: auto;
}

.logo {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo .logo-name {
    font-weight: 700;
    color: #fff;
    font-size: 1.1rem;
}

.prof-header-label,
.header-close-btn,
.header-title,
.cta {
    display: none;
}

.hamburger {
    cursor: pointer;
}

.hamburger input {
    display: none;
}

.hamburger svg {
    height: 2em;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.8));
}

.line {
    fill: none;
    stroke: #fff;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
    transition: 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line-top-bottom {
    stroke-dasharray: 12 63;
}

body.view-home-active .logo .logo-name {
    color: #fff !important;
}

body.view-home-active .hamburger .line {
    stroke: #fff !important;
    color: #fff;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(2, 2, 2, 0.98);
    z-index: 6000;
    display: flex;
    flex-direction: column;
    visibility: hidden;
    opacity: 0;
    overflow: hidden;
}

.hero-parallax-wrapper {
    position: relative;
    width: 100%;
}

.first-page {
    position: sticky;
    top: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 8px 8px;
    color: white;
    overflow: hidden;
    z-index: 0;
    scroll-snap-align: start;
}

.background-layer {
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 12px;
    right: 12px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    z-index: -2;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.9);
}

.background-layer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
}

.background-layer.active {
    opacity: 1;
}

.content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin-bottom: 25px;
    padding: 15px;
}

.line-1 {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.1;
    display: block;
    margin-bottom: 2px;
}

.line-2 {
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0.9;
    display: block;
}

#hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 52px 30px;
    position: relative;
    background: #000000;
    z-index: 10;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(74, 74, 74, 0.1) 0%, transparent 60%);
    filter: blur(120px);
    z-index: -1;
    animation: pulseGlow 8s infinite alternate ease-in-out;
}

.wordmark-wrap {
    width: 100%;
    pointer-events: none;
    opacity: 0;
    animation: fadeInScale 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 25px rgba(74, 74, 74, 0.15));
}

.wordmark-wrap svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}

.glitch-red {
    display: inline-block;
    fill: var(--red-main);
    animation: none !important;
    transform: none !important;
}

.text-glitch-red {
    color: var(--red-main);
    display: inline-block;
    animation: none !important;
    transform: none !important;
}

.hero-tagline {
    font-size: clamp(14px, 1.5vw, 20px);
    font-weight: 500;
    line-height: 1.7;
    color: #666;
    margin-bottom: 40px;
    max-width: 800px;
    opacity: 0;
    animation: fadeUp 1s 0.5s forwards;
}

.typewriter::after {
    content: '|';
    color: var(--red-main);
    animation: blink 1s step-start infinite;
    margin-left: 6px;
    font-weight: 300;
    font-size: 0.95em;
    position: relative;
    top: -1px;
}

.hero-center-block {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 34px 0 30px;
    opacity: 0;
    animation: fadeUp 1s 1.1s forwards;
    text-align: center;
}

.hero-pyramid-card {
    width: min(100%, 980px);
    position: relative;
    text-align: center;
    padding: 0;
    background: none;
    border: none;
    clip-path: none;
    backdrop-filter: none;
    box-shadow: none;
}

.hero-pyramid-title {
    font-size: clamp(24px, 3.2vw, 48px);
    font-weight: 700;
    letter-spacing: 3px;
    line-height: 1.15;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 28px;
}

.hero-pyramid-desc {
    max-width: 880px;
    margin: 0 auto;
    font-size: clamp(14px, 1.5vw, 20px);
    color: #666;
    line-height: 1.7;
    font-weight: 500;
    text-align: center;
    font-family: var(--font-heading);
}

.hero-pyramid-desc span {
    display: block;
}

.hero-pyramid-desc .line-1 {
    max-width: 880px;
    margin: 0 auto;
}

.hero-pyramid-desc .line-2 {
    max-width: 780px;
    margin: 0 auto;
}

.hero-pyramid-desc .line-3 {
    max-width: 650px;
    margin: 0 auto;
}

.hero-pyramid-desc .line-4 {
    max-width: 500px;
    margin: 0 auto;
}

.hero-services {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeUp 1s 0.7s forwards;
}

.hero-services span {
    font-size: 13px;
    color: #444;
    font-weight: 400;
}

.hero-services .sep {
    margin: 0 10px;
    color: #222;
}

.hero-cta-wrap {
    opacity: 0;
    animation: fadeUp 1s 0.9s forwards;
}

.btn-main {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn-main-text {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--red-main);
    border-right: none;
    padding: 16px 30px;
    transition: all .4s ease;
}

.btn-main-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: var(--red-main);
    color: #000;
    font-size: 18px;
    transition: all .4s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulseGlow {
    from {
        opacity: .4;
        transform: scale(1);
    }

    to {
        opacity: .7;
        transform: scale(1.05);
    }
}

@keyframes blink {
    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

@media (max-width: 480px) {
    :root {
        --header-height: 52px;
    }

    header {
        height: var(--header-height);
        padding: 0 14px;
    }

    .logo .logo-name {
        font-size: 0.85rem;
        letter-spacing: 2px;
    }

    .hamburger svg {
        height: 1.5em;
    }

    .first-page {
        display: none !important;
    }
}
