/* ============================================
   ASKEVE - SERVICE PAGE STYLES
   Dynamic Green Neon Theme with Angular Design
   ============================================ */

/* --- Page Hero --- */
.page-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    height: auto;
    padding: 0;
    overflow: clip;
    background: var(--bg-darker);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

/* Video Background for Service Pages */
.page-hero-video-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    /* z-index: 0; Removed to allow overlay to rise */
}

.page-hero-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* filter: brightness(0.3); REMOVED - This was making the video dark! */
}

.page-hero-video-overlay {
    position: absolute;
    inset: 0;
    /* This is your single control for darkness. Adjust opacity (0.5) as needed. */
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.3) 0%,
            rgb(0, 0, 0, 0.8) 70%,
            rgb(0, 0, 0, 1) 100%);
    z-index: 5;
    pointer-events: none;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 80% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse 100% 60% at 50% 0%, rgba(68, 214, 165, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.page-hero .container,
.page-hero .hero-content-wrapper {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-lg);
    align-items: center;
    max-width: 1200px;
    width: 100%;
    flex: 1;
    position: relative;
    z-index: 10;
    padding: 0 clamp(1rem, 4vw, var(--space-xl));
}

.page-hero-content {
    max-width: 700px;
}

.page-hero-content h1 {
    margin-bottom: var(--space-lg);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.05;
    color: #ffffff;
}

.page-hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 600px;
}

.chatbots-hero .hero-content-wrapper.chatbots-intro-content {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
}

.chatbots-hero .page-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: min(100%, 900px);
}

.chatbots-hero .page-hero-subtitle {
    margin: 0 auto;
}

.chatbots-hero .hero-buttons {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.chatbots-hero .hero-buttons .btn {
    min-width: 180px;
}

.hero-bg-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-bg-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

/* --- LLM Hero Scroll Story --- */
.page-hero.llm-hero.llm-hero-story {
    min-height: 200vh;
    overflow: visible;
    display: block;
}

.page-hero.llm-hero.llm-hero-story .llm-story-bg-layer {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.page-hero.llm-hero.llm-hero-story .llm-story-bg-layer .hero-bg-media {
    position: sticky;
    top: var(--nav-height);
    left: 0;
    right: 0;
    height: calc(var(--viewport-height) - var(--nav-height));
}

.page-hero.llm-hero.llm-hero-story .llm-story-bg-layer .hero-bg-media .page-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.page-hero.llm-hero.llm-hero-story .llm-story-sticky {
    position: sticky;
    top: var(--nav-height);
    height: calc(var(--viewport-height) - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.page-hero.llm-hero.llm-hero-story .hero-bg-media img {
    object-position: center 35%;
    filter: brightness(0.5);
}

.page-hero.llm-hero.llm-hero-story .hero-content-wrapper.llm-intro-content {
    display: block;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.page-hero.llm-hero.llm-hero-story .llm-story-track {
    position: relative;
    width: 100%;
    min-height: clamp(320px, 48vh, 520px);
    display: grid;
    place-items: center;
}

.page-hero.llm-hero.llm-hero-story .llm-story-stage {
    position: relative;
    grid-area: 1 / 1;
    margin: 0 auto;
    width: min(92vw, 780px);
    min-width: 0;
    max-width: 780px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    will-change: opacity, transform;
}

.page-hero.llm-hero.llm-hero-story .llm-story-stage .page-hero-subtitle {
    margin: 0 auto var(--space-md);
}

.page-hero.llm-hero.llm-hero-story .llm-story-stage h2 {
    margin-bottom: var(--space-md);
    font-size: clamp(2.1rem, 7vw, 4rem);
    line-height: 1.05;
}

.page-hero.llm-hero.llm-hero-story .llm-stage-1 {
    opacity: 1;
}

.page-hero.llm-hero.llm-hero-story .llm-stage-2 {
    opacity: 0;
    pointer-events: none;
}

.service-hero-video-panel {
    position: relative;
    min-height: min(80vh, 720px);
    min-height: min(80svh, 720px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.service-hero-video-panel video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3);
}

.service-hero-video-panel .hero-video-copy {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
}

.service-hero-video-panel .hero-video-copy h2 {
    font-size: clamp(2rem, 7vw, 3rem);
    margin-bottom: 24px;
}

.service-hero-video-panel .hero-video-copy p {
    font-size: clamp(1rem, 3vw, 1.3rem);
    line-height: 1.8;
}

.kpi-grid-four {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(20px, 6vw, 80px);
    max-width: 1200px;
    margin: 0 auto;
}

.kpi-card {
    text-align: center;
}

.kpi-card h4 {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.kpi-card .kpi-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 32px;
}

.kpi-card .kpi-value {
    font-size: clamp(2.4rem, 9vw, 4rem);
    font-weight: 700;
    color: var(--neon);
    display: block;
    margin-bottom: 12px;
}

.kpi-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 auto;
}

.kpi-card .stat-info,
.llm-story-stage .stat-info,
.pattern-sticky-reveal .panel-overlay .stat-info,
.pattern-slideshow-peek .slide-content .stat-info {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-top: 10px;
    border-radius: 50%;
    border: 1px solid rgba(68, 214, 165, 0.55);
    background: rgba(68, 214, 165, 0.08);
    color: var(--neon);
    font-size: 0.65rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    text-decoration: none;
    vertical-align: middle;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.kpi-card .stat-info .stat-info-glyph,
.llm-story-stage .stat-info .stat-info-glyph,
.pattern-sticky-reveal .panel-overlay .stat-info .stat-info-glyph,
.pattern-slideshow-peek .slide-content .stat-info .stat-info-glyph {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1;
    transform: translateY(0.00em);
    pointer-events: none;
}

.kpi-card .stat-info::before,
.llm-story-stage .stat-info::before,
.pattern-sticky-reveal .panel-overlay .stat-info::before,
.pattern-slideshow-peek .slide-content .stat-info::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: calc(100% + 4px);
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid rgba(20, 24, 22, 0.95);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 16;
}

.kpi-card .stat-info::after,
.llm-story-stage .stat-info::after,
.pattern-sticky-reveal .panel-overlay .stat-info::after,
.pattern-slideshow-peek .slide-content .stat-info::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%) translateY(4px);
    min-width: 180px;
    max-width: 240px;
    padding: 0.45rem 0.55rem;
    border-radius: 0;
    clip-path: var(--clip-angular-sm);
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: linear-gradient(135deg, rgba(48, 48, 48, 0.8) 0%, rgba(20, 25, 20, 0.9) 100%);
    color: var(--text-secondary);
    font-size: 0.68rem;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: normal;
    text-transform: none;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    z-index: 15;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.kpi-card .stat-info:hover::before,
.kpi-card .stat-info:hover::after,
.kpi-card .stat-info:focus-visible::before,
.kpi-card .stat-info:focus-visible::after,
.llm-story-stage .stat-info:hover::before,
.llm-story-stage .stat-info:hover::after,
.llm-story-stage .stat-info:focus-visible::before,
.llm-story-stage .stat-info:focus-visible::after,
.pattern-sticky-reveal .panel-overlay .stat-info:hover::before,
.pattern-sticky-reveal .panel-overlay .stat-info:hover::after,
.pattern-sticky-reveal .panel-overlay .stat-info:focus-visible::before,
.pattern-sticky-reveal .panel-overlay .stat-info:focus-visible::after,
.pattern-slideshow-peek .slide-content .stat-info:hover::before,
.pattern-slideshow-peek .slide-content .stat-info:hover::after,
.pattern-slideshow-peek .slide-content .stat-info:focus-visible::before,
.pattern-slideshow-peek .slide-content .stat-info:focus-visible::after {
    opacity: 1;
    visibility: visible;
}

.kpi-card .stat-info:hover::after,
.kpi-card .stat-info:focus-visible::after,
.llm-story-stage .stat-info:hover::after,
.llm-story-stage .stat-info:focus-visible::after,
.pattern-sticky-reveal .panel-overlay .stat-info:hover::after,
.pattern-sticky-reveal .panel-overlay .stat-info:focus-visible::after,
.pattern-slideshow-peek .slide-content .stat-info:hover::after,
.pattern-slideshow-peek .slide-content .stat-info:focus-visible::after {
    transform: translateX(-50%) translateY(0);
}

.kpi-card .stat-info:hover,
.kpi-card .stat-info:focus-visible,
.llm-story-stage .stat-info:hover,
.llm-story-stage .stat-info:focus-visible,
.pattern-sticky-reveal .panel-overlay .stat-info:hover,
.pattern-sticky-reveal .panel-overlay .stat-info:focus-visible,
.pattern-slideshow-peek .slide-content .stat-info:hover,
.pattern-slideshow-peek .slide-content .stat-info:focus-visible {
    transform: scale(1.12);
    background: rgba(68, 214, 165, 0.16);
    border-color: rgba(68, 214, 165, 0.85);
    color: var(--neon);
    box-shadow: 0 0 14px rgba(68, 214, 165, 0.35);
}

.kpi-card .stat-info:focus-visible,
.llm-story-stage .stat-info:focus-visible,
.pattern-sticky-reveal .panel-overlay .stat-info:focus-visible,
.pattern-slideshow-peek .slide-content .stat-info:focus-visible {
    outline: 2px solid rgba(68, 214, 165, 0.45);
    outline-offset: 2px;
}

/* Inline placement for tooltip bubbles inside sticky reveal overlay copy */
.pattern-sticky-reveal .panel-overlay p .stat-info {
    margin-top: 0;
    margin-left: 0.35em;
}

.pattern-slideshow-peek .slide-content p .stat-info {
    margin-top: 0;
    margin-left: 0.35em;
}

.zigzag-grid-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(24px, 6vw, 80px);
    align-items: center;
}

.zigzag-grid-row+.zigzag-grid-row {
    margin-top: 120px;
}

.media-frame-20 {
    border-radius: 20px;
    overflow: hidden;
}

.media-frame-20 img {
    width: 100%;
    height: auto;
    display: block;
}

.copy-title-xl {
    font-size: clamp(1.6rem, 4vw, 2rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.copy-text-lg {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.page-hero-icon {
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(68, 214, 165, 0.08);
    border: 1px solid rgba(68, 214, 165, 0.2);
    clip-path: var(--clip-angular);
    animation: pulseGlow 3s ease-in-out infinite;
}

.page-hero-icon svg {
    width: 80px;
    height: 80px;
    stroke: var(--neon);
}

/* Hero Visual Image */
.page-hero-visual {
    width: 300px;
    height: 300px;
    overflow: hidden;
    clip-path: var(--clip-angular);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 255, 255, 0.1);
}

.page-hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9) saturate(1.1);
    transition: transform 0.6s ease-out, filter 0.4s ease;
}

.page-hero-visual:hover img {
    transform: scale(1.05);
    filter: brightness(1) saturate(1.2);
}

/* Interactive Gears Visual Override */
.page-hero-visual.interactive-gears-visual {
    width: 100%;
    max-width: 500px;
    height: auto;
    aspect-ratio: 5/4;
    border: none;
    box-shadow: none;
    background: transparent;
    clip-path: none;
    overflow: visible;
}

.gears-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(68, 214, 165, 0.1));
}

.interactive-gear {
    transform-origin: 0 0;
    /* Handled by translate in SVG, rotation handled by JS on inner group */
    transition: transform 0.1s linear;
    /* Smooth visual follow */
}

.gear-rotator {
    transform-origin: 0 0;
    transition: transform 0.2s cubic-bezier(0.2, 0, 0.2, 1);
    /* Smooth rotation */
}

.trigger-btn-inner {
    transition: fill 0.3s;
}

.interactive-gears-visual:hover .trigger-btn-inner {
    fill: #fff;
    filter: drop-shadow(0 0 5px #44d6a5);
}

/* --- Problem Section --- */
.problem-section {
    background: var(--bg-dark);
}

.split-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.split-text h2 {
    margin-bottom: var(--space-md);
}

.split-text>p {
    margin-bottom: var(--space-md);
    font-size: 1.1rem;
}

.problem-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.problem-list li {
    display: flex;
    gap: var(--space-sm);
    align-items: flex-start;
}

.problem-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(68, 214, 165, 0.1);
    border: 1px solid rgba(68, 214, 165, 0.2);
    clip-path: var(--clip-angular-sm);
}

.problem-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--neon);
}

.problem-list li strong {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.problem-list li p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Visual Card */
.split-visual {
    position: relative;
}

.visual-card {
    padding: var(--space-lg);
    clip-path: var(--clip-angular);
}

.glass-card {
    background: linear-gradient(135deg,
            rgba(68, 214, 165, 0.05) 0%,
            rgba(13, 26, 13, 0.8) 100%);
    border: 1px solid rgba(68, 214, 165, 0.15);
    backdrop-filter: blur(20px);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.stat-item {
    text-align: center;
    padding: var(--space-sm);
}

.stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--neon);
    text-shadow: 0 0 20px var(--neon-glow);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* --- Solution Section --- */
.solution-section {
    position: relative;
    background: var(--bg-darker);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    padding: var(--space-lg);
    transition: all 0.4s var(--ease-out);
    clip-path: var(--clip-angular);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--neon);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(68, 214, 165, 0.4);
    box-shadow: var(--shadow-neon);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(68, 214, 165, 0.1);
    border: 1px solid rgba(68, 214, 165, 0.2);
    clip-path: var(--clip-angular-sm);
    margin-bottom: var(--space-sm);
    transition: all 0.4s var(--ease-out);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--neon);
}

.feature-card:hover .feature-icon {
    background: rgba(68, 214, 165, 0.2);
    box-shadow: var(--shadow-neon);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* --- Process Section --- */
.process-section {
    background: var(--bg-dark);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 60px;
    right: 60px;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--neon) 10%,
            var(--neon) 90%,
            transparent 100%);
    opacity: 0.3;
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 2px solid rgba(68, 214, 165, 0.3);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    margin: 0 auto var(--space-md);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neon);
    position: relative;
    z-index: 1;
    transition: all 0.4s var(--ease-out);
}

.process-step:hover .step-number {
    background: var(--neon);
    color: var(--bg-darker);
    border-color: var(--neon);
    box-shadow: var(--shadow-neon);
}

.step-content h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* CTA Section uses shared.css styles */

/* --- Hero Image Variant --- */
.page-hero.with-image {
    padding-bottom: 0;
}

.page-hero-image {
    position: relative;
    max-width: 1200px;
    margin: var(--space-lg) auto 0;
    clip-path: var(--clip-angular);
    overflow: hidden;
    aspect-ratio: 16/9;
}

.page-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, transparent, var(--bg-dark));
}

/* --- Chat Demo Section --- */
.demo-section {
    background: var(--bg-dark);
}

.demo-container {
    max-width: 600px;
    margin: 0 auto;
}

.chat-demo {
    background: var(--bg-elevated);
    border: var(--border-subtle);
    clip-path: var(--clip-angular);
    overflow: hidden;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: rgba(68, 214, 165, 0.05);
    border-bottom: var(--border-subtle);
}

.chat-avatar {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(68, 214, 165, 0.15);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.chat-avatar svg {
    width: 24px;
    height: 24px;
    stroke: var(--neon);
}

.chat-info strong {
    display: block;
    color: var(--text-primary);
}

.chat-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.chat-messages {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.message {
    max-width: 85%;
    padding: var(--space-sm) var(--space-md);
    font-size: 0.95rem;
    line-height: 1.5;
}

.message.bot {
    background: rgba(68, 214, 165, 0.1);
    border: 1px solid rgba(68, 214, 165, 0.15);
    align-self: flex-start;
    color: var(--text-primary);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}

.message.user {
    background: var(--neon);
    color: var(--bg-darker);
    align-self: flex-end;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

/* --- Benefits List --- */
.benefits-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-item {
    text-align: center;
    padding: var(--space-md);
    background: var(--bg-card);
    border: var(--border-subtle);
    clip-path: var(--clip-angular);
    transition: all 0.4s var(--ease-out);
}

.benefit-item:hover {
    border-color: rgba(68, 214, 165, 0.3);
    transform: translateY(-5px);
    box-shadow: var(--shadow-neon);
}

.benefit-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(68, 214, 165, 0.1);
    border: 1px solid rgba(68, 214, 165, 0.2);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    margin: 0 auto var(--space-sm);
}

.benefit-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--neon);
}

.benefit-item h4 {
    font-size: 1.1rem;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.benefit-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 auto;
}

/* --- Use Cases Grid --- */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    max-width: 1200px;
    margin: 0 auto;
}

.use-case-card {
    display: flex;
    gap: var(--space-sm);
    align-items: flex-start;
    padding: var(--space-md);
    clip-path: var(--clip-angular);
}

.use-case-card:hover {
    border-color: rgba(68, 214, 165, 0.3);
}

.use-case-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neon);
    text-shadow: 0 0 10px var(--neon-glow);
    min-width: 50px;
}

.use-case-card h4 {
    font-size: 1.1rem;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.use-case-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .page-hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .page-hero-icon,
    .page-hero-visual {
        display: none;
    }

    .page-hero-content {
        max-width: 100%;
    }

    .page-hero-subtitle {
        margin: 0 auto;
    }

    .split-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .split-text {
        order: 1;
    }

    .split-visual {
        order: 2;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }

    .process-timeline::before {
        display: none;
    }

    .benefits-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-hero {
        min-height: var(--viewport-height);
        padding: calc(var(--nav-height) + 24px) var(--space-sm) 48px;
    }

    .automation-hero .automation-intro-content {
        padding-top: clamp(24px, 7vh, 72px);
    }

    .automation-hero .page-hero-content {
        margin-top: clamp(12px, 5vh, 48px);
    }

    .chatbots-hero .hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: min(100%, 360px);
        margin-left: auto;
        margin-right: auto;
    }

    .chatbots-hero .hero-buttons .btn {
        width: 100%;
        min-width: 0;
    }

    .page-hero.llm-hero.llm-hero-story {
        min-height: 180vh;
    }

    .page-hero.llm-hero.llm-hero-story .hero-content-wrapper.llm-intro-content {
        padding: 0 16px;
    }

    .page-hero.llm-hero.llm-hero-story .llm-story-track {
        min-height: clamp(300px, 46vh, 420px);
    }

    .page-hero.llm-hero.llm-hero-story .llm-story-stage {
        width: 100%;
        max-width: 680px;
        padding: 0 4px;
    }

    .page-hero.llm-hero.llm-hero-story .llm-story-stage h1 {
        font-size: clamp(2rem, 10vw, 3rem);
        line-height: 1.08;
        overflow-wrap: anywhere;
    }

    .page-hero.llm-hero.llm-hero-story .llm-story-stage h2 {
        font-size: clamp(1.8rem, 8.8vw, 2.6rem);
        line-height: 1.12;
        overflow-wrap: anywhere;
    }

    .page-hero.llm-hero.llm-hero-story .llm-story-stage .page-hero-subtitle {
        max-width: min(100%, 36ch);
        font-size: 1rem;
        line-height: 1.55;
    }

    .page-hero.llm-hero.llm-hero-story .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: min(100%, 360px);
        margin: 0 auto;
    }

    .page-hero.llm-hero.llm-hero-story .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .page-hero-subtitle {
        font-size: 1.1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .process-timeline {
        grid-template-columns: 1fr;
    }

    .stat-grid {
        grid-template-columns: 1fr;
    }

    .benefits-list {
        grid-template-columns: 1fr;
    }

    .use-cases-grid {
        grid-template-columns: 1fr;
    }

    .service-hero-video-panel {
        min-height: min(64vh, 520px);
        min-height: min(64svh, 520px);
    }

    .service-hero-video-panel .hero-video-copy {
        padding: 0 16px;
    }

    .kpi-grid-four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .zigzag-grid-row {
        grid-template-columns: 1fr;
    }

    .zigzag-grid-row+.zigzag-grid-row {
        margin-top: 64px;
    }

    .llm-zigzag-text-only .zigzag-grid-row {
        grid-template-columns: 1fr;
    }

    .llm-zigzag-text-only .zigzag-grid-row .media-frame-20 {
        display: none;
    }
}

@media (max-width: 480px) {
    .page-hero {
        padding: calc(var(--nav-height) + 16px) var(--space-sm) 36px;
    }

    .automation-hero .automation-intro-content {
        padding-top: clamp(18px, 8vh, 56px);
    }

    .page-hero-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .page-hero-subtitle {
        font-size: 1rem;
    }

    .section {
        padding: var(--space-lg) var(--space-sm);
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .feature-icon,
    .benefit-icon {
        width: 50px;
        height: 50px;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .kpi-grid-four {
        grid-template-columns: 1fr;
    }

    .page-hero.llm-hero.llm-hero-story .llm-story-track {
        min-height: clamp(260px, 44vh, 360px);
    }

    .page-hero.llm-hero.llm-hero-story .hero-content-wrapper.llm-intro-content {
        padding: 0 10px;
    }

    .page-hero.llm-hero.llm-hero-story .llm-story-stage h1 {
        font-size: clamp(1.7rem, 9.5vw, 2.3rem);
    }

    .page-hero.llm-hero.llm-hero-story .llm-story-stage h2 {
        font-size: clamp(1.55rem, 8.3vw, 2.1rem);
    }

    .page-hero.llm-hero.llm-hero-story .llm-story-stage .page-hero-subtitle {
        max-width: 32ch;
        font-size: 0.95rem;
    }
}

/* ============================================
   HERO BRIGHTNESS TRANSITION ANIMATION
   Video starts bright, darkens after 1.5s
   ============================================ */

@keyframes darkenVideo {
    0% {
        filter: brightness(1.0);
    }

    100% {
        filter: brightness(0.3);
    }
}

@keyframes showOverlay {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes revealText {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Initial state - brighter video with animation */
/* Initial state - brighter video with animation */
.hero-video-bright video {
    filter: brightness(1.0);
    /* animation: darkenVideo 1.5s ease-out 1.5s forwards; DISABLED */
}

/* Overlay transition */
.hero-overlay-transition {
    /* opacity: 0; */
    /* animation: showOverlay 1.5s ease-out 1.5s forwards; DISABLED */
    opacity: 1;
}

/* Text reveal animation */
.page-hero-content h1 {
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
}

.hero-text-hidden {
    opacity: 0;
    transform: translateY(30px);
    /* delay 2.0s (starts slightly after video darkens), duration 1s */
    animation: revealText 1s ease-out 2.0s forwards;
}

/* Inline Gear SVG Styling */
/* Inline Gear SVG Styling */
.gear-letter {
    display: inline-block;
    position: relative;
    width: 0.7em;
    height: 0.8em;
    vertical-align: middle;
    /* Center vertically */
    margin: 0 -0.02em;
    top: -0.05em;
    /* Slight visual adjustment */
}

.inline-gear {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0.8em;
    height: 0.8em;
    color: #ffffff;
    animation: gearSpin 8s linear infinite;
}

/* Make gear thicker to match text weight */
.inline-gear path {
    stroke: currentColor;
    stroke-width: 2px;
    vector-effect: non-scaling-stroke;
    /* Keep stroke constant */
}

@keyframes gearSpin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}
