/* Visual Polish: Typography & Glassmorphism */
:root {
    --primary: #22d3ee;
    --primary-rgb: 34, 211, 238;
    --primary-glow: rgba(34, 211, 238, 0.35);
    --secondary: #6366f1;
    --secondary-rgb: 99, 102, 241;
    --bg-dark: #080c12;
    --bg-deep: #080c12;
    --bg-darker: #050810;
    --surface: #0e1420;
    --surface-elevated: #141c28;
    --card-bg: #0e1420;
    --card-border: rgba(148, 178, 214, 0.12);
    --text-main: #f3f6fb;
    --text-muted: #9fb0c7;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --section-padding: clamp(3.5rem, 7vw, 8rem);
}

h1,
.title-xl {
    font-size: clamp(2.5rem, 10vw, 6rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    font-feature-settings: "kern" 1, "liga" 1;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, var(--primary) 50%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGradient 6s linear infinite;
}

/* Ambient Light Effect */
.ambient-light {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    filter: blur(80px);
    will-change: transform;
}

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

    100% {
        background-position: 200% 0;
    }
}

@keyframes textGradient {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

.card-5z {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: clamp(2rem, 5vw, 4rem);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Cursor Customization */
.custom-cursor {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.2s ease, background 0.3s ease;
}

.custom-cursor.expand {
    transform: scale(6);
    background: rgba(var(--primary-rgb), 0.3);
}

@media (hover: none) {
    .custom-cursor {
        display: none;
    }
}

/* Magnetic Button Utility */
.magnetic-wrap {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Premium Preloader */
#preloader {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    width: 280px;
}

.loader-logo {
    position: relative;
    margin-bottom: 2rem;
}

.loader-logo img {
    height: 48px;
    width: auto;
}

.logo-shimmer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite linear;
}

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

    100% {
        background-position: 200% 0;
    }
}

.loader-progress {
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
    transition: width 0.4s ease;
}

body.loading {
    overflow: hidden;
}

/* Premium CSS-Only Background System (No Raster Images) */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        /* Fine Vector Grid (subtle) */
        linear-gradient(rgba(159, 176, 199, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(159, 176, 199, 0.035) 1px, transparent 1px),
        /* Soft Color Halos — more light, more depth */
        radial-gradient(circle at 82% 8%, rgba(var(--primary-rgb), 0.10) 0%, transparent 42%),
        radial-gradient(circle at 12% 78%, rgba(var(--secondary-rgb), 0.08) 0%, transparent 45%),
        radial-gradient(circle at 50% 120%, rgba(var(--primary-rgb), 0.05) 0%, transparent 55%);
    background-size: 56px 56px, 56px 56px, 100% 100%, 100% 100%, 100% 100%;
    -webkit-mask-image: radial-gradient(ellipse 120% 90% at 50% 0%, #000 55%, transparent 100%);
    mask-image: radial-gradient(ellipse 120% 90% at 50% 0%, #000 55%, transparent 100%);
    z-index: -2;
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.02;
    pointer-events: none;
    z-index: -1;
}

/* Remove old background classes as we moved to body pseudo-elements */
.bg-grid,
.bg-noise,
.bg-aurora,
.bg-aurora-2 {
    display: none;
}

/* Fluid Typography & Contrast */
h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

.title-xl {
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1.1;
    margin-bottom: 2rem;
}

.title-lg {
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Premium Buttons */
.btn-premium {
    padding: 1rem 2.4rem;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-primary-5z {
    background: var(--primary);
    color: var(--bg-darker);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.2);
}

.btn-primary-5z:hover {
    background: #fff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(var(--primary-rgb), 0.4);
    color: var(--bg-darker);
}

.btn-outline-5z {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(8px);
}

.btn-outline-5z:hover {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.06);
    transform: translateY(-3px);
    color: var(--primary);
}

/* Premium Cards */
.card-5z {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.card-5z::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.card-5z:hover {
    border-color: rgba(var(--primary-rgb), 0.35);
    transform: translateY(-6px);
    background: var(--surface-elevated);
    box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(var(--primary-rgb), 0.05);
}

.card-glow:hover {
    box-shadow: 0 0 40px rgba(var(--primary-rgb), 0.08);
}

.card-icon {
    width: 56px;
    height: 56px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    transition: all 0.4s ease;
}

.card-5z:hover .card-icon {
    background: var(--primary);
    color: var(--bg-darker);
    transform: scale(1.1) rotate(5deg);
}

/* Badges */
.badge-5z {
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    backdrop-filter: blur(4px);
}

.badge-5z::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary);
}

/* Sections */
section {
    padding: var(--section-padding) 0;
    position: relative;
}

/* Navbar */
.navbar-5z {
    padding: 2rem 0;
    transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
    border-bottom: 1px solid transparent;
    z-index: 1000;
}

.navbar-logo {
    height: 32px;
    width: auto;
    transition: height 0.3s ease;
}

.navbar-5z.scrolled .navbar-logo {
    height: 26px;
}

.navbar-5z.scrolled {
    padding: 1.2rem 0;
    background: rgba(7, 7, 8, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--card-border);
}

.nav-link {
    color: var(--text-main) !important;
    font-weight: 500;
    font-size: 0.9rem;
    margin-left: 2.5rem;
    opacity: 0.6;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    opacity: 1;
    color: var(--primary) !important;
}

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

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

/* Hero Section & Integration Refined */
.hero {
    position: relative;
    overflow: hidden;
    padding-top: clamp(100px, 15vh, 160px);
    padding-bottom: clamp(60px, 10vh, 120px);
    z-index: 1;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-image-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    opacity: 0.9;
    filter: saturate(1.2) brightness(1.1) contrast(1.1) sharpness(1.2);
    /* Hypothetical sharpness used for intent, but sticking to valid filters */
    -webkit-filter: saturate(1.2) brightness(1.1) contrast(1.1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 35%, transparent 0%, var(--bg-dark) 75%),
        linear-gradient(90deg, var(--bg-dark) 30%, transparent 65%),
        linear-gradient(0deg, var(--bg-dark) 0%, transparent 15%);
}

/* Technological/Data Overlays on Hero */
.hero-tech-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.3;
}

.hero-tech-overlay::before {
    content: "";
    position: absolute;
    top: 20%;
    right: 15%;
    width: 300px;
    height: 300px;
    background:
        radial-gradient(circle at center, transparent 40%, rgba(var(--primary-rgb), 0.1) 100%),
        repeating-linear-gradient(0deg, transparent, transparent 19px, rgba(var(--primary-rgb), 0.05) 20px);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    border-radius: 50%;
    animation: tech-rotate 20s infinite linear;
}

@keyframes tech-rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.hero-glow {
    position: absolute;
    top: 25%;
    right: 15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.15) 0%, transparent 70%);
    filter: blur(80px);
    mix-blend-mode: screen;
    animation: glow-pulse 10s infinite alternate;
}

@keyframes glow-pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.5);
        opacity: 0.8;
    }
}

/* Ecosystem Visual Refined */
.ecosystem-section {
    overflow: hidden;
}

.ecosystem-visual {
    perspective: 1500px;
}

.layers-container {
    transform-style: preserve-3d;
    transform: rotateX(15deg) rotateY(-15deg);
    transition: transform 0.8s ease;
}

.layers-container:hover {
    transform: rotateX(10deg) rotateY(-5deg);
}

.layer {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 1.5rem;
    margin: -10px 0;
    width: 100%;
    max-width: 450px;
    backdrop-filter: blur(10px);
    transition: all 0.5s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.layer::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    width: 2px;
    height: 20px;
    background: linear-gradient(to bottom, rgba(var(--primary-rgb), 0.3), transparent);
}

.layer:last-child::after {
    display: none;
}

.layer-central {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15), rgba(var(--secondary-rgb), 0.15));
    border: 1px solid rgba(var(--primary-rgb), 0.4);
    box-shadow: 0 0 60px rgba(var(--primary-rgb), 0.15);
    transform: translateZ(50px);
    padding: 2.5rem;
    z-index: 20;
}

.layer-central .nucleus {
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px var(--primary);
    animation: nucleus-pulse 3s infinite ease-in-out;
}

@keyframes nucleus-pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 30px var(--primary);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 50px var(--primary);
    }
}

/* Reveal & Scroll effects refined */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-word.active {
    opacity: 1;
    transform: translateY(0);
}

.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active .stagger-item {
    opacity: 1;
    transform: translateY(0);
}

/* Clip-path reveal */
.clip-reveal {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.clip-reveal.active {
    clip-path: inset(0 0% 0 0);
}

.parallax-el {
    will-change: transform;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 10px;
    border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: #333;
}

/* Responsive adjustments */
/* Mobile Bottom Nav & Touch Optimization */
:root {
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(70px + var(--safe-area-bottom));
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: var(--safe-area-bottom);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 2000;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    gap: 0.3rem;
    transition: all 0.3s ease;
    flex: 1;
    height: 100%;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item i {
    font-size: 1.4rem;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.bottom-nav-item.active {
    color: var(--primary);
}

/* Touch Experience & Scroll Snap */
* {
    -webkit-tap-highlight-color: transparent;
}

section {
    touch-action: pan-y;
}

html {
    scroll-behavior: smooth;
}

/* Card Tap State */
.card-5z:active {
    transform: scale(0.98);
}

/* ============================================================
   5Z — Commercial sections (added in repositioning pass)
   ============================================================ */

/* Section eyebrow + intro helpers */
.section-head {
    max-width: 760px;
}

.lead-muted {
    color: var(--text-muted);
    font-weight: 300;
}

.text-muted,
.opacity-75 {
    color: var(--text-muted) !important;
}

/* Hero copy contrast lift */
.hero .fs-4,
.hero p {
    color: #d7e0ee;
}

/* Primary button text now resolves correctly (--bg-darker defined) */
.btn-primary-5z {
    color: var(--bg-darker);
    font-weight: 700;
}

/* ---------- Hero intelligence dashboard (replaces cyborg image) ---------- */
.hero-visual {
    position: relative;
    width: 100%;
    min-height: 420px;
    perspective: 1600px;
}

.dash-card {
    position: absolute;
    background: linear-gradient(160deg, var(--surface-elevated) 0%, var(--surface) 100%);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
}

.dash-main {
    top: 6%;
    left: 4%;
    right: 14%;
    padding: 1.5rem 1.6rem 1.4rem;
    transform: rotateY(-6deg) rotateX(3deg);
    animation: floatY 7s ease-in-out infinite;
}

.dash-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.dash-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.92rem;
    color: #fff;
}

.dash-tag {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.25);
    border-radius: 100px;
    padding: 0.25rem 0.6rem;
}

.dash-bars {
    display: flex;
    align-items: flex-end;
    gap: 0.55rem;
    height: 120px;
    padding-top: 0.5rem;
}

.dash-bars span {
    flex: 1;
    border-radius: 6px 6px 2px 2px;
    background: linear-gradient(to top, rgba(var(--primary-rgb), 0.25), rgba(var(--primary-rgb), 0.85));
    box-shadow: 0 0 14px rgba(var(--primary-rgb), 0.25);
    animation: barGrow 1.2s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.dash-bars span:nth-child(7) {
    background: linear-gradient(to top, rgba(var(--secondary-rgb), 0.4), var(--primary));
}

@keyframes barGrow {
    from { height: 8% !important; opacity: 0.2; }
}

/* Operating-model panel (holding model in hero) */
.vmodel {
    display: flex;
    flex-direction: column;
}

.vmodel-row {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--card-border);
}

.vmodel-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.vmodel-row .n {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.78rem;
    color: var(--primary);
    flex: 0 0 1.6rem;
}

.vmodel-row > div {
    display: flex;
    flex-direction: column;
}

.vmodel-row .t {
    font-weight: 700;
    color: #fff;
    font-size: 0.98rem;
    line-height: 1.2;
}

.vmodel-row .d {
    color: var(--text-muted);
    font-size: 0.74rem;
}

.dash-foot {
    display: flex;
    gap: 1.4rem;
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--card-border);
}

.dash-metric .k {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: #fff;
}

.dash-metric .l {
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.dash-float {
    padding: 1rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 180px;
}

.dash-float-1 {
    top: 0;
    right: 0;
    transform: rotateY(-6deg);
    animation: floatY 6s ease-in-out infinite 0.4s;
}

.dash-float-2 {
    bottom: 4%;
    right: 6%;
    transform: rotateY(-6deg);
    animation: floatY 8s ease-in-out infinite 0.8s;
}

.dash-float .ico {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.12);
    border: 1px solid rgba(var(--primary-rgb), 0.25);
}

.dash-float .t {
    font-weight: 600;
    font-size: 0.82rem;
    color: #fff;
    line-height: 1.2;
}

.dash-float .s {
    font-size: 0.68rem;
    color: var(--text-muted);
}

@keyframes floatY {
    0%, 100% { transform: translateY(0) rotateY(-6deg); }
    50% { transform: translateY(-12px) rotateY(-6deg); }
}

/* ---------- Trust / proof strip ---------- */
.trust-strip {
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    padding: 1.5rem 0;
    background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.02), transparent);
}

.trust-label {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: #cdd7e6;
    font-weight: 600;
    font-size: 0.9rem;
}

.trust-item i {
    color: var(--primary);
}

/* ---------- Service cards (deliverable + result) ---------- */
.service-card {
    padding: 2.2rem 1.9rem;
    display: flex;
    flex-direction: column;
}

.service-card h3 {
    font-size: 1.12rem;
    margin-bottom: 0.6rem;
}

.service-deliverable {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.service-result {
    margin-top: auto;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #d7e0ee;
    padding-top: 0.9rem;
    border-top: 1px solid var(--card-border);
}

.service-result i {
    color: var(--primary);
    margin-top: 1px;
}

.service-card .card-icon {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
    margin-bottom: 1.4rem;
    border-radius: 13px;
}

/* ---------- Process / Como atuamos ---------- */
.step-card {
    position: relative;
    padding: 2rem 1.6rem;
    height: 100%;
}

.step-num {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.4rem;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    display: block;
}

.step-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin: 0;
}

/* ---------- Audience / Para quem é ---------- */
.audience-card {
    padding: 2.2rem 1.9rem;
    height: 100%;
    border-left: 2px solid rgba(var(--primary-rgb), 0.4);
}

.audience-card .ico {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 1.1rem;
}

.audience-card h3 {
    font-size: 1.08rem;
    margin-bottom: 0.6rem;
}

.audience-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* ---------- Results / credibility ---------- */
.stat-card {
    text-align: center;
    padding: 2rem 1.2rem;
    height: 100%;
}

.stat-number {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: #fff;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-number .unit {
    color: var(--primary);
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.cases-soon {
    border: 1px dashed rgba(var(--primary-rgb), 0.3);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    background: rgba(var(--primary-rgb), 0.02);
}

/* ---------- Form polish ---------- */
.form-5z .form-control {
    background: var(--surface) !important;
    border: 1px solid var(--card-border) !important;
    color: #fff !important;
    padding: 0.85rem 1rem;
    border-radius: 12px;
}

.form-5z .form-control::placeholder {
    color: #6b7a90;
}

.form-5z .form-control:focus {
    border-color: rgba(var(--primary-rgb), 0.6) !important;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12) !important;
    background: var(--surface-elevated) !important;
}

.form-label-5z {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    display: block;
}

/* ============================================================
   Responsive / Mobile-first refinements
   ============================================================ */
@media (max-width: 991px) {
    .layers-container {
        transform: none !important;
    }

    .navbar-5z .navbar-nav {
        display: none !important;
    }

    /* Mobile menu when expanded should still be usable */
    .navbar-collapse.show .navbar-nav,
    .navbar-collapse.collapsing .navbar-nav {
        display: flex !important;
        background: rgba(8, 12, 18, 0.96);
        border: 1px solid var(--card-border);
        border-radius: 16px;
        padding: 1rem 1.2rem;
        margin-top: 1rem;
        backdrop-filter: blur(20px);
    }

    .navbar-collapse .nav-link {
        margin-left: 0 !important;
        opacity: 0.85;
        padding: 0.6rem 0;
    }

    body {
        padding-bottom: 76px;
    }

    .hero {
        min-height: auto;
        padding-top: 120px;
        text-align: left;
    }

    .hero-visual {
        min-height: 320px;
        margin-top: 2.5rem;
        transform: scale(0.92);
    }
}

@media (max-width: 575px) {
    h1, .title-xl {
        letter-spacing: -0.02em !important;
    }

    .hero .fs-4 {
        font-size: 1.05rem !important;
    }

    .hero .d-flex.flex-wrap.gap-3 {
        flex-direction: column;
    }

    .hero .btn-premium {
        width: 100%;
        justify-content: center;
    }

    .hero-visual {
        min-height: 300px;
        transform: scale(0.86);
        margin-left: -1rem;
        margin-right: -1rem;
    }

    .dash-main { right: 10%; }
    .dash-float-2 { right: 2%; }

    .card-5z {
        padding: 1.8rem 1.5rem;
    }

    section {
        padding: 3.2rem 0;
    }

    .trust-item {
        font-size: 0.82rem;
    }
}

/* Disable custom cursor & heavy float anim on touch for perf */
@media (hover: none) {
    .dash-card { animation: none !important; }
}