/* ============================================
   NEXORA — Landing Page 2026
   Modern dark UI · Glassmorphism · Bento grid
   ============================================ */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

/* VARIÁVEIS */
:root {
    /* Cores base */
    --bg-0: #060609;
    --bg-1: #0A0A0F;
    --bg-2: #11111A;
    --bg-3: #16161F;
    --surface: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.16);

    /* Texto */
    --text: #F5F5FA;
    --text-muted: #9CA0B0;
    --text-dim: #5C6172;

    /* Acentos */
    --purple: #7C5CFF;
    --cyan: #00E5FF;
    --pink: #FF5CAA;
    --yellow: #FFB547;
    --green: #4ADE80;

    /* Gradientes */
    --grad-primary: linear-gradient(135deg, #7C5CFF 0%, #00E5FF 100%);
    --grad-warm: linear-gradient(135deg, #FF5CAA 0%, #FFB547 100%);
    --grad-cool: linear-gradient(135deg, #7C5CFF 0%, #FF5CAA 100%);

    /* Tipografia */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Layout */
    --container: 1280px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

/* BASE */
body {
    font-family: var(--font-sans);
    background: var(--bg-1);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 768px) {
    body { cursor: auto; }
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: none; border: none; background: none; color: inherit; }
@media (max-width: 768px) { button { cursor: pointer; } }

::selection { background: var(--purple); color: white; }

/* SCROLLBAR */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--purple), var(--cyan));
    border-radius: 10px;
    border: 2px solid var(--bg-0);
}

/* CONTAINER */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* ============================================
   CURSOR PERSONALIZADO
   ============================================ */
.cursor, .cursor-trail {
    position: fixed;
    top: 0; left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s, border 0.2s;
}
.cursor {
    width: 8px; height: 8px;
    background: var(--purple);
    mix-blend-mode: difference;
}
.cursor-trail {
    width: 36px; height: 36px;
    border: 1.5px solid rgba(124, 92, 255, 0.5);
    transition: width 0.3s, height 0.3s, border-color 0.3s, transform 0.15s ease-out;
}
.cursor.hover { width: 0; height: 0; }
.cursor-trail.hover {
    width: 64px; height: 64px;
    border-color: var(--cyan);
    background: rgba(0, 229, 255, 0.08);
}
@media (max-width: 768px) {
    .cursor, .cursor-trail { display: none; }
}

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-0);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s, visibility 0.6s;
}
.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}
.preloader-content {
    text-align: center;
}
.preloader-logo {
    width: 64px; height: 64px;
    margin: 0 auto 20px;
    animation: pulse 1.4s ease-in-out infinite;
}
.preloader-text {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.3em;
    margin-bottom: 24px;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.preloader-bar {
    width: 200px;
    height: 2px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}
.preloader-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--grad-primary);
    animation: loadBar 1.6s ease-in-out forwards;
}
@keyframes loadBar {
    0% { width: 0%; }
    100% { width: 100%; }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.85; }
}

/* ============================================
   BACKGROUNDS
   ============================================ */
.bg-mesh, .bg-grid, .bg-noise {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.bg-mesh {
    background:
        radial-gradient(ellipse 80% 50% at 20% 0%, rgba(124, 92, 255, 0.18), transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 30%, rgba(0, 229, 255, 0.12), transparent 60%),
        radial-gradient(ellipse 50% 40% at 50% 90%, rgba(255, 92, 170, 0.1), transparent 60%);
    animation: meshShift 20s ease-in-out infinite;
}
@keyframes meshShift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(2%, -1%) scale(1.05); }
    66% { transform: translate(-1%, 2%) scale(0.98); }
}

.bg-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 100% 80% at 50% 0%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 0%, black 30%, transparent 80%);
}

.bg-noise {
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: var(--container);
    z-index: 1000;
    transition: top 0.3s;
}
.navbar.scrolled {
    top: 8px;
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: 100px;
    transition: all 0.3s;
}
.navbar.scrolled .nav-container {
    background: rgba(10, 10, 15, 0.85);
    border-color: var(--border-hover);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 19px;
    letter-spacing: -0.02em;
}
.logo-svg {
    width: 30px; height: 30px;
    filter: drop-shadow(0 0 12px rgba(124, 92, 255, 0.5));
}

.nav-links {
    display: flex;
    gap: 4px;
    list-style: none;
}
.nav-link {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: 100px;
    transition: all 0.25s;
    position: relative;
}
.nav-link:hover {
    color: var(--text);
    background: var(--surface);
}
.nav-link.active {
    color: var(--text);
    background: var(--surface);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* BOTÕES */
.btn-primary, .btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 100px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}
.btn-primary {
    background: var(--grad-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(124, 92, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #00E5FF, #7C5CFF);
    opacity: 0;
    transition: opacity 0.3s;
}
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124, 92, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-primary:hover::before { opacity: 1; }

.btn-ghost {
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
}
.btn-ghost:hover {
    background: var(--surface-hover);
    border-color: var(--border-hover);
}

.btn-lg {
    padding: 14px 26px;
    font-size: 15px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 140px 0 100px;
    overflow: hidden;
}

.hero-bg-orbs { position: absolute; inset: 0; z-index: 1; }
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: orbFloat 15s ease-in-out infinite;
}
.orb-1 {
    width: 500px; height: 500px;
    background: var(--purple);
    top: -100px; left: -100px;
}
.orb-2 {
    width: 400px; height: 400px;
    background: var(--cyan);
    bottom: -50px; right: -50px;
    animation-delay: -5s;
}
.orb-3 {
    width: 300px; height: 300px;
    background: var(--pink);
    top: 40%; right: 30%;
    animation-delay: -10s;
    opacity: 0.3;
}
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.1); }
    66% { transform: translate(-30px, 40px) scale(0.95); }
}

.hero-container { text-align: center; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
}
.badge-dot {
    width: 7px; height: 7px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--green);
    animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.badge-arrow { color: var(--text-dim); }

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 28px;
}

.gradient-text {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 80px;
}

/* Floating cards */
.hero-cards {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    height: 120px;
}
.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: rgba(20, 20, 30, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: floatCard 6s ease-in-out infinite;
}
.float-card-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--c) 20%, transparent);
    color: var(--c);
    box-shadow: 0 0 20px color-mix(in srgb, var(--c) 40%, transparent);
}
.float-card-icon svg { width: 22px; height: 22px; }
.float-card-value {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}
.float-card-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}
.card-1 { top: 0; left: 0; animation-delay: 0s; }
.card-2 { top: 20px; left: 50%; transform: translateX(-50%); animation-delay: -2s; }
.card-3 { top: 0; right: 0; animation-delay: -4s; }

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.card-2 {
    animation-name: floatCardCenter;
}
@keyframes floatCardCenter {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, -12px); }
}

@media (max-width: 900px) {
    .hero-cards { display: none; }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-dim);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: fadeInUp 1s ease 1s backwards;
}
.scroll-mouse {
    width: 22px; height: 36px;
    border: 2px solid var(--text-dim);
    border-radius: 12px;
    position: relative;
}
.scroll-wheel {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px; height: 8px;
    background: var(--text-dim);
    border-radius: 2px;
    animation: scrollWheel 1.6s ease-in-out infinite;
}
@keyframes scrollWheel {
    0% { opacity: 0; transform: translate(-50%, 0); }
    30% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, 12px); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translate(-50%, 20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee-section {
    padding: 50px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-0);
    position: relative;
    z-index: 2;
}
.marquee-label {
    text-align: center;
    font-size: 13px;
    color: var(--text-dim);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 24px;
}
.marquee {
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
    display: flex;
    align-items: center;
    gap: 32px;
    animation: marqueeScroll 40s linear infinite;
    white-space: nowrap;
    width: max-content;
}
.marquee-track span {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s;
}
.marquee-track span:hover { color: var(--text); }
.marquee-track .dot { color: var(--purple); }
@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 120px 0;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 80px;
}
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--cyan);
    margin-bottom: 20px;
}
.eyebrow-line {
    width: 30px; height: 1px;
    background: var(--cyan);
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================
   BENTO GRID
   ============================================ */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 280px;
    gap: 20px;
}
.bento-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}
.bento-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--c, var(--purple)) 15%, transparent), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.bento-card:hover {
    border-color: var(--border-hover);
    background: var(--surface-hover);
    transform: translateY(-4px);
}
.bento-card:hover::before { opacity: 1; }
.bento-card:hover .bento-glow { opacity: 1; }

.bento-glow {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, color-mix(in srgb, var(--c, var(--purple)) 20%, transparent), transparent 50%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}
.bento-wide {
    grid-column: span 2;
}

.bento-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.bento-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--c) 18%, transparent);
    color: var(--c);
    border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
    margin-bottom: 24px;
    box-shadow: 0 0 30px color-mix(in srgb, var(--c) 25%, transparent);
    transition: transform 0.4s;
}
.bento-card:hover .bento-icon { transform: scale(1.1) rotate(-5deg); }
.bento-icon svg { width: 26px; height: 26px; }

.bento-tag {
    position: absolute;
    top: 0; right: 0;
    padding: 5px 12px;
    background: var(--grad-warm);
    color: white;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 100px;
}

.bento-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}
.bento-large .bento-title { font-size: 2rem; }

.bento-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: auto;
}

.bento-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
}
.tag {
    padding: 5px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 12px;
    color: var(--text-muted);
}

.bento-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    transition: gap 0.3s;
}
.bento-link:hover { gap: 12px; }
.bento-link svg { color: var(--c, var(--purple)); }

.bento-preview {
    margin: 20px 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.preview-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 100px;
}
.preview-chart .bar {
    flex: 1;
    background: var(--grad-primary);
    border-radius: 4px 4px 0 0;
    animation: barGrow 2s ease-out infinite alternate;
    transform-origin: bottom;
}
.preview-chart .bar:nth-child(2) { animation-delay: 0.1s; }
.preview-chart .bar:nth-child(3) { animation-delay: 0.2s; }
.preview-chart .bar:nth-child(4) { animation-delay: 0.3s; }
.preview-chart .bar:nth-child(5) { animation-delay: 0.4s; }
.preview-chart .bar:nth-child(6) { animation-delay: 0.5s; }
.preview-chart .bar:nth-child(7) { animation-delay: 0.6s; }
@keyframes barGrow {
    from { transform: scaleY(0.7); }
    to { transform: scaleY(1); }
}

@media (max-width: 900px) {
    .bento-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
    .bento-large, .bento-wide { grid-column: span 1; grid-row: span 1; }
}

/* ============================================
   FEATURES
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.feature-card {
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.feature-card::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 1px;
    background: var(--grad-primary);
    transition: left 0.5s;
}
.feature-card:hover {
    background: var(--surface-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
}
.feature-card:hover::after { left: 0; }

.feature-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--purple);
    margin-bottom: 20px;
}
.feature-icon svg { width: 22px; height: 22px; }

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
}
.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

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

/* ============================================
   MÉTRICAS
   ============================================ */
.metrics {
    background: var(--bg-0);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.metric-card {
    text-align: center;
    padding: 40px 20px;
}
.metric-value {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}
.metric-label {
    color: var(--text-muted);
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 480px) {
    .metrics-grid { grid-template-columns: 1fr; }
}

/* ============================================
   DEPOIMENTOS
   ============================================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.testimonial-card {
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}
.testimonial-card:hover {
    background: var(--surface-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
}
.testimonial-stars {
    color: var(--yellow);
    font-size: 16px;
    letter-spacing: 2px;
    margin-bottom: 16px;
}
.testimonial-text {
    color: var(--text);
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: 24px;
    flex-grow: 1;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.author-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--c) 20%, transparent);
    color: var(--c);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 14px;
    border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
}
.author-name {
    font-weight: 600;
    font-size: 0.95rem;
}
.author-role {
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

/* ============================================
   CTA
   ============================================ */
.cta-box {
    position: relative;
    padding: 80px 40px;
    background:
        linear-gradient(135deg, rgba(124, 92, 255, 0.12), rgba(0, 229, 255, 0.08)),
        var(--bg-2);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-xl);
    text-align: center;
    overflow: hidden;
}
.cta-glow {
    position: absolute;
    top: -200px; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(124, 92, 255, 0.3), transparent 60%);
    pointer-events: none;
}
.cta-content { position: relative; z-index: 1; }
.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}
.cta-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.6;
}
.cta-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto 28px;
}
.cta-input {
    flex: 1;
    padding: 14px 20px;
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border 0.25s, box-shadow 0.25s;
}
.cta-input::placeholder { color: var(--text-dim); }
.cta-input:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.15);
}
.cta-trust {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.cta-trust span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.cta-trust svg { color: var(--green); }

@media (max-width: 600px) {
    .cta-form { flex-direction: column; }
    .cta-box { padding: 60px 24px; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-0);
    border-top: 1px solid var(--border);
    padding: 80px 0 0;
    position: relative;
    z-index: 2;
}
.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 3fr;
    gap: 80px;
    padding-bottom: 60px;
}
.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 20px 0;
    max-width: 320px;
}
.footer-social {
    display: flex;
    gap: 12px;
}
.footer-social a {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    color: var(--text-muted);
    transition: all 0.25s;
}
.footer-social a:hover {
    color: var(--text);
    background: var(--surface-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}
.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text);
    margin-bottom: 18px;
}
.footer-col a {
    display: block;
    color: var(--text-muted);
    font-size: 0.92rem;
    padding: 5px 0;
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 24px 0;
}
.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-dim);
}

@media (max-width: 900px) {
    .footer-container { grid-template-columns: 1fr; gap: 40px; }
    .footer-links { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .footer-bottom-content { flex-direction: column; gap: 10px; text-align: center; }
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px; height: 48px;
    background: var(--grad-primary);
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: white;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(124, 92, 255, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(124, 92, 255, 0.6); }

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--delay, 0ms);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal="up"] { transform: translateY(30px); }
[data-reveal="up"].visible { transform: translateY(0); }

/* ============================================
   RESPONSIVE NAV
   ============================================ */
@media (max-width: 900px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: 16px;
        right: 16px;
        flex-direction: column;
        gap: 0;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
        border: 1px solid var(--border);
        border-radius: 20px;
        padding: 12px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s;
    }
    .nav-links.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .nav-link {
        padding: 14px 18px;
        border-radius: 12px;
    }
    .nav-toggle { display: flex; }
    .nav-actions .btn-ghost { display: none; }
}

@media (max-width: 600px) {
    .section { padding: 80px 0; }
    .section-header { margin-bottom: 50px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn-primary,
    .hero-actions .btn-ghost { width: 100%; max-width: 280px; justify-content: center; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
