/* ============================================
   SALÚSTIO CONSTRUTORA — Liquid Glass Premium
   Apple-Inspired • Cinematic • Ultra-Modern
   ============================================ */

/* ---------- Apple System Font Stack ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
    /* Apple-like system font stack */
    --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', sans-serif;
    --font-text: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Segoe UI', sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', monospace;

    /* Palette — deeper, richer */
    --bg-primary: #042436;
    --bg-secondary: #0a5074;
    --bg-tertiary: #0c628f;

    --teal-400: #f4df8d;
    --teal-500: #edd46b;
    --teal-600: #d6bf60;
    --cyan-400: #f4df8d;
    --cyan-500: #edd46b;
    --blue-400: #f4df8d;
    --blue-500: #edd46b;
    --indigo-400: #f4df8d;
    --violet-400: #f4df8d;

    --white: #ffffff;
    --gray-50: #ffffff;
    --gray-100: #fafafa;
    --gray-200: #f4f4f4;
    --gray-300: #eeeeee;
    --gray-400: #d4d4d4;
    --gray-500: #a3a3a3;
    --gray-600: #737373;
    --gray-700: #525252;
    --gray-800: #404040;

    /* Glass tokens */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-bg-2: rgba(255, 255, 255, 0.05);
    --glass-bg-3: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-2: rgba(255, 255, 255, 0.12);
    --glass-border-3: rgba(255, 255, 255, 0.18);
    --glass-glow: rgba(237, 212, 107, 0.15);

    /* Spacing */
    --section-gap: 160px;
    --container: 1240px;

    /* Motion */
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration: 0.5s;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* scroll-behavior handled by JS for precise offset control */
    overflow-x: hidden;
    font-size: 16px;
}

body {
    font-family: var(--font-text);
    background: var(--bg-primary);
    color: var(--gray-300);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(20, 184, 166, 0.3);
    border-radius: 10px;
}

/* ---------- Selection ---------- */
::selection {
    background: rgba(20, 184, 166, 0.3);
    color: var(--white);
}

/* ---------- Container ---------- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 32px;
    width: 100%;
}

/* ============================================
   ANIMATED MESH BACKGROUND
   ============================================ */
.mesh-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.mesh-bg .gradient-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    will-change: transform;
}

.mesh-bg .gradient-sphere:nth-child(1) {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.12), transparent 70%);
    top: -20%;
    right: -10%;
    animation: mesh-float-1 30s ease-in-out infinite;
}

.mesh-bg .gradient-sphere:nth-child(2) {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1), transparent 70%);
    bottom: -10%;
    left: -5%;
    animation: mesh-float-2 25s ease-in-out infinite;
}

.mesh-bg .gradient-sphere:nth-child(3) {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08), transparent 70%);
    top: 40%;
    left: 30%;
    animation: mesh-float-3 35s ease-in-out infinite;
}

.mesh-bg .gradient-sphere:nth-child(4) {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.06), transparent 70%);
    top: 60%;
    right: 20%;
    animation: mesh-float-4 28s ease-in-out infinite;
}

@keyframes mesh-float-1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(-60px, 80px) scale(1.1);
    }

    50% {
        transform: translate(40px, -60px) scale(0.9);
    }

    75% {
        transform: translate(-30px, -40px) scale(1.05);
    }
}

@keyframes mesh-float-2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(70px, -50px) scale(1.05);
    }

    50% {
        transform: translate(-50px, 30px) scale(0.95);
    }

    75% {
        transform: translate(30px, 60px) scale(1.08);
    }
}

@keyframes mesh-float-3 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(80px, -70px) scale(1.1);
    }

    66% {
        transform: translate(-40px, 50px) scale(0.92);
    }
}

@keyframes mesh-float-4 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(-50px, 40px) scale(1.05);
    }

    66% {
        transform: translate(60px, -30px) scale(0.95);
    }
}

/* Noise texture overlay */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ============================================
   LIQUID GLASS COMPONENT
   ============================================ */
.liquid-glass {
    position: relative;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.05) 0%,
            rgba(255, 255, 255, 0.02) 50%,
            rgba(255, 255, 255, 0.04) 100%);
    backdrop-filter: blur(40px) saturate(1.4);
    -webkit-backdrop-filter: blur(40px) saturate(1.4);
    border: 1px solid var(--glass-border-2);
    border-radius: 28px;
    overflow: hidden;
    transition: all var(--duration) var(--ease-out);
}

/* Top edge highlight — simulates light hitting glass */
.liquid-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.25),
            rgba(255, 255, 255, 0.06),
            rgba(255, 255, 255, 0.25),
            transparent);
    z-index: 2;
    pointer-events: none;
}

/* Inner glow layer */
.liquid-glass::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(ellipse at 30% 0%,
            rgba(255, 255, 255, 0.06) 0%,
            transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.liquid-glass:hover {
    border-color: var(--glass-border-3);
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.07) 0%,
            rgba(255, 255, 255, 0.03) 50%,
            rgba(255, 255, 255, 0.06) 100%);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.3),
        0 0 80px rgba(20, 184, 166, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateY(-6px);
}

/* Mouse-follow glow layer — controlled by JS */
.liquid-glass .glass-glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    z-index: 1;
}

.liquid-glass:hover .glass-glow {
    opacity: 1;
}

/* ============================================
   TYPOGRAPHY SYSTEM (Apple-style)
   ============================================ */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-text);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--teal-400);
    margin-bottom: 24px;
}

.eyebrow::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--teal-500);
}

.headline-xl {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}

.headline-lg {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -0.035em;
    margin-bottom: 20px;
}

.headline-md {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 600;
    color: var(--white);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.subhead {
    font-family: var(--font-text);
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    font-weight: 400;
    color: var(--gray-400);
    line-height: 1.7;
    letter-spacing: -0.01em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--teal-400), var(--cyan-400), var(--blue-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   BUTTONS (Apple-style)
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 980px;
    /* Apple pill shape */
    font-family: var(--font-text);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    border: none;
    cursor: pointer;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.btn-hero {
    padding: 18px 40px;
    font-size: 1.05rem;
}

.btn-fill {
    background: linear-gradient(135deg, var(--teal-500), var(--cyan-500));
    color: var(--white);
    box-shadow:
        0 2px 8px rgba(20, 184, 166, 0.3),
        0 0 40px rgba(20, 184, 166, 0.1);
}

.btn-fill::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-fill:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 8px 32px rgba(20, 184, 166, 0.35),
        0 0 80px rgba(20, 184, 166, 0.15);
}

.btn-fill:hover::before {
    opacity: 1;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.btn i {
    font-size: 1.15em;
    transition: transform 0.3s var(--ease-out);
}

.btn:hover i {
    transform: translateX(2px);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1100px;
    z-index: 1000;
    padding: 14px 28px;
    border-radius: 980px;
    background: rgba(0, 10, 20, 0.4);
    backdrop-filter: blur(40px) saturate(1.5);
    -webkit-backdrop-filter: blur(40px) saturate(1.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.5s var(--ease-out);
}

.navbar.scrolled {
    background: rgba(0, 10, 20, 0.75);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    top: 12px;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    max-width: 100%;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1001;
}

.nav-logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--teal-500), var(--cyan-500));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1rem;
    color: white;
    box-shadow: 0 4px 16px rgba(20, 184, 166, 0.3);
}

.nav-logo-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
}

.nav-logo-name .dot {
    color: var(--teal-400);
}

/* Nav Links */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}

.nav-menu a {
    padding: 8px 16px;
    border-radius: 980px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-400);
    letter-spacing: -0.01em;
    transition: all 0.3s var(--ease-out);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
}

.nav-menu a.nav-cta-btn {
    margin-left: 8px;
    padding: 8px 22px;
    background: rgba(20, 184, 166, 0.15);
    border: 1px solid rgba(20, 184, 166, 0.3);
    color: var(--teal-400);
    font-weight: 600;
}

.nav-menu a.nav-cta-btn:hover {
    background: rgba(20, 184, 166, 0.25);
    color: var(--teal-400);
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 6px;
    z-index: 1001;
}

.nav-toggle span {
    width: 20px;
    height: 1.5px;
    background: var(--white);
    border-radius: 4px;
    transition: all 0.3s var(--ease-out);
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4.5px, 4.5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4.5px, -4.5px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 0 100px;
    overflow: hidden;
}

/* Background image with cinematic overlay */
.hero-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.25) saturate(0.6) contrast(1.1);
    transform: scale(1.1);
    will-change: transform;
}

.hero-backdrop::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(0, 10, 20, 0.5) 0%,
            rgba(0, 10, 20, 0.3) 40%,
            rgba(0, 10, 20, 0.7) 70%,
            var(--bg-primary) 100%),
        radial-gradient(ellipse at 50% 0%, rgba(20, 184, 166, 0.08), transparent 60%);
}

/* Aurora light strip */
.hero-aurora {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 500px;
    background: linear-gradient(180deg,
            transparent,
            rgba(20, 184, 166, 0.03) 30%,
            rgba(6, 182, 212, 0.05) 50%,
            transparent 100%);
    pointer-events: none;
    z-index: 1;
    animation: aurora-pulse 8s ease-in-out infinite;
}

@keyframes aurora-pulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 32px;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px 8px 10px;
    border-radius: 980px;
    background: rgba(20, 184, 166, 0.08);
    border: 1px solid rgba(20, 184, 166, 0.2);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--teal-400);
    letter-spacing: 0.02em;
    margin-bottom: 40px;
    animation: hero-fade-in 1s var(--ease-out) 0.2s both;
}

.hero-chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal-400);
    animation: chip-pulse 2s ease-in-out infinite;
}

@keyframes chip-pulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.4);
    }

    50% {
        opacity: 0.7;
        box-shadow: 0 0 0 6px rgba(20, 184, 166, 0);
    }
}

.hero h1 {
    animation: hero-fade-in 1s var(--ease-out) 0.35s both;
}

.hero .subhead {
    max-width: 620px;
    margin: 0 auto 48px;
    animation: hero-fade-in 1s var(--ease-out) 0.5s both;
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    animation: hero-fade-in 1s var(--ease-out) 0.65s both;
}

@keyframes hero-fade-in {
    from {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Hero Text Carousel */
.hero-text-carousel {
    position: relative;
    height: 60px;
    margin-top: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: hero-fade-in 1s var(--ease-out) 0.85s both;
}

.carousel-text {
    position: absolute;
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 600;
    background: linear-gradient(135deg, var(--teal-400), var(--cyan-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s var(--ease-out);
    text-align: center;
    width: 100%;
}

.carousel-text.active {
    opacity: 1;
    transform: translateY(0);
}

.carousel-text.exit {
    opacity: 0;
    transform: translateY(-20px);
}

/* ============================================
   SECTION — ABOUT
   ============================================ */
.section {
    position: relative;
    z-index: 2;
    padding: var(--section-gap) 0;
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content {
    display: flex;
    flex-direction: column;
}

.about-body {
    font-size: 1.1rem;
    color: var(--gray-300);
    line-height: 1.8;
    margin-bottom: 40px;
    letter-spacing: -0.01em;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-feat {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 20px 24px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s var(--ease-out);
}

.about-feat:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(8px);
}

.about-feat-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.12), rgba(6, 182, 212, 0.08));
    border: 1px solid rgba(20, 184, 166, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal-400);
    font-size: 1.1rem;
}

.about-feat h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}

.about-feat p {
    font-size: 0.88rem;
    color: var(--gray-400);
    line-height: 1.5;
}

/* About image */
.about-visual {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
}

.about-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 3/4;
    border-radius: 32px;
}

.about-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 2;
    pointer-events: none;
}

.about-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 10, 20, 0.6) 100%);
    z-index: 1;
    pointer-events: none;
}

.about-floating-card {
    position: absolute;
    bottom: 32px;
    left: 24px;
    right: 24px;
    z-index: 3;
    padding: 24px;
    background: rgba(0, 10, 20, 0.6);
    backdrop-filter: blur(30px) saturate(1.3);
    -webkit-backdrop-filter: blur(30px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.about-floating-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.about-fc-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--teal-500), var(--cyan-500));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    box-shadow: 0 4px 24px rgba(20, 184, 166, 0.3);
}

.about-fc-text h4 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
}

.about-fc-text p {
    font-size: 0.82rem;
    color: var(--gray-400);
    margin-top: 2px;
}

/* ============================================
   SERVICES
   ============================================ */
.services-header {
    text-align: center;
    margin-bottom: 72px;
}

.services-header .subhead {
    max-width: 560px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    padding: 48px 28px 40px;
    text-align: center;
    cursor: default;
    position: relative;
}

.service-card>* {
    position: relative;
    z-index: 2;
}

.service-card-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 28px;
    border-radius: 22px;
    background: linear-gradient(135deg,
            rgba(20, 184, 166, 0.1),
            rgba(6, 182, 212, 0.06));
    border: 1px solid rgba(20, 184, 166, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--teal-400);
    transition: all 0.5s var(--ease-out);
}

.service-card:hover .service-card-icon {
    background: linear-gradient(135deg, var(--teal-500), var(--cyan-500));
    color: white;
    border-color: transparent;
    box-shadow:
        0 8px 32px rgba(20, 184, 166, 0.3),
        0 0 60px rgba(20, 184, 166, 0.1);
    transform: scale(1.12) translateY(-4px);
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.88rem;
    color: var(--gray-400);
    line-height: 1.65;
}

/* ============================================
   PROJECTS
   ============================================ */
.projects-header {
    text-align: center;
    margin-bottom: 72px;
}

.projects-header .subhead {
    max-width: 560px;
    margin: 0 auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.7s var(--ease-out);
    filter: brightness(0.85) saturate(0.9);
}

.project-card:hover img {
    transform: scale(1.1);
    filter: brightness(0.5) saturate(0.7);
}

.project-info {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
    background: linear-gradient(180deg,
            transparent 20%,
            rgba(0, 10, 20, 0.85) 100%);
    z-index: 2;
}

.project-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    padding: 4px 14px;
    border-radius: 980px;
    background: rgba(20, 184, 166, 0.15);
    border: 1px solid rgba(20, 184, 166, 0.25);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--teal-400);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
}

.project-info h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.project-info p {
    font-size: 0.85rem;
    color: var(--gray-300);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s var(--ease-out) 0.1s;
}

.project-card:hover .project-info p {
    opacity: 1;
    transform: translateY(0);
}

.project-card .project-link {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    opacity: 0;
    transform: translate(-10px, 10px) scale(0.8);
    transition: all 0.4s var(--ease-spring);
    z-index: 3;
}

.project-card:hover .project-link {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* ============================================
   DIFFERENTIALS
   ============================================ */
.diff-header {
    text-align: center;
    margin-bottom: 72px;
}

.diff-header .subhead {
    max-width: 560px;
    margin: 0 auto;
}

.diff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.diff-card {
    padding: 48px 32px;
    text-align: center;
    position: relative;
}

.diff-card>* {
    position: relative;
    z-index: 2;
}

/* Bottom accent line */
.diff-card .accent-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--teal-400), var(--cyan-400));
    border-radius: 2px;
    transition: width 0.5s var(--ease-out);
    z-index: 3;
}

.diff-card:hover .accent-line {
    width: 50%;
}

.diff-card-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 28px;
    border-radius: 24px;
    background: rgba(20, 184, 166, 0.06);
    border: 1px solid rgba(20, 184, 166, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--teal-400);
    transition: all 0.5s var(--ease-out);
}

.diff-card:hover .diff-card-icon {
    background: rgba(20, 184, 166, 0.12);
    border-color: rgba(20, 184, 166, 0.2);
    box-shadow: 0 8px 40px rgba(20, 184, 166, 0.1);
    transform: translateY(-6px) scale(1.05);
}

.diff-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.diff-card p {
    font-size: 0.88rem;
    color: var(--gray-400);
    line-height: 1.7;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
    position: relative;
    z-index: 2;
    padding: 0 0 var(--section-gap);
}

.cta-inner {
    padding: 80px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    background:
        linear-gradient(135deg,
            rgba(20, 184, 166, 0.08) 0%,
            rgba(6, 182, 212, 0.04) 50%,
            rgba(99, 102, 241, 0.06) 100%);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.cta-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(20, 184, 166, 0.06), transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(99, 102, 241, 0.05), transparent 50%);
    pointer-events: none;
}

.cta-inner>* {
    position: relative;
    z-index: 2;
}

.cta-inner .headline-lg {
    max-width: 700px;
    margin: 0 auto 16px;
}

.cta-inner .subhead {
    max-width: 540px;
    margin: 0 auto 36px;
}

/* ============================================
   CONVERSATIONAL CHAT UI
   ============================================ */
.chat-section-header {
    text-align: center;
    margin-bottom: 56px;
}

.chat-section-header .subhead {
    max-width: 540px;
    margin: 0 auto;
}

.chat-container {
    max-width: 680px;
    margin: 0 auto;
}

/* Chat Window */
.chat-window {
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 560px;
    max-height: 640px;
}

.chat-window:hover {
    transform: none;
}

/* Chat Header */
.chat-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 5;
}

.chat-header-avatar {
    position: relative;
}

.chat-header-status {
    position: absolute;
    bottom: 0;
    right: -1px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #22c55e;
    border: 2.5px solid var(--bg-primary);
    animation: status-pulse 2.5s ease-in-out infinite;
}

@keyframes status-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }

    50% {
        box-shadow: 0 0 0 5px rgba(34, 197, 94, 0);
    }
}

.chat-header-info h4 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.01em;
}

.chat-header-info span {
    font-size: 0.75rem;
    color: #22c55e;
    font-weight: 500;
}

.chat-header-actions {
    margin-left: auto;
}

.chat-restart-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--gray-400);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.chat-restart-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    transform: rotate(-180deg);
}

/* Chat Messages Area */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

/* Message Bubbles */
.chat-bubble {
    max-width: 85%;
    padding: 14px 18px;
    border-radius: 20px;
    font-size: 0.92rem;
    line-height: 1.6;
    letter-spacing: -0.01em;
    animation: bubble-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    position: relative;
}

@keyframes bubble-in {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.92);
        filter: blur(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Bot message */
.chat-bubble.bot {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--gray-200);
    border-bottom-left-radius: 6px;
}

/* User message */
.chat-bubble.user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--teal-500), var(--cyan-500));
    color: white;
    border-bottom-right-radius: 6px;
    box-shadow: 0 4px 20px rgba(20, 184, 166, 0.2);
}

/* Typing Indicator */
.chat-typing {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    border-bottom-left-radius: 6px;
    align-self: flex-start;
    animation: bubble-in 0.3s var(--ease-out) both;
}

.chat-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gray-400);
    animation: typing-dot 1.4s ease-in-out infinite;
}

.chat-typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.chat-typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-dot {

    0%,
    60%,
    100% {
        opacity: 0.3;
        transform: translateY(0);
    }

    30% {
        opacity: 1;
        transform: translateY(-5px);
    }
}

/* Option Buttons */
.chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-self: flex-end;
    max-width: 90%;
    justify-content: flex-end;
    animation: bubble-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.chat-option-btn {
    padding: 10px 20px;
    border-radius: 980px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--white);
    font-family: var(--font-text);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    letter-spacing: -0.01em;
    position: relative;
    overflow: hidden;
}

.chat-option-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.15), rgba(6, 182, 212, 0.1));
    opacity: 0;
    transition: opacity 0.3s;
}

.chat-option-btn:hover {
    border-color: rgba(20, 184, 166, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(20, 184, 166, 0.15);
}

.chat-option-btn:hover::before {
    opacity: 1;
}

.chat-option-btn span {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Summary Card */
.chat-summary {
    align-self: flex-start;
    max-width: 90%;
    padding: 20px 24px;
    border-radius: 20px;
    border-bottom-left-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: bubble-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.chat-summary h4 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-summary-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.chat-summary-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--gray-300);
}

.chat-summary-item i {
    color: var(--teal-400);
    font-size: 0.9rem;
    min-width: 18px;
}

.chat-summary-item strong {
    color: var(--white);
    font-weight: 600;
}

/* WhatsApp CTA */
.chat-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    border-radius: 14px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    font-family: var(--font-text);
    font-size: 0.92rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.4s var(--ease-out);
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.25);
    letter-spacing: -0.01em;
}

.chat-whatsapp-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.35);
}

.chat-whatsapp-btn i {
    font-size: 1.3rem;
}

/* Chat Input Area */
.chat-input-area {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.chat-input {
    flex: 1;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 980px;
    color: var(--white);
    font-family: var(--font-text);
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s var(--ease-out);
    letter-spacing: -0.01em;
}

.chat-input::placeholder {
    color: var(--gray-600);
}

.chat-input:focus {
    border-color: rgba(20, 184, 166, 0.4);
    background: rgba(20, 184, 166, 0.03);
}

.chat-send-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal-500), var(--cyan-500));
    border: none;
    color: white;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    box-shadow: 0 4px 16px rgba(20, 184, 166, 0.3);
}

.chat-send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(20, 184, 166, 0.4);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 72px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 56px;
}

.footer-brand-text {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-top: 20px;
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-size: 1.1rem;
    transition: all 0.3s var(--ease-out);
}

.footer-social a:hover {
    background: linear-gradient(135deg, var(--teal-500), var(--cyan-500));
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(20, 184, 166, 0.25);
}

.footer-col h5 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-col ul a {
    font-size: 0.88rem;
    color: var(--gray-500);
    transition: color 0.3s, transform 0.3s;
    display: inline-block;
}

.footer-col ul a:hover {
    color: var(--teal-400);
    transform: translateX(4px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: var(--gray-600);
    letter-spacing: -0.01em;
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    filter: blur(6px);
    transition:
        opacity 0.9s var(--ease-out),
        transform 0.9s var(--ease-out),
        filter 0.9s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.reveal-d1 {
    transition-delay: 0.08s;
}

.reveal-d2 {
    transition-delay: 0.16s;
}

.reveal-d3 {
    transition-delay: 0.24s;
}

.reveal-d4 {
    transition-delay: 0.32s;
}

.reveal-d5 {
    transition-delay: 0.40s;
}

.reveal-d6 {
    transition-delay: 0.48s;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-gap: 100px;
    }

    .navbar {
        top: 12px;
        width: calc(100% - 32px);
        padding: 12px 20px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: rgba(0, 10, 20, 0.97);
        backdrop-filter: blur(40px);
        -webkit-backdrop-filter: blur(40px);
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s var(--ease-out);
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-menu a {
        font-size: 1.4rem;
        font-weight: 600;
        padding: 14px 28px;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 120px 0 80px;
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero-text-carousel {
        margin-top: 50px;
        height: 70px;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-visual {
        order: -1;
    }

    .about-visual img {
        aspect-ratio: 16/9;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .diff-grid {
        grid-template-columns: 1fr;
    }

    .chat-window {
        min-height: 480px;
        max-height: 560px;
        border-radius: 20px;
    }

    .chat-messages {
        padding: 16px;
    }

    .cta-inner {
        padding: 56px 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-text-carousel {
        height: 80px;
    }
}