/* =========================================
   VARIABLES & DESIGN TOKENS
   ========================================= */
:root {
    --bg: #09090B;
    --surface: #111113;
    --surface-hover: #18181B;
    --border: #27272A;
    --text-primary: #FAFAFA;
    --text-secondary: #A1A1AA;
    --text-muted: #71717A;
    --accent: #FFFFFF;

    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

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

::selection {
    background: rgba(255, 255, 255, 0.2);
    color: var(--accent);
}

.feature-card:hover h3 {
    color: var(--accent);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-list li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.feature-list li::before {
    content: '✓';
    color: var(--accent);
    font-weight: bold;
    font-size: 1rem;
    margin-top: 2px;
}

/* =========================================
   UTILITIES & LAYOUT
   ========================================= */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .section {
        padding: 6rem 0;
    }
}

.section.alternate {
    background-color: #0D0D0F;
}

.section.about {
    background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1.5px, transparent 1.5px);
    background-size: 32px 32px;
    background-position: 0 0;
}

.section-header {
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.word-cutout {
    display: inline-block;
    padding: 0.1em 0.3em;
    margin: 0 0.1em;
    border: 1.5px dashed rgba(255, 255, 255, 0.4);
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    transform: rotate(-3deg);
    line-height: 1;
    color: var(--text-primary);
}

.pen-underline {
    position: relative;
    display: inline-block;
    white-space: normal;
}

.pen-underline::after {
    content: '';
    position: absolute;
    bottom: -0.15em;
    left: -0.1em;
    right: -0.1em;
    height: 0.4em;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath d='M2,15 Q30,5 60,12 T98,5' stroke='%23FFFFFF' stroke-width='4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    transform: rotate(-1deg);
}

.highlight-marker {
    position: relative;
    display: inline-block;
    white-space: normal;
    z-index: 1;
    padding: 0 4px;
    color: var(--bg);
}

.highlight-marker::after {
    content: '';
    position: absolute;
    bottom: -2%;
    left: 0;
    right: 0;
    height: 85%;
    background-color: var(--accent);
    z-index: -1;
    transform: rotate(-1.5deg);
    border-radius: 3px;
    opacity: 1;
}

.gradient-text {
    background: linear-gradient(135deg, #FFFFFF 0%, var(--bg) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    white-space: nowrap;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--bg);
}

.btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* =========================================
   TOP ALERT
   ========================================= */
.top-alert {
    background: linear-gradient(90deg, #ea580c, #f97316, #ea580c);
    background-size: 200% auto;
    color: #ffffff;
    text-align: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    animation: gradientShift 3s linear infinite;
}

.top-alert strong {
    font-weight: 700;
}

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

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

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(9, 9, 11, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform var(--transition-base), background-color var(--transition-base);
}

.header.scrolled {
    background-color: rgba(9, 9, 11, 0.9);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.nav-desktop {
    display: none;
    align-items: center;
    gap: 2rem;
}

.nav-desktop a {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

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

.header-actions {
    display: none;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 992px) {

    .nav-desktop,
    .header-actions {
        display: flex;
    }

    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-btn {
    color: var(--text-primary);
    padding: 0.25rem;
}

/* Mobile Nav */
.mobile-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 0;
    overflow: hidden;
    background-color: var(--bg);
    border-bottom: 1px solid var(--border);
    transition: height var(--transition-base);
    z-index: 99;
}

.mobile-nav.is-open {
    height: calc(100vh - 4rem);
    overflow-y: auto;
}

.mobile-nav-inner {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-link {
    font-size: 1.125rem;
    font-weight: 500;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    padding: 8rem 0 4rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

@media (min-width: 992px) {
    .hero {
        padding: 10rem 0 6rem;
    }
}

.floating-logos {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    /* Below content */
}

.float-logo {
    position: absolute;
    opacity: 0.15;
    filter: blur(2px) drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
    animation: float-around 15s infinite linear;
    transition: all 0.3s ease;
}

.float-logo:hover {
    opacity: 0.6;
    filter: blur(0);
}

/* Mobile positions (all 7 visible, distributed to avoid text) */
.float-1 {
    width: 60px;
    top: 8%;
    left: 12%;
    animation-duration: 25s;
    animation-delay: 0s;
    transform: rotate(15deg);
}

.float-2 {
    width: 40px;
    top: 12%;
    right: 15%;
    animation-duration: 30s;
    animation-delay: -5s;
    transform: rotate(-20deg) scale(0.8);
}

.float-3 {
    width: 80px;
    top: 30%;
    left: 5%;
    animation-duration: 20s;
    animation-delay: -10s;
    filter: blur(3px);
    opacity: 0.1;
}

.float-4 {
    width: 50px;
    top: 45%;
    right: 5%;
    animation-duration: 28s;
    animation-delay: -15s;
    transform: rotate(45deg);
}

.float-5 {
    width: 70px;
    top: 65%;
    left: 15%;
    animation-duration: 35s;
    animation-delay: -7s;
    filter: blur(1.5px);
    opacity: 0.12;
    transform: rotate(-10deg);
}

.float-6 {
    width: 45px;
    bottom: 25%;
    right: 20%;
    animation-duration: 22s;
    animation-delay: -2s;
    transform: rotate(-10deg);
}

.float-7 {
    width: 90px;
    bottom: 10%;
    left: 30%;
    animation-duration: 40s;
    animation-delay: -12s;
    filter: blur(5px);
    opacity: 0.08;
}

@media (min-width: 768px) {
    .float-1 {
        top: 10%;
        left: 10%;
    }

    .float-2 {
        top: 20%;
        right: 15%;
    }

    .float-3 {
        top: 60%;
        left: 5%;
        filter: blur(4px);
    }

    .float-4 {
        bottom: 20%;
        right: 10%;
    }

    .float-5 {
        top: 30%;
        left: 40%;
        filter: blur(1px);
    }

    .float-6 {
        top: auto;
        bottom: 15%;
        left: 25%;
        right: auto;
    }

    .float-7 {
        top: 15%;
        right: 35%;
    }
}

@keyframes float-around {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    33% {
        transform: translateY(-30px) rotate(10deg);
    }

    66% {
        transform: translateY(20px) rotate(-5deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

.hero-glow {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 50vh;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px #22c55e;
    animation: blink-green 1.5s ease-in-out infinite;
}

@keyframes blink-green {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* =========================================
   STATS MARQUEE SECTION
   ========================================= */
.marquee-section {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.8);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.4));
    box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.03), inset 0 -4px 10px rgba(0, 0, 0, 0.8), 0 20px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.marquee-container {
    display: flex;
    white-space: nowrap;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    gap: 4rem;
    padding-right: 4rem;
    animation: scroll-marquee 20s linear infinite;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.marquee-item .stat-number {
    font-size: 2.5rem;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-weight: 500;
    line-height: 1;
    margin: 0;
    background: linear-gradient(135deg, #FFFFFF 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.marquee-item .stat-label {
    font-size: 0.875rem;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: lowercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    line-height: 1.2;
}

@keyframes scroll-marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (min-width: 1200px) {
    .hero-title {
        font-size: 4rem;
    }
}

.text-glow {
    color: var(--accent);
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-inline: auto;
}

/* HERO MOCKUP VISUAL */
.hero-visual {
    position: relative;
    perspective: 1000px;
}

.mockup-window {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform var(--transition-slow);
    animation: float 6s ease-in-out infinite;
}

.hero-visual:hover .mockup-window {
    transform: rotateY(0deg) rotateX(0deg);
}

@keyframes float {
    0% {
        transform: translateY(0px) rotateY(-5deg) rotateX(5deg);
    }

    50% {
        transform: translateY(-10px) rotateY(-5deg) rotateX(5deg);
    }

    100% {
        transform: translateY(0px) rotateY(-5deg) rotateX(5deg);
    }
}

.mockup-header {
    background-color: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mockup-dots {
    display: flex;
    gap: 0.375rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.close {
    background-color: #ff5f56;
}

.dot.minimize {
    background-color: #ffbd2e;
}

.dot.maximize {
    background-color: #27c93f;
}

.mockup-title {
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    padding: 0.25rem 1rem;
    border-radius: var(--radius-sm);
    flex-grow: 1;
    text-align: center;
}

.mockup-body {
    display: flex;
    height: 350px;
}

.mockup-sidebar {
    width: 80px;
    border-right: 1px solid var(--border);
    padding: 1rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.skeleton-logo {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background-color: var(--text-muted);
    margin: 0 auto 1rem;
}

.skeleton-nav {
    height: 20px;
    border-radius: 4px;
    background-color: var(--border);
    opacity: 0.5;
}

.skeleton-nav.active {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
}

.skeleton-nav.mt-auto {
    margin-top: auto;
}

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

.mockup-topbar {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skeleton-search {
    width: 40%;
    height: 20px;
    background-color: var(--border);
    border-radius: 4px;
    opacity: 0.5;
}

.skeleton-avatar {
    width: 24px;
    height: 24px;
    background-color: var(--border);
    border-radius: 50%;
}

.mockup-content {
    padding: 1.5rem;
    flex: 1;
    background: var(--bg);
}

.skeleton-hero-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.skeleton-line-title {
    height: 16px;
    width: 30%;
    background-color: var(--text-secondary);
    border-radius: 4px;
    margin-bottom: 1rem;
}

.skeleton-line {
    height: 10px;
    background-color: var(--border);
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.skeleton-line.short {
    width: 60%;
}

.mt-sm {
    margin-top: 1rem;
}

.mockup-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.skeleton-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.skeleton-icon {
    width: 20px;
    height: 20px;
    background-color: var(--text-muted);
    border-radius: 4px;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}


/* =========================================
   FEATURES (O QUE VOCÊ ENCONTRARÁ)
   ========================================= */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.feature-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    background-color: var(--surface-hover);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

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

.feature-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* =========================================
   TOOLS MARQUEE
   ========================================= */
.tools {
    overflow: hidden;
    padding-bottom: 8rem;
}

.tools-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.25rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

@media (min-width: 768px) {
    .tools-grid {
        gap: 2rem 4rem;
    }
}

.tool-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    opacity: 0.5;
    transition: all var(--transition-fast);
    filter: grayscale(100%);
    cursor: default;
}

@media (min-width: 768px) {
    .tool-item {
        gap: 0.75rem;
        font-size: 1.125rem;
    }
}

.tool-item img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: all var(--transition-fast);
}

@media (min-width: 768px) {
    .tool-item img {
        width: 28px;
        height: 28px;
    }
}

.tool-item:hover {
    opacity: 1;
    color: var(--text-primary);
    filter: grayscale(0%);
    transform: translateY(-2px);
}

.tool-item:hover img {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
}

/* =========================================
   COMMUNITY
   ========================================= */
.community-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 992px) {
    .community-wrapper {
        grid-template-columns: 1fr 1fr;
    }
}

.badge-sub {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 1rem;
}

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

.community-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.list-icon {
    margin-top: 0.25rem;
    color: var(--text-secondary);
}

.community-visual {
    position: relative;
}

.chat-image-wrapper {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.chat-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.95;
    transition: transform var(--transition-base), opacity var(--transition-base);
}

.chat-image-wrapper:hover img {
    opacity: 1;
    transform: scale(1.02);
}

/* =========================================
   PROJECTS
   ========================================= */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.project-card {
    background-color: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition-base);
}

.project-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
}

.project-content h3 {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.project-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* =========================================
   DIFFERENTIALS & TIMELINE
   ========================================= */
.differentials-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

@media (min-width: 992px) {
    .differentials-layout {
        grid-template-columns: 1fr 1fr;
    }
}

.diff-items {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.diff-item h4 {
    font-size: 1.125rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.diff-icon {
    color: var(--accent);
    flex-shrink: 0;
}

.diff-item p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.timeline {
    position: relative;
    padding-left: 1.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 4px;
    height: 100%;
    width: 1px;
    background-color: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    top: 6px;
    left: -1.5rem;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: var(--accent);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.timeline-content h4 {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* =========================================
   FAQ ACCORDION
   ========================================= */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background-color: var(--surface);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.125rem;
    font-weight: 500;
    transition: background-color var(--transition-fast);
}

.faq-question:hover {
    background-color: var(--surface-hover);
}

.faq-icon {
    transition: transform var(--transition-base);
    color: var(--text-secondary);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--text-primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.faq-answer-inner {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

/* =========================================
   FINAL CTA
   ========================================= */
.cta-section {
    padding: 8rem 0;
    position: relative;
    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: 40px 40px;
    background-position: center center;
}

.cta-box {
    position: relative;
    background-color: var(--surface);
    border: 1px solid transparent; /* Replaced by animated border */
    border-radius: var(--radius-xl);
    padding: 4rem 2rem;
    text-align: center;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.cta-box::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px; /* thickness of the border */
    background: conic-gradient(from var(--border-angle), transparent 50%, rgba(255, 255, 255, 0.8) 100%);
    animation: spin-border 6s linear infinite;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 0;
}

.cta-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.cta-title {
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .cta-title {
        font-size: 3rem;
    }
}

.cta-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    padding: 4rem 0 2rem;
    background-color: var(--bg);
}

.footer-top {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .footer-top {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-brand {
    max-width: 300px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 1rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
}

.footer-col h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* =========================================
   PRICING SECTION
   ========================================= */
.pricing {
    padding: 6rem 0;
}

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

@keyframes spin-border {
    to {
        --border-angle: 360deg;
    }
}

.pricing-card {
    background-color: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid transparent;
    border-radius: var(--radius-xl);
    padding: 2rem;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.pricing-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from var(--border-angle), rgba(255, 255, 255, 0.05) 70%, var(--accent) 100%);
    animation: spin-border 8s linear infinite;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

@media (min-width: 768px) {
    .pricing-card {
        padding: 3rem;
    }
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent);
    color: var(--bg);
    padding: 0.25rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    width: max-content;
    white-space: nowrap;
    z-index: 10;
}

.pricing-header {
    text-align: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.pricing-header h3 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.price-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.price-old {
    text-decoration: line-through;
    color: var(--text-secondary);
    font-size: 1rem;
}

.price-current {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    line-height: 1;
}

.price-current .currency {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    margin-right: 0.25rem;
}

.price-current .value {
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 0.8;
}

.price-current .period {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    margin-left: 0.25rem;
}

.pricing-desc {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.check-icon {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.pricing-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================
   ANIMATIONS (Intersection Observer)
   ========================================= */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 100ms;
}

.delay-2 {
    transition-delay: 200ms;
}

.delay-3 {
    transition-delay: 300ms;
}

/* =========================================
   WHATSAPP BUTTON
   ========================================= */
.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: transform var(--transition-fast);
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    color: white;
}

.whatsapp-btn svg {
    width: 35px;
    height: 35px;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* =========================================
   MOUSE GLOW EFFECT & ANIMATED BORDER
   ========================================= */


.feature-card,
.project-card {
    position: relative;
    overflow: hidden;
}

.feature-card>*,
.project-card>* {
    position: relative;
    z-index: 1;
}



/* Mouse Inner Glow */
.feature-card::after,
.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(400px circle at var(--mouse-x, 0) var(--mouse-y, 0),
            rgba(255, 255, 255, 0.08),
            transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 0;
}

.feature-card:hover::after,
.project-card:hover::after {
    opacity: 1;
}