:root {
    --color-bg: #080808;
    --color-text: #F2F2F2;
    --color-text-dim: #888888;
    --color-accent: #39FF14;
    /* Neon Green */
    --color-red-accent: #FF3131;
    /* Tension Red */

    --font-display: 'Oswald', sans-serif;
    --font-cyrillic: 'Unbounded', sans-serif;
    --font-body: 'Manrope', sans-serif;

    --spacing-container: 4vw;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    overflow-x: hidden;
    /* cursor: none; - Removed to make system cursor visible */
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-accent);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Header */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem var(--spacing-container);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 100;
    mix-blend-mode: difference;
}

.logo {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.logo-img {
    height: 80px;
    /* Reduced from 160px */
    width: auto;
}

/* Removed old benefits-grid styles */


/* Custom Font Placeholder - User needs to add the file to assets/ */
@font-face {
    font-family: 'Tan Meringue';
    src: url('assets/TanMeringue.woff2') format('woff2'),
        url('assets/TanMeringue.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

.logo-text {
    font-size: 2rem;
    /* Increased size to look good with display font */
    font-weight: 400;
    /* Tan Meringue is usually display weight */
    font-family: 'Tan Meringue', serif;
    /* Applied font */
    text-transform: none;
    /* Usually looks better in mixed case or as designed */
    letter-spacing: 0.02em;
    color: var(--color-accent);
    /* Green color */
    line-height: 1;
    margin-top: 5px;
    /* Visual alignment with logo */
}

.nav {
    display: none;
    /* Desktop only initially */
}

@media (min-width: 768px) {
    .nav {
        display: flex;
        gap: 2rem;
    }
}

.nav-link {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.nav-link:hover {
    opacity: 1;
}

/* Buttons */
.btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.8rem 1.6rem;
    border-radius: 2rem;
    color: var(--color-text);
}

.btn-outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn-primary {
    background-color: var(--color-accent);
    color: black;
    padding: 1rem 2rem;
    border-radius: 2px;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
}

.btn-primary:hover {
    background-color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(57, 255, 20, 0.3);
}

.btn-text {
    color: var(--color-text);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.play-icon {
    font-size: 0.8rem;
    border: 1px solid var(--color-text);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 2px;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 100dvh;
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 0 var(--spacing-container);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 4rem;
}

.hero-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    font-family: var(--font-cyrillic);
    font-size: 13vw;
    line-height: 0.85;
    font-weight: 700;
    text-transform: uppercase;
    color: #1a1a1a;
    /* Slightly brighter gray for better visibility */
    z-index: 0;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-bg-text .line {
    display: block;
}

.hero-bg-text .line.accent {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.media-cluster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.media-card {
    position: absolute;
    overflow: hidden;
    border-radius: 4px;
    opacity: 0;
    /* Hidden initially for animation */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.media-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-1 {
    width: 22vw;
    right: 15%;
    top: 20%;
    transform: rotate(3deg);
}

.card-2 {
    width: 18vw;
    left: 12%;
    top: 35%;
    transform: rotate(-3deg);
}

.media-card.active {
    box-shadow: 0 0 30px rgba(57, 255, 20, 0.3);
    border-color: var(--color-accent);
    transform: scale(1.05) rotate(0deg) !important;
}

.hero-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: end;
    margin-bottom: 2rem;
}

.hero-subtitle {
    max-width: 500px;
}

.hero-subtitle p {
    font-size: 1.25rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.tags {
    display: flex;
    gap: 1rem;
    color: var(--color-text-dim);
    font-size: 0.9rem;
}

.hero-actions {
    display: flex;
    gap: 2rem;
    justify-content: flex-end;
    align-items: center;
}

/* Responsive */

/* Marquee */
.marquee-container {
    width: 100%;
    overflow: hidden;
    padding: 3rem 0;
    background-color: var(--color-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    display: flex;
    /* Added for cloning consistency */
}

.marquee-content {
    display: inline-flex;
    gap: 3rem;
    align-items: center;
}

.marquee-item {
    font-family: var(--font-cyrillic);
    /* Using Unbounded */
    font-size: 4vw;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px var(--color-text-dim);
    text-transform: uppercase;
}

.separator {
    color: var(--color-accent);
    font-size: 2rem;
}

/* Generic Marquee Track for GSAP */
.marquee-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    width: fit-content;
}

/* Companies Section Specific */
.companies {
    background-color: #030303;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.companies-title {
    font-size: 1.5rem;
    /* Desktop size */
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
    position: relative;
    cursor: grab;
    display: flex;
    /* Fix vertical duplication */
}

.marquee-wrapper:active {
    cursor: grabbing;
}

.companies .marquee-content span {
    font-family: var(--font-cyrillic);
    font-size: 2.2rem;
    /* Reduced from 3.5rem */
    font-weight: 700;
    color: var(--color-text);
    margin: 0 3rem;
    /* Reduced margin slightly */
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.companies .marquee-content .separator {
    color: var(--color-accent);
    font-size: 2.5rem;
    margin: 0;
}

/* Gradient mask for smooth edges */
.marquee-wrapper::before,
.marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #030303, transparent);
}

.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #030303, transparent);
}



/* Sections General */
.section-padding {
    padding: 5rem var(--spacing-container);
}

@media (max-width: 900px) {
    .section-padding {
        padding: 3.5rem var(--spacing-container);
    }
}

/* Global Section Styles (Restored) */
.section-title {
    font-family: var(--font-cyrillic);
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 2rem;
    text-transform: uppercase;
    text-align: center;
}



.section-subtitle {
    font-family: var(--font-cyrillic);
    color: var(--color-text-dim);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    max-width: 800px;
    margin: 1.5rem auto 0;
    line-height: 1.4;
    text-align: center;
}



.accent-text {
    color: var(--color-accent);
}

.text-large {
    font-size: 1.5rem;
    line-height: 1.5;
    margin-bottom: 2rem;
    font-weight: 500;
}

.text-body {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-text-dim);
    margin-bottom: 3rem;
}

/* About Section Specific */
.about-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.about-header {
    margin-bottom: 2.5rem;
}

.about-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 4rem;
    display: flex;
    justify-content: center;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-accent);
    /* Neon Green Border */
    border-radius: 32px;
    padding: 2.5rem;
    /* More compact */
    position: relative;
    overflow: hidden;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 15px rgba(57, 255, 20, 0.1),
        /* Subtle Neon Glow */
        inset 0 0 20px rgba(255, 255, 255, 0.02);
    width: fit-content;
    /* More compact width */
    max-width: 800px;
    margin: 0 auto;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(57, 255, 20, 0.05), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(57, 255, 20, 0.3);
}

.glass-card p {
    position: relative;
    z-index: 1;
    margin-bottom: 0;
}



.benefits-subtitle {
    font-family: var(--font-cyrillic);
    font-size: 1.5rem;
    color: var(--color-text-dim);
    margin-bottom: 2rem;
    text-align: center;
}

.benefits-interactive-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 1000px;
    margin: 0 auto;
}

.benefit-item {
    padding: 2.5rem 0;
    display: grid;
    grid-template-columns: 80px 1fr;
    align-items: center;
    gap: 2rem;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.benefit-number {
    font-family: var(--font-cyrillic);
    font-size: 1.25rem;
    color: var(--color-accent);
    opacity: 0.5;
    transition: opacity 0.3s, transform 0.3s;
}

.benefit-descr {
    font-size: 1.4rem;
    line-height: 1.4;
    font-weight: 500;
    transition: transform 0.4s;
}

.benefit-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.4s;
}

.benefit-item:hover .benefit-number,
.benefit-item.active .benefit-number {
    opacity: 1;
    transform: translateX(10px);
}

.benefit-item:hover .benefit-descr,
.benefit-item.active .benefit-descr {
    color: var(--color-accent);
    transform: translateX(20px);
}

.benefit-item:hover .benefit-line,
.benefit-item.active .benefit-line {
    background: var(--color-accent);
}

.benefit-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -20px;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(57, 255, 20, 0.05), transparent);
    transition: width 0.4s;
    z-index: -1;
}

.benefit-item:hover::after,
.benefit-item.active::after {
    width: calc(100% + 40px);
}

.about-conclusion {
    margin-top: 3.5rem;
    font-size: 1.4rem;
    font-weight: 600;
}

@media (max-width: 900px) {
    .about-conclusion {
        margin-top: 2.5rem;
    }
}

.about .text-large {
    font-size: 1.4rem;
    /* Restored to "normal" large for desktop */
    line-height: 1.6;
}

.about .text-body {
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Cases Section */
.cases-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-top: 3rem;
}

.case-item {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 3rem;
    align-items: start;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.01);
    transition: all 0.3s;
}

.case-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

.case-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.case-industry {
    color: var(--color-accent);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.case-company {
    font-family: var(--font-cyrillic);
    font-size: 2rem;
    margin: 0;
}

/* AI Teams Section */
.ai-teams {
    background: var(--color-bg);
    overflow: hidden;
}

.ai-teams .accent-text {
    color: var(--color-accent);
}

.ai-footer-note .accent-text {
    color: var(--color-accent);
}

/* --- ImproPackets Section --- */
.impro-packets {
    background-color: #050505;
    position: relative;
    overflow: hidden;
}

.packets-header {
    text-align: center;
    margin-bottom: 4rem;
}

.packets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.packet-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    -webkit-tap-highlight-color: transparent;
    /* Remove click highlight on mobile */
}

.packet-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, var(--theme-color, var(--color-accent)), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

@media (hover: hover) {
    .packet-card:hover {
        transform: translateY(-10px);
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.2);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    }

    .packet-card:hover::before {
        opacity: 0.1;
    }

    .packet-card:hover .packet-icon {
        background: var(--theme-color);
        color: #000;
        transform: rotate(-5deg) scale(1.1);
    }
}

/* Scroll-triggered Highlight (Mobile-centric, but safe for all) */
.packet-card.active {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--theme-color);
    box-shadow: 0 0 30px color-mix(in srgb, var(--theme-color) 30%, transparent);
}

.packet-card.active::before {
    opacity: 0.15;
}

.packet-card.active .packet-icon {
    background: var(--theme-color);
    color: #000;
}

/* Theme Colors */
.packet-card[data-theme="ai"],
.modal-overlay[data-theme="ai"] {
    --theme-color: #39FF14;
}

.packet-card[data-theme="burnout"],
.modal-overlay[data-theme="burnout"] {
    --theme-color: #00D1FF;
}

.packet-card[data-theme="comm"],
.modal-overlay[data-theme="comm"] {
    --theme-color: #BD00FF;
}

.packet-card[data-theme="speed"],
.modal-overlay[data-theme="speed"] {
    --theme-color: #FF9900;
}

.packet-card[data-theme="ice"],
.modal-overlay[data-theme="ice"] {
    --theme-color: #00FFD1;
}

.packet-card[data-theme="lead"],
.modal-overlay[data-theme="lead"] {
    --theme-color: #FF3131;
}

.packet-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--theme-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    z-index: 1;
}

.packet-card:hover .packet-icon {
    background: var(--theme-color);
    color: #000;
    transform: rotate(-5deg) scale(1.1);
}

.packet-title {
    font-family: var(--font-cyrillic);
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: #fff;
    z-index: 1;
}

.packet-result {
    font-size: 0.95rem;
    color: var(--color-text-dim);
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
    z-index: 1;
}

.packet-more {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--theme-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 1;
}

/* --- Packet Modals Enhancements --- */
.packet-modal {
    max-width: 800px !important;
    padding: 3rem !important;
    border: 1px solid var(--theme-color) !important;
}

/* Custom Themed Scrollbar for Packet Modals */
.packet-modal::-webkit-scrollbar {
    width: 6px;
}

.packet-modal::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.packet-modal::-webkit-scrollbar-thumb {
    background: var(--theme-color);
    border-radius: 10px;
}

.packet-modal {
    scrollbar-width: thin;
    scrollbar-color: var(--theme-color) rgba(255, 255, 255, 0.02);
}

.packet-modal .modal-title {
    font-family: var(--font-cyrillic);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--theme-color);
}

.modal-strategic-result {
    padding: 1.5rem;
    background: color-mix(in srgb, var(--theme-color) 5%, transparent);
    border-left: 4px solid var(--theme-color);
    margin-bottom: 2.5rem;
    border-radius: 0 10px 10px 0;
}

.detail-section {
    margin-bottom: 2.5rem;
}

.detail-section h5 {
    font-family: var(--font-cyrillic);
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-section ul {
    list-style: none;
    padding-left: 0;
}

.detail-section ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--color-text-dim);
    line-height: 1.5;
}

.detail-section ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--theme-color);
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 1.5rem;
    border-radius: 15px;
}

.metric-group h6 {
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 0.8rem;
    opacity: 0.8;
}

.modal-footer-note {
    font-size: 0.8rem;
    color: var(--color-text-dim);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 1rem;
    text-align: center;
    font-style: italic;
}

/* Responsiveness for packets */
@media (max-width: 1024px) {
    .packets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}



.ai-intro {
    text-align: center;
    margin-bottom: 5rem;
}

/* AI Teams Section styles consolidated to global .section-subtitle */

/* Stage 1: Cards */
.ai-cards-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto 5rem;
    position: relative;
    perspective: 1000px;
}



.ai-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 1.5rem;
    /* Reduced from 3rem 2rem */
    border-radius: 4px;
    text-align: center;
    transition: background 0.4s ease, border-color 0.4s ease;
    will-change: transform;
}

.card-val {
    display: block;
    font-family: var(--font-cyrillic);
    font-size: 3.2rem;
    /* Reduced from 4rem */
    color: var(--color-text-dim);
    line-height: 1;
    margin-bottom: 0.8rem;
}

.card-desc {
    font-size: 1rem;
    /* Reduced from 1.1rem */
    color: var(--color-text-dim);
    line-height: 1.4;
}

.cards-source {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 0.75rem;
    color: var(--color-text-dim);
    opacity: 0.4;
    margin-top: 1.5rem;
    font-style: italic;
}

/* Stage 2: Tension Matrix Redesign */
.ai-tension-stage {
    margin-bottom: 6rem;
    display: flex;
    justify-content: center;
    position: relative;
    padding: 2rem 0;
    width: 100%;
}



.tension-matrix {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    width: 100%;
    max-width: 800px;
    position: relative;
    z-index: 1;
}



.tension-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
    animation: tension-pulse 6s ease-in-out infinite;
}

.tension-item[data-id="1"] {
    animation-delay: 0s;
}

.tension-item[data-id="2"] {
    animation-delay: 1.5s;
}

.tension-item[data-id="3"] {
    animation-delay: 3s;
}

.tension-item[data-id="4"] {
    animation-delay: 4.5s;
}

@keyframes tension-pulse {

    0%,
    100% {
        transform: scale(1);
        border-color: rgba(255, 255, 255, 0.05);
    }

    50% {
        transform: scale(1.02);
        border-color: rgba(255, 69, 0, 0.2);
        box-shadow: 0 0 20px rgba(255, 69, 0, 0.05);
    }
}

.tension-label {
    font-family: var(--font-cyrillic);
    font-size: 1.1rem;
    color: var(--color-text-dim);
    opacity: 0.6;
    transition: all 0.4s ease;
}

.intensity-bar-container {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    width: 100%;
    border-radius: 2px;
    overflow: hidden;
}

.intensity-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(to right, #ff8c00, #ff4500);
    transition: width 0.1s linear;
    /* Smooth scrub */
}

/* Highlighted state */
.tension-item.active {
    background: rgba(255, 69, 0, 0.05);
    border-color: rgba(255, 69, 0, 0.2);
    animation-duration: 3s;
    /* Faster pulsation when active */
}

.tension-item.active .tension-label {
    color: var(--color-text);
    opacity: 1;
    transform: translateX(5px);
}

/* Stage 3: Solutions */
.ai-solutions-stage {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.solutions-title {
    text-align: center;
    font-family: var(--font-cyrillic);
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--color-red-accent);
    /* Start with red */
    transition: color 0.1s linear;
}

@media (max-width: 768px) {
    .solutions-title {
        font-size: 1.5rem;
        margin-bottom: 2.5rem;
        padding: 0 1rem;
    }
}

.solutions-matrix {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .solutions-matrix {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
}

.solution-item {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.8rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
}

.sol-thesis {
    font-family: var(--font-cyrillic);
    font-size: 1.1rem;
    color: var(--color-text-dim);
    line-height: 1.4;
    transition: all 0.4s ease;
}

.solution-bar {
    background: linear-gradient(to right, #32cd32, #39FF14) !important;
}

.solution-item.active {
    background: rgba(57, 255, 20, 0.05);
    border-color: rgba(57, 255, 20, 0.2);
}

.solution-item.active .sol-thesis {
    color: var(--color-text);
}

.ai-footer-note {
    text-align: center;
    margin-top: 6rem;
    font-size: 1.5rem;
    font-family: var(--font-cyrillic);
}

@media (max-width: 900px) {
    .ai-cards-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .solutions-matrix {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .tension-points {
        width: 200px;
    }

    .tension-point::after {
        font-size: 0.9rem;
        left: 20px;
    }
}

/* HR Priorities integration */
.hr-priorities {
    background: var(--color-bg);
}

.priorities-header {
    text-align: center;
    margin-bottom: 5rem;
}

/* HR Priorities styles consolidated to global .section-subtitle */

.priorities-container {
    max-width: 1000px;
    margin: 0 auto;
}

.priority-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 2.5rem 0;
    position: relative;
    cursor: default;
    transition: all 0.5s ease;
    opacity: 0.3;
    /* Dim by default */
}

.priority-row.active {
    opacity: 1;
}

.priority-row:first-child {
    padding-top: 0;
}

.row-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30%;
    /* Start small */
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.priority-row.active .row-divider {
    width: 60%;
    background: var(--color-accent);
}

.priority-col {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.priority-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    opacity: 0.5;
    font-weight: 600;
}

.priority-text {
    font-family: var(--font-cyrillic);
    font-size: 1.25rem;
    line-height: 1.4;
    color: var(--color-text);
    margin: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.priority-row.active .priority-text {
    transform: translateX(15px);
}

.priority-col.right .priority-text {
    color: var(--color-text-dim);
    transition: color 0.5s ease;
}

.priority-row.active .priority-col.right .priority-text {
    color: var(--color-text);
}

@media (max-width: 768px) {
    .priority-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 0;
    }

    .priority-col.right {
        padding-left: 1.5rem;
        border-left: 1px solid rgba(57, 255, 20, 0.2);
    }

    .priority-row:hover .priority-text {
        transform: none;
    }
}

.case-stats {
    display: flex;
    gap: 3rem;
    margin-top: 1.5rem;
}

.stat-box {
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    padding-bottom: 0.5rem;
    padding-right: 1.5rem;
    /* Space for info icon */
}

/* Info Icon indicator */
.stat-box::before {
    content: 'i';
    position: absolute;
    right: 0;
    top: 10px;
    width: 16px;
    height: 16px;
    border: 1px solid var(--color-accent);
    border-radius: 50%;
    color: var(--color-accent);
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: italic;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.stat-box:hover::before {
    opacity: 1;
    transform: scale(1.1);
    background: rgba(57, 255, 20, 0.1);
}

.stat-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30%;
    height: 1px;
    background: var(--color-accent);
    opacity: 0.3;
    transition: width 0.3s ease, opacity 0.3s ease;
}

.stat-box:hover::after {
    width: 60%;
    opacity: 1;
}

.stat-val {
    font-family: var(--font-cyrillic);
    font-size: 2.5rem;
    color: var(--color-text);
    line-height: 1;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.stat-box:hover .stat-val {
    color: var(--color-accent);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-text-dim);
    max-width: 180px;
    line-height: 1.3;
}

/* Metric Click Popup (Glassmorphic) */
.metric-popup {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 0;
    width: 320px;
    background: rgba(15, 15, 15, 0.7);
    /* Glassmorphism */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.8rem;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.metric-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: all;
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--color-text-dim);
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.popup-close:hover {
    color: var(--color-accent);
}

/* Adjust position for second stat */
.stat-box:last-child .metric-popup {
    left: auto;
    right: 0;
}

.impro-packets .section-title {
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .impro-packets .section-title {
        font-size: 1.2rem;
        /* Consistent with global */
        word-break: normal;
        overflow-wrap: normal;
    }
}

.popup-section h6 {
    font-family: var(--font-cyrillic);
    color: var(--color-accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.popup-section p,
.popup-section li {
    font-size: 0.9rem;
    color: var(--color-text);
    line-height: 1.5;
    margin-bottom: 0.3rem;
}

.popup-section ul {
    list-style: none;
    padding-left: 0;
}

.popup-section li {
    position: relative;
    padding-left: 1rem;
}

.popup-section li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-size: 0.7rem;
    top: 2px;
}

.popup-result {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
    line-height: 1.4;
}

.popup-result strong {
    color: var(--color-accent);
}

/* Restoration of Case Styles */
.case-desc {
    color: var(--color-text-dim);
    line-height: 1.6;
    font-size: 1rem;
    margin-top: 1rem;
}

.case-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    font-size: 0.75rem;
    text-transform: uppercase;
    border-radius: 4px;
    margin-top: 1rem;
    font-weight: 600;
}

.case-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.case-cta {
    margin-top: 1.5rem;
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: transform 0.3s;
}

.case-item:hover .case-cta {
    transform: translateX(10px);
}

@media (max-width: 1024px) {
    .case-item {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .case-stats {
        gap: 2rem;
        flex-wrap: wrap;
    }

    .metric-popup {
        width: 280px;
    }
}



/* Trainers/Team Section */
.team-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.team-member.reverse-layout {
    flex-direction: row-reverse;
}

/* Polaroid Photo Styling */
.member-photo-col {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.polaroid-wrapper {
    position: relative;
    transition: transform 0.3s ease;
}

.polaroid-wrapper.rotate-left {
    transform: rotate(0deg);
}

.polaroid-wrapper.rotate-right {
    transform: rotate(0deg);
}

.polaroid-wrapper:hover,
.polaroid-wrapper.active {
    transform: rotate(0) scale(1.02);
    z-index: 10;
}

.polaroid-frame {
    background-color: #f0f0f0;
    /* Off-white paper */
    padding: 1rem 1rem 3rem 1rem;
    /* Extra bottom padding for caption */
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(0, 0, 0, 0.1);
    width: 280px;
    position: relative;
    z-index: 2;
}

/* Neon Glow behind photo */
.polaroid-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: var(--color-accent);
    filter: blur(40px);
    opacity: 0.3;
    z-index: 0;
    border-radius: 50%;
    transition: opacity 0.3s;
}

.polaroid-wrapper:hover::before,
.polaroid-wrapper.active::before {
    opacity: 0.6;
}

.photo-area {
    width: 100%;
    aspect-ratio: 4/5;
    background-color: #000;
    overflow: hidden;
    margin-bottom: 0.5rem;
    position: relative;
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1) saturate(1.1);
    transition: filter 0.4s ease, transform 0.4s ease;
}

.polaroid-wrapper.active .team-photo {
    filter: grayscale(0%) contrast(1.1) saturate(1.1);
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.polaroid-caption {
    font-family: 'Mrs Saint Delafield', cursive, sans-serif;
    /* Keep generic cursive fallback */
    font-size: 1.5rem;
    /* Large handwritten style */
    color: #333;
    text-align: center;
    position: absolute;
    bottom: 0.8rem;
    left: 0;
    width: 100%;
    font-weight: 400;
    opacity: 0.8;
}

/* Tape Element */
.tape-element {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    width: 80px;
    height: 25px;
    background-color: rgba(57, 255, 20, 0.4);
    /* Green translucent tape */
    z-index: 3;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    opacity: 0.8;
}

/* Info Column */
.member-info-col {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.member-name {
    font-family: var(--font-cyrillic);
    font-size: 2rem;
    margin-bottom: 0.2rem;
    line-height: 1.1;
    text-transform: uppercase;
}

.member-role {
    color: var(--color-accent);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.member-bio {
    list-style: disc;
    /* Or default disc */
    padding-left: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.member-bio li {
    color: var(--color-text);
    /* White text */
    font-size: 1rem;
    line-height: 1.5;
}

.member-bio li::marker {
    color: var(--color-text-dim);
    /* Softer bullets */
}

/* Responsive Team */
@media (max-width: 900px) {

    .team-member,
    .team-member.reverse-layout {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        /* Center align on mobile */
    }

    .member-info-col {
        align-items: center;
    }

    .member-bio {
        text-align: left;
        /* Keep bullets left aligned for readability */
        padding-left: 1.5rem;
        max-width: 400px;
    }

    .polaroid-frame {
        width: 260px;
        /* Slightly smaller */
    }
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s ease, transform 0.5s ease;
}

.gallery-item:hover img,
.gallery-item.active img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Stagger delays removed as we are back to hover */

/* Grid Spans for "Masonry" feel */
.item-1 {
    grid-column: span 2;
    grid-row: span 2;
}

.item-2 {
    grid-column: span 1;
    grid-row: span 1;
}

.item-3 {
    grid-column: span 1;
    grid-row: span 1;
}

.item-4 {
    grid-column: span 2;
    grid-row: span 1;
}

.item-5 {
    grid-column: span 2;
    grid-row: span 1;
}

/* No Overlay or Hover effects */

/* Responsive Gallery */
@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }

    .item-1,
    .item-4,
    .item-5 {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        grid-auto-rows: 250px;
    }

    .item-1,
    .item-2,
    .item-3,
    .item-4,
    .item-5 {
        grid-column: span 1;
        grid-row: span 1;
    }
}

.footer {
    background-color: #030303;
    padding-top: 4rem;
    padding-bottom: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    align-items: center;
    /* Center to prevent empty space below title */
}

.footer-title {
    font-family: var(--font-cyrillic);
    font-size: 6vw;
    line-height: 0.9;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.privacy-link {
    font-size: 0.8rem;
    color: var(--color-text-dim);
    text-decoration: none;
    transition: color 0.3s;
    opacity: 0.6;
}

.privacy-link:hover {
    color: var(--color-accent);
    opacity: 1;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-email {
    font-family: var(--font-cyrillic);
    font-size: 2rem;
    /* Big email */
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s;
}

.social-link {
    color: var(--color-text);
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}

.social-link:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

/* Telegram CTA */
.footer-cta-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.tg-cta-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    max-width: 500px;
    width: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.tg-cta-card:hover,
.tg-cta-card.active {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--color-accent);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(57, 255, 20, 0.1);
}

.tg-icon-box {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    transition: transform 0.4s ease;
}

.tg-cta-card:hover .tg-icon-box,
.tg-cta-card.active .tg-icon-box {
    transform: scale(1.1) rotate(5deg);
}

.tg-cta-text {
    font-size: 1.2rem;
    line-height: 1.5;
    color: var(--color-text);
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.tg-button {
    width: 100%;
    justify-content: center;
    padding: 1.2rem;
    font-size: 1.1rem;
}

.consent-note {
    font-size: 0.75rem;
    color: var(--color-text-dim);
    line-height: 1.4;
    margin-top: 1.2rem;
    opacity: 0.7;
    text-align: center;
}

.consent-note a {
    color: inherit;
    text-decoration: underline;
}

.consent-note a:hover {
    color: var(--color-accent);
}

.tg-cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(57, 255, 20, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.tg-cta-card:hover::before,
.tg-cta-card.active::before {
    opacity: 1;
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .tg-cta-card {
        padding: 2rem;
    }

    .tg-cta-text {
        font-size: 1.1rem;
    }
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    text-align: center;
    color: #444;
    font-size: 0.9rem;
}

/* Responsive Footer/Trainers */
@media (max-width: 1024px) {
    .trainers-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        max-width: 500px;
        margin: 3rem auto 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-title {
        font-size: 3rem;
    }
}

/* Problems / Why Skills Don't Change Section using existing #services ID logic if needed or just new classes */
.problems-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 2.5rem auto 0;
    /* Added top margin to create space below subtitle */
    align-items: center;
}

.problem-pill {
    width: 100%;
    padding: 1.5rem 3rem;
    border: 1px solid var(--color-accent);
    border-radius: 50px;
    /* Pill shape */
    background: linear-gradient(90deg, rgba(57, 255, 20, 0.05), transparent 50%, rgba(57, 255, 20, 0.05));
    text-align: center;
    font-size: 1.25rem;
    color: var(--color-text);
    transition: all 0.3s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.problem-pill p {
    margin: 0;
    line-height: 1.4;
}

/* Micro-vibration animation — neon glow outline only */
@keyframes vibrate {
    0% {
        transform: translate(0, 0);
        box-shadow: 0 0 8px rgba(57, 255, 20, 0.5), inset 0 0 4px rgba(57, 255, 20, 0.1);
    }

    20% {
        transform: translate(-2px, 1px);
        box-shadow: 0 0 14px rgba(57, 255, 20, 0.8), inset 0 0 8px rgba(57, 255, 20, 0.2);
    }

    40% {
        transform: translate(-2px, -1px);
        box-shadow: 0 0 10px rgba(57, 255, 20, 0.6), inset 0 0 4px rgba(57, 255, 20, 0.15);
    }

    60% {
        transform: translate(2px, 1px);
        box-shadow: 0 0 16px rgba(57, 255, 20, 0.9), inset 0 0 8px rgba(57, 255, 20, 0.25);
    }

    80% {
        transform: translate(2px, -1px);
        box-shadow: 0 0 12px rgba(57, 255, 20, 0.7), inset 0 0 4px rgba(57, 255, 20, 0.15);
    }

    100% {
        transform: translate(0, 0);
        box-shadow: 0 0 8px rgba(57, 255, 20, 0.5), inset 0 0 4px rgba(57, 255, 20, 0.1);
    }
}

.problem-pill:hover,
.problem-pill.active {
    border-color: var(--color-accent);
    /* Stay neon green — no white */
    animation: vibrate 0.4s linear infinite;
}

.problem-pill.active {
    background-color: rgba(57, 255, 20, 0.05);
    /* Keep original subtle tint */
}

/* Responsive Problems */


/* Responsive */
@media (max-width: 1024px) {

    /* Continuing from existing media query block if possible, or new one */
    .hero-bg-text {
        font-size: 15vw;
    }

    .media-card {
        width: 35vw;
    }

    .grid-2-col {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .marquee-item {
        font-size: 6vw;
    }
}



/* Process/Roadmap Section */
.process {
    position: relative;
    overflow: hidden;
}

.process-header {
    margin-bottom: 2.5rem;
}

.process-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.process-path {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.13;
    /* Almost invisible but 30% brighter now */
}

.mobile-path {
    display: none;
}

.path-line {
    stroke: var(--color-accent);
    stroke-width: 1;
    /* Very thin */
    stroke-dasharray: 2000;
    stroke-dashoffset: 0;
    filter: drop-shadow(0 0 2px var(--color-accent));
    /* Subtle glow */
}

.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    min-height: 600px;
    /* Increased for better zig-zag separation */
    padding: 2rem 0;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 220px;
    text-align: center;
    position: relative;
    cursor: default;
}

/* Zig-Zag Positioning */
.step-1 {
    margin-top: auto;
    /* Push to bottom */
}

.step-2 {
    margin-bottom: auto;
    /* Push to top */
}

.step-3 {
    margin-top: auto;
}

.step-4 {
    margin-bottom: auto;
}

.step-desc {
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.4;
    transition: color 0.3s;
    font-weight: 500;
}

.top-desc {
    order: -1;
    /* Move description above platform for top steps */
    margin-bottom: 1rem;
}

.step-1 .step-desc,
.step-3 .step-desc {
    margin-top: 1rem;
}

.step-platform {
    width: 140px;
    height: 140px;
    position: relative;
    perspective: 1000px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.platform-surface {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 1px solid rgba(57, 255, 20, 0.3);
    border-radius: 20px;

    /* Isometric Transform */
    transform: rotateX(55deg) rotateZ(-45deg);
    transform-style: preserve-3d;

    box-shadow:
        -5px 5px 0 #0f0f0f,
        -5px 5px 10px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(57, 255, 20, 0.05);
    /* Soft inner glow */

    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

/* Icon Styling */
.step-icon {
    /* Counter-rotate to look correct on the surface */
    transform: rotateZ(45deg);

    color: var(--color-accent);
    filter: drop-shadow(0 0 5px rgba(57, 255, 20, 0.4));
    transition: all 0.4s ease;
}

/* Hover Effects */
.process-step:hover .step-platform,
.process-step.active .step-platform {
    transform: translateY(-15px);
}

.process-step:hover .platform-surface,
.process-step.active .platform-surface {
    border-color: var(--color-accent);
    box-shadow:
        -8px 8px 0 #0f0f0f,
        -8px 8px 20px rgba(57, 255, 20, 0.4),
        inset 0 0 30px rgba(57, 255, 20, 0.3);
    /* Stronger glow for reveal feel */
}

.process-step:hover .step-icon,
.process-step.active .step-icon {
    transform: rotateZ(45deg) scale(1.1) translateZ(10px);
    filter: drop-shadow(0 0 10px rgba(57, 255, 20, 0.9));
    color: #fff;
}

.process-step:hover .step-desc,
.process-step.active .step-desc {
    color: var(--color-accent);
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.3);
}

/* Responsive */


/* Modal System */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background-color: #0c0c0c;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    padding: 4rem;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    -webkit-tap-highlight-color: transparent;
}



/* Custom Scrollbar for Modal */
.modal-container::-webkit-scrollbar {
    width: 6px;
}

.modal-container::-webkit-scrollbar-track {
    background: #080808;
    border-radius: 10px;
}

.modal-container::-webkit-scrollbar-thumb {
    background: rgba(57, 255, 20, 0.3);
    border-radius: 10px;
    transition: background 0.3s;
}

.modal-container::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
    border-color: var(--color-accent);
}

.modal-overlay.active .packet-modal {
    border-color: var(--theme-color) !important;
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--color-text-dim);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--color-accent);
}

.modal-overlay[data-theme] .modal-close:hover {
    color: var(--theme-color);
    text-shadow: 0 0 15px var(--theme-color);
}

/* Review Styles */
.review-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 2.5rem;
    border-left: 3px solid var(--color-accent);
    padding-left: 1.5rem;
}

.review-author {
    font-family: var(--font-cyrillic);
    font-size: 1.5rem;
    color: var(--color-accent);
}

.review-position {
    font-size: 0.9rem;
    color: var(--color-text-dim);
    letter-spacing: 0.1em;
}

.review-body {
    color: var(--color-text);
    font-size: 1.1rem;
    line-height: 1.7;
}

.review-body p {
    margin-bottom: 1.5rem;
}

/* Modal Responsive */


/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 400px;
    max-width: calc(100% - 4rem);
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    z-index: 10000;
    transform: translateY(120%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cookie-title {
    font-family: var(--font-cyrillic);
    font-size: 1.1rem;
    color: var(--color-accent);
    text-transform: uppercase;
}

.cookie-text {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--color-text-dim);
}

.cookie-btn {
    align-self: flex-start;
    padding: 0.75rem 2rem !important;
    font-size: 0.85rem !important;
}



/* Exit Intent Modal - Glassmorphism */
.modal-overlay.glassmorphic {
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}

.modal-container.exit-modal {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
    max-width: 650px;
    text-align: center;
}

.exit-modal .modal-title {
    font-family: var(--font-cyrillic);
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.exit-body-text {
    margin-bottom: 2.5rem;
}

.exit-body-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-text-dim);
    margin-bottom: 1.2rem;
}

.exit-body-text p:last-child {
    color: var(--color-text);
    font-weight: 500;
}

.exit-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.exit-actions .btn-primary {
    width: fit-content;
    padding: 1.2rem 2.5rem;
}

/* ==========================================================================
   CONSOLIDATED MOBILE OVERRIDES (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {

    /* Global fixes */
    html,
    body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    body {
        cursor: auto;
    }

    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }

    /* Typography Overrides */
    .section-padding {
        padding: 4rem 1.25rem !important;
        /* Increased top padding to prevent header "flying away" */
    }

    .section-title {
        font-size: 1.6rem !important;
        text-align: center !important;
        padding: 0 1rem !important;
        line-height: 1.15 !important;
        margin-bottom: 1.2rem !important;
        width: 100% !important;
    }

    .section-title br {
        display: block !important;
        /* Restore BR to control line breaks as intended */
    }

    .section-subtitle {
        font-size: 0.8rem !important;
        padding: 0 1.5rem !important;
        text-align: center !important;
        margin-top: 0.5rem !important;
        margin-bottom: 0 !important;
    }

    /* Companies marquee — half font size on mobile */
    .companies .marquee-content span {
        font-size: 1.1rem !important;
        /* Half of desktop 2.2rem */
        margin: 0 1.5rem !important;
    }

    .companies .marquee-content .separator {
        font-size: 1.2rem !important;
    }

    .companies-title {
        font-size: 0.75rem !important;
        /* Half of desktop 1.5rem */
    }

    /* Hero Section */
    .header {
        padding: 1rem 1.5rem !important;
    }

    .hero {
        overflow: hidden;
        padding-top: 2rem !important;
    }

    .hero-bg-text {
        font-size: 15vw !important;
        /* Slightly larger as in target */
        top: 45% !important;
        /* More centered vertically */
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }

    .media-cluster {
        opacity: 0.25 !important;
    }

    .card-1 {
        width: 55vw !important;
        top: 15% !important;
        right: -5% !important;
    }

    .card-2 {
        width: 50vw !important;
        top: 25% !important;
        left: -5% !important;
    }

    .hero-footer {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: left;
        /* Reverted from center */
    }

    .hero-subtitle p {
        font-size: 1rem !important;
        /* Smaller text as in target */
        line-height: 1.4 !important;
    }

    .tags {
        justify-content: flex-start !important;
        gap: 0.8rem !important;
    }

    .hero-actions {
        justify-content: flex-start !important;
        /* Reverted from center */
    }

    /* About & Benefits */
    .about-container {
        padding: 0 1rem;
    }

    #about .section-title {
        font-size: 1.8rem !important;
    }

    .glass-card {
        padding: 1.5rem !important;
        border-radius: 20px !important;
        margin: 0 0.5rem;
        max-width: 100% !important;
    }

    .about .text-large {
        font-size: 0.8rem !important;
        /* Adjusted for mobile readability while staying small */
        line-height: 1.5 !important;
    }

    .benefit-item {
        grid-template-columns: 40px 1fr !important;
        gap: 1rem !important;
        padding: 1.5rem 0 !important;
    }

    .benefit-number {
        font-size: 1rem !important;
    }

    .benefit-descr {
        font-size: 1.05rem !important;
    }

    /* Problems Section Refinement */
    .problems-header {
        margin-bottom: 2.5rem !important;
    }

    .problems-header .section-title {
        margin-bottom: 1rem !important;
    }

    .problems-header .section-subtitle {
        margin-top: 0 !important;
        margin-bottom: 2rem !important;
    }

    .problem-pill {
        padding: 1.2rem !important;
        border-radius: 30px !important;
        font-size: 1.05rem !important;
        margin-bottom: 1rem !important;
    }

    .problems-list {
        gap: 0.8rem !important;
    }

    /* Process/Roadmap: Even Vertical Alignment */
    .process-steps {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 4rem !important;
        padding: 0 1.5rem !important;
        min-height: auto !important;
        position: relative !important;
    }

    .process-steps::before {
        content: '';
        position: absolute;
        left: calc(1.5rem + 40px);
        /* 1.5rem padding + 40px (half of 80px platform) */
        top: 40px;
        /* Start at center of first icon */
        bottom: 40px;
        /* End at center of last icon */
        width: 1px;
        background: var(--color-accent);
        opacity: 0.2;
        /* Slightly more visible */
    }

    .process-step {
        width: 100% !important;
        flex-direction: row !important;
        align-items: center !important;
        text-align: left !important;
        gap: 2rem !important;
        margin: 0 !important;
    }

    .step-platform {
        width: 80px !important;
        /* Slightly larger for better visibility */
        height: 80px !important;
        flex-shrink: 0 !important;
        order: 1 !important;
        /* Force platform on left */
    }

    .step-desc {
        font-size: 0.95rem !important;
        max-width: none !important;
        margin: 0 !important;
        opacity: 0.8;
        order: 2 !important;
        /* Force text on right */
        text-align: left !important;
    }

    .top-desc {
        margin-bottom: 0 !important;
        /* Remove desktop zig-zag margin */
    }

    .process-path {
        display: none !important;
    }

    /* AI Teams Section (Stage 1 & 2) */
    .ai-cards-container {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        margin-bottom: 4rem !important;
    }

    .ai-card {
        padding: 1.5rem !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    .card-val {
        font-size: 2.8rem !important;
    }

    .ai-tension-stage {
        padding: 2rem 1rem !important;
    }

    .tension-matrix {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .tension-item {
        padding: 1.2rem !important;
    }

    /* AI Solutions Matrix */
    .solutions-matrix {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .solution-item {
        padding: 1.2rem !important;
    }

    .sol-thesis {
        font-size: 1rem !important;
    }

    /* ImproPackets */
    .packets-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .packet-card {
        padding: 1.5rem !important;
    }

    /* HR Priorities */
    .priority-item {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 2rem !important;
    }

    .priority-content {
        padding-left: 0 !important;
        margin-top: 1.5rem !important;
    }

    /* Cases & Metrics */
    .case-item {
        display: grid !important;
        grid-template-columns: 1fr !important;
        padding: 2rem !important;
        gap: 2rem !important;
    }

    .case-stats {
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 1.5rem !important;
    }

    .metric-popup {
        position: fixed !important;
        bottom: 1.5rem !important;
        left: 1rem !important;
        right: 1rem !important;
        top: auto !important;
        width: auto !important;
        z-index: 5000;
        transform: translateY(20px);
    }

    .metric-popup.active {
        transform: translateY(0);
    }

    /* Team */
    .team-member {
        flex-direction: column !important;
        gap: 2rem !important;
        text-align: center !important;
    }

    .member-bio {
        text-align: left;
        padding-left: 1.5rem;
    }

    .polaroid-frame {
        width: 260px !important;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr !important;
        grid-auto-rows: 250px !important;
    }

    .item-1,
    .item-2,
    .item-3,
    .item-4,
    .item-5 {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
        text-align: center !important;
    }

    .footer-title {
        font-size: 3rem !important;
    }

    .tg-cta-card {
        padding: 2rem 1.5rem !important;
    }

    /* Modals */
    .modal-container {
        padding: 2rem 1.2rem !important;
        width: 95% !important;
        max-height: 90vh !important;
    }

    .modal-close {
        top: 1rem !important;
        right: 1rem !important;
        font-size: 2rem !important;
    }

    .review-author {
        font-size: 1.2rem !important;
    }

    /* Cookie & Exit */
    .cookie-banner {
        bottom: 1rem !important;
        right: 1rem !important;
        left: 1rem !important;
        width: auto !important;
    }

    .exit-modal .modal-title {
        font-size: 1.3rem !important;
    }

    .exit-body-text p {
        font-size: 0.95rem !important;
    }
}