/* ===== FONTS ===== */

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --dark-bg: #0f172a;
    --darker-bg: #020617;
    --light-text: #f1f5f9;
    --gray-text: #94a3b8;
    --card-bg: #1e293b;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--darker-bg);
    color: var(--light-text);
    overflow-x: hidden;
    overflow-y: auto;
    line-height: 1.65;
    width: 100%;
    max-width: 100vw;
    font-weight: 400;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: padding 0.3s ease, background 0.3s ease, backdrop-filter 0.3s ease, border-bottom 0.3s ease;
}

.navbar.scrolled {
    padding: 1rem 5%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 968px) {
    .navbar.scrolled {
        background: rgba(15, 23, 42, 0.95);
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.logo:hover {
    transform: scale(1.08);
}

.logo:hover .logo-text {
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo:hover .logo-icon img {
    filter: brightness(1.3) saturate(1.4) drop-shadow(0 0 12px rgba(99, 102, 241, 0.8)) drop-shadow(0 0 20px rgba(139, 92, 246, 0.6)) drop-shadow(0 0 30px rgba(236, 72, 153, 0.4));
}

.logo-icon {
    width: 50px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: filter 0.3s ease;
}

.logo-icon svg,
.logo-icon img {
    width: 100%;
    height: 100%;
}

.logo-text {
    font-family: 'Sora', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--light-text);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--light-text);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

.nav-link:hover::after {
    width: 100%;
}

.nav-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.nav-link-icon i {
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
}
.nav-link-icon::after { display: none; }
.nav-link-icon:hover {
    color: var(--primary-color);
}

/* ===== HERO SLIDER ===== */
.hero-slider {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: var(--dark-bg);
    z-index: 0;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    height: 100%;
    gap: 4rem;
    width: 100%;
    box-sizing: border-box;
}

.slide-text {
    flex: 1;
    z-index: 3;
    position: relative;
    max-width: 700px;
}

@media (max-width: 768px) {
    .slide-text {
        max-width: 100%;
    }
}

.slide-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.slide-title .word {
    margin-right: 0.5rem;
}

.slide-title .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px);
}

.slide.active .slide-title .word {
    animation: slideUpWord 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.slide.active .slide-title .word:nth-child(1) {
    animation-delay: 0.2s;
}

.slide.active .slide-title .word:nth-child(2) {
    animation-delay: 0.4s;
}

.slide.active .slide-title .word:nth-child(3) {
    animation-delay: 0.6s;
}

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

.slide-subtitle {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1rem, 2.2vw, 1.7rem);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    margin-top: -0.5rem;
    color: var(--gray-text);
}

.slide-subtitle .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
}

.slide.active .slide-subtitle .word {
    animation: slideUpWord 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.slide.active .slide-subtitle .word:nth-child(1) {
    animation-delay: 0.5s;
}

.slide.active .slide-subtitle .word:nth-child(2) {
    animation-delay: 0.6s;
}

.slide.active .slide-subtitle .word:nth-child(3) {
    animation-delay: 0.7s;
}

.slide.active .slide-subtitle .word:nth-child(4) {
    animation-delay: 0.8s;
}

.slide-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--gray-text);
    margin-bottom: 2.5rem;
    opacity: 0;
    line-height: 1.7;
}

.slide.active .slide-description {
    animation: fadeInUp 0.8s ease forwards 1.2s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-button {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.5s ease, visibility 0.5s ease;
    opacity: 0;
}

.hero-slider .cta-button.hide-on-scroll {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.slide.active .cta-button {
    animation: fadeInUp 0.8s ease forwards 1s;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

/* ===== SLIDE VISUALS ===== */
.slide-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

/* Geometric Shapes Animation */
.synapse-network {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.synapse-svg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.5s;
}

.synapse-edge {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawEdge 2s ease forwards;
    filter: url(#glow);
}

.edge-1 { animation-delay: 0.5s; }
.edge-2 { animation-delay: 0.7s; }
.edge-3 { animation-delay: 0.9s; }
.edge-4 { animation-delay: 1.1s; }
.edge-5 { animation-delay: 1.3s; }
.edge-6 { animation-delay: 1.5s; }
.edge-7 { animation-delay: 1.7s; }
.edge-8 { animation-delay: 1.9s; }

.neuron-node {
    position: absolute;
    width: 60px;
    height: 60px;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards, neuronPulse 3s ease-in-out infinite;
}

.neuron-node::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(99, 102, 241, 1) 0%,
        rgba(139, 92, 246, 0.8) 50%,
        rgba(236, 72, 153, 0.4) 100%);
    box-shadow: 0 0 30px rgba(99, 102, 241, 1),
                inset 0 0 15px rgba(139, 92, 246, 0.8);
    animation: neuronGlow 2s ease-in-out infinite;
}

.neuron-node::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(99, 102, 241, 0.5);
    animation: neuronRipple 2s ease-out infinite;
}

/* Node positions match SVG coords: viewBox 1000x800
   Node1=(800,150) Node2=(200,150) Node3=(500,300) Node4=(700,500) Node5=(300,500)
   CSS uses left/top %, node is 60px so offset -30px to center */
.neuron-1 { left: calc(80% - 30px); top: calc(18.75% - 30px); animation-delay: 0.3s; }
.neuron-2 { left: calc(20% - 30px); top: calc(18.75% - 30px); animation-delay: 0.5s; }
.neuron-3 { left: calc(50% - 30px); top: calc(37.5%  - 30px); animation-delay: 0.7s; }
.neuron-4 { left: calc(70% - 30px); top: calc(62.5%  - 30px); animation-delay: 0.9s; }
.neuron-5 { left: calc(30% - 30px); top: calc(62.5%  - 30px); animation-delay: 1.1s; }

.signal {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(236, 72, 153, 1) 0%,
        rgba(139, 92, 246, 0.8) 50%,
        rgba(99, 102, 241, 0.4) 100%);
    box-shadow: 0 0 25px rgba(236, 72, 153, 1);
    opacity: 0;
}

.signal-1 {
    animation: signalTravel1 3s ease-in-out infinite;
    animation-delay: 2s;
}

.signal-2 {
    animation: signalTravel2 3s ease-in-out infinite;
    animation-delay: 2.3s;
}

.signal-3 {
    animation: signalTravel3 3s ease-in-out infinite;
    animation-delay: 2.6s;
}

.signal-4 {
    animation: signalTravel4 3s ease-in-out infinite;
    animation-delay: 2.9s;
}

.signal-5 {
    animation: signalTravel5 3s ease-in-out infinite;
    animation-delay: 3.2s;
}

.signal-6 {
    animation: signalTravel6 3s ease-in-out infinite;
    animation-delay: 3.5s;
}

.signal-7 {
    animation: signalTravel7 3s ease-in-out infinite;
    animation-delay: 3.8s;
}

.signal-8 {
    animation: signalTravel8 3s ease-in-out infinite;
    animation-delay: 4.1s;
}

@keyframes drawEdge {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes neuronPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

@keyframes neuronGlow {
    0%, 100% {
        box-shadow: 0 0 30px rgba(99, 102, 241, 1),
                    inset 0 0 15px rgba(139, 92, 246, 0.8);
    }
    50% {
        box-shadow: 0 0 50px rgba(236, 72, 153, 1),
                    inset 0 0 25px rgba(139, 92, 246, 1);
    }
}

@keyframes neuronRipple {
    0% {
        width: 50px;
        height: 50px;
        opacity: 0.6;
    }
    100% {
        width: 100px;
        height: 100px;
        opacity: 0;
    }
}

/* Signal positions: center of each node (left/top %) minus half signal size (6px)
   N1=80%/18.75%  N2=20%/18.75%  N3=50%/37.5%  N4=70%/62.5%  N5=30%/62.5% */

/* N1 → N3 */
@keyframes signalTravel1 {
    0%   { left: calc(80% - 6px); top: calc(18.75% - 6px); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { left: calc(50% - 6px); top: calc(37.5%  - 6px); opacity: 0; }
}
/* N2 → N3 */
@keyframes signalTravel2 {
    0%   { left: calc(20% - 6px); top: calc(18.75% - 6px); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { left: calc(50% - 6px); top: calc(37.5%  - 6px); opacity: 0; }
}
/* N3 → N4 */
@keyframes signalTravel3 {
    0%   { left: calc(50% - 6px); top: calc(37.5%  - 6px); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { left: calc(70% - 6px); top: calc(62.5%  - 6px); opacity: 0; }
}
/* N3 → N5 */
@keyframes signalTravel4 {
    0%   { left: calc(50% - 6px); top: calc(37.5%  - 6px); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { left: calc(30% - 6px); top: calc(62.5%  - 6px); opacity: 0; }
}
/* N1 → N2 */
@keyframes signalTravel5 {
    0%   { left: calc(80% - 6px); top: calc(18.75% - 6px); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { left: calc(20% - 6px); top: calc(18.75% - 6px); opacity: 0; }
}
/* N5 → N4 */
@keyframes signalTravel6 {
    0%   { left: calc(30% - 6px); top: calc(62.5%  - 6px); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { left: calc(70% - 6px); top: calc(62.5%  - 6px); opacity: 0; }
}
/* N1 → N4 */
@keyframes signalTravel7 {
    0%   { left: calc(80% - 6px); top: calc(18.75% - 6px); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { left: calc(70% - 6px); top: calc(62.5%  - 6px); opacity: 0; }
}
/* N2 → N5 */
@keyframes signalTravel8 {
    0%   { left: calc(20% - 6px); top: calc(18.75% - 6px); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { left: calc(30% - 6px); top: calc(62.5%  - 6px); opacity: 0; }
}

@keyframes fadeIn {
    to { opacity: 0.8; }
}

/* Triangle Field Animation */
.triangle-field {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.flying-triangle {
    position: absolute;
    opacity: 0;
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.6));
    animation: fadeIn 1s ease forwards, triangleFly 8s ease-in-out infinite;
}

.tri-1 {
    width: 280px;
    height: 280px;
    top: 10%;
    right: 15%;
    animation-delay: 0.2s;
}

.tri-2 {
    width: 220px;
    height: 220px;
    top: 45%;
    right: 10%;
    animation-delay: 0.6s;
}

.tri-3 {
    width: 250px;
    height: 250px;
    top: 25%;
    right: 45%;
    animation-delay: 1s;
}

.tri-4 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 35%;
    animation-delay: 1.4s;
}

@keyframes triangleFly {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.7;
    }
    25% {
        transform: translate(40px, -50px) rotate(120deg) scale(1.1);
        opacity: 0.9;
    }
    50% {
        transform: translate(-30px, -80px) rotate(240deg) scale(0.95);
        opacity: 0.6;
    }
    75% {
        transform: translate(50px, -40px) rotate(360deg) scale(1.05);
        opacity: 0.85;
    }
}

.flying-triangle polygon {
    animation: strokePulse 3s ease-in-out infinite;
}

.flying-triangle circle {
    animation: nodePulse 2s ease-in-out infinite;
}

.flying-triangle line {
    stroke-dasharray: 200;
    animation: dashMove 4s linear infinite;
}

@keyframes strokePulse {
    0%, 100% {
        stroke-width: 3;
        opacity: 0.8;
    }
    50% {
        stroke-width: 4;
        opacity: 1;
    }
}

@keyframes nodePulse {
    0%, 100% {
        r: 5;
        opacity: 0.8;
    }
    50% {
        r: 7;
        opacity: 1;
    }
}

@keyframes dashMove {
    0% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: 200;
    }
}

/* Wave Animation */
/* Scenarios visual for slide 3 */
.scenarios-visual {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
}
.scenario-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 340px;
    padding: 0.9rem 1.4rem;
    border-radius: 12px;
    border: 1px solid rgba(99,102,241,0.25);
    background: rgba(15,23,42,0.6);
    backdrop-filter: blur(10px);
    animation: chipFloat 0.6s ease both;
}
.scenario-chip-1 { animation-delay: 0.1s; border-color: rgba(99,102,241,0.35); }
.scenario-chip-2 { animation-delay: 0.25s; border-color: rgba(168,85,247,0.35); }
.scenario-chip-3 { animation-delay: 0.4s; border-color: rgba(236,72,153,0.35); }
@keyframes chipFloat {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}
.scenario-chip-label {
    font-size: 0.85rem;
    color: rgba(148,163,184,0.85);
    font-weight: 500;
}
.scenario-chip-val {
    font-family: 'Sora', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(90deg, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.scenario-chip-2 .scenario-chip-val { background: linear-gradient(90deg, #c084fc, #f472b6); -webkit-background-clip: text; background-clip: text; }
.scenario-chip-3 .scenario-chip-val { background: linear-gradient(90deg, #f472b6, #fb923c); -webkit-background-clip: text; background-clip: text; }
.scenario-total {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    margin-top: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 14px;
    border: 1px solid rgba(99,102,241,0.4);
    background: rgba(99,102,241,0.08);
    animation: chipFloat 0.6s ease 0.55s both;
}
.scenario-total-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(148,163,184,0.6);
}
.scenario-total-val {
    font-family: 'Sora', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(90deg, #818cf8, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}
.scenario-total-sub {
    font-size: 0.78rem;
    color: rgba(148,163,184,0.7);
}

.wave-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wave {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 40%;
    opacity: 0.3;
}

.wave-1 {
    background: var(--gradient-1);
    animation: waveAnimation 8s ease-in-out infinite;
    top: 20%;
    right: 15%;
    left: auto;
}

.wave-2 {
    background: var(--gradient-2);
    animation: waveAnimation 8s ease-in-out infinite 2s;
    top: 50%;
    right: 20%;
    left: auto;
}

.wave-3 {
    background: var(--gradient-3);
    animation: waveAnimation 8s ease-in-out infinite 4s;
    top: 35%;
    right: 35%;
    left: auto;
}

@keyframes waveAnimation {
    0%, 100% { transform: translate(0, 0) rotate(0deg); border-radius: 40%; }
    25% { transform: translate(30px, -30px) rotate(90deg); border-radius: 45%; }
    50% { transform: translate(0, -60px) rotate(180deg); border-radius: 50%; }
    75% { transform: translate(-30px, -30px) rotate(270deg); border-radius: 45%; }
}

/* ===== SLIDER CONTROLS ===== */
.slider-controls {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 2rem;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    visibility: visible;
}

.slider-controls.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.slider-btn svg {
    width: 24px;
    height: 24px;
}

.slider-dots {
    display: flex;
    gap: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-color);
    width: 40px;
    border-radius: 6px;
}


/* ===== SUB TEASERS SECTION ===== */
.sub-teasers,
.challenges-section {
    padding: 4rem 5% 6rem 5%;
    background: rgba(10, 15, 35, 0.85);
    backdrop-filter: blur(10px);
    position: relative;
    margin-top: 100vh;
    z-index: 10;
    box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.3),
                0 -8px 25px rgba(0, 0, 0, 0.2);
}

.challenges-content-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.challenge-left {
    padding-right: 2rem;
}

.challenge-main-title {
    font-family: 'Sora', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--light-text);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.title-highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.challenge-text-content {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
}

.challenge-text-content p {
    color: var(--gray-text);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

/* KPI Diagrams Container */
.kpi-diagrams-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.kpi-diagram-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.kpi-visual {
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pie-chart {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 5px 20px rgba(99, 102, 241, 0.4));
}

.kpi-number-visual {
    background: transparent;
}

.kpi-number-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    transition: filter 0.3s ease;
}

/* ── KPI Animations ── */

/* ── KPI Animations – fire once each time section scrolls into view ── */

/* Arcs start at 0 */
.pie-arc { stroke-dasharray: 0 502; }

/* On .kpi-animate: fill with staggered transitions */
.kpi-animate .pie-arc-80 {
    transition: stroke-dasharray 1.5s cubic-bezier(0.4, 0, 0.2, 1) 0s;
    stroke-dasharray: 402 502;
}
.kpi-animate .pie-arc-100 {
    transition: stroke-dasharray 1.5s cubic-bezier(0.4, 0, 0.2, 1) 0.6s;
    stroke-dasharray: 502 502;
}

/* Gentle float for <3 – fires once (forwards), staggered after pie */
@keyframes kpiFloatOnce {
    0%   { transform: translateY(0);   }
    40%  { transform: translateY(-7px);}
    70%  { transform: translateY(-3px);}
    100% { transform: translateY(0);   }
}
.kpi-bounce { display: inline-flex; }
.kpi-animate .kpi-bounce {
    animation: kpiFloatOnce 0.8s ease-in-out 1.4s 1 both;
}

/* Gentle float for ∞ – staggered after <3 */
@keyframes kpiFloatInfOnce {
    0%   { transform: translateY(0);   }
    40%  { transform: translateY(-6px);}
    70%  { transform: translateY(-2px);}
    100% { transform: translateY(0);   }
}
.kpi-spin { display: inline-block; }
.kpi-animate .kpi-spin {
    animation: kpiFloatInfOnce 0.8s ease-in-out 2s 1 both;
}

/* Hover glow */
.kpi-diagram-item:hover .kpi-bounce {
    filter: drop-shadow(0 0 10px rgba(99,102,241,0.7));
}
.kpi-diagram-item:hover .kpi-spin {
    filter: drop-shadow(0 0 14px rgba(236,72,153,0.8));
}

.kpi-symbol {
    font-family: 'Sora', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.kpi-big-number {
    font-family: 'Sora', sans-serif;
    font-size: 6rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.kpi-infinity-visual {
    background: transparent;
}

.kpi-infinity-display {
    font-size: 7rem;
    font-weight: 300;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    filter: drop-shadow(0 5px 20px rgba(139, 92, 246, 0.4));
}

.kpi-label {
    color: var(--gray-text);
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 500;
    max-width: 250px;
}

/* CTA Inline Section */
.cta-inline-section {
    text-align: center;
    padding: 4rem 0 3rem;
}

/* Features Wave */
.features-wave {
    width: 100%;
    height: 100px;
    display: block;
    margin-top: 2rem;
}

.cta-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50px;
    padding: 1.5rem 4rem;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 15px 50px rgba(99, 102, 241, 0.4);
    font-family: 'Sora', sans-serif;
}

.cta-contact-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.6);
}

.cta-contact-btn i {
    font-size: 1.5rem;
}

.contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    animation: modalFadeIn 0.3s ease;
}

.contact-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.features-top-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
        rgba(99, 102, 241, 0.4) 0%,
        rgba(139, 92, 246, 0.4) 50%,
        rgba(236, 72, 153, 0.4) 100%);
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.3),
                0 1px 6px rgba(0, 0, 0, 0.3);
    z-index: 4;
    pointer-events: none;
}

.features-top-gradient::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.2) 0%,
        transparent 100%);
}

.features-top-gradient::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.12) 50%,
        rgba(255, 255, 255, 0.05) 100%);
}

.features-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 3;
}

@keyframes waveFlow {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-50px);
    }
}

/* Separator Elements */
.separator {
    position: relative;
    width: 100%;
    height: 2px;
    z-index: 20;
    display: flex;
    justify-content: center;
    overflow: visible;
    background: #0a0e1f; /* solid base – no bleed-through */
}

/* Base line – always visible */
.separator::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        #0a0e1f 0%,
        rgba(99,102,241,0.25) 20%,
        rgba(99,102,241,0.35) 50%,
        rgba(99,102,241,0.25) 80%,
        #0a0e1f 100%
    );
}

/* Travelling highlight on top */
.separator::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        transparent 30%,
        rgba(168,85,247,0.55) 48%,
        rgba(200,130,255,0.65) 50%,
        rgba(168,85,247,0.55) 52%,
        transparent 70%,
        transparent 100%
    );
    background-size: 300% 100%;
    animation: sepShimmer 16s linear infinite;
}

@keyframes sepShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -100% 0; }
}

/* The circle badge */
.sep-circle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #111830 0%, #0d1228 60%, #130d28 100%);
    border: 1px solid rgba(99,102,241,0.3);
    box-shadow:
        0 0 0 5px #0a0e1f,
        0 0 18px rgba(99,102,241,0.18),
        0 4px 16px rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.sep-circle img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    opacity: 0.4;
    filter: grayscale(1) brightness(0.9);
}

/* Single soft hairline across the full width */
.separator-line-group {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
}

.sep-line { display: none; }

.sep-main {
    display: block;
    position: absolute;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(99,102,241,0.15) 20%,
        rgba(139,92,246,0.22) 50%,
        rgba(99,102,241,0.15) 80%,
        transparent 100%);
}

.sep-accent { display: none; }

/* Legacy selectors – unused */
.separator-center, .sep-logo, .sep-letters,
.sep-wave, .sep-wave-fill, .sep-line,
.separator-line-group { display: none; }

@media (max-width: 768px) {
    .separator {
        height: 2px;
    }
    
    .sep-letters {
        font-size: 0.85rem;
        letter-spacing: 0.1em;
    }

    .sep-letters::before,
    .sep-letters::after {
        width: 25px;
    }

    .sep-letters::before {
        left: -32px;
    }

    .sep-letters::after {
        right: -32px;
    }
    
    .logo-icon {
        width: 40px;
        height: 20px;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    width: 100%;
}

.teaser-grid,
.challenge-row,
.solution-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.challenge-row {
    margin-bottom: 3rem;
}

.solution-row {
    margin-bottom: 3rem;
}

.challenge-card {
    background: var(--card-bg);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    padding: 3rem 2rem;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.challenge-problem {
    background: 
        radial-gradient(circle at 10% 20%, rgba(220, 38, 38, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(249, 115, 22, 0.12) 0%, transparent 50%),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 60px,
            rgba(220, 38, 38, 0.04) 60px,
            rgba(220, 38, 38, 0.04) 120px
        ),
        linear-gradient(135deg,
            rgba(25, 15, 20, 0.98) 0%,
            rgba(30, 20, 25, 0.98) 50%,
            rgba(35, 25, 30, 0.98) 100%);
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.challenge-aspects {
    background: 
        linear-gradient(135deg,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(15, 15, 25, 0.95) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.solution-description {
    background: 
        linear-gradient(135deg,
            rgba(99, 102, 241, 0.08) 0%,
            rgba(30, 41, 59, 0.95) 100%);
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.solution-metrics-card {
    background: 
        linear-gradient(135deg,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(10, 15, 25, 0.95) 100%);
    border: 1px solid rgba(139, 92, 246, 0.25);
}

.challenge-card:hover {
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
}

.arrow-divider {
    text-align: center;
    padding: 2rem 0;
    position: relative;
}

.arrow-divider i {
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.6;
    animation: arrowBounce 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.5));
}

@keyframes arrowBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

.cta-section {
    text-align: center;
    padding: 3rem 0 0;
    margin-top: 2rem;
    border-top: 1px solid rgba(99, 102, 241, 0.15);
}

.cta-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50px;
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.cta-contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.5);
}

.cta-contact-btn i {
    font-size: 1.5rem;
}

.contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    animation: modalFadeIn 0.3s ease;
}

.contact-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

    .solution-metrics {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .metric-value {
        font-size: 2rem;
    }

    .challenge-highlights {
        gap: 0.75rem;
    }

    .highlight-item {
        padding: 0.75rem;
    }

    .highlight-item i {
        font-size: 1.3rem;
    }
}

.teaser-card {
    background: var(--card-bg);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    min-height: 400px;
    scroll-margin-top: 150px;
    z-index: 1;
}

.teaser-static {
    cursor: default;
}

.teaser-interactive {
    cursor: pointer;
}

.teaser-card[data-teaser="1"] {
    background: 
        radial-gradient(circle at 10% 20%, rgba(220, 38, 38, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(249, 115, 22, 0.12) 0%, transparent 50%),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 60px,
            rgba(220, 38, 38, 0.04) 60px,
            rgba(220, 38, 38, 0.04) 120px
        ),
        linear-gradient(135deg,
            rgba(25, 15, 20, 0.98) 0%,
            rgba(30, 20, 25, 0.98) 50%,
            rgba(35, 25, 30, 0.98) 100%);
    border: 1px solid rgba(220, 38, 38, 0.3);
    position: relative;
}

.teaser-card[data-teaser="1"]::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(239, 68, 68, 0.08) 0%, transparent 35%),
        radial-gradient(circle at 70% 60%, rgba(249, 115, 22, 0.06) 0%, transparent 35%);
    pointer-events: none;
    z-index: 0;
}

.teaser-card[data-teaser="2"] {
    background: linear-gradient(135deg,
        rgba(139, 92, 246, 0.08) 0%,
        rgba(30, 41, 59, 0.95) 100%);
}

.challenge-highlights {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.1);
    border-left: 3px solid var(--primary-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.highlight-item:hover {
    background: rgba(99, 102, 241, 0.15);
    border-left-color: #8b5cf6;
    transform: translateX(5px);
}

.highlight-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.highlight-item span {
    color: var(--light-text);
    font-weight: 500;
    line-height: 1.6;
}

.solution-metrics {
    margin-top: 2rem;
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.metric-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.metric-item:hover {
    background: rgba(99, 102, 241, 0.12);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.metric-value {
    font-family: 'Sora', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.metric-label {
    color: var(--gray-text);
    font-size: 0.85rem;
    line-height: 1.4;
}

.contact-form-inline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form-inline .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-form-inline label {
    color: var(--light-text);
    font-weight: 600;
    font-size: 0.9rem;
}

.contact-form-inline input,
.contact-form-inline textarea {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--light-text);
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form-inline input:focus,
.contact-form-inline textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.contact-form-inline .submit-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form-inline .submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.teaser-card.highlighted {
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5), 0 0 60px rgba(99, 102, 241, 0.3);
    transform: scale(1.02);
}

.teaser-preview {
    padding: 3rem 2rem;
    position: relative;
    z-index: 2;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.teaser-card.detail-open .teaser-preview {
    transform: translateX(-100%);
}

.teaser-detail {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--card-bg);
    padding: 3rem 2rem;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
    z-index: 3;
}

.teaser-card.detail-open .teaser-detail {
    transform: translateX(0);
}

.close-detail {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--light-text);
    transition: all 0.3s ease;
}

.close-detail:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary-color);
    transform: rotate(90deg);
}

.close-detail svg {
    width: 20px;
    height: 20px;
    stroke: var(--light-text);
}

.teaser-detail h3 {
    font-family: 'Sora', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.detail-content {
    color: var(--gray-text);
    line-height: 1.8;
}

.detail-content p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.detail-content ul {
    list-style: none;
    margin: 1.5rem 0;
}

.detail-content li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
}

.detail-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.teaser-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
    z-index: 10;
}

.teaser-card:hover::before {
    transform: scaleX(1);
}

.teaser-card {
    transition: all 0.3s ease;
}

.teaser-interactive:hover {
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.4);
}

.teaser-static:hover {
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.3);
}

.teaser-card[data-teaser="1"]:hover {
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.4);
}

.teaser-card[data-teaser="2"]:hover {
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.4);
}

.teaser-card[data-teaser="3"]:hover {
    box-shadow: 0 20px 60px rgba(236, 72, 153, 0.4);
}

.teaser-card[data-teaser="4"]:hover {
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.4);
}

.teaser-bg-effect {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.teaser-card:hover .teaser-bg-effect {
    opacity: 1;
}

.teaser-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    color: var(--primary-color);
    transition: all 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.teaser-icon i {
    font-size: 6rem;
}

.highlight-item i {
    font-size: 2rem !important;
}

.teaser-interactive:hover .teaser-icon {
    color: var(--accent-color);
}

.teaser-static:hover .teaser-icon {
    color: var(--accent-color);
}

.teaser-icon svg {
    width: 100%;
    height: 100%;
}

.teaser-title {
    font-family: 'Sora', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--light-text), var(--gray-text));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.teaser-description {
    color: var(--gray-text);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.teaser-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary-color);
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    padding: 1rem 2rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 2rem;
    align-self: flex-end;
}

.teaser-link:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.arrow-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.teaser-link:hover .arrow-icon {
    transform: translateX(5px);
}

/* Animation on Scroll */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(180deg, 
        rgba(0, 0, 0, 0.95) 0%,
        rgba(10, 10, 20, 1) 50%,
        rgba(0, 0, 0, 1) 100%);
    padding: 4rem 5%;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.footer::after {
    display: none;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    position: relative;
    z-index: 3;
}

.footer-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.footer-link {
    color: var(--gray-text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-link i {
    font-size: 1rem;
}

.footer-link:hover {
    color: var(--primary-color);
}

.footer-text {
    color: var(--gray-text);
    width: 100%;
    text-align: center;
    margin-top: 1rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(320px, 80vw);
        height: 100vh;
        background: rgba(8, 12, 28, 0.75);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 2rem 2rem;
        gap: 0;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -8px 0 40px rgba(0, 0, 0, 0.4);
        border-left: 1px solid rgba(255,255,255,0.07);
        z-index: 999;
    }
    .nav-menu li {
        width: 100%;
    }
    .nav-menu .nav-link {
        display: block;
        width: 100%;
        padding: 1rem 0.5rem;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .nav-menu .nav-link-icon {
        padding: 1rem 0.5rem;
        justify-content: flex-start;
        font-size: 1.3rem;
    }

    .nav-menu.active {
        right: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .slide {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .slide-content {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        align-items: center;
        padding: 0 5%;
        padding-top: 0;
        height: auto;
        min-height: 0;
        max-width: 100%;
    }

    .slide-text {
        margin: 0;
        max-width: 90%;
        position: relative;
        z-index: 2;
        width: 100%;
    }

    .slide-visual {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0.2;
        z-index: 1;
        pointer-events: none;
        overflow: hidden;
    }

    .neuron-node {
        width: 50px !important;
        height: 50px !important;
    }

    .neuron-node::before {
        width: 25px !important;
        height: 25px !important;
    }

    .neuron-node::after {
        width: 40px !important;
        height: 40px !important;
    }

    /* Mobile node positions: node is 50px so offset -25px to center
       N1=70%/15%  N2=25%/15%  N3=50%/50%  N4=65%/75%  N5=30%/75% */
    .neuron-1 { top: calc(15% - 25px) !important; left: calc(70% - 25px) !important; right: auto !important; }
    .neuron-2 { top: calc(15% - 25px) !important; left: calc(25% - 25px) !important; right: auto !important; }
    .neuron-3 { top: calc(50% - 25px) !important; left: calc(50% - 25px) !important; right: auto !important; }
    .neuron-4 { top: calc(75% - 25px) !important; left: calc(65% - 25px) !important; right: auto !important; }
    .neuron-5 { top: calc(75% - 25px) !important; left: calc(30% - 25px) !important; right: auto !important; }

    /* Signals on mobile: 10px, offset -5px to land on node centers
       N1=70%/15%  N2=25%/15%  N3=50%/50%  N4=65%/75%  N5=30%/75% */
    .signal {
        width: 10px !important;
        height: 10px !important;
    }

    @keyframes signalTravel1 {
        0%   { left: calc(70% - 5px); top: calc(15% - 5px); opacity: 0; }
        10%  { opacity: 1; }
        90%  { opacity: 1; }
        100% { left: calc(50% - 5px); top: calc(50% - 5px); opacity: 0; }
    }
    @keyframes signalTravel2 {
        0%   { left: calc(25% - 5px); top: calc(15% - 5px); opacity: 0; }
        10%  { opacity: 1; }
        90%  { opacity: 1; }
        100% { left: calc(50% - 5px); top: calc(50% - 5px); opacity: 0; }
    }
    @keyframes signalTravel3 {
        0%   { left: calc(50% - 5px); top: calc(50% - 5px); opacity: 0; }
        10%  { opacity: 1; }
        90%  { opacity: 1; }
        100% { left: calc(65% - 5px); top: calc(75% - 5px); opacity: 0; }
    }
    @keyframes signalTravel4 {
        0%   { left: calc(50% - 5px); top: calc(50% - 5px); opacity: 0; }
        10%  { opacity: 1; }
        90%  { opacity: 1; }
        100% { left: calc(30% - 5px); top: calc(75% - 5px); opacity: 0; }
    }
    @keyframes signalTravel5 {
        0%   { left: calc(70% - 5px); top: calc(15% - 5px); opacity: 0; }
        10%  { opacity: 1; }
        90%  { opacity: 1; }
        100% { left: calc(25% - 5px); top: calc(15% - 5px); opacity: 0; }
    }
    @keyframes signalTravel6 {
        0%   { left: calc(30% - 5px); top: calc(75% - 5px); opacity: 0; }
        10%  { opacity: 1; }
        90%  { opacity: 1; }
        100% { left: calc(65% - 5px); top: calc(75% - 5px); opacity: 0; }
    }
    @keyframes signalTravel7 {
        0%   { left: calc(70% - 5px); top: calc(15% - 5px); opacity: 0; }
        10%  { opacity: 1; }
        90%  { opacity: 1; }
        100% { left: calc(65% - 5px); top: calc(75% - 5px); opacity: 0; }
    }
    @keyframes signalTravel8 {
        0%   { left: calc(25% - 5px); top: calc(15% - 5px); opacity: 0; }
        10%  { opacity: 1; }
        90%  { opacity: 1; }
        100% { left: calc(30% - 5px); top: calc(75% - 5px); opacity: 0; }
    }

    .synapse-svg {
        opacity: 0.6 !important;
    }

    .wave {
        width: 350px !important;
        height: 350px !important;
        opacity: 0.4 !important;
    }

    .wave-1 {
        top: 15% !important;
        left: 50% !important;
        right: auto !important;
        margin-left: -175px;
    }

    .wave-2 {
        top: 45% !important;
        left: 25% !important;
        right: auto !important;
        margin-left: -175px;
    }

    .wave-3 {
        top: 60% !important;
        left: 70% !important;
        right: auto !important;
        margin-left: -175px;
    }
    
    .flying-triangle {
        opacity: 0.6 !important;
    }

    .tri-1 {
        width: 180px !important;
        height: 180px !important;
        top: 15% !important;
        left: 60% !important;
        right: auto !important;
    }

    .tri-2 {
        width: 150px !important;
        height: 150px !important;
        top: 50% !important;
        left: 25% !important;
        right: auto !important;
    }

    .tri-3 {
        width: 170px !important;
        height: 170px !important;
        top: 30% !important;
        left: 30% !important;
        right: auto !important;
    }

    .tri-4 {
        width: 140px !important;
        height: 140px !important;
        top: 65% !important;
        left: 65% !important;
        right: auto !important;
    }
    
    .data-particles {
        background-size: 80px 80px, 120px 120px, 100px 100px;
    }
    
    .wave-container {
        left: 0;
        right: 0;
        width: 100%;
    }

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

}

@media (max-width: 1200px) {
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 768px) {
    .funnel-phase .phase-number {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .funnel-phase .phase-title {
        font-size: 0.95rem;
    }

    .funnel-phase .phase-summary {
        font-size: 0.85rem;
    }

    .funnel-phase .phase-details-btn {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }

    .use-cases-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .methodology-text h3 {
        font-size: 1.5rem;
    }

    .methodology-text p {
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    .navbar {
        padding: 1rem 5%;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .logo-icon {
        width: 45px;
        height: 22px;
    }

    .slide-title {
        font-size: 2rem !important;
    }

    .slide-subtitle {
        font-size: 1.3rem !important;
        margin-top: 0 !important;
    }

    .slide-description {
        font-size: 1rem !important;
    }

    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .slider-controls {
        bottom: 30px;
        gap: 1rem;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
    }

    .teaser-preview {
        padding: 2rem 1.5rem;
    }

    .teaser-title {
        font-size: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: clamp(1.1rem, 4.5vw, 1.6rem);
    }

    .methodology-text h3 {
        font-size: 1.5rem;
    }
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
    padding: 3.5rem 5%;
    background: var(--darker-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
}

.content-section .container {
    width: 100%;
}

.section-title {
    font-size: clamp(1.3rem, 5vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 0;
    margin-top: 0;
    padding-top: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Source Sans 3', sans-serif;
}

.sub-teasers .section-title {
    margin-top: -2rem;
}

.content-box {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.content-box h3 {
    font-family: 'Sora', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--light-text);
}

.content-box h4 {
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.content-box p {
    color: var(--gray-text);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.contact-intro {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: var(--light-text);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 2rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-5px);
}

.contact-item svg {
    width: 30px;
    height: 30px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-item h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.contact-item p {
    margin: 0;
}

/* ===== PAGE SECTIONS ===== */
.page-section {
    padding-top: 120px;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Source Sans 3', sans-serif;
}

/* ===== METHODOLOGY SECTION ===== */
.methodology-section {
    padding: 3.5rem 5%;
    background: #0a0e1f;
    position: relative;
    scroll-margin-top: 120px;
    overflow: hidden;
    z-index: 10;
    box-shadow:
        inset 0 15px 40px rgba(0, 0, 0, 0.6),
        inset 0 -15px 40px rgba(0, 0, 0, 0.6),
        inset 0 0 80px rgba(0, 0, 0, 0.4);
}

.methodology-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.methodology-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(30deg, transparent 48%, rgba(99, 102, 241, 0.1) 49%, rgba(99, 102, 241, 0.1) 51%, transparent 52%),
        linear-gradient(150deg, transparent 48%, rgba(139, 92, 246, 0.1) 49%, rgba(139, 92, 246, 0.1) 51%, transparent 52%);
    background-size: 200px 200px, 200px 200px;
    background-position: 0 0, 100px 100px;
    animation: patternShift 20s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes patternShift {
    0% {
        background-position: 0 0, 100px 100px;
    }
    100% {
        background-position: 200px 200px, 300px 300px;
    }
}
}

.methodology-bg-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.bat-signal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: batSignalPulse 6s ease-in-out infinite;
}

@keyframes batSignalPulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.4;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.7;
    }
}

.city-skyline {
    display: none;
}

/* ===== JOURNEY MAP ===== */
/* Outer wrapper: sized by the 16:9 frame, phases may overflow downward */
.journey-map-wrapper {
    position: relative;
    width: 100%;
    margin-top: 3rem;
    /* height comes from the inner frame's aspect-ratio */
    /* overflow visible so P2/P4 cards below the frame are visible */
    overflow: visible;
    margin-bottom: 0;
}

/* 16:9 visual frame: background + border only, clips its own overflow */
.journey-map-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    border: 1px solid rgba(99,102,241,0.2);
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
    background:
        radial-gradient(ellipse at 15% 75%, rgba(71,85,105,0.25) 0%, transparent 40%),
        radial-gradient(ellipse at 55% 45%, rgba(51,65,85,0.22) 0%, transparent 40%),
        radial-gradient(ellipse at 85% 22%, rgba(71,85,105,0.2) 0%, transparent 35%),
        linear-gradient(160deg, rgba(10,15,40,0.95) 0%, rgba(15,25,55,0.92) 100%);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.journey-map-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* Phase waypoints: position in % matching SVG waypoint coordinates (viewBox 1600x900) */
/* P1 = 180,760  → left:11.25%  top:84.4%  */
/* P2 = 500,380  → left:31.25%  top:42.2%  */
/* P3 = 820,580  → left:51.25%  top:64.4%  */
/* P4 = 1140,260 → left:71.25%  top:28.9%  */
/* P5 = 1440,160 → left:90%     top:17.8%  */

/* Pin always on top, card always below */
.jm-phase {
    position: absolute;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    width: 185px;
    /* anchor = pin centre: -50% horizontal, -26px vertical (half of 52px pin) */
    transform: translateX(-50%) translateY(-26px);
}

/* Desktop positions: left = waypoint x%, top = waypoint y%
   Phase element starts at the pin, so we subtract nothing –
   the pin sits right at the waypoint, card hangs below */
/* Waypoint positions – pin centre is anchor (translateY(-26px) in .jm-phase).
   top = waypoint_y / 900 * 100%
   P2(y=560) and P4(y=620) sit low; cards hang below into overflow:visible space. */
.jm-p1 { left: 10.6%; top: 13.3%; }
.jm-p2 { left: 30%;   top: 62.2%; }
.jm-p3 { left: 50%;   top: 31.1%; }
.jm-p4 { left: 69.4%; top: 68.9%; }
.jm-p5 { left: 89.4%; top: 17.8%; }

/* P4 sits deep – card floats ABOVE the pin so it never overflows the frame. */
.jm-p4 {
    flex-direction: column-reverse;
    transform: translateX(-50%) translateY(calc(-100% + 26px));
}
.jm-p4::after {
    display: none;
}

/* Pin */
.jm-pin {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: 4px solid rgba(10,15,35,0.9);
    box-shadow: 0 0 0 8px rgba(99,102,241,0.2), 0 8px 24px rgba(99,102,241,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Sora', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.jm-pin-final {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    box-shadow: 0 0 0 10px rgba(236,72,153,0.2), 0 8px 28px rgba(236,72,153,0.6);
    animation: jmPulse 2.2s ease-in-out infinite;
}

@keyframes jmPulse {
    0%,100% { box-shadow: 0 0 0 10px rgba(236,72,153,0.2), 0 8px 28px rgba(236,72,153,0.5); }
    50%      { box-shadow: 0 0 0 18px rgba(236,72,153,0.07), 0 12px 36px rgba(236,72,153,0.8); }
}

.jm-phase:hover .jm-pin {
    transform: scale(1.15);
    box-shadow: 0 0 0 12px rgba(99,102,241,0.25), 0 12px 30px rgba(99,102,241,0.7);
}

/* Small gap between pin and card */
.jm-phase::after {
    content: '';
    display: block;
    width: 2px;
    height: 10px;
    background: transparent;
    flex-shrink: 0;
}

/* Card */
.jm-card {
    background: linear-gradient(135deg, rgba(15,23,42,0.45), rgba(30,41,59,0.38));
    border: 1px solid rgba(99,102,241,0.28);
    border-radius: 14px;
    padding: 1.3rem 1.4rem;
    backdrop-filter: blur(6px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.25);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    text-align: left;
}

.jm-card-final {
    border-color: rgba(236,72,153,0.35);
    background: linear-gradient(135deg, rgba(20,10,30,0.45), rgba(88,28,135,0.32));
}

.jm-phase:hover .jm-card {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 18px 45px rgba(99,102,241,0.35);
}

.jm-phase:last-child:hover .jm-card {
    border-color: var(--accent-color);
    box-shadow: 0 18px 45px rgba(236,72,153,0.35);
}

.jm-card .phase-title {
    font-family: 'Sora', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--light-text);
    margin-bottom: 0.5rem;
}

.jm-card .phase-summary {
    color: var(--gray-text);
    font-size: 0.78rem;
    line-height: 1.45;
    margin-bottom: 0.85rem;
}

.jm-card .phase-details-btn {
    background: rgba(99,102,241,0.14);
    border: 1px solid rgba(99,102,241,0.3);
    color: var(--primary-color);
    padding: 0.45rem 0.9rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.jm-card .phase-details-btn:hover {
    background: rgba(99,102,241,0.26);
    border-color: var(--primary-color);
}

/* Shared phase label / button styles (modal still uses these) */
.phase-title {
    font-family: 'Sora', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--light-text);
}

.phase-summary {
    color: var(--gray-text);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex: 1;
}

.phase-details-btn {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--primary-color);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

.phase-details-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary-color);
}

/* Mobile: vertical zigzag journey layout */
/* Mobile: vertical journey – SVG path + stacked phases */
@media (max-width: 1024px) {
    .journey-map-wrapper {
        aspect-ratio: auto;
        height: auto;
        min-height: 0;
        margin-bottom: 0;
        padding: 2.5rem 1rem 2.5rem;
        overflow: hidden;
        border-radius: 20px;
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        /* Show background on wrapper itself on mobile */
        background:
            radial-gradient(ellipse at 15% 75%, rgba(71,85,105,0.25) 0%, transparent 40%),
            radial-gradient(ellipse at 55% 45%, rgba(51,65,85,0.22) 0%, transparent 40%),
            linear-gradient(160deg, rgba(10,15,40,0.95) 0%, rgba(15,25,55,0.92) 100%);
        border: 1px solid rgba(99,102,241,0.2);
        box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    }

    /* Hide desktop frame on mobile */
    .journey-map-frame { display: none; }

    /* Hide horizontal desktop SVG */
    .journey-map-svg { display: none; }

    /* Show the vertical mobile SVG – fills full wrapper height, no distortion */
    .journey-map-svg-mobile {
        display: block !important;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        pointer-events: none;
        /* preserveAspectRatio not set → default xMidYMid meet, no stretch */
    }

    /* Mobile: absolute positioning so pin centres stay on fixed % coords
       matching the SVG path exactly, regardless of screen width.
       Wrapper height = 5 × phase-height(200px) + 4 × gap(60px) + 2 × pad(40px) = 1360px */
    .journey-map-wrapper {
        min-height: 1520px;
    }

    .jm-phase {
        position: absolute !important;
        width: 44%;
        flex-direction: column;
        align-items: center;
        gap: 0;
        z-index: 4;
        transform: translateY(-26px) !important; /* keep pin centre on top coord */
        margin: 0 !important;
    }

    /* Pin centres at fixed % of wrapper:
       Y: phases evenly at 10%, 30%, 50%, 70%, 90% of 1360px
       X: left pins centre at 25%, right pins centre at 75%
       left/right = centre - half-width(22%) */
    .jm-p1 { left: 3%;  top:  8%; }
    .jm-p2 { left: 53%; top: 27%; }
    .jm-p3 { left: 3%;  top: 46%; }
    .jm-p4 { left: 53%; top: 65%; }
    .jm-p5 { left: 3%;  top: 82%; }

    /* reset P4 flip */
    .jm-p4 {
        flex-direction: column;
        transform: translateY(-26px) !important;
    }

    .jm-card {
        width: 100%;
        padding: 1rem 1.1rem;
    }

    .jm-phase::after { display: none; }

}

/* Phase Modal */
/* ===== PHASE MODAL (uses uni-modal base) ===== */
.uni-modal-box--wide {
    width: min(760px, 94vw);
}

.phase-modal-header-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.phase-modal-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #38bdf8);
    font-family: 'Sora', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(99,102,241,0.4);
}

.phase-modal-body {
    padding: 1.5rem 1.8rem 2rem;
    overflow-y: auto;
    flex: 1;
}

.phase-modal-content {
    display: none;
}

.phase-modal-content.active {
    display: block;
}

.phase-goal-line {
    color: rgba(148,163,184,0.85);
    font-size: 1rem;
    font-style: italic;
    margin: 0 0 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* Two-column layout */

.phase-modal-cols {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 1.4rem;
    align-items: start;
    margin-top: 2.2rem;
}

/* Arrow list */
.phase-arrow-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.phase-arrow-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    color: rgba(203,213,225,0.9);
    font-size: 0.87rem;
    line-height: 1.55;
}

.phase-arrow-list li i {
    color: #6366f1;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.18rem;
}

/* Result box */
.phase-result-box {
    background: linear-gradient(145deg, rgba(99,102,241,0.14), rgba(56,189,248,0.08));
    border: 1px solid rgba(99,102,241,0.28);
    border-radius: 12px;
    padding: 1.1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.phase-result-label {
    font-family: 'Sora', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #38bdf8;
    margin: 0;
}

.phase-result-text {
    color: rgba(226,232,240,0.95);
    font-size: 0.88rem;
    line-height: 1.5;
    font-weight: 500;
    margin: 0;
}

/* Mobile: stack columns */
@media (max-width: 600px) {
    .phase-modal-cols {
        grid-template-columns: 1fr;
    }
    .phase-result-box {
        margin-top: 0.4rem;
    }
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ===== UNIFIED MODAL SYSTEM ===== */
.uni-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.25s ease;
}
.uni-modal.active {
    display: flex;
}
.uni-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
}
.uni-modal-box {
    position: relative;
    z-index: 1;
    background: linear-gradient(145deg, #0f172a 0%, #1a2236 100%);
    border: 1px solid rgba(99,102,241,0.25);
    border-radius: 18px;
    width: min(640px, 92vw);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 32px 80px rgba(0,0,0,0.45), 0 0 0 1px rgba(99,102,241,0.1);
    animation: uniModalSlide 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes uniModalSlide {
    from { transform: translateY(24px) scale(0.97); opacity: 0; }
    to   { transform: translateY(0) scale(1);       opacity: 1; }
}
.uni-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem 1.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.03);
    border-radius: 18px 18px 0 0;
    position: sticky;
    top: 0;
    z-index: 2;
    flex-shrink: 0;
}
.uni-modal-title {
    font-family: 'Sora', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.01em;
}
.uni-modal-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    flex-shrink: 0;
}
.uni-modal-close:hover {
    background: rgba(99,102,241,0.2);
    color: #fff;
    transform: rotate(90deg);
}
.uni-modal-body {
    padding: 2rem 1.8rem;
    overflow-y: auto;
    flex: 1;
    color: rgba(148,163,184,0.9);
    line-height: 1.75;
}
.uni-modal-body h3 {
    font-family: 'Sora', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #e2e8f0;
    margin: 1.5rem 0 0.5rem;
}
.uni-modal-body h3:first-child { margin-top: 0; }
.uni-modal-body h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(148,163,184,0.7);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 1.2rem 0 0.3rem;
}
.uni-modal-body p { margin: 0 0 0.6rem; font-size: 0.9rem; }
.uni-modal-body .form-group { margin-bottom: 1.1rem; }

/* ===== USE CASES SECTION ===== */
.use-cases-section {
    padding: 3.5rem 5%;
    background:
        linear-gradient(135deg,
            #0a0e1f 0%,
            #1a1535 25%,
            #0f1428 50%,
            #1a1535 75%,
            #0a0e1f 100%);
    position: relative;
    scroll-margin-top: 120px;
    overflow: hidden;
    z-index: 10;
}

/* Top and bottom inset shadows to make the section feel recessed */
.use-cases-section::before,
.use-cases-section::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 120px;
    pointer-events: none;
    z-index: 2;
}
.use-cases-section::before {
    top: 0;
    background: linear-gradient(to bottom,
        rgba(0,0,0,0.55) 0%,
        rgba(0,0,0,0.2) 40%,
        transparent 100%);
}
.use-cases-section::after {
    bottom: 0;
    background: linear-gradient(to top,
        rgba(0,0,0,0.55) 0%,
        rgba(0,0,0,0.2) 40%,
        transparent 100%);
}

.mesh-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.12) 1.5px, transparent 1.5px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.12) 1.5px, transparent 1.5px),
        radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(236, 72, 153, 0.15) 0%, transparent 50%);
    background-size: 60px 60px, 60px 60px, 100% 100%, 100% 100%;
    pointer-events: none;
    animation: meshFloat 15s ease-in-out infinite;
}

@keyframes meshFloat {
    0%, 100% { 
        background-position: 0 0, 0 0, 0% 0%, 0% 0%;
    }
    50% { 
        background-position: 30px 30px, 30px 30px, 100% 100%, 100% 100%;
    }
}

.mesh-grid-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 40%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(139, 92, 246, 0.08) 0%, transparent 40%);
    animation: gradientShift 10s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ===== LEPORELLO ===== */
.leporello {
    display: flex;
    width: 100%;
    min-height: 520px;
    margin-top: 3rem;
    position: relative;
    z-index: 3;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}

.lep-panel {
    position: relative;
    overflow: hidden;
    flex: 0 0 72px;
    transition: flex 0.55s cubic-bezier(0.77,0,0.175,1);
    cursor: default;
}
.lep-panel.lep-active {
    flex: 1 1 auto;
}
/* Auto-progress bar at the bottom of active panel */
/* Section progress bar (below leporello) */
/* ── Leporello border-bar (top progress) ── */
.lep-border-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: linear-gradient(90deg,
        #6366f1 0%,
        #8b5cf6 30%,
        #ec4899 65%,
        #f97316 100%
    );
    box-shadow: 0 2px 8px rgba(236,72,153,0.5);
    z-index: 20;
    transition: none;
    border-radius: 0;
}

/* Controls floating top-right inside the leporello */
.lep-top-controls {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* legacy – hide old track/bar/wrapper */
.lep-section-progress,
.lep-section-progress-track,
.lep-section-progress-bar,
.lep-top-bar { display: none; }

.lep-section-progress-dots {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.lep-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: background 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}
.lep-dot.lep-dot-active {
    background: linear-gradient(135deg, #6366f1, #ec4899);
    transform: scale(1.4);
}

/* Play/Pause button */
.lep-play-btn {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    padding: 0;
}
.lep-play-btn:hover {
    background: rgba(168,85,247,0.2);
    border-color: rgba(168,85,247,0.5);
    color: rgba(255,255,255,0.9);
}
.lep-play-btn svg {
    width: 12px;
    height: 12px;
}
.lep-icon-play  { display: none; }
.lep-icon-pause { display: block; }

/* When auto-play is paused show play icon */
.lep-section-progress.lep-is-paused .lep-icon-pause,
.lep-top-controls.lep-is-paused .lep-icon-pause,
.about-progress-row.lep-is-paused .lep-icon-pause,
.about-controls-wrap.lep-is-paused .lep-icon-pause { display: none; }
.lep-section-progress.lep-is-paused .lep-icon-play,
.lep-top-controls.lep-is-paused .lep-icon-play,
.about-progress-row.lep-is-paused .lep-icon-play,
.about-controls-wrap.lep-is-paused .lep-icon-play  { display: block; }

@keyframes lepProgress {
    from { width: 0%; }
    to   { width: 100%; }
}

/* Background gradients per panel */
.lep-panel-1 {
    background: rgba(13,18,56,0.75);
    backdrop-filter: blur(14px);
    border-left: 1px solid rgba(99,102,241,0.12);
}
.lep-panel-2 {
    background: rgba(19,13,40,0.75);
    backdrop-filter: blur(14px);
    border-left: 1px solid rgba(168,85,247,0.1);
}
.lep-panel-3 {
    background: rgba(26,9,32,0.75);
    backdrop-filter: blur(14px);
    border-left: 1px solid rgba(236,72,153,0.1);
    border-right: 1px solid rgba(236,72,153,0.07);
}

/* Coloured top accent line */
.lep-panel-1::before, .lep-panel-2::before, .lep-panel-3::before { display: none; }

/* Vertical tab (always visible) */
.lep-tab {
    position: absolute;
    top: 0; bottom: 0;
    left: 0;
    width: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    cursor: pointer;
}
.lep-tab-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 1.5rem 0;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    user-select: none;
}

.lep-icon {
    width: 28px; height: 28px;
    color: rgba(255,255,255,0.45);
    flex-shrink: 0;
    transition: color 0.3s;
    transform: rotate(90deg);      /* counteract writing-mode rotation */
}
.lep-panel.lep-active .lep-icon,
.lep-panel:hover .lep-icon { color: rgba(255,255,255,0.85); }

.lep-num {
    font-family: 'Sora', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.25);
    transition: color 0.3s;
}
.lep-panel.lep-active .lep-num { color: rgba(255,255,255,0.5); }

.lep-label {
    font-family: 'Sora', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    transition: color 0.3s;
    white-space: nowrap;
}
.lep-panel.lep-active .lep-label,
.lep-panel:hover .lep-label { color: rgba(255,255,255,0.9); }

.lep-chevron {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.25);
    transition: opacity 0.3s, transform 0.3s;
    transform: rotate(90deg);
}
.lep-panel.lep-active .lep-chevron { opacity: 0; }

/* Expanded content area */
.lep-content {
    position: absolute;
    top: 0; bottom: 0;
    left: 72px; right: 0;
    opacity: 0;
    transform: translateX(8px);
    transition: opacity 0.7s ease 0.25s, transform 0.7s ease 0.25s;
    pointer-events: none;
    overflow: hidden;
}
.lep-panel.lep-active .lep-content {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.lep-content-inner {
    height: 100%;
    padding: 3.5rem 3rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.8rem;
    overflow: auto;
}

.lep-kicker {
    font-family: 'Sora', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin: 0;
}
.lep-panel-1 .lep-kicker { color: #818cf8; }
.lep-panel-2 .lep-kicker { color: #c084fc; }
.lep-panel-3 .lep-kicker { color: #f472b6; }

.lep-content-inner h3 {
    font-family: 'Sora', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1.15;
    margin: 0;
}

.lep-sub {
    font-size: 0.88rem;
    color: rgba(148,163,184,0.7);
    font-style: italic;
    margin: 0;
}

.lep-body {
    font-size: 0.93rem;
    color: rgba(148,163,184,0.85);
    line-height: 1.7;
    margin: 0;
    max-width: 560px;
}

.lep-results {
    display: flex;
    gap: 2rem;
    margin-top: 0.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.07);
    align-items: flex-start;
}

.lep-result {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.lep-result-val {
    font-family: 'Sora', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
}
.lep-panel-1 .lep-result-val { color: #818cf8; }
.lep-panel-2 .lep-result-val { color: #c084fc; }
.lep-panel-3 .lep-result-val { color: #f472b6; }

.lep-result-label {
    font-size: 0.78rem;
    color: rgba(148,163,184,0.6);
    letter-spacing: 0.05em;
}

.lep-result-logo {
    justify-content: flex-start;
    align-items: flex-start;
    background: transparent;
}
.lep-customer-logo {
    display: block;
    width: auto;
    height: 50px;
    max-width: 150px;
    object-fit: contain;
    mix-blend-mode: screen;
}

/* Mobile: stack vertically */
@media (max-width: 768px) {
    .leporello {
        flex-direction: column;
        min-height: unset;
    }
    .lep-panel {
        flex: 0 0 56px;
        min-height: 56px;
        overflow: hidden;
        transition: min-height 0.5s cubic-bezier(0.77,0,0.175,1);
    }
    .lep-panel.lep-active {
        flex: 0 0 auto;
        min-height: 56px;   /* let content dictate height */
        overflow: visible;
    }
    .lep-tab {
        width: 100%; height: 56px;
        top: 0; bottom: auto; left: 0; right: 0;
    }
    .lep-tab-inner {
        flex-direction: row;
        writing-mode: horizontal-tb;
        transform: none;
        padding: 0 1.5rem;
        gap: 0.8rem;
        width: 100%;
    }
    .lep-icon { display: none; }
    .lep-num  { display: none; }
    .lep-chevron { transform: none; margin-left: auto; }
    .lep-panel.lep-active .lep-chevron {
        opacity: 1;
        transform: rotate(90deg);
    }
    /* On mobile the content flows naturally below the tab */
    .lep-content {
        position: relative;
        top: auto; bottom: auto; left: auto; right: auto;
        overflow: visible;
        transform: translateY(8px);
        transition: opacity 0.55s ease 0.2s, transform 0.55s ease 0.2s;
    }
    .lep-panel.lep-active .lep-content {
        transform: translateY(0);
    }
    .lep-panel:not(.lep-active) .lep-content {
        opacity: 0;
        pointer-events: none;
        position: absolute;
        height: 0;
        overflow: hidden;
    }
    .lep-content-inner {
        height: auto;
        padding: 4.5rem 1.5rem 2rem;
        overflow: visible;
    }
    .lep-content-inner h3 { font-size: 1.4rem; }
    .lep-results { flex-wrap: wrap; gap: 1.2rem; }
}


/* ===== ABOUT SECTION ===== */
.about-section {
    position: relative;
    padding: 3.5rem 5% 3.5rem;
    background-color: #050510;
    overflow: hidden;
    z-index: 9;
    scroll-margin-top: 100px;
}

.about-pyramid-canvas {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: 0;
    pointer-events: none;
    opacity: 0.55;
}

/* Radial vignette over the Three.js canvas so edges fade to dark */
.about-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 40%, transparent 25%, #050510 75%);
    pointer-events: none;
    z-index: 1;
}

.about-bg-shapes { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.about-section > .container { position: relative; z-index: 2; }
.about-shape { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.12; }
.about-shape-1 { width: 500px; height: 500px; background: radial-gradient(circle, #0d9488, transparent 70%); top: -100px; left: -80px; }
.about-shape-2 { width: 400px; height: 400px; background: radial-gradient(circle, #f59e0b, transparent 70%); bottom: -80px; right: -60px; }
.about-shape-3 { width: 280px; height: 280px; background: radial-gradient(circle, #059669, transparent 70%); top: 40%; left: 50%; transform: translate(-50%,-50%); }

/* ── CSS wireframe pyramid (decorative, background) ── */
.about-pyramid-deco {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 260px;
    height: 260px;
    pointer-events: none;
    opacity: 0.18;
    animation: pyramidSpin 18s linear infinite;
}
@keyframes pyramidSpin {
    from { transform: translate(-50%, -50%) rotateY(0deg) rotateX(20deg); }
    to   { transform: translate(-50%, -50%) rotateY(360deg) rotateX(20deg); }
}
.about-pyramid-deco {
    transform-style: preserve-3d;
    perspective: 600px;
}
.ap-face {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    left: 50%;
}
/* Four triangular faces */
.ap-face-1 {
    border-width: 0 65px 130px 65px;
    border-color: transparent transparent rgba(99,102,241,0.7) transparent;
    top: 0; transform: translateX(-50%) rotateX(0deg);
    filter: drop-shadow(0 0 6px #6366f1);
}
.ap-face-2 {
    border-width: 0 65px 130px 65px;
    border-color: transparent transparent rgba(168,85,247,0.7) transparent;
    top: 0; transform: translateX(-50%) rotateY(90deg);
    filter: drop-shadow(0 0 6px #a855f7);
}
.ap-face-3 {
    border-width: 0 65px 130px 65px;
    border-color: transparent transparent rgba(99,102,241,0.5) transparent;
    top: 0; transform: translateX(-50%) rotateY(180deg);
}
.ap-face-4 {
    border-width: 0 65px 130px 65px;
    border-color: transparent transparent rgba(168,85,247,0.5) transparent;
    top: 0; transform: translateX(-50%) rotateY(270deg);
}
.ap-base {
    position: absolute;
    width: 130px; height: 130px;
    bottom: 0; left: 50%;
    transform: translateX(-50%) rotateX(90deg);
    border: 1.5px solid rgba(99,102,241,0.4);
}

/* ── Z-Tunnel ── */
.about-tunnel {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 340px;
    perspective: 1100px;
    perspective-origin: 50% 45%;
    overflow: hidden;
    margin-top: 1rem;
}

/* Subtle receding grid lines for depth feel */
.about-tunnel-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(13,148,136,0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13,148,136,0.07) 1px, transparent 1px);
    background-size: 80px 80px;
    transform: rotateX(55deg) translateZ(-40px) scale(2.5);
    transform-origin: 50% 100%;
    pointer-events: none;
    opacity: 0.5;
}

/* All z-cards share base styles */
.about-zcard {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    transition: transform 0.85s cubic-bezier(0.4, 0, 0.2, 1),
                opacity  0.85s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

/* States */
.about-zcard.az-deep {
    /* waiting far back in the tunnel */
    transform: translateZ(-700px) scale(0.4);
    opacity: 0;
}
.about-zcard.az-incoming {
    /* flying in from behind, becoming active */
    transform: translateZ(0px) scale(1);
    opacity: 1;
    pointer-events: auto;
}
.about-zcard.az-past {
    /* flew past the camera – exits to the side */
    transform: translateZ(260px) translateX(-55%) scale(1.1);
    opacity: 0;
}

/* Inner card layout */
.az-inner {
    position: relative;
    display: flex;
    flex-direction: row;
    width: min(820px, 90%);
    height: 320px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
    border-bottom: none;
    background: rgba(8,8,8,0.02);
    backdrop-filter: none;
    box-shadow: 0 0 0 1px rgba(13,148,136,0.12);
}

.az-photo {
    flex-shrink: 0;
    width: 260px;
    position: relative;
    overflow: hidden;
    background: transparent;
}
.az-photo-2 {
    background: transparent;
}
.az-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    display: block;
    filter: grayscale(15%) brightness(0.88);
}
.az-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent 65%, rgba(13,18,40,0.7) 100%);
}

.az-body {
    flex: 1;
    padding: 2.2rem 2.4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

/* Typography reuse */
.about-info-kicker {
    font-family: 'Sora', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    background: linear-gradient(90deg, #0d9488, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}
.about-zcard-1 .about-info-kicker {
    background: linear-gradient(90deg, #f59e0b, #d97706);
    -webkit-background-clip: text;
    background-clip: text;
}

.about-info-name {
    font-family: 'Sora', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1.15;
    margin: 0;
}

.about-info-bio {
    color: rgba(148,163,184,0.85);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
}

.about-info-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.about-tag {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(99,102,241,0.3);
    color: rgba(148,163,184,0.85);
    background: rgba(99,102,241,0.06);
    letter-spacing: 0.03em;
}
.about-zcard-1 .about-tag {
    border-color: rgba(245,158,11,0.3);
    background: rgba(245,158,11,0.06);
}

/* Mobile: Hochformat-Layout */
@media (max-width: 768px) {
    .about-tunnel {
        height: 580px;
        perspective: 900px;
        perspective-origin: 50% 45%;
        overflow: hidden;
    }
    .about-zcard {
        position: absolute;
        inset: 0;
    }
    .about-zcard.az-incoming {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .az-inner {
        flex-direction: column;
        height: 560px;
        width: min(360px, 88%);
        overflow: hidden;
    }
    .az-photo {
        width: 100%;
        height: 340px;
        flex-shrink: 0;
    }
    .az-photo img {
        object-position: center 15%;
    }
    .az-body {
        flex: 1;
        overflow: hidden;
        gap: 0.5rem;
        padding: 1rem 1.2rem;
    }
    .about-info-name { font-size: 1.2rem; }
    .about-info-bio { font-size: 0.8rem; line-height: 1.5; }
    .about-info-tags { display: none; }
    .about-tunnel-grid { display: none; }
    .about-controls-wrap {
        width: min(360px, 88%);
    }
}

/* ── Progress row ── */
/* Ladebalken als unterer Rand der ganzen Karte */
.az-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    z-index: 3;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
}
.az-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0d9488 0%, #38bdf8 50%, #6366f1 100%);
    box-shadow: 0 0 6px rgba(13,148,136,0.5);
}

/* Punkte – oben rechts im Profilfoto */
.az-dots-overlay {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    gap: 0.45rem;
    z-index: 4;
}

/* Controls – direkt unter Profilbox */
.about-controls-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.7rem;
    margin-top: 0.2rem;
    width: min(820px, 90%);
    margin-left: auto;
    margin-right: auto;
    padding-right: 2px;
}

/* Für mobile: volle Breite */
@media (max-width: 768px) {
    .about-controls-wrap {
        width: min(420px, 92%);
    }
}

.about-pdot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: background 0.3s, transform 0.3s;
    cursor: pointer;
}
.about-pdot.about-pdot-active {
    background: rgba(255,255,255,0.85);
    transform: scale(1.4);
}

.about-nav-btn {
    flex-shrink: 0;
    width: 28px; height: 28px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    padding: 0;
}
.about-nav-btn:hover {
    background: rgba(13,148,136,0.2);
    border-color: rgba(13,148,136,0.5);
    color: rgba(255,255,255,0.9);
}
.about-nav-btn svg { width: 14px; height: 14px; }

/* Mobile */
@media (max-width: 768px) {
    .about-stage {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .about-card {
        flex-direction: column;
    }
    .about-card-photo {
        width: 100%;
        height: 200px;
    }
    .about-info-name { font-size: 1.5rem; }
    .about-pyramid-deco { display: none; }
}

/* ===== CONTACT FORM ===== */
.contact-form-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form-section h3 {
    font-family: 'Sora', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--light-text);
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--light-text);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--light-text);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.submit-button {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    justify-self: start;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

/* ===== FOOTER UPDATES ===== */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo .logo-icon {
    width: 50px;
    height: 25px;
}

.footer-logo .logo-letters {
    font-size: 1.5rem;
}

.footer-brand {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--light-text);
    display: block;
}

.footer-subtitle {
    font-family: 'Sora', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--light-text);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-subtitle {
    font-size: 0.7rem;
    color: var(--gray-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== RESPONSIVE CHALLENGES SECTION ===== */
@media (max-width: 1024px) {
    .challenges-content-row {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .challenge-left {
        padding-right: 0;
    }

    .challenge-main-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .challenge-main-title {
        font-size: 1.75rem;
    }

    .challenge-text-content p {
        font-size: 1rem;
    }

    .kpi-diagrams-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .kpi-visual {
        width: 150px;
        height: 150px;
    }

    .kpi-big-number {
        font-size: 4rem;
    }

    .kpi-symbol {
        font-size: 2.5rem;
    }

    .cta-inline-section {
        padding: 3rem 0 2rem;
    }

    .cta-contact-btn {
        width: 100%;
        justify-content: center;
        padding: 1.25rem 2rem;
        font-size: 1.1rem;
    }

    .features-wave {
        height: 80px;
        margin-top: 1rem;
    }
}
