:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --accent-color: #ffffff;
    --secondary-text: #a1a1a1;
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Archivo', sans-serif;
    --star-color: rgba(255, 255, 255, 0.4);
    color-scheme: dark;
}

/* Premium Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #050505;
}

::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 10px;
    border: 2px solid #050505;
}

::-webkit-scrollbar-thumb:hover {
    background: #333;
}

@keyframes starFlow {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    8% {
        opacity: 1;
    }

    92% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) translateX(30px);
        opacity: 0;
    }
}

@keyframes starFlowSlow {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }

    5% {
        opacity: 0.6;
    }

    50% {
        opacity: 0.9;
    }

    95% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(-100vh) translateX(-20px) scale(1.2);
        opacity: 0;
    }
}

.star-particle {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.text-gradient {
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 120px 0;
}

/* Navigation */
.nav-premium {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    background: rgba(5, 5, 5, 0.8);
    border-bottom: 1px solid var(--border-color);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    text-decoration: none;
}

.logo-with-img {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo-img {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--secondary-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a.active {
    color: #fff;
    font-weight: 700;
}

.btn-nav {
    background: #fff;
    color: #000;
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.menu-button-premium {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1100;
}

.menu-button-premium span {
    width: 24px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

.mobile-nav-premium {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 1050;
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-nav-premium.active {
    right: 0;
}

.mobile-nav-premium a {
    font-size: 32px;
    color: #fff;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 800;
}

@media (max-width: 767px) {
    .nav-links {
        display: none;
    }

    .menu-button-premium {
        display: flex;
    }
}

/* Dot Grid Utility */
.dot-grid {
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Hero Section - World-class */
.hero-premium {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.hero-content {
    max-width: 900px;
}

.hero-title-large {
    font-size: clamp(42px, 9vw, 96px);
    margin-bottom: 28px;
    line-height: 0.95;
    letter-spacing: -0.04em;
    font-weight: 800;
}

.hero-subtitle-large {
    font-size: clamp(17px, 1.9vw, 22px);
    color: var(--secondary-text);
    max-width: 680px;
    margin: 0 auto 44px;
    line-height: 1.6;
    font-weight: 450;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-main {
    padding: 16px 40px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary-white {
    background: #fff;
    color: #000;
    border: 1px solid #fff;
}

.btn-primary-white:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.15);
}

.btn-secondary-outline {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Logo Cloud */
.logo-cloud {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.01);
}

.logo-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    opacity: 0.5;
    filter: grayscale(1);
}

.logo-grid img {
    height: 32px;
    transition: all 0.3s ease;
}

.logo-grid img:hover {
    opacity: 1;
    filter: grayscale(0);
}

/* Content Sections */
.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-size: clamp(32px, 5vw, 64px);
    margin-bottom: 16px;
}

.section-title p {
    color: var(--secondary-text);
    font-size: 18px;
}

/* Feature Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.premium-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.premium-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-10px);
}

.premium-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.premium-card p {
    color: var(--secondary-text);
    font-size: 16px;
}

.card-icon {
    width: 48px;
    height: 48px;
    background: #fff;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 24px;
}

/* Workforce Section (Retell/Relevance style) */
.comparison-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.comparison-image {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 32px 64px -12px rgba(0, 0, 0, 0.5);
}

.comparison-image img {
    width: 100%;
    display: block;
}

.comparison-content h2 {
    margin-bottom: 24px;
}

.comparison-list {
    list-style: none;
    margin-top: 32px;
}

.comparison-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.comparison-list li i {
    color: #fff;
    margin-top: 4px;
}

/* Marquee / Social Proof */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    padding: 24px 0;
    position: relative;
}

.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

.marquee-item {
    display: inline-block;
    font-size: 80px;
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.25);
    margin-right: 48px;
}

.marquee-item.marquee-accent {
    color: #fff;
    -webkit-text-stroke: 0;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px;
    background: #000;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-about p {
    color: var(--secondary-text);
    margin-top: 16px;
    max-width: 300px;
}

.footer-links h4 {
    margin-bottom: 24px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--secondary-text);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    color: var(--secondary-text);
    font-size: 14px;
}

@media (max-width: 991px) {
    .comparison-section {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    /* Case study section responsive */
    section [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 767px) {
    .hero-title-large {
        font-size: 56px;
    }

    .nav-links {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }

    .btn-main {
        width: 100%;
        text-align: center;
    }

    .marquee-item {
        font-size: 48px;
    }
}

/* Billionaire UI Extensions */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, minmax(200px, auto));
    gap: 24px;
    margin-top: 64px;
}

.bento-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 32px;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.bento-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-wide {
    grid-column: span 2;
}

/* Vertical-Specific Kernels - fill gap, no dead space */
.bento-kernel {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.bento-kernel-content {
    flex: 0 0 auto;
}

.bento-kernel-visual {
    flex: 1;
    min-height: 200px;
    margin-top: 24px;
    padding: 32px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, transparent 60%);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bento-kernel-visual .kernel-stat {
    font-size: 64px;
    font-weight: 900;
    font-family: var(--font-heading);
    letter-spacing: -0.03em;
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.6) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
}

.bento-kernel-visual .kernel-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--secondary-text);
    margin-top: 8px;
    position: relative;
    z-index: 2;
}

.bento-kernel-visual .kernel-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.6;
}

.manifest-section {
    max-width: 1000px;
    margin: 0 auto;
}

.text-reveal {
    opacity: 0.3;
    transition: opacity 0.8s ease;
}

.text-reveal.active {
    opacity: 1;
}

.product-showcase {
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
    border-radius: 40px;
    padding: 60px;
    border: 1px solid var(--border-color);
    position: relative;
}

.showcase-flex {
    display: flex;
    gap: 48px;
    align-items: center;
}

@media (max-width: 991px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        min-height: auto;
    }

    .bento-large,
    .bento-wide {
        grid-column: span 1;
    }

    .showcase-flex {
        flex-direction: column;
    }
}

@media (max-width: 767px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-kernel-visual .kernel-stat {
        font-size: 48px;
    }

    .product-showcase {
        padding: 32px;
    }
}

/* Spotlight Cursor - Global */
.spotlight-cursor {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: screen;
    transition: width 0.3s ease, height 0.3s ease;
}

/* Star Container - Global */
#starContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Footer Utility Classes */
.icon-small {
    width: 32px;
    height: auto;
    display: inline-block;
    vertical-align: middle;
}

/* Refined CTA + Footer */
.cta-section-premium {
    background: #000;
    border-top: 1px solid var(--border-color);
    padding: 80px 0;
}

.cta-block-premium {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    flex-wrap: wrap;
}

.cta-text-block-premium {
    flex: 1;
}

.cta-badge-premium {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    color: var(--secondary-text);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.cta-badge-premium .icon-small {
    width: 20px;
    height: 20px;
    filter: invert(1);
    opacity: 0.8;
}

.cta-headline-premium {
    font-size: clamp(36px, 8vw, 96px);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin: 0;
    color: #fff;
    font-family: var(--font-heading);
}

.cta-outline {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.4);
    color: transparent;
}

.cta-btn-premium {
    flex-shrink: 0;
}

.footer-premium {
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px;
    background: #000;
}

.footer-logo-link {
    display: inline-block;
}

.footer-support {
    color: var(--secondary-text);
    font-size: 15px;
    margin-top: 16px;
}

.footer-support a {
    color: #fff;
    text-decoration: none;
}

.footer-support a:hover {
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    color: var(--secondary-text);
    font-size: 14px;
    flex-wrap: wrap;
    gap: 20px;
}

@media (max-width: 767px) {
    .cta-section-premium {
        padding: 60px 0;
    }

    .cta-block-premium {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-headline-premium {
        font-size: clamp(32px, 10vw, 56px);
    }
}

.cta-background {
    background: #000;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cta-large {
    font-size: clamp(64px, 15vw, 200px);
    line-height: 0.8;
    font-weight: 900;
    margin: 0;
}

.cta-medium {
    font-size: clamp(32px, 8vw, 100px);
    font-weight: 800;
    margin: 0;
    color: var(--secondary-text);
}

.cta-small {
    font-size: clamp(24px, 6vw, 80px);
    font-weight: 700;
    margin: 0;
}

.cta-flex {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    align-items: baseline;
}

.outline-white {
    -webkit-text-stroke: 1px #fff;
    color: transparent;
}

.button-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: invert(1);
    transition: transform 0.3s ease;
}

.button-with-circle-icon:hover .button-icon {
    transform: translate(2px, -2px);
}

.footer-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.socials-wrapper {
    display: flex;
    gap: 16px;
    margin: 24px 0;
}

.social-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: invert(1);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.social-icon:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.social-icon.smaller {
    width: 20px;
    height: 20px;
}

/* Specific Footer Layout (Matching footer.ejs classes) */
.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-block {
    flex: 1;
    min-width: 300px;
}

.footer-right-flex {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.footer-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-link {
    color: var(--secondary-text);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #fff;
}

.footer-line {
    width: 100%;
    height: 1px;
    background: var(--border-color);
    margin-bottom: 32px;
}

.footer-footer-bottom {
    display: flex;
    justify-content: space-between;
    color: var(--secondary-text);
    font-size: 14px;
    flex-wrap: wrap;
    gap: 20px;
}

/* Specialized Button Styling */
.button-with-circle-icon {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    color: #000;
    padding: 12px 24px 12px 32px;
    border-radius: 100px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.button-with-circle-icon:hover {
    transform: scale(1.05);
}

.button-flex {
    position: relative;
    overflow: hidden;
    height: 20px;
    display: flex;
    flex-direction: column;
}

.button-text {
    margin: 0;
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
    transition: transform 0.3s ease;
}

.button-text-absolute {
    margin: 0;
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
    position: absolute;
    top: 100%;
    left: 0;
    transition: transform 0.3s ease;
}

.button-with-circle-icon:hover .button-text {
    transform: translateY(-100%);
}

.button-with-circle-icon:hover .button-text-absolute {
    transform: translateY(-100%);
}

.button-arrow-wrapper {
    width: 32px;
    height: 32px;
    background: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CTA Block Specifics */
.cta-block {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 80px;
    flex-wrap: wrap;
    gap: 40px;
}

.cta-text-block {
    flex: 1;
}

.hero-subheading-flex {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    color: var(--secondary-text);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    font-weight: 600;
}

@media (max-width: 767px) {
    .footer-top {
        flex-direction: column;
    }

    .footer-right-flex {
        flex-direction: column;
        gap: 40px;
    }

    .cta-block {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Related Services / Our Products */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-link-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-link-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.service-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.service-link-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-color);
}

.service-link-desc {
    color: var(--secondary-text);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.service-link-arrow {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    opacity: 0.8;
}

.service-link-card:hover .service-link-arrow {
    opacity: 1;
}

.cta-section .link-underline {
    color: var(--text-color);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.cta-section .link-underline:hover {
    opacity: 0.8;
}