/* ============================================
   MediaSphere Solutions — New Website Styles
   ============================================ */

/* --- CSS Variables --- */
:root {
    --bg-primary: #0f0f1c;
    --bg-secondary: #14141f;
    --bg-card: #1a1a28;
    --bg-card-hover: #20202e;

    --text-primary: #ffffff;
    --text-secondary: #a1a1b5;
    --text-muted: #6b6b80;

    --accent-1: #6366f1;     /* Indigo */
    --accent-2: #8b5cf6;     /* Purple */
    --accent-3: #06b6d4;     /* Cyan */
    --accent-gradient: linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--accent-3));
    --accent-gradient-text: linear-gradient(135deg, #818cf8, #a78bfa, #22d3ee);

    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.15);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Space Grotesk', 'Inter', sans-serif;

    --container-max: 1200px;
    --section-padding: 120px;
}

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

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    color: var(--text-secondary);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Gradient Text Utility --- */
.gradient-text {
    background: var(--accent-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Scroll Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 14px 24px;
    transition: padding 0.3s ease;
}

.nav-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    padding: 0 32px;
    border-radius: 0;
    border: 1px solid transparent;
    background: transparent;
    transition: max-width 0.3s ease,
                border-radius 0.3s ease,
                background 0.3s ease,
                border-color 0.3s ease,
                height 0.3s ease;
}

/* Scrolled floating pill */
.navbar.scrolled .nav-container {
    max-width: 960px;
    height: 64px;
    border-radius: 16px;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-color: rgba(255, 255, 255, 0.1);
}

.nav-brand .logo {
    height: 42px;
    width: auto;
}

/* Center nav links absolutely */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.nav-link {
    padding: 8px 14px;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    white-space: nowrap;
}

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

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

/* Liquid glass sliding indicator */
.nav-indicator {
    position: absolute;
    top: 50%;
    left: 0;
    height: 38px;
    transform: translateY(-50%);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 0 12px rgba(99, 102, 241, 0.15),
        0 0 24px rgba(139, 92, 246, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    pointer-events: none;
    transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                width 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.3s ease;
    opacity: 0;
    z-index: -1;
}

.nav-indicator.visible {
    opacity: 1;
}

/* Right side CTA */
.nav-right {
    display: flex;
    align-items: center;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Mobile-only CTA inside nav menu (hidden on desktop) */
.nav-cta-mobile {
    display: none;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    height: 600vh;
    overflow: visible;
    padding-bottom: 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    display: none;
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 70%);
}

.hero-glow {
    display: none;
}

@keyframes glowPulse {
    0% { opacity: 0.5; transform: translateX(-50%) scale(1); }
    100% { opacity: 1; transform: translateX(-50%) scale(1.15); }
}

/* --- Orbital Particle Background --- */
.orbital-field {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    display: none;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, transparent 70%);
    top: 10%;
    left: 15%;
    animation: orbit1 20s ease-in-out infinite alternate;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    top: 60%;
    right: 10%;
    animation: orbit2 25s ease-in-out infinite alternate;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
    top: 30%;
    right: 25%;
    animation: orbit3 18s ease-in-out infinite alternate;
}

.orb-4 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    bottom: 10%;
    left: 5%;
    animation: orbit4 22s ease-in-out infinite alternate;
}

.orb-5 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    top: 5%;
    right: 15%;
    animation: orbit5 16s ease-in-out infinite alternate;
}

.orb-6 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
    top: 50%;
    left: 40%;
    animation: orbit6 28s ease-in-out infinite alternate;
}

@keyframes orbit1 {
    0%   { opacity: 0.4; transform: translate(0, 0) scale(1); }
    33%  { opacity: 0.7; transform: translate(80px, 40px) scale(1.1); }
    66%  { opacity: 0.5; transform: translate(-40px, 80px) scale(0.95); }
    100% { opacity: 0.6; transform: translate(60px, -30px) scale(1.05); }
}

@keyframes orbit2 {
    0%   { opacity: 0.3; transform: translate(0, 0) scale(1); }
    33%  { opacity: 0.6; transform: translate(-60px, -50px) scale(1.15); }
    66%  { opacity: 0.4; transform: translate(50px, -80px) scale(0.9); }
    100% { opacity: 0.5; transform: translate(-30px, 40px) scale(1.1); }
}

@keyframes orbit3 {
    0%   { opacity: 0.3; transform: translate(0, 0) scale(1); }
    50%  { opacity: 0.6; transform: translate(-70px, 60px) scale(1.2); }
    100% { opacity: 0.4; transform: translate(40px, -40px) scale(0.9); }
}

@keyframes orbit4 {
    0%   { opacity: 0.2; transform: translate(0, 0) scale(1); }
    50%  { opacity: 0.5; transform: translate(90px, -60px) scale(1.1); }
    100% { opacity: 0.3; transform: translate(-50px, 30px) scale(1.05); }
}

@keyframes orbit5 {
    0%   { opacity: 0.3; transform: translate(0, 0) scale(1); }
    50%  { opacity: 0.7; transform: translate(-50px, 70px) scale(1.3); }
    100% { opacity: 0.4; transform: translate(30px, -20px) scale(0.95); }
}

@keyframes orbit6 {
    0%   { opacity: 0.2; transform: translate(0, 0) scale(1); }
    33%  { opacity: 0.4; transform: translate(60px, -40px) scale(1.1); }
    66%  { opacity: 0.3; transform: translate(-80px, 20px) scale(0.95); }
    100% { opacity: 0.35; transform: translate(20px, 50px) scale(1.05); }
}

.hero-container {
    position: relative;
    z-index: 1;
    padding-top: 120px;
    padding-bottom: 0;
}

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

.hero-content-centered {
    max-width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-weight: 500;
    color: #818cf8;
    margin-bottom: 32px;
}

.badge-new {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 10px;
    background: var(--accent-gradient);
    border-radius: var(--radius-xl);
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #818cf8;
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 650px;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 12px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--radius-xl);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--text-primary);
    box-shadow: 0 4px 24px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.4);
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-primary:hover::after {
    transform: translateX(100%);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-hover);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Scroll Cue (hero line — keep for hero entrance) */
.scroll-cue {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-cue-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent-1), transparent);
    animation: scrollCue 2s ease-in-out infinite;
}

@keyframes scrollCue {
    0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
    100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

/* ============================================
   CUSTOM SCROLL INDICATOR
   ============================================ */

/* Hide native scrollbar */
html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
html::-webkit-scrollbar {
    display: none;
}

/* Full-height scroll indicator — runs along the screen edge */
.scroll-indicator {
    position: fixed;
    right: 20px;
    top: 80px;
    bottom: 80px;
    z-index: 200;
    display: flex;
    align-items: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.scroll-indicator.visible {
    opacity: 1;
}

/* Track wrapper — spans full indicator height */
.si-track-wrap {
    position: relative;
    height: 100%;
    width: 2px;
    pointer-events: all;
}

/* The vertical track line */
.si-track {
    position: relative;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 2px;
    overflow: visible;
    cursor: pointer;
}

/* Wider invisible hit area so the 2px track is easy to grab */
.si-track::before {
    content: '';
    position: absolute;
    inset: 0 -10px;
}

/* Gradient fill that grows as you scroll */
.si-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    border-radius: 2px;
    background: linear-gradient(
        to bottom,
        var(--accent-1),
        var(--accent-2),
        var(--accent-3)
    );
    transition: height 0.08s linear;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

/* Glowing thumb that rides the fill */
.si-thumb {
    position: absolute;
    left: 50%;
    top: 0%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
    box-shadow:
        0 0 0 3px rgba(99, 102, 241, 0.2),
        0 0 12px rgba(99, 102, 241, 0.9),
        0 0 24px rgba(139, 92, 246, 0.5);
    transition: top 0.08s linear, box-shadow 0.3s ease;
}

/* Section nav — absolutely overlaid on the track, dots at real scroll positions */
.si-section-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: all;
}

.si-dot {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.28);
    cursor: pointer;
    padding: 0;
    transition:
        background 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Expanded hit area */
.si-dot::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
}

.si-dot.active {
    background: var(--accent-1);
    border-color: var(--accent-1);
    transform: translate(-50%, -50%) scale(1.6);
    box-shadow:
        0 0 0 3px rgba(99, 102, 241, 0.2),
        0 0 16px rgba(99, 102, 241, 0.85),
        0 0 32px rgba(99, 102, 241, 0.3);
}

/* Pulse ring on active dot */
.si-dot.active::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid rgba(99, 102, 241, 0.4);
    animation: siDotPulse 2.4s ease-out infinite;
}

@keyframes siDotPulse {
    0%   { transform: scale(1);   opacity: 0.8; }
    70%  { transform: scale(2.6); opacity: 0;   }
    100% { transform: scale(2.6); opacity: 0;   }
}

/* Tooltip label — slides in to the left */
.si-dot-label {
    position: absolute;
    right: calc(100% + 16px);
    top: 50%;
    white-space: nowrap;
    background: rgba(15, 15, 28, 0.92);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 6px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateY(-50%) translateX(6px);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.si-dot:hover .si-dot-label,
.si-dot.active .si-dot-label {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* Counteract the scale(1.6) on the active dot so the label stays the same size */
.si-dot.active .si-dot-label {
    transform: translateY(-50%) translateX(0) scale(0.625);
    transform-origin: right center;
}

/* Mobile: hide indicator */
@media (max-width: 768px) {
    .scroll-indicator {
        display: none;
    }
}

/* ============================================
   3D APP PREVIEW (Hero)
   ============================================ */
.hero-app-preview {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.scene {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scene::before {
    content: '';
    position: absolute;
    width: 1500px;
    height: 700px;
    background: radial-gradient(ellipse at 40% 50%, rgba(99, 102, 241, 0.22) 0%, rgba(60, 20, 120, 0.12) 40%, transparent 70%),
                radial-gradient(ellipse at 75% 60%, rgba(96, 165, 250, 0.10) 0%, transparent 55%);
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
    border-radius: 50%;
}

.perspective-wrap {
    perspective: 1800px;
    perspective-origin: 50% 50%;
    position: relative;
    z-index: 1;
}

.tilt-frame {
    transform: rotateY(-14deg) rotateX(4deg) scale(1);
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    filter: drop-shadow(-40px 40px 100px rgba(0,0,0,0.8)) drop-shadow(0 0 80px rgba(99, 102, 241, 0.3));
}

/* Browser Chrome */
.browser-outer {
    position: relative;
    border-radius: 14px;
}

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.browser-outer::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    background: conic-gradient(
        from var(--angle, 0deg),
        transparent 0%,
        transparent 55%,
        rgba(99, 102, 241, 0.4) 68%,
        rgba(139, 92, 246, 1) 76%,
        rgba(200, 170, 255, 1) 80%,
        rgba(139, 92, 246, 1) 84%,
        rgba(99, 102, 241, 0.4) 92%,
        transparent 100%
    );
    animation: trace 6s linear infinite;
    z-index: 2;
    pointer-events: none;
}

.browser-outer::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 13px;
    background: #1c1c28;
    z-index: 3;
    pointer-events: none;
}

@keyframes trace {
    from { --angle: 0deg; }
    to   { --angle: 360deg; }
}

.browser {
    position: relative;
    z-index: 4;
    width: 1600px;
    background: #1c1c28;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
}

.browser-bar {
    background: #1c1c28;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    padding: 11px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.traffic-lights { display: flex; gap: 6px; }
.tl { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.tl-r { background: #ff5f57; }
.tl-y { background: #febc2e; }
.tl-g { background: #28c840; }

.browser-tabs { display: flex; gap: 4px; margin-left: 8px; }
.tab {
    background: #111118;
    border: 1px solid rgba(255,255,255,0.06);
    border-bottom: none;
    border-radius: 7px 7px 0 0;
    padding: 5px 14px;
    font-size: 11px;
    color: #6b6a88;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}
.tab.active { background: #09090f; color: #eeeeff; border-color: rgba(255,255,255,0.09); }
.tab-dot { width: 6px; height: 6px; border-radius: 50%; background: #a855f7; }

.url-bar {
    flex: 1;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 7px;
    padding: 5px 12px;
    font-size: 11px;
    color: #6b6a88;
    display: flex;
    align-items: center;
    gap: 6px;
}
.url-lock { font-size: 10px; opacity: .5; }

.browser-actions { display: flex; gap: 8px; margin-left: auto; }
.action-dot {
    width: 22px; height: 22px; border-radius: 6px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; color: #6b6a88;
}

/* App Shell */
.app { display: flex; height: 780px; background: #09090f; }

.sidebar {
    width: 80px;
    background: #111118;
    border-right: 1px solid rgba(255,255,255,0.07);
    display: flex; flex-direction: column; align-items: center;
    padding: 16px 0; gap: 2px; flex-shrink: 0;
}

.sb-logo { width: 44px; height: 44px; border-radius: 10px; margin-bottom: 16px; flex-shrink: 0; overflow: hidden; }
.sb-logo-img { width: 44px; height: 44px; display: block; object-fit: contain; }

.sb-icon {
    width: 68px; border-radius: 9px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; padding: 7px 4px; font-size: 14px; color: #4a4966; cursor: pointer;
    transition: background .15s;
}
.sb-icon.active { background: rgba(99, 102, 241, 0.12); color: #a855f7; }
.sb-label { font-size: 8.5px; font-weight: 500; letter-spacing: .02em; color: inherit; text-align: center; }

.main { flex: 1; overflow: hidden; display: flex; flex-direction: column; }

.topbar {
    height: 46px; border-bottom: 1px solid rgba(255,255,255,0.07);
    display: flex; align-items: center; padding: 0 18px; gap: 12px; flex-shrink: 0;
}
.topbar-title { font-size: 13px; font-weight: 700; color: #eeeeff; }
.topbar-sub { font-size: 11px; color: #6b6a88; }
.live-pill {
    display: flex; align-items: center; gap: 5px;
    background: rgba(32,212,160,0.1); border: 1px solid rgba(32,212,160,0.2);
    border-radius: 20px; padding: 3px 10px;
    font-size: 10px; font-weight: 600; color: #20d4a0; margin-left: auto;
}
.live-dot {
    width: 5px; height: 5px; border-radius: 50%; background: #20d4a0;
    box-shadow: 0 0 5px #20d4a0;
    animation: blink 1.6s ease infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

.topbar-btn {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border: none; border-radius: 7px; padding: 5px 12px;
    font-size: 11px; font-weight: 600; color: #fff; cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.content { flex: 1; padding: 14px 16px; overflow: hidden; display: flex; flex-direction: column; gap: 12px; }

/* KPI Cards */
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; flex-shrink: 0; }

.kpi {
    background: rgba(21,21,30,0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 10px; padding: 11px 13px;
    position: relative; overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.06);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.kpi:hover {
    box-shadow: 0 4px 32px rgba(0,0,0,0.4), 0 0 20px rgba(99, 102, 241, 0.15), inset 0 1px 0 rgba(255,255,255,0.1);
    border-color: rgba(139, 92, 246, 0.25);
}
.kpi::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; border-radius: 2px 2px 0 0;
}
.kpi-v::before { background: linear-gradient(90deg, #7c3aed, #a855f7); }
.kpi-g::before { background: #20d4a0; }
.kpi-b::before { background: #60a5fa; }
.kpi-a::before { background: #f59e0b; }

.kpi-hero-kpi {
    box-shadow: 0 4px 32px rgba(0,0,0,0.4), 0 0 30px rgba(96,165,250,0.18), inset 0 1px 0 rgba(255,255,255,0.08);
    border-color: rgba(96,165,250,0.2);
}

.kpi-val { font-size: 18px; font-weight: 800; color: #eeeeff; line-height: 1; }
.kpi-val.counting { color: #60a5fa; }
.kpi-label { font-size: 9.5px; color: #6b6a88; margin-top: 4px; text-transform: uppercase; letter-spacing: .05em; }
.kpi-delta { font-size: 9.5px; font-weight: 600; margin-top: 5px; color: #20d4a0; }

/* Bottom Row */
.bottom-row { flex: 1; display: grid; grid-template-columns: 1fr 190px; gap: 10px; overflow: hidden; }

.pipeline-wrap { display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.preview-section-label { font-size: 9px; font-weight: 600; color: #4a4966; text-transform: uppercase; letter-spacing: .08em; flex-shrink: 0; }
.pipeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; flex: 1; overflow: hidden; }

.stage {
    background: rgba(17,17,24,0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 10px; padding: 8px 7px;
    display: flex; flex-direction: column; gap: 5px; overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.stage-hd { display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; margin-bottom: 2px; }
.stage-name { font-size: 9px; font-weight: 700; color: #6b6a88; text-transform: uppercase; letter-spacing: .05em; }
.stage-n {
    font-size: 9px; font-weight: 700; color: #a855f7;
    background: rgba(99, 102, 241, 0.12); border-radius: 10px; padding: 1px 5px;
}

/* Lead Card */
.lcard {
    background: rgba(21,21,30,0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 7px; padding: 7px 8px;
    display: flex; flex-direction: column; gap: 3px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.lcard:hover { transform: translateY(-1px); box-shadow: 0 4px 18px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.07); }
.lcard-name { font-size: 10px; font-weight: 700; color: #eeeeff; }
.lcard-loc { font-size: 8.5px; color: #6b6a88; }
.lcard-tag {
    display: inline-block; font-size: 8px; font-weight: 600; border-radius: 4px;
    padding: 2px 5px; align-self: flex-start; margin-top: 1px;
}
.tag-g { background: rgba(99, 102, 241, 0.18); color: #a855f7; }
.tag-m { background: rgba(32,212,160,0.12); color: #20d4a0; }
.tag-b { background: rgba(96,165,250,0.12); color: #60a5fa; }
.tag-r { background: rgba(245,158,11,0.12); color: #f59e0b; }
.tag-w { background: rgba(32,212,160,0.12); color: #20d4a0; }
.auto-line { font-size: 7.5px; color: #4a4966; display: flex; align-items: center; gap: 3px; margin-top: 1px; }

.lcard.moving {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 18px rgba(139, 92, 246, 0.35), 0 2px 12px rgba(0,0,0,0.4);
    background: rgba(99, 102, 241, 0.12);
}

/* Right Panel */
.right-panel { display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.mini-card {
    background: rgba(21,21,30,0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px; padding: 10px 11px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.04);
}
.mini-label { font-size: 9px; font-weight: 700; color: #4a4966; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 8px; }

.activity { display: flex; flex-direction: column; gap: 7px; }
.act-item { display: flex; gap: 7px; align-items: flex-start; }
.act-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; margin-top: 3px; }
.ad-g { background: #20d4a0; box-shadow: 0 0 5px #20d4a0; }
.ad-v { background: #a855f7; box-shadow: 0 0 5px #a855f7; }
.ad-a { background: #f59e0b; box-shadow: 0 0 5px #f59e0b; }
.ad-b { background: #60a5fa; box-shadow: 0 0 5px #60a5fa; }
.act-text { font-size: 9.5px; color: #eeeeff; line-height: 1.3; }
.act-time { font-size: 8px; color: #4a4966; margin-top: 1px; }

.donut-wrap { display: flex; align-items: center; gap: 10px; }
.donut {
    width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
    mask: radial-gradient(transparent 38%, black 38%);
    -webkit-mask: radial-gradient(transparent 38%, black 38%);
}
.donut-legend { display: flex; flex-direction: column; gap: 4px; }
.dl-item { display: flex; align-items: center; gap: 5px; font-size: 8.5px; color: #6b6a88; }
.dl-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }

/* Ticker */
.ticker-bar {
    height: 30px; background: rgba(17,17,24,0.9); border-top: 1px solid rgba(255,255,255,0.04);
    overflow: hidden; display: flex; align-items: center; flex-shrink: 0;
}
.ticker-track-wrap { overflow: hidden; flex: 1; }
.ticker-track { display: flex; white-space: nowrap; will-change: transform; }
.ticker-item {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 9px; color: #6b6a88; padding: 0 22px;
    border-right: 1px solid rgba(255,255,255,0.04);
}
.ti-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }

/* Floating Notification */
.float-notif {
    position: absolute;
    top: 20px; right: -20px;
    background: rgba(21,21,30,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    padding: 9px 14px;
    display: flex; align-items: center; gap: 9px;
    font-size: 10px; color: #eeeeff;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 20px rgba(99, 102, 241, 0.2);
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
    z-index: 100;
    min-width: 200px;
}
.float-notif.show { opacity: 1; transform: translateX(0); }
.fn-icon { font-size: 14px; }
.fn-text strong { display: block; font-weight: 700; font-size: 10.5px; }
.fn-text span { color: #6b6a88; font-size: 9px; }

.float-lead-count {
    position: absolute;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
    font-size: 9px; font-weight: 700;
    border-radius: 20px; padding: 3px 8px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.5);
    opacity: 0;
    transform: translateY(10px) scale(0.8);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    white-space: nowrap;
    z-index: 100;
}

/* ============================================
   SECTIONS (General)
   ============================================ */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-dark {
    /* transparent — body grid shows through */
}

.section-gradient {
    background-color: var(--bg-secondary);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    position: relative;
}

.section-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, var(--bg-primary), transparent);
    pointer-events: none;
    z-index: 1;
}

.section-gradient::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--bg-primary), transparent);
    pointer-events: none;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-xl);
    font-size: 0.8rem;
    font-weight: 600;
    color: #818cf8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================
   SERVICES GRID (legacy — kept for index.html)
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-glow);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon-wrap {
    margin-bottom: 20px;
}

.service-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
    font-size: 1.3rem;
    color: #818cf8;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: rgba(99, 102, 241, 0.15);
    transform: scale(1.05);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-tags li {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ============================================
   SERVICES PAGE — REDESIGNED LAYOUT
   ============================================ */

/* Hero */
.svc-hero {
    padding: 160px 0 80px;
    text-align: center;
}

.svc-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.15;
    margin-bottom: 20px;
}

.svc-hero-sub {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Feature rows */
.svc-features {
    position: relative;
}

.svc-row {
    padding: 80px 0;
}

.svc-row--dark {
    background-color: var(--bg-secondary);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    position: relative;
}

.svc-row--dark::before,
.svc-row--dark::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 60px;
    pointer-events: none;
    z-index: 1;
}

.svc-row--dark::before {
    top: 0;
    background: linear-gradient(to bottom, var(--bg-primary), transparent);
}

.svc-row--dark::after {
    bottom: 0;
    background: linear-gradient(to top, var(--bg-primary), transparent);
}

.svc-split {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    align-items: center;
}

.svc-split--reverse {
    grid-template-columns: 1fr 280px;
}

.svc-split--reverse .svc-split__visual {
    order: 2;
}

.svc-split--reverse .svc-split__content {
    order: 1;
}

/* Visual side */
.svc-split__visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.svc-num {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 800;
    background: var(--accent-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    opacity: 0.3;
}

.svc-icon-lg {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    font-size: 2.2rem;
    position: relative;
}

.svc-icon-lg::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.svc-icon-lg--indigo {
    background: rgba(99, 102, 241, 0.1);
    color: #818cf8;
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.12);
}

.svc-icon-lg--purple {
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.12);
}

.svc-icon-lg--cyan {
    background: rgba(6, 182, 212, 0.1);
    color: #22d3ee;
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.12);
}

/* Content side */
.svc-split__content h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.svc-split__content p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.svc-split__content .svc-detail {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.svc-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.svc-pills span {
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.3s ease;
}

.svc-pills span:hover {
    border-color: var(--border-hover);
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.06);
}

/* Scroll-trace animation */
.svc-features {
    position: relative;
}

.svc-trace-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: visible;
}

.svc-trace-bg {
    fill: none;
    stroke: rgba(139, 92, 246, 0.06);
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.svc-trace-trail {
    fill: none;
    stroke: url(#svc-trace-gradient);
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.svc-trace-orb {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle, #c4b5fd 0%, #8b5cf6 50%, #6366f1 100%);
    box-shadow:
        0 0 8px 3px rgba(139, 92, 246, 0.6),
        0 0 24px 8px rgba(99, 102, 241, 0.3),
        0 0 48px 16px rgba(99, 102, 241, 0.12);
    pointer-events: none;
    z-index: 3;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: svc-orb-pulse 2.4s ease-in-out infinite;
}

.svc-trace-orb--visible {
    opacity: 1;
}

@keyframes svc-orb-pulse {
    0%, 100% { box-shadow: 0 0 8px 3px rgba(139,92,246,0.6), 0 0 24px 8px rgba(99,102,241,0.3), 0 0 48px 16px rgba(99,102,241,0.12); }
    50% { box-shadow: 0 0 12px 5px rgba(139,92,246,0.7), 0 0 32px 12px rgba(99,102,241,0.35), 0 0 60px 20px rgba(99,102,241,0.15); }
}

@media (max-width: 768px) {
    .svc-trace-svg,
    .svc-trace-orb {
        display: none;
    }
}

/* Add-ons + CTA split */
.svc-bottom {
    padding: 80px 0;
    background-color: var(--bg-secondary);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    position: relative;
}

.svc-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, var(--bg-primary), transparent);
    pointer-events: none;
    z-index: 1;
}

.svc-bottom-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
}

.svc-bottom-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: 8px 0 8px;
}

.svc-bottom-sub {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.svc-addon-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.svc-addon-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.svc-addon-list li:nth-last-child(-n+2) {
    border-bottom: none;
}

.svc-addon-list li i {
    color: #818cf8;
    font-size: 0.9rem;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

/* CTA side — border glow wrapper */
.svc-bottom-right {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 2px;
    background: var(--border-color);
    overflow: hidden;
}

/* Rotating conic gradient — the glowing sliver on the border */
.svc-bottom-right::before {
    content: '';
    position: absolute;
    inset: -40%;
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        transparent 70%,
        #818cf8 78%,
        #a78bfa 82%,
        #6366f1 86%,
        transparent 92%,
        transparent 100%
    );
    animation: cta-border-spin 5s linear infinite;
    z-index: 0;
}

@keyframes cta-border-spin {
    to { transform: rotate(360deg); }
}

/* Inner panel sits on top, masks the gradient to only show on the border edge */
.svc-bottom-right-inner {
    position: relative;
    z-index: 1;
    background: var(--bg-card);
    border-radius: calc(var(--radius-lg) - 2px);
    padding: 40px 36px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.svc-bottom-right h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2.5vw, 1.8rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.svc-bottom-right p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 360px;
}

@media (max-width: 768px) {
    .svc-bottom-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .svc-addon-list {
        grid-template-columns: 1fr;
    }

    .svc-addon-list li:last-child {
        border-bottom: none;
    }

    .svc-addon-list li:nth-last-child(2) {
        border-bottom: 1px solid var(--border-color);
    }
}

/* ============================================
   HOW IT WORKS — STEPS
   ============================================ */
.steps-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.steps-line {
    position: absolute;
    left: 36px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.steps-line-fill {
    width: 100%;
    height: 0%;
    background: var(--accent-gradient);
    border-radius: 2px;
    transition: height 0.3s ease-out;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    padding: 40px 0;
    position: relative;
}

.step:first-child {
    padding-top: 0;
}

.step:last-child {
    padding-bottom: 0;
}

.step-number {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.step-number span {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: color 0.4s ease;
}

.step.revealed .step-number {
    border-color: var(--accent-1);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.2);
}

.step.revealed .step-number span {
    background: var(--accent-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.step-content {
    flex: 1;
    padding-top: 12px;
}

.step-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.step-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.step-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.08);
    border-radius: var(--radius-md);
    font-size: 1.2rem;
    color: #818cf8;
    margin-top: 12px;
}

/* ============================================
   GROWTH ADD-ONS
   ============================================ */
.addons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.addon-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.addon-item:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.addon-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.08);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    color: #818cf8;
    flex-shrink: 0;
}

.addon-item span {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* ============================================
   TEAM
   ============================================ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    padding-top: 36px;
}

.team-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.team-image {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-secondary);
    border: 3px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.team-card:hover .team-image {
    border-color: var(--accent-1);
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.6s ease;
}

.team-card:hover .team-image img {
    transform: scale(1.1);
}

.team-image img.alex-img {
    transform: scale(1.3);
    object-position: center center;
}

.team-card:hover .team-image img.alex-img {
    transform: scale(1.5);
}

.team-socials {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.6);
}

.team-card:hover .team-socials {
    opacity: 1;
    transform: translateY(0);
}

.team-socials a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.team-socials a:hover {
    background: var(--accent-1);
    transform: scale(1.1);
}

.team-info {
    padding: 28px 24px 32px;
}

.team-info h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.team-role {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #818cf8;
    margin-bottom: 14px;
}

.team-info p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   INTEGRATIONS / LOGO SLIDER
   ============================================ */
.integrations-section {
    overflow: hidden;
    padding-top: 20px;
    padding-bottom: 40px;
}

.logo-slider-wrap {
    overflow: hidden;
    mask-image: linear-gradient(to right, rgba(0,0,0,0.375) 0%, black 20%, black 80%, rgba(0,0,0,0.375) 100%);
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.375) 0%, black 20%, black 80%, rgba(0,0,0,0.375) 100%);
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px 0;
}

.logo-row {
    overflow: visible;
    display: flex;
    padding: 10px 0;
}

.logo-track {
    display: flex;
    gap: 20px;
    flex-shrink: 0;
    width: max-content;
}

/* Animations injected dynamically by initLogoSliders() in script.js */

.logo-item {
    flex-shrink: 0;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease, z-index 0s;
    position: relative;
    z-index: 0;
    opacity: 0.375;
}

.logo-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.25), 0 4px 16px rgba(0, 0, 0, 0.4);
    z-index: 10;
    opacity: 1;
}

.logo-item img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-info .section-tag {
    margin-bottom: 20px;
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.contact-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: flex-end;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

a.contact-item:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateX(4px);
}

.contact-item-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-sm);
    color: #818cf8;
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-item-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.contact-item-value {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

.booking-frame-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 4px;
}

.booking-scroll-wrap {
    height: 750px;
    overflow-y: scroll;
    overflow-x: hidden;
    border-radius: var(--radius-lg);
}

.booking-scroll-wrap::-webkit-scrollbar {
    width: 4px;
}

.booking-scroll-wrap::-webkit-scrollbar-track {
    background: transparent;
}

.booking-scroll-wrap::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6366f1, #8b5cf6, #06b6d4);
    border-radius: 999px;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.8), 0 0 16px rgba(139, 92, 246, 0.4);
}

.booking-scroll-wrap::-webkit-scrollbar-thumb:hover {
    box-shadow: 0 0 12px rgba(99, 102, 241, 1), 0 0 24px rgba(139, 92, 246, 0.6);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: var(--bg-secondary);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    border-top: 1px solid var(--border-color);
    padding: 72px 0 0;
    overflow: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    height: 36px;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    background: var(--accent-1);
    border-color: var(--accent-1);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.footer-links h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

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

.footer-links a,
.footer-links span {
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

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

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
}

.footer-bottom .footer-socials {
    margin-bottom: 0;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: right;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-legal a {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--text-primary);
}

.footer-legal-sep {
    font-size: 0.75rem;
    color: var(--border-color);
}

/* MSS large footer text */
.footer-mss-text {
    width: 100%;
    padding: 8px 0 0;
    overflow: hidden;
    line-height: 0;
}

.mss-svg {
    display: block;
    width: 100%;
    max-height: 160px;
}

.mss-text-stroke {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
}

.mss-text-fill {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.footer-mss-text:hover .mss-text-fill {
    opacity: 1;
}

/* ============================================
   SCROLL FLIP SECTION
   ============================================ */

/* sticky stage */
.flip-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 130px;
    overflow: hidden;
    background-color: var(--bg-primary);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ambient glow — removed to keep background seamless */
.flip-sticky::before {
    display: none;
}
.flip-sticky.flipped::before {
    display: none;
}

/* 3D card container */
.flip-card-wrap {
    perspective: 2000px;
    perspective-origin: 50% 50%;
    width: 1280px;
    height: 700px;
    position: relative;
}

/* Light trail around front face */
@property --trail-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.flip-trail {
    position: absolute;
    inset: -4px;
    border-radius: 18px;
    background: conic-gradient(
        from var(--trail-angle),
        transparent 0%,
        transparent 66%,
        rgba(99,102,241,0.08) 70%,
        rgba(99,102,241,0.3) 73%,
        rgba(139,92,246,0.6) 76%,
        rgba(168,130,255,1) 79%,
        #c4b5fd 80.5%,
        #e0d4ff 81.5%,
        #c4b5fd 82.5%,
        rgba(168,130,255,1) 84%,
        rgba(139,92,246,0.6) 87%,
        rgba(99,102,241,0.3) 90%,
        rgba(99,102,241,0.08) 93%,
        transparent 97%,
        transparent 100%
    );
    animation: trailRotate 6s linear infinite;
    pointer-events: none;
    z-index: 0;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.flip-trail::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: inherit;
    filter: blur(12px);
    opacity: 0.5;
    z-index: -1;
}

.flip-trail::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 14px;
    background: var(--bg-primary);
}

.flip-card-wrap.fullscreen .flip-trail {
    opacity: 0;
}

@keyframes trailRotate {
    to { --trail-angle: 360deg; }
}

.flip-card {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform: rotateY(0deg);
    will-change: transform;
    z-index: 1;
}

/* expanded state — full screen */
.flip-card-wrap.fullscreen {
    border-radius: 0;
}
.flip-card-wrap.fullscreen .flip-face {
    border-radius: 0;
    border: none;
    box-shadow: none;
    overflow: visible;
}

/* both faces */
.flip-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 14px;
    overflow: hidden;
}

/* FRONT FACE */
.flip-front {
    background: #1c1c28;
    border: 1px solid rgba(255,255,255,0.08);
}

/* BACK FACE */
.flip-back {
    transform: rotateY(180deg);
    background: var(--bg-primary);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0 50px 40px;
    text-align: center;
    position: relative;
}
.flip-card-wrap.fullscreen .flip-back {
    border: none;
    padding-left: 80px;
    padding-right: 80px;
    padding-bottom: 60px;
}

/* back face grid pattern */
.flip-back::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.flip-card-wrap.fullscreen .flip-back::before {
    opacity: 0.44; /* 0.045 * 0.44 ≈ 0.02, matching the page background grid */
}

/* back face corner accents — removed for seamless colour match */

/* back-inner: scrollable wrapper */
.back-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    height: auto;
    will-change: transform;
}

/* In fullscreen, back-inner is full-width; constraints live on the children */
.flip-card-wrap.fullscreen .back-inner {
    max-width: 100%;
    width: 100%;
}

/* back-content: always centred so layout is smooth during the flip animation */
.back-content {
    min-height: auto;
    justify-content: center;
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

/* system blocks constrained to left 56% so orbit has room on the right */
.flip-card-wrap.fullscreen .back-system-blocks {
    display: flex;
    gap: 0;
    overflow: visible;
    opacity: 0;
    transition: opacity 2s ease;
}

/* Left column: the system block text cards */
.system-blocks-list {
    flex: 0 0 56%;
    max-width: 56%;
}

/* Right column: orbit sidebar — scrolls naturally with the system blocks */
.orbit-sidebar {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    pointer-events: none;
    position: relative;
    overflow: visible;
}
/* Scale down orbit scene to fit the sidebar column */
.orbit-sidebar .orbit-scene {
    transform: scale(0.84);
    transform-origin: top center;
}

/* Suppress the placeholder orbit left inside back-inner */
.orbit-scene--hidden {
    display: none !important;
}

/* ============================================
   Traffic Orbit Visual (tov)
   ============================================ */

/* Column — absolutely positioned, stays fixed while back-inner scrolls */
.back-visual-col {
    display: flex;
    position: absolute;
    right: 48px;
    top: 50%;
    transform: translateY(-50%);
    width: 420px;
    height: 420px;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0; /* driven by JS */
}

/* ============================================
   Orbiting Skills Visual
   ============================================ */
.orbit-scene {
    position: relative;
    width: 750px;
    height: 750px;
    flex-shrink: 0;
}

/* Ring paths */
.orbit-path {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    pointer-events: none;
}
.orbit-path-inner {
    width: 312px;
    height: 312px;
    margin: -156px 0 0 -156px;
    border: 1px solid rgba(6, 182, 212, 0.35);
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.1), inset 0 0 40px rgba(6, 182, 212, 0.04);
    animation: orbit-ring-cyan 4s ease-in-out infinite;
}
.orbit-path-outer {
    width: 600px;
    height: 600px;
    margin: -300px 0 0 -300px;
    border: 1px solid rgba(147, 51, 234, 0.35);
    box-shadow: 0 0 40px rgba(147, 51, 234, 0.1), inset 0 0 40px rgba(147, 51, 234, 0.04);
    animation: orbit-ring-purple 4s ease-in-out infinite 1.5s;
}
@keyframes orbit-ring-cyan {
    0%, 100% { box-shadow: 0 0 20px rgba(6, 182, 212, 0.08), inset 0 0 20px rgba(6, 182, 212, 0.03); }
    50%       { box-shadow: 0 0 50px rgba(6, 182, 212, 0.22), inset 0 0 50px rgba(6, 182, 212, 0.08); }
}
@keyframes orbit-ring-purple {
    0%, 100% { box-shadow: 0 0 20px rgba(147, 51, 234, 0.08), inset 0 0 20px rgba(147, 51, 234, 0.03); }
    50%       { box-shadow: 0 0 50px rgba(147, 51, 234, 0.22), inset 0 0 50px rgba(147, 51, 234, 0.08); }
}

/* Central hub */
.orbit-hub {
    position: absolute;
    top: 50%; left: 50%;
    width: 72px; height: 72px;
    margin: -36px 0 0 -36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1f2937, #111827);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.orbit-hub-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    animation: orbit-hub-breathe 4s ease-in-out infinite;
}
.orbit-hub-pulse-cyan   { background: rgba(6, 182, 212, 0.3);   filter: blur(12px); }
.orbit-hub-pulse-purple { background: rgba(147, 51, 234, 0.2);  filter: blur(16px); animation-delay: 1s; }
@keyframes orbit-hub-breathe {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%       { opacity: 1;   transform: scale(1.35); }
}

/* Skill nodes — position set by JS */
.orbit-node {
    position: absolute;
    top: 50%; left: 50%;
    z-index: 8;
    cursor: pointer;
}
.orbit-node-bubble {
    width: 46px; height: 46px;
    background: rgba(20, 20, 36, 0.92);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin: -23px 0 0 -23px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.orbit-node:hover .orbit-node-bubble {
    transform: scale(1.28);
}
.orbit-node-label {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    margin-top: 20px;
}
.orbit-node:hover .orbit-node-label {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Hide on narrow screens */
@media (max-width: 1200px) {
    .back-visual-col { opacity: 0 !important; pointer-events: none !important; }
}

/* system blocks embedded in the back face */
.back-system-blocks {
    display: none;
    width: 100%;
    text-align: left;
    margin-top: 50px;
    padding-top: 0;
    padding-bottom: 80px;
}
.back-system-blocks .system-block {
    padding-bottom: 72px;
}
.back-system-blocks .system-block:last-child {
    padding-bottom: 0;
}

.back-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 640px;
}

.back-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-2);
    letter-spacing: .08em;
    text-transform: uppercase;
}
.back-eyebrow-dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--accent-2);
    box-shadow: 0 0 6px var(--accent-2);
    animation: backBlink 1.6s ease infinite;
}
@keyframes backBlink { 0%,100%{opacity:1} 50%{opacity:.3} }

.back-heading {
    font-size: clamp(2.6rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    padding-bottom: 0.2em;
    background: linear-gradient(135deg, #ffffff 20%, var(--accent-2) 60%, var(--accent-3) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.back-subtext {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.back-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
}
.back-stat {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.back-stat-val {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
}
.back-stat-val.green { color: #20d4a0; }
.back-stat-val.violet { color: var(--accent-2); }
.back-stat-val.blue { color: #60a5fa; }
.back-stat-label {
    font-size: 9.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 600;
}

/* Hero mobile stats — hidden by default, shown on mobile only */
.hero-mobile-stats {
    display: none;
}
.hero-mobile-stat-val.green { color: #20d4a0; }
.hero-mobile-stat-val.violet { color: var(--accent-2); }
.hero-mobile-stat-val.blue { color: #60a5fa; }

/* Mobile services link — hidden by default */
.mobile-services-link {
    display: none;
}

/* Ecosystem flow strip */
.ecosystem-flow {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    margin: 18px 0 16px;
}

.eco-node {
    display: flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
    white-space: nowrap;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.eco-node i {
    font-size: 6px;
    color: var(--accent-2);
    opacity: 0.7;
}

.eco-arrow {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.back-cta {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 4px;
}
.btn-ghost-flip {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 13px 24px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
}
.btn-ghost-flip:hover { border-color: rgba(255,255,255,0.25); color: var(--text-primary); }

/* ============================================
   The MediaSphere System Section
   ============================================ */

/* Individual stage block */
.system-block {
    padding-bottom: 112px;
}

.system-block:last-child {
    padding-bottom: 0;
}

@keyframes stage-throb {
    0%, 100% { transform: scale(1); box-shadow: 0 0 18px rgba(6, 182, 212, 0.07), inset 0 1px 0 rgba(255,255,255,0.05); }
    50%       { transform: scale(1.06); box-shadow: 0 0 28px rgba(6, 182, 212, 0.22), inset 0 1px 0 rgba(255,255,255,0.05); }
}

/* Stage label */
.system-stage {
    animation: stage-throb 2.8s ease-in-out infinite;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #06B6D4;
    margin-bottom: 22px;
    padding: 6px 14px 6px 10px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(147, 51, 234, 0.07));
    border: 1px solid rgba(6, 182, 212, 0.28);
    border-radius: 20px;
    box-shadow: 0 0 18px rgba(6, 182, 212, 0.07), inset 0 1px 0 rgba(255,255,255,0.05);
}
.system-stage::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #06B6D4;
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.9);
    flex-shrink: 0;
}

/* Large heading */
.system-heading {
    font-size: clamp(1.45rem, 2vw, 1.9rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    margin: 0 0 22px;
    letter-spacing: -0.015em;
}

/* Body paragraph */
.system-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0 0 36px;
    max-width: 640px;
}

/* Bullet list */
.system-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.system-bullets li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.93rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.4;
}

.system-bullets li i {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 7px;
    color: rgba(255, 255, 255, 0.35);
}

/* Override browser styles inside flip card */
.flip-front .browser-outer {
    width: 100%;
    height: 100%;
    border-radius: 14px;
}
.flip-front .browser {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
}
.flip-front .app {
    height: 100%;
    flex: 1;
    overflow: hidden;
}
.flip-front .main {
    overflow: hidden;
}
.flip-front .content {
    overflow: hidden;
}
.flip-front .sidebar {
    width: 65px;
}
.flip-front .sb-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}
.flip-front .sb-logo img {
    width: 36px;
    height: 36px;
}
.flip-front .sb-icon {
    width: 56px;
}
.flip-front .kpi-row {
    gap: 8px;
}
.flip-front .kpi {
    padding: 12px 10px;
}
.flip-front .kpi-val {
    font-size: 1.1rem;
}
.flip-front .kpi-label {
    font-size: 8px;
}
.flip-front .kpi-delta {
    font-size: 8px;
}
.flip-front .pipeline {
    gap: 8px;
}
.flip-front .stage {
    min-width: 120px;
}
.flip-front .lcard {
    padding: 8px;
}
.flip-front .lcard-name {
    font-size: 10px;
}
.flip-front .lcard-loc {
    font-size: 8px;
}
.flip-front .right-panel {
    width: 180px;
}


/* ============================================
   RESPONSIVE
   ============================================ */

/* Hide flip dashboard on touch devices (phones & tablets) */
@media (hover: none) and (pointer: coarse) {
    .flip-sticky {
        display: none;
    }

    .hero {
        height: auto;
    }

    .hero .scroll-cue {
        display: none;
    }
}

@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .addons-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .svc-split {
        grid-template-columns: 220px 1fr;
        gap: 40px;
    }

    .svc-split--reverse {
        grid-template-columns: 1fr 220px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .browser {
        width: 960px;
    }

    .app {
        height: 620px;
    }

    .flip-card-wrap {
        width: 900px;
        height: 600px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 64px;
    }

    /* Mobile nav */
    .nav-toggle {
        display: flex;
    }

    .nav-right {
        display: none;
    }

    .nav-indicator {
        display: none;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        left: auto;
        width: 100%;
        max-width: 360px;
        height: 100vh;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: stretch;
        padding: 100px 32px 32px;
        gap: 4px;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        border-left: 1px solid var(--border-color);
        transform: none;
    }

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

    .nav-link {
        padding: 14px 16px;
        font-size: 1rem;
        border-radius: var(--radius-md);
    }

    .navbar {
        padding: 8px 12px;
    }

    .nav-container {
        height: 56px;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 50px;
        border-color: rgba(255, 255, 255, 0.08);
        transition: none;
    }

    .navbar.scrolled .nav-container {
        max-width: 100%;
        height: 56px;
        border-radius: 50px;
        background: rgba(10, 10, 15, 0.95);
    }

    .nav-cta-mobile {
        display: block;
        margin-top: 16px;
        text-align: center;
        background: var(--accent-gradient);
        color: var(--text-primary) !important;
        padding: 12px 24px;
        border-radius: var(--radius-xl);
        font-weight: 600;
    }

    /* Hero */
    .hero-title {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .btn {
        justify-content: center;
    }

    .hero-app-preview {
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0 20px;
    }

    .browser {
        width: 820px;
    }

    .app {
        height: 520px;
    }

    .tilt-frame {
        transform: rotateY(-8deg) rotateX(3deg) scale(0.85);
    }

    .flip-sticky {
        display: none;
    }

    .hero-mobile-stats {
        display: flex;
        justify-content: center;
        gap: 24px;
        margin-bottom: 28px;
    }

    .hero-mobile-stat {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .hero-mobile-stat-val {
        font-size: 1.5rem;
        font-weight: 800;
        line-height: 1;
    }

    .hero-mobile-stat-label {
        font-size: 0.65rem;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.06em;
        font-weight: 600;
    }

    .hero {
        height: auto;
    }

    .hero .scroll-cue {
        display: none;
    }

    .hero-buttons .btn-ghost {
        display: none;
    }

    #how-it-works {
        padding-top: 64px;
    }

    .mobile-services-link {
        display: block;
        text-align: center;
        margin-top: 32px;
        font-size: 0.9rem;
        color: var(--text-muted);
    }

    .mobile-services-link a {
        color: var(--accent-1);
        text-decoration: underline;
    }

    .flip-card-wrap {
        width: 650px;
        height: 450px;
    }

    .back-heading {
        font-size: 2rem;
    }

    .back-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .back-stat {
        padding: 12px 8px;
    }

    .back-stat-val {
        font-size: 1.2rem;
    }

    .flip-back {
        padding: 30px 30px;
    }

    .back-cta {
        flex-direction: column;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Services page redesign */
    .svc-hero {
        padding: 130px 0 60px;
    }

    .svc-row {
        padding: 56px 0;
    }

    .svc-split,
    .svc-split--reverse {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .svc-split--reverse .svc-split__visual {
        order: 0;
    }

    .svc-split--reverse .svc-split__content {
        order: 0;
    }

    .svc-split__visual {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }

    .svc-num {
        font-size: 3.5rem;
    }

    .svc-icon-lg {
        width: 72px;
        height: 72px;
        font-size: 1.6rem;
        border-radius: 18px;
    }

    .svc-icon-lg::after {
        inset: -6px;
        border-radius: 22px;
    }

    .svc-pills {
        justify-content: center;
    }

    /* Steps */
    .step-icon {
        display: none;
    }

    .steps-line {
        left: 24px;
    }

    .step-number {
        width: 48px;
        height: 48px;
    }

    .step-number span {
        font-size: 1rem;
    }

    .step {
        gap: 20px;
    }

    /* Add-ons */
    .addons-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Team */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Contact */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info .section-title {
        font-size: 1.8rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .flip-card-wrap {
        width: 95vw;
        height: 300px;
    }

    .back-heading {
        font-size: 1.7rem;
    }

    .back-subtext {
        font-size: 0.85rem;
    }

    .back-stats {
        grid-template-columns: 1fr;
    }

    .flip-back {
        padding: 20px;
    }

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

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

    .section-title {
        font-size: 1.8rem;
    }

    .hero-container {
        padding-top: 100px;
    }

    .browser {
        width: 640px;
    }

    .app {
        height: 440px;
    }

    .tilt-frame {
        transform: rotateY(-6deg) rotateX(2deg) scale(0.75);
    }

    .float-notif {
        display: none;
    }
}

/* =====================
   About Page
   ===================== */

.about-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-story-text .section-tag {
    margin-bottom: 0.75rem;
    display: inline-block;
}

.about-story-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stat-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-display);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.value-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.value-item:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.value-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.125rem;
    color: #fff;
}

.value-item h4 {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 0.625rem;
    color: var(--text-primary);
}

.value-item p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ── Values editorial (two-block symmetrical layout) ──────────────── */
.values-editorial {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.values-block {
    display: grid;
    align-items: stretch;
    gap: 3rem;
}

/* 01 & 02: text takes ~66%, image ~34% */
.values-block--text-left {
    grid-template-columns: 2fr 1fr;
}

/* 03 & 04: image ~34%, text ~66% */
.values-block--text-right {
    grid-template-columns: 1fr 2fr;
    margin-top: -2rem;
}

.values-block--text-right .values-block-text {
    justify-content: flex-end;
}

.values-block-text {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.value-entry {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.value-num-large {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(139, 92, 246, 0.18);
    letter-spacing: -0.03em;
    flex-shrink: 0;
    min-width: 5rem;
    text-align: right;
}

.value-entry-body {
    padding-top: 0.5rem;
}

.value-entry-body h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.6rem;
}

.value-entry-body p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin: 0;
}

.values-block-image {
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255,255,255,0.04);
}

.values-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(139, 92, 246, 0.3);
}

.values-placeholder span {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(139, 92, 246, 0.4);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

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

@media (max-width: 900px) {
    .values-block--text-left,
    .values-block--text-right {
        grid-template-columns: 1fr;
    }

    .values-block--text-right .values-block-image {
        order: -1;
    }

    .values-block-image {
        aspect-ratio: 16 / 9;
    }

    .values-block--text-left .values-block-image {
        aspect-ratio: 4 / 3;
    }

    .values-block--text-left .values-img {
        object-position: center 20%;
    }

    .value-num-large {
        font-size: 3rem;
        min-width: 3.5rem;
    }
}

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

@media (max-width: 768px) {
    .about-story {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-story-stats {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 480px) {
    .about-story-stats {
        grid-template-columns: 1fr 1fr;
    }

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

/* =====================
   World Map Section
   ===================== */

.global-reach-section {
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
}

.global-reach-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 140px;
    background: linear-gradient(to bottom, transparent, var(--bg-secondary));
    pointer-events: none;
    z-index: 1;
}

/* Remove the hard border line at the top of the Our Story section */
.global-reach-section + .section-gradient::before {
    display: none;
}

/* Gradient fade from lighter Our Story section back into the dark Our Values section */
.about-story-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 140px;
    background: linear-gradient(to bottom, transparent, var(--bg-primary));
    pointer-events: none;
    z-index: 1;
}

/* Remove the hard border line at the bottom of Our Story / top of Our Values */
.about-story-section + .section-dark::before {
    display: none;
}

/* Gradient fade from dark Our Values section into the lighter CTA section */
.about-values-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 140px;
    background: linear-gradient(to bottom, transparent, var(--bg-secondary));
    pointer-events: none;
    z-index: 1;
}

/* Remove the hard border line at the top of the CTA section */
.about-values-section + .section-gradient::before {
    display: none;
}


.global-reach-section .section-header {
    margin-bottom: 8px;
}
    /* Dark, tight glow centred around South Africa's latitude (~69% down the map) */
    background: radial-gradient(ellipse 70% 35% at 50% 69%,
        rgba(99, 102, 241, 0.09) 0%,
        rgba(139, 92, 246, 0.05) 50%,
        transparent 100%);
}

.map-wrapper {
    position: relative;
    width: 100%;
    margin: 0.5rem 0 0;
    overflow: hidden;
    aspect-ratio: 800 / 295;
    /* Combined mask: top fade-in, strong bottom fade-out, left/right soften */
    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        black 15%,
        black 32%,
        transparent 90%
    );
    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        black 15%,
        black 32%,
        transparent 90%
    );
}

.world-map-svg {
    display: block;
    width: 100%;
    aspect-ratio: 800 / 400;
}

@media (max-width: 768px) {
    .world-map-svg {
        aspect-ratio: 800 / 400;
    }
}

.float-lead-count.pop { opacity: 1; transform: translateY(0) scale(1); }

/* ============================================
   FOOTER MSS TEXT RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .footer-bottom {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 16px;
    }

    .footer-bottom p {
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }

    .mss-svg {
        max-height: 90px;
    }
}
