:root {
    --bg: #fff;
    --fg: #000;
    --muted: rgba(0, 0, 0, 0.55);
    --line: rgba(0, 0, 0, 0.18);
    --font-display: "Oswald", system-ui, sans-serif;
    --font-sans: "Manrope", system-ui, sans-serif;
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body.dark {
    --bg: #000;
    --fg: #fff;
    --muted: rgba(255, 255, 255, 0.6);
    --line: rgba(255, 255, 255, 0.22);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-sans);
    font-size: 20px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background 0.4s linear, color 0.4s linear;
}

@media (hover: hover) and (pointer: fine) {
    body, a { cursor: none; }
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }

/* Canvas do elemento fluido */
#fluid {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Topo */
.topnav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 28px 5vw 44px;
    background: linear-gradient(to bottom, var(--bg) 45%, transparent);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.menu { display: flex; gap: 32px; font-size: 14px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.menu a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; padding-bottom: 4px; transition: background-size 0.3s; }
.menu a:hover { background-size: 100% 2px; }
.topnav-logo img {
    display: block;
    width: 150px;
    filter: brightness(0);
    transition: filter 0.4s linear;
}
body.dark .topnav-logo img { filter: brightness(0) invert(1); }

/* Estrutura */
.screen { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 120px 0; }
.wrap { width: 100%; padding: 0 5vw; }
.narrow { width: 50%; min-width: 320px; margin: 0 auto; padding: 0; }

.label {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 40px;
}

.hero h1, .cta {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: lowercase;
    font-size: clamp(48px, 8.5vw, 128px);
    line-height: 1;
    letter-spacing: -0.01em;
}
.hero h1 .line, .cta .line { display: block; white-space: nowrap; }

.lead { font-size: clamp(22px, 2.6vw, 40px); line-height: 1.3; font-weight: 500; }
.lead + .lead { margin-top: 4vh; }

/* Letras e palavras animadas */
.split .w, .split .c {
    display: inline-block;
    opacity: 0;
    transform: translateY(15px);
    transition: transform 0.7s var(--ease), opacity 0.7s var(--ease);
}
.split.in .w, .split.in .c { opacity: 1; transform: none; }
.split .w { white-space: pre; }

.reveal { opacity: 0; transform: translateY(15px); transition: transform 0.6s var(--ease) 0.3s, opacity 0.6s var(--ease) 0.3s; }
.reveal.in { opacity: 1; transform: none; }

/* Hero: indicador de scroll */
.scroll-hint { position: absolute; left: 5vw; bottom: 40px; display: flex; align-items: center; gap: 14px; }
.scroll-hint em { font-style: normal; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.scroll-hint i { position: relative; display: block; width: 2px; height: 56px; background: var(--line); overflow: hidden; }
.scroll-hint span { position: absolute; inset: 0; background: var(--fg); transform: translateY(-100%); animation: lineY 2s ease-in-out infinite; }
@keyframes lineY { 0% { transform: translateY(-100%); } 80%, 100% { transform: translateY(100%); } }

/* Empresas */
.company-list li {
    display: grid;
    grid-template-columns: 1.1fr 1.6fr auto;
    gap: 16px;
    align-items: baseline;
    padding: 20px 0;
    border-top: 1px solid var(--line);
    transition: padding-left 0.3s var(--ease);
}
.company-list li:last-child { border-bottom: 1px solid var(--line); }
.company-list li:hover { padding-left: 12px; }
.company-list strong { font-family: var(--font-display); font-weight: 600; font-size: 28px; }
.company-list span { font-size: 16px; color: var(--muted); }
.company-list em { font-style: normal; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }

/* Números */
.stats-lead { font-size: clamp(22px, 2.4vw, 36px); line-height: 1.3; margin-bottom: 8vh; font-weight: 500; }
.stat-list { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 40px; }
.stat-list b {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(40px, 4.6vw, 72px);
    line-height: 1;
    margin-bottom: 12px;
    white-space: nowrap;
}
.stat-list span { font-size: 16px; color: var(--muted); display: block; }

/* Competências */
.skills .wrap { padding: 0 5vw; }
.skills-grid { display: flex; gap: 7%; width: 100%; max-width: 1400px; margin: 0 auto; }
.skills-grid .label { width: 24%; flex: none; margin-top: 12px; }
.skills-cols { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 56px 8%; }
.skill h3 { font-weight: 500; font-size: 28px; margin-bottom: 16px; white-space: nowrap; font-family: var(--font-sans); }
.skill li {
    font-size: 17px;
    line-height: 1.8;
    opacity: 0;
    transform: translateX(-15px);
    transition: transform 0.7s var(--ease), opacity 0.7s var(--ease);
}
.skills.in-view .skill li { opacity: 1; transform: none; }

/* Agora */
.now-list { margin-top: 6vh; font-size: 17px; }
.now-list li { padding: 14px 0; border-top: 1px solid var(--line); }
.now-list li:last-child { border-bottom: 1px solid var(--line); }

/* Contato */
.cta { position: relative; display: inline-block; padding-bottom: 12px; }
.cta::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    height: 3px; width: 0;
    background: var(--fg);
    transition: width 0.5s ease-out;
}
.cta:hover::after { width: 100%; }
.contact { flex-direction: column; justify-content: center; }
.contact-note { margin-top: 32px; font-size: 18px; color: var(--muted); }
.footer-box { display: flex; justify-content: space-between; gap: 32px; margin-top: 12vh; font-size: 16px; line-height: 1.9; }
.footer-box address { font-style: normal; }
.footer-box a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.3s; }
.footer-box a:hover { background-size: 100% 1px; }

/* Botão flutuante */
.fab {
    position: fixed;
    right: 4vw;
    bottom: 4vh;
    width: 120px;
    height: 120px;
    z-index: 60;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--fg);
}
.fab svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 12s linear infinite; transition: transform 0.3s, opacity 0.3s; }
.fab text { font-family: var(--font-sans); font-size: 9px; font-weight: 700; text-transform: uppercase; fill: currentColor; }
.fab-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--fg); transition: transform 0.3s var(--ease); }
.fab:hover .fab-dot { transform: scale(2.2); }
.fab:hover svg { animation-duration: 1.5s; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Cursor customizado */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
    .cursor { display: block; }
}
.cursor-circle, .cursor-dot {
    position: fixed;
    top: 0; left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 100001;
    mix-blend-mode: difference;
    will-change: transform;
}
.cursor-circle { width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 2px solid #fff; transition: width 0.25s, height 0.25s, margin 0.25s; }
.cursor-dot { width: 10px; height: 10px; margin: -5px 0 0 -5px; background: #fff; }
.cursor.hover .cursor-circle { width: 64px; height: 64px; margin: -32px 0 0 -32px; }

/* Mobile */
@media (max-width: 900px) {
    body { font-size: 18px; }
    .narrow { width: 100%; padding: 0 6vw; }
    .topnav { padding: 18px 6vw 34px; }
    .menu { gap: 18px; font-size: 12px; letter-spacing: 1.5px; }
    .topnav-logo img { width: 120px; }
    .skills-grid { flex-direction: column; gap: 24px; }
    .skills-grid .label { width: auto; }
    .skills-cols { grid-template-columns: 1fr; gap: 36px; }
    .stat-list { grid-template-columns: 1fr; }
    .company-list li { grid-template-columns: 1fr; gap: 4px; }
    .footer-box { flex-direction: column; gap: 20px; }
    .fab { width: 88px; height: 88px; right: 16px; bottom: 16px; }
    .scroll-hint { left: 6vw; bottom: 28px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .split .w, .split .c, .reveal, .skill li { transition: none; }
}
