/* Global Setup & Fonts */
@font-face {
    font-family: 'Mazzard H';
    src: url('https://db.onlinewebfonts.com/t/eb5b5ee332420add9a40ee988cb6ac37.woff2') format('woff2');
    font-weight: 400;
}
@font-face {
    font-family: 'Mazzard H';
    src: url('https://db.onlinewebfonts.com/t/875fffdfa62169a0f131e90f37f1faf4.woff2') format('woff2');
    font-weight: 500;
}

:root {
    --deep-navy: rgb(26, 11, 84);
    --muted-lavender: rgb(189, 174, 231);
    --muted-lavender-dark: rgb(131, 121, 158);
    --accent-purple: rgb(200, 111, 255);
    --primary-blue: rgb(28, 78, 255);
    --gradient-a: linear-gradient(90deg, rgb(28,78,255), rgb(172,36,255) 50%, rgb(254,136,27));
    --gradient-b: linear-gradient(90deg, rgb(43,167,255), rgb(202,69,255) 50%, rgb(254,136,27));
    --off-white: rgb(249, 249, 249);
    --dark-card-bg: rgba(10, 5, 20, 0.88);
}

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

html, body {
    font-family: 'Mazzard H', sans-serif;
    color: var(--deep-navy);
    background-color: white;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Reusable Gradients */
.gradient-b {
    background: var(--gradient-b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.gradient-b-inline {
    background: var(--gradient-b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-bottom: 0.3vw;
    display: inline-block;
}

/* 1. Navbar */
.navbar-wrapper {
    position: fixed;
    top: 1rem;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    justify-content: center;
    padding-left: 1rem;
    padding-right: 1rem;
}

.navbar {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 72rem; /* max-w-6xl */
    transition: max-width 0.5s ease-in-out;
}

.navbar.scrolled {
    max-width: 56rem; /* increased from 48rem to prevent wrapping */
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.375rem 0.5rem 0.375rem 1.25rem;
    transition: padding 0.5s ease-in-out;
}

.navbar.scrolled .nav-inner {
    padding-left: 1rem;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-text {
    font-size: 22px;
    letter-spacing: -0.02em;
    color: var(--deep-navy);
    font-weight: 500;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: gap 0.5s ease-in-out;
}

.navbar.scrolled .nav-links {
    gap: 0;
}

.nav-links a {
    font-size: 0.875rem;
    border-radius: 0.75rem;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
}

.navbar.scrolled .nav-links a {
    padding: 0.375rem 0.5rem;
}

.nav-links a:hover {
    background-color: #f3f4f6;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-menu-btn {
    display: none; /* hidden on desktop */
    width: 40px;
    height: 40px;
    border-radius: 0.75rem;
    border: none;
    background: transparent;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: var(--deep-navy);
    transition: background-color 0.3s;
}

.mobile-menu-btn:hover {
    background-color: #f3f4f6;
}

@media (max-width: 768px) {
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        margin-top: 0.5rem;
        left: 0;
        right: 0;
        background-color: white;
        padding: 0.5rem;
        border-radius: 1rem;
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
        margin-left: 1rem;
        margin-right: 1rem;
        
        opacity: 0;
        visibility: hidden;
        transform: translateY(-15px) scale(0.98);
        transform-origin: top center;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
    }
    
    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 0.75rem;
        font-size: 1rem;
    }
    
    .navbar.mobile-open .nav-links {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }

    .mobile-menu-btn {
        display: flex;
    }
}

/* Contact Button */
.contact-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    padding: 1px; /* border thickness */
    background: var(--gradient-a);
    cursor: pointer;
}

.contact-inner {
    border-radius: 11px;
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
    color: white;
    background-color: var(--primary-blue);
    transition: background-color 0.3s;
}

.contact-btn:hover .contact-inner {
    background-color: transparent; /* reveals gradient background */
}

/* 2. Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    overflow: hidden;
}

#hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 12rem;
    z-index: 10;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent, #000201);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 42rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hero-eyebrow {
    background: var(--gradient-b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.125rem;
    font-weight: 500;
}

.hero-h1 {
    color: white;
    font-weight: 500;
    line-height: 1.1;
    font-size: clamp(32px, 4vw, 56px);
}

@media (min-width: 768px) {
    .hero-h1 {
        white-space: nowrap;
    }
}

.hero-p {
    color: var(--muted-lavender);
    font-size: clamp(15px, 1.2vw, 20px);
    font-weight: 400;
}

/* 3. TrustedSection */
.trusted-section {
    background-image: url('https://images.higgs.ai/?default=1&output=webp&url=https%3A%2F%2Fd8j0ntlcm91z4.cloudfront.net%2Fuser_38xzZboKViGWJOttwIXH07lWA1P%2Fhf_20260418_120332_3b24257a-afe6-48ca-875f-78147370f403.png&w=1280&q=85');
    background-size: cover;
    background-position: center;
    padding: clamp(100px, 12vw, 180px) clamp(16px, 4vw, 40px) clamp(100px, 12vw, 160px);
    display: flex;
    flex-direction: column;
    gap: 110px;
    position: relative;
}

.trusted-header {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.trusted-header h2 {
    color: white;
    font-weight: 500;
    font-size: clamp(32px, 4vw, 56px);
    line-height: 1.2;
}

.trusted-header p {
    color: var(--muted-lavender);
    font-size: clamp(14px, 1.25vw, 18px);
}

.trusted-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 640px) {
    .trusted-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .trusted-grid { grid-template-columns: repeat(4, 1fr); }
}

.trusted-fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 180px;
    background: linear-gradient(to bottom, transparent, rgb(255,255,255));
    pointer-events: none;
}

/* Service Card */
.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 36px;
    cursor: pointer;
    background: var(--dark-card-bg);
    backdrop-filter: blur(36px);
    -webkit-backdrop-filter: blur(36px);
    height: clamp(320px, 32vw, 500px);
}

.card-top-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 55%;
    object-fit: cover;
    object-position: top;
    z-index: 1;
    transform: translateY(-30%);
    opacity: 0.7;
    transition: all 0.5s ease;
}

.service-card:hover .card-top-img {
    transform: translateY(0);
    opacity: 1;
}

.card-bottom-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 55%;
    background: linear-gradient(to top, rgba(10,5,20,0.95) 60%, transparent);
    z-index: 1;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.5s ease;
}

.service-card:hover .card-bottom-fade {
    transform: translateY(0);
    opacity: 1;
}

.card-content {
    position: relative;
    z-index: 2;
    padding: clamp(16px, 1.94vw, 32px) clamp(18px, 2.36vw, 36px);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-badge {
    align-self: flex-start;
    background-color: rgb(41, 31, 57);
    border-radius: 9999px;
    padding: clamp(6px, 0.7vw, 12px) clamp(10px, 1.25vw, 20px);
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.card-icon {
    width: clamp(14px, 1.11vw, 20px);
    height: 17px;
    color: var(--accent-purple);
}

.spacer {
    flex-grow: 1;
}

.card-title {
    color: white;
    font-weight: 500;
    font-size: clamp(16px, 1.7vw, 24px);
    line-height: 1.3;
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}

.service-card:hover .card-title {
    transform: translateY(-8px);
}

.card-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-bullets li {
    color: var(--muted-lavender);
    font-size: clamp(12px, 1vw, 15px);
    padding-left: clamp(22px, 1.8vw, 28px);
    background-image: url('https://cdn.prod.website-files.com/6720dd1ab6df0da205830ab1/683ef70a24657b10be91ef49_bullet-list.svg');
    background-size: 18px;
    background-repeat: no-repeat;
    background-position: 0% 50%;
}

.learn-more-btn {
    display: inline-block;
    max-height: 0;
    opacity: 0;
    transform: translateY(20px);
    background: var(--gradient-a);
    color: white;
    border-radius: 0.75rem;
    padding: clamp(10px, 0.9vw, 14px) 0;
    font-size: clamp(13px, 1.1vw, 16px);
    text-align: center;
    margin-top: 16px;
    transition: all 0.4s ease;
    overflow: hidden;
}

.service-card:hover .learn-more-btn {
    max-height: 80px;
    opacity: 1;
    transform: translateY(0);
}

/* 4. FreedomSection */
.freedom-section {
    background-color: #ffffff;
    padding: clamp(48px, 6vw, 80px) clamp(16px, 3vw, 40px);
    display: flex;
    flex-direction: column;
    gap: 36px;
    position: relative;
    z-index: 10;
}

.freedom-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
}

.chip-white {
    background-color: var(--off-white);
    border-radius: 9999px;
    padding: 0.9vw 1.25vw;
    color: var(--deep-navy);
    font-size: 1.125rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.freedom-header h2 {
    font-weight: 500;
    font-size: clamp(32px, 4vw, 56px);
    color: var(--deep-navy);
    line-height: 1.15;
}

.freedom-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0 clamp(0px, 2.92vw, 40px);
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .freedom-grid {
        display: grid;
        grid-template-columns: 26vw 1fr 26vw;
        gap: 36px;
    }
}

.freedom-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.freedom-card {
    background-color: white;
    border-radius: 18px;
    padding: clamp(12px, 0.97vw, 16px) clamp(14px, 1.25vw, 20px);
    box-shadow: 0 3px 9.1px #3f4a7e0d, 0 1px 29px #3f4a7e1a;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: clamp(13px, 1.15vw, 17px);
    color: var(--muted-lavender-dark);
}

.freedom-card.positive {
    color: var(--deep-navy);
}

.freedom-icon {
    width: clamp(16px, 1.25vw, 20px);
    flex-shrink: 0;
}

.center-col {
    width: 100%;
    display: flex;
    justify-content: center;
    order: -1;
}

@media (min-width: 1024px) {
    .center-col {
        order: 0;
    }
}

.circular-video-wrap {
    border-radius: 50%;
    overflow: hidden;
    width: clamp(200px, 22vw, 400px);
    height: clamp(200px, 22vw, 400px);
    position: relative;
    background: #000;
}

#hls-video {
    width: 160%;
    height: 160%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 5. PrecisionSection */
.precision-section {
    background-image: url('https://images.higgs.ai/?default=1&output=webp&url=https%3A%2F%2Fd8j0ntlcm91z4.cloudfront.net%2Fuser_38xzZboKViGWJOttwIXH07lWA1P%2Fhf_20260418_125638_553b96dc-a1fd-4b2b-81a9-ed7daa80006e.png&w=1280&q=85');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: clamp(48px, 8vw, 120px) clamp(16px, 4vw, 60px) clamp(48px, 5.56vw, 80px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: clamp(32px, 4vw, 56px);
}

.precision-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.chip-structured {
    background-color: var(--off-white);
    border-radius: 36px;
    padding: clamp(8px, 0.9vw, 14px) clamp(12px, 1.25vw, 20px);
    font-size: clamp(14px, 1.1vw, 18px);
    font-weight: 500;
    color: var(--deep-navy);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.precision-header h2 {
    max-width: clamp(700px, 60vw, 900px);
    font-size: clamp(28px, 4vw, 56px);
    font-weight: 500;
    color: var(--deep-navy);
    line-height: 1.15;
}

.block-text {
    display: block;
}

@media (min-width: 640px) {
    .block-text {
        white-space: nowrap;
    }
}

.precision-header p {
    font-size: clamp(15px, 1.2vw, 20px);
    color: var(--muted-lavender);
    max-width: 800px;
}

/* Desktop Staircase */
.staircase-wrapper {
    position: relative;
    width: 82.292vw;
    height: 31.94vw;
    color: var(--deep-navy);
    display: none;
}

@media (min-width: 768px) {
    .staircase-wrapper {
        display: block;
    }
    .mobile-staircase {
        display: none !important;
    }
}

.pillar {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pillar-chip {
    background: linear-gradient(135deg, rgb(255,255,255), rgba(255,255,255,0.6));
    font-size: 18px;
    font-weight: 500;
    border-radius: 20px;
    padding: 0.972vw 1.736vw;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.pillar-chip img {
    width: 1.111vw;
}

.pillar-line {
    width: 1px;
    height: 14.24vw;
    background: linear-gradient(to bottom, rgb(28,78,255), rgb(254,136,27) 0%, rgb(172,36,255) 25%, rgb(247,159,255) 50%, rgb(255,214,0) 66%, rgb(254,136,27) 84%, rgba(254,136,27,0) 102%);
}

.pillar-items {
    position: absolute;
    top: 0.56vw;
    left: calc(100% + 1.94vw);
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 16px;
    text-align: left;
}

.pillar-items div {
    padding: 0.69vw 1.04vw;
}

/* Mobile Staircase */
.mobile-staircase {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.mobile-pillar {
    display: flex;
    flex-direction: column;
}

.mobile-pillar.left-align {
    align-items: flex-start;
    text-align: left;
}

.mobile-pillar.right-align {
    align-items: flex-end;
    text-align: right;
}

.mobile-pillar .pillar-chip {
    font-size: 15px;
    padding: 10px 18px;
    margin-bottom: 1rem;
}

.mobile-line-row {
    display: flex;
    gap: 1rem;
}

.mobile-line-row.reverse {
    flex-direction: row-reverse;
}

.mobile-line-row .pillar-line {
    height: 120px;
}

.mobile-line-row .pillar-items {
    position: relative;
    top: 0;
    left: 0;
    font-size: 14px;
    color: rgb(100, 80, 160);
    gap: 0;
}

.mobile-line-row .pillar-items div {
    padding: 8px 0;
}

/* Link Styles */
.company-link {
    color: var(--accent-purple);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}
.company-link:hover {
    color: var(--accent-orange);
    text-decoration: underline;
}
