/* ========================================
   Riple — STYLES.CSS
   ======================================== */

/* ---- FONT FACES (loaded via <link> in HTML for performance) ---- */

/* ---- CSS CUSTOM PROPERTIES ---- */
:root {
    --color-black: #000000;
    --color-dark: #101010;
    --color-white: #ffffff;
    --color-muted: rgba(255, 255, 255, 0.4);
    --color-muted-light: rgba(0, 0, 0, 0.5);
    --color-light-bg: #f5f5f5;
    --color-card-bg: #1a1a1a;
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-light: rgba(0, 0, 0, 0.08);
    --color-glass: rgba(255, 255, 255, 0.05);
    --color-glass-border: rgba(255, 255, 255, 0.12);

    --font-sans: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;

    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
    --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);

    --nav-height: 64px;
}

/* ---- RESET & BASE ---- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--color-black);
    color: var(--color-white);
    overflow-x: hidden;
    line-height: 1.6;
}

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

img {
    max-width: 100%;
    display: block;
}

/* ---- LENIS SMOOTH SCROLL ---- */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-smooth iframe {
    pointer-events: none;
}

/* ---- NAVIGATION ---- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 32px;
    height: var(--nav-height);
    transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.nav.scrolled {
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid var(--color-border);
}

.nav.light-mode {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid var(--color-border-light);
}

.nav.light-mode .nav-link {
    color: rgba(0, 0, 0, 0.4);
}

.nav.light-mode .nav-link:hover {
    color: var(--color-black);
}

.nav.light-mode .nav-logo {
    color: var(--color-black);
}

.nav.light-mode .nav-logo img {
    filter: invert(1);
}

.nav.light-mode .nav-cta {
    color: var(--color-black);
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.12);
}

.nav.light-mode .nav-cta:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Nav Toggle (Hamburger) */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 1100;
}

.nav-toggle-circle {
    width: 44px;
    height: 44px;
    background: var(--color-white);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.4s var(--ease-out);
}

.nav-toggle-line {
    width: 18px;
    height: 1.5px;
    background: var(--color-black);
    transition: all 0.4s var(--ease-out);
}

.nav.light-mode .nav-toggle-circle {
    background: var(--color-black);
}

.nav.light-mode .nav-toggle-line {
    background: var(--color-white);
}

/* Nav Toggle Open State */
.nav-open .line-2 {
    transform: scaleX(0.7);
    opacity: 0;
}

.nav-open .line-1 {
    transform: translateY(2.75px);
}

/* Mobile Overlay */
.nav-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    background: var(--color-black);
    overflow: hidden;
    transition: height 0.6s cubic-bezier(0.8, 0, 0.2, 1);
    z-index: 1000;
}

.nav.light-mode .nav-mobile-overlay {
    background: var(--color-white);
}

.nav-mobile-content {
    padding: 120px 32px 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s var(--ease-out) 0.2s;
}

.nav-open .nav-mobile-overlay {
    height: 100vh;
}

.nav-open .nav-mobile-content {
    opacity: 1;
    transform: translateY(0);
}

.nav-mobile-link {
    font-size: 24px;
    font-weight: 500;
    color: var(--color-white);
    text-decoration: none;
}

.nav.light-mode .nav-mobile-link {
    color: var(--color-black);
}

.nav-mobile-cta {
    display: inline-flex;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    color: var(--color-white);
    font-weight: 500;
    justify-content: center;
}

.nav.light-mode .nav-mobile-cta {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--color-black);
}

.nav-mobile-button-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
}

.nav-mobile-store-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    color: var(--color-white);
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s var(--ease-out);
}


.nav.light-mode .nav-mobile-store-button {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
    color: var(--color-black);
}

.nav-mobile-store-button:active {
    transform: scale(0.97);
}

.nav-mobile-store-button svg {
    width: 20px;
    height: 20px;
}



.nav-inner {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    color: var(--color-white);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.3s ease;
}

.nav-logo:hover {
    opacity: 0.7;
}

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

.nav-link {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-muted);
    transition: color 0.3s ease;
    letter-spacing: 0.02em;
}

.nav-link:hover {
    color: var(--color-white);
}

.nav-cta {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--color-glass-border);
    padding: 10px 24px;
    border-radius: 100px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.nav-cta:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: scale(0.97);
}

.nav-cta:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .nav {
        padding: 0 20px;
    }

    .nav-right {
        display: none !important;
    }

    .nav-toggle {
        display: flex !important;
    }
}

/* ---- HERO SECTION ---- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 25vh;
    background: transparent;
    overflow: hidden;
    z-index: 2;
}

#star-field-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -100 !important;
    pointer-events: none;
}

#star-field-container canvas {
    display: block;
    width: 100%;
    height: 100%;
}

#bg-black-overlay,
#bg-white-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    contain: layout style;
}

#bg-black-overlay {
    z-index: 0;
    background: #000;
    opacity: 0;
}

#bg-white-overlay {
    z-index: 1;
    background: #fff;
    opacity: 0;
}

/* ---- SECOND HERO (PINNED DARK) ---- */
.hero-second {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    /* Balanced center alignment */
    justify-content: center;
    background: transparent;
    padding: 320px 24px 0;
    z-index: 2;
    scroll-snap-align: center;
    /* Forces the entire 60vh block to center in the 100vh viewport */
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1400px;
    padding: 0 24px;
    margin: 0 auto;
}

.hero-label {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 1s var(--ease-out) 0.3s forwards;
}

.hero-title {
    font-family: var(--font-sans);
    font-size: clamp(60px, 9vw, 120px);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: 0.02em;
    margin-bottom: 48px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 1s var(--ease-out) 0.5s forwards;
}

.hero-title em,
.os-main-title em,
.features-main-title em,
.proactive-header em,
.industries-title em,
.news-title em,
.cta-title em,
.careers-hero-title em {
    position: relative;
    font-family: var(--font-sans);
    font-style: normal;
    font-weight: 500;
    display: inline-block;
    z-index: 1;
}

.hero-title em::after,
.os-main-title em::after,
.features-main-title em::after,
.proactive-header em::after,
.industries-title em::after,
.news-title em::after,
.cta-title em::after,
.careers-hero-title em::after {
    content: "";
    position: absolute;
    left: -4%;
    bottom: -8px;
    width: 108%;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg width='100%25' height='16' viewBox='0 0 200 16' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 10.5C40 5 100 3 198 12' stroke='%231aa7ca' stroke-width='5.5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    filter: drop-shadow(0 0 8px rgba(78, 169, 255, 0.6));
    transition: transform 0.8s var(--ease-out) 0.4s, opacity 0.8s var(--ease-out) 0.4s;
    pointer-events: none;
    z-index: -1;
}

/* Handled below */

.hero-title em {
    font-weight: 500;
}

/* High-quality drawing-in animation for Hero brand highlight */
.hero-title em::after {
    left: -2%;
    width: 102%;
    height: 24px;
    bottom: -16px;
    transform: scaleX(0);
    opacity: 0;
    animation: heroUnderline 1.2s var(--ease-out) 1.4s forwards;
    transition: none;
    /* Bypass standard transition for specific hero animation */
}

@keyframes heroUnderline {
    from {
        transform: scaleX(0);
        opacity: 0;
    }

    to {
        transform: scaleX(1);
        opacity: 0.95;
    }
}

/* Specific gap adjustment for Features/Proactive sections */
.features-main-title em::after {
    bottom: 4px;
}

/* Trigger when container is in view */
.in-view em::after {
    transform: scaleX(1) !important;
    opacity: 0.9 !important;
}

/* Consolidated into global emphasis block */

/* ---- HERO CHATBOX ---- */
.hero-chatbox-container {
    margin-top: 96px;
    display: flex;
    justify-content: center;
    width: 100%;
    transition-delay: 0.4s;
}

.hero-chatbox {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 60px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    display: flex;
    align-items: center;
    padding: 0 8px 0 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    /* NEW: Custom spring curve for a premium feel */
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform, box-shadow;
}

.hero-chatbox:focus-within {
    background: rgba(255, 255, 255, 0.1);
    border-color: #428AD8;
    border-width: 0.1px;
    box-shadow: 0 0 25px rgba(66, 138, 216, 0.5),
        0 0 50px rgba(66, 138, 216, 0.2),
        0 0 80px rgba(66, 138, 216, 0.05);
    /* MODIFIED: More pronounced pop up */
    transform: translateY(-4px) scale(1.02);
}

.hero-chatbox:active {
    /* NEW: Tactile "clicked" press effect */
    transform: translateY(-1px) scale(0.98);
    transition-duration: 0.15s;
}

.hero-chat-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--color-white);
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
}

.hero-chat-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.hero-chat-btn {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-white);
    transition: all 0.3s var(--ease-out);
}

.hero-chat-btn:hover,
.hero-chat-btn.has-content {
    background: #428AD8;
    color: #fff;
    box-shadow: 0 0 15px rgba(66, 138, 216, 0.5);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: scrollIndicatorFadeIn 1s var(--ease-out) 1.2s forwards;
}

.scroll-indicator span {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-muted);
    text-align: center;
}

.scroll-arrow {
    color: var(--color-muted);
    animation: scrollBounce 2s ease-in-out infinite;
}

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

@keyframes scrollIndicatorFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}


.hero-second-content {
    text-align: center;
}

.hero-second-title {
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 32px;
}



/* ---- OS SECTION (WHITE) ---- */
.os-section {
    background: transparent;
    color: var(--color-black);
    padding: 300px 24px 140px;
    position: relative;
    z-index: 2;
}

.os-inner {
    max-width: 1210px;
    margin: 0 auto;
}

.section-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 16px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-muted-light);
    margin-bottom: 32px;
}



.os-hero-block {
    text-align: center;
    margin-bottom: 80px;
}

.os-main-title {
    font-size: clamp(42px, 7vw, 76px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 32px;
    color: var(--color-black);
}

.os-main-desc {
    font-size: 19px;
    line-height: 1.6;
    color: var(--color-muted-light);
    max-width: 880px;
    margin: 0 auto;
    font-weight: 400;
}

/* ---- VISUALISATION CONTAINER ---- */
/* ---- VISUALISATION STACK (Tiers) ---- */
.visual-stack-container {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 80px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

@media (max-width: 768px) {
    .visual-stack-container {
        gap: 5px;
    }
}

.visual-layer {
    position: relative;
    width: 100%;
    z-index: 10;
    transition: opacity 2s cubic-bezier(0.16, 1, 0.3, 1), transform 2s cubic-bezier(0.16, 1, 0.3, 1);
}

.layer-1 {
    transition-delay: 0.1s;
}

.layer-2 {
    transition-delay: 0.3s;
}

.layer-3 {
    transition-delay: 0.5s;
}

/* Starting animation state */
.visual-layer {
    opacity: 0;
    transform: translateY(15px);
}

.visual-layer.in-view {
    opacity: 1;
    transform: translateY(0);
}

.visual-img {
    width: 100%;
    height: auto;
    display: block;
}

.carousel-label {
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-muted-light);
    margin-bottom: 32px;
}

/* ---- PARTNER LOGOS (STATIC) ---- */
.partner-logos {
    padding: 30px 0 60px;
    display: flex;
    justify-content: center;
}

.partners-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 100px;
    flex-wrap: wrap;
    max-width: 1000px;
}

.partner-item {
    height: 55px;
    width: auto;
    filter: grayscale(1) opacity(0.8);
    flex-shrink: 0;
    transition: none;
    user-select: none;
    pointer-events: none;
}

/* ---- CAPABILITY CARDS ---- */
.capabilities {
    background: transparent;
    color: var(--color-black);
    padding: 40px 24px 80px;
    position: relative;
    z-index: 2;
}

.capabilities-inner {
    max-width: 1210px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.capability-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: transform 0.4s var(--ease-out);
}

.capability-visual {
    background: #EBEBEB;
    border-radius: 20px;
    aspect-ratio: 1.4 / 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.capability-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.capability-text {
    padding: 8px 0;
}

.capability-label {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 12px;
    color: #000;
}

.capability-desc {
    font-size: 18px;
    line-height: 1.4;
    color: rgba(0, 0, 0, 0.5);
    max-width: 440px;
}



/* ---- CHAT SHOWCASE ---- */
.chat-section {
    background: transparent;
    color: var(--color-white);
    position: relative;
    min-height: 200vh;
    z-index: 2;
}

.chat-sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.chat-container {
    max-width: 704px;
    width: 100%;
    padding: 0 24px;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.chat-row {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    width: 100%;
}

.user-row {
    justify-content: flex-end;
}

.ai-row {
    justify-content: flex-start;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s var(--ease-out);
}

.chat-row.visible .chat-avatar {
    opacity: 1;
    transform: scale(1);
}

.chat-avatar img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0);
    /* Ensure logo is black */
}

.chat-bubble {
    padding: 24px;
    border-radius: 20px;
    max-width: 85%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s var(--ease-out);
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
    /* Frosted glass effect */
    -webkit-backdrop-filter: blur(12px);
}

.chat-row.visible .chat-bubble {
    opacity: 1;
    transform: translateY(0);
}

.user-bubble {
    background: rgba(255, 255, 255, 0.15);
    /* ~85% translucent */
    border: 1px solid rgba(255, 255, 255, 0.1);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.ai-bubble {
    background: rgba(255, 255, 255, 0.7);
    /* 80% translucent frosted glass */
    border: 1px solid rgb(255, 255, 255);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 0 12px rgba(66, 138, 216, 0.5),
        0 0 30px rgba(66, 138, 216, 0.3),
        0 0 60px rgba(66, 138, 216, 0.2),
        0 0 100px rgba(66, 138, 216, 0.1);
}

.chat-bubble p {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    /* Better readability for user bubbles */
}

.ai-bubble p {
    color: #000000 !important;
    /* Ensure black as requested */
}

.chat-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 6px 14px;
    background: #f8f8f8;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #000000;
}

.chat-badge svg {
    color: #000000;
}

/* ---- FEATURES SECTION ---- */
.features-section {
    background: transparent;
    color: var(--color-black);
    padding: 140px 24px;
    position: relative;
    z-index: 2;
}

.features-inner {
    max-width: 1210px;
    margin: 0 auto;
}

.features-main-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 400;
    letter-spacing: -0.03em;
    text-align: left;
    margin-bottom: 80px;
}

.features-grid {
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.feature-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    background: transparent;
}

.feature-card:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
    max-width: 450px;
}

.feature-text h3 {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    text-align: left;
}

.feature-text p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-muted-light);
    text-align: left;
}

.feature-visual {
    flex: 1;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111111;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    color: var(--color-white);
    /* internal text for visuals is white */
}

.feature-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.feature-img-reduced {
    width: 80%;
    height: 80%;
}

.feature-img-reduced-30 {
    width: 60%;
    height: 60%;
}

/* ---- PROACTIVE SECTION ---- */
.proactive-section {
    margin-top: 140px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
}

.proactive-header {
    width: 100%;
    max-width: 1210px;
    margin: 0 auto 60px auto;
}

.proactive-header h2 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 400;
    margin-bottom: 0;
    letter-spacing: -0.03em;
}

/* Consolidated into global emphasis block */

.proactive-header p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-muted-light);
}

.proactive-video-wrapper {
    width: 100%;
    max-width: 1210px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 30px rgba(0, 0, 0, 0.1);
    background: #111;
}

.proactive-video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ---- INDUSTRIES SECTION ---- */
.industries-section {
    background: transparent;
    color: var(--color-black);
    padding: 240px 24px 340px;
    position: relative;
    z-index: 2;
    content-visibility: auto;
    contain-intrinsic-size: auto 2000px;
}

.industries-inner {
    max-width: 1210px;
    margin: 0 auto;
    text-align: center;
}

.industries-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 20px;
}

/* Consolidated into global emphasis block */

.industries-subtitle {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-muted-light);
    max-width: 560px;
    margin: 0 auto 48px auto;
}

.industries-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 48px;
}

.industries-tab {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-sans);
    border: 1px solid var(--color-border-light);
    border-radius: 100px;
    background: transparent;
    color: var(--color-muted-light);
    cursor: pointer;
    transition: all 0.3s ease;

    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.industries-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: #333333;
    /* Slightly lighter progress fill */
    z-index: -1;
}

.industries-tab:hover {
    border-color: var(--color-black);
    color: var(--color-black);
}

.industries-tab.active {
    background: var(--color-black);
    color: var(--color-white);
    border-color: var(--color-black);
}

.industries-tab.active::before {
    animation: tabProgress 7500ms linear forwards;
}

@keyframes tabProgress {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

.industries-grid {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.industries-grid.active {
    display: grid;
}

/* Soft fade in for industries cards */
.industries-grid .anim-fade-up {
    transform: none;
    opacity: 0;
    transition: opacity 1.2s var(--ease-out);
}

.industries-grid .anim-fade-up.in-view {
    opacity: 1;
}

.industries-grid .anim-fade-up.in-view:hover {
    transform: translateY(-4px);
    transition: transform 0.4s var(--ease-out), opacity 1.2s var(--ease-out);
}

.industries-grid .industries-card:nth-child(1) {
    transition-delay: 0.0s;
}

.industries-grid .industries-card:nth-child(2) {
    transition-delay: 0.2s;
}

.industries-grid .industries-card:nth-child(3) {
    transition-delay: 0.4s;
}

.industries-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: transform 0.4s var(--ease-out);
    text-align: left;
}

.industries-card:hover {
    transform: translateY(-4px);
}

.industries-card-visual {
    background: #f4f4f4;
    border-radius: 20px;
    aspect-ratio: 1.6 / 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.industries-card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.industries-card-text {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.industries-card-title {
    font-size: 28px;
    font-weight: 500;
    color: var(--color-black);
    line-height: 1.3;
}

.industries-card-desc {
    font-size: 17px;
    line-height: 1.5;
    color: rgba(0, 0, 0, 0.5);
}

.industries-card-link {
    display: none;
}

/* ---- TESTIMONIALS & TRUST COMBINED ---- */
.testimonials-trust-combined {
    background: transparent;
    padding: 300px 24px 120px;
    position: relative;
    z-index: 2;
    content-visibility: auto;
    contain-intrinsic-size: auto 1500px;
}

.testimonials-trust-combined .testimonials-inner {
    padding-bottom: 120px;
}

.testimonials-inner {
    max-width: 1090px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.testimonial-card {
    text-align: left;
}

.testimonial-quote {
    font-family: var(--font-sans);
    font-size: clamp(28px, 4vw, 43px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
    font-style: normal;
    color: var(--color-white);
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    font-size: 15px;
    font-weight: 400;
    color: var(--color-muted);
}

.author-role {
    font-size: 14px;
    color: var(--color-muted);
}

/* Trust badges within combined section */
.trust-inner {
    max-width: 1210px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.trust-card {
    padding: 120px 20px;
    text-align: center;
    transition: transform 0.4s var(--ease-out);
}

.trust-card:hover {
    transform: translateY(-4px);
}

.trust-icon {
    width: 80px;
    height: 80px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px auto;
    color: var(--color-white);
}

.trust-icon svg {
    width: 32px;
    height: 32px;
}

.trust-label {
    font-size: 28px;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    color: var(--color-white);
}

.trust-desc {
    font-size: 15px;
    color: var(--color-muted);
}

/* ---- NEWS SECTION (Editorial Split) ---- */
.news-section {
    background: transparent;
    color: var(--color-white);
    padding: 250px 24px 350px;
    position: relative;
    z-index: 2;
    content-visibility: auto;
    contain-intrinsic-size: auto 1200px;
}

.news-inner {
    max-width: 1344px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

/* Left column */
.news-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    padding-top: 20px;
}

.news-left .section-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    letter-spacing: 0.12em;
}

.news-title {
    font-size: clamp(36px, 4.5vw, 56px);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--color-white);
}

/* Consolidated into global emphasis block */

.news-link {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 12px 28px;
    border-radius: 100px;
    transition: all 0.3s ease;
}

.news-link:hover {
    background: var(--color-white);
    color: var(--color-black);
}

/* Right column */
.news-right {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.news-image-wrapper {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1.5 / 1;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-card-content {
    padding: 0;
}

.news-card-title {
    font-size: 26px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 16px;
    color: var(--color-white);
}

.news-card-desc {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
    .news-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .news-left {
        padding-top: 0;
    }
}

/* ---- CTA SECTION ---- */
.cta-section {
    background: transparent;
    color: var(--color-white);
    padding: 160px 24px;
    position: relative;
    z-index: 2;
}

.cta-inner {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
}

.cta-section .section-label {
    color: var(--color-white);
    opacity: 0.8;
}


.cta-title {
    font-size: clamp(42px, 7vw, 80px);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 48px;
}

/* Consolidated into global emphasis block */

.cta-button {
    display: inline-block;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-black);
    background: var(--color-white);
    padding: 16px 40px;
    border-radius: 100px;
    transition: all 0.3s var(--ease-out);
}

.cta-button:hover {
    transform: scale(1.03);
    box-shadow: 0 0 60px rgba(255, 255, 255, 0.12);
}

.cta-button:active {
    transform: scale(0.97);
}

.cta-button-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.store-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-white);
    transition: all 0.3s var(--ease-out);
    backdrop-filter: blur(10px);
}

.store-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px) scale(1.02);
}

.store-button svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}



/* ---- FOOTER ---- */
.footer {
    background: transparent;
    padding: 32px;
    position: relative;
    z-index: 2;
}

.footer-inner {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}


.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 13px;
    color: var(--color-muted);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-white);
}

/* ---- SCROLL ANIMATIONS ---- */
.anim-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.anim-fade-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.anim-fade-up:nth-child(2) {
    transition-delay: 0.08s;
}

.anim-fade-up:nth-child(3) {
    transition-delay: 0.16s;
}

.anim-fade-up:nth-child(4) {
    transition-delay: 0.24s;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .capabilities-inner {
        grid-template-columns: 1fr;
        max-width: 600px;
    }

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

    .trust-inner {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
        gap: 60px;
    }

    .trust-card {
        text-align: left;
    }

    .trust-icon {
        margin: 0 0 24px 0;
    }

    .industries-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {

    .hero-content {
        text-align: center;
        padding: 0 20px;
        max-width: 100%;
        margin: 0 auto;
    }

    .hero-label {
        font-size: 10px;
        font-weight: 500;
        letter-spacing: 0.15em;
        margin-bottom: 24px;
    }

    .hero-title {
        font-size: clamp(34px, 20vw, 60px);
        font-weight: 300;
        line-height: 1.2;
        margin-bottom: 40px;
        letter-spacing: 0.02em;
        white-space: normal;
        display: block;
    }

    .hero-title em {
        display: inline-block;
        margin-top: 8px;
        font-size: 1.2em;
        /* Slightly larger for emphasis */
        position: relative;
    }

    .hero-title em::after {
        width: 105%;
        left: -2.5%;
        height: 10px;
        bottom: -6px;
        background-size: 100% 100%;
    }

    .hero-chatbox-container {
        margin-top: 200px;
        padding: 0 20px;
    }

    .hero-chatbox {
        max-width: 100%;
        height: 56px;
        padding: 0 6px 0 20px;
    }

    .hero-chat-input {
        font-size: 14px;
    }

    .os-section {
        padding: 300px 20px 80px;
    }

    .partners-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 60px 40px;
        justify-items: center;
        align-items: center;
    }

    .capabilities {
        padding: 40px 20px 80px;
    }

    .features-section {
        padding: 80px 20px;
    }

    .features-grid {
        gap: 60px;
    }

    .feature-card,
    .feature-card:nth-child(even) {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }

    .feature-visual {
        min-height: 280px;
        width: 100%;
    }

    .proactive-section {
        margin-top: 80px;
    }

    .testimonials-trust-combined {
        padding: 240px 20px 120px;
    }

    .testimonials-trust-combined .testimonials-inner {
        padding-bottom: 240px;
    }

    .testimonials-inner {
        max-width: 100%;
        gap: 60px;
    }

    .testimonial-quote {
        font-size: clamp(22px, 6vw, 32px);
        margin-bottom: 24px;
        line-height: 1.15;
    }

    .trust-card {
        padding: 0;
    }

    .industries-section {
        padding: 160px 20px 80px;
    }

    .industries-tabs {
        gap: 8px;
    }

    .industries-tab {
        padding: 8px 18px;
        font-size: 13px;
    }

    .cta-section {
        padding: 100px 20px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* ---- REDUCED MOTION ---- */
@media (prefers-reduced-motion: reduce) {
    .anim-fade-up {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero-label,
    .hero-title,
    .hero-chatbox-container,
    .scroll-indicator {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .logos-track {
        animation: none;
    }

    .scroll-arrow {
        animation: none;
    }
}

/* Disable scroll animations on careers page to prevent jitter */
.careers-page .anim-fade-up {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* ---- NAV OVERRIDES ---- */
.careers-page .nav {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.careers-page .nav-link.active {
    color: var(--color-white);
    font-weight: 500;
}


/* ---- RESPONSIVE ---- */