/* ============================================================
   EDSYSTEM PROJETO-DOIS — Turbulent-Inspired CSS
   ============================================================ */

/* ===== VARIABLES ===== */
:root {
    --bg: #0c0c0c;
    --bg-2: #111111;
    --bg-3: #1a1a1a;
    --surface: #161616;
    --surface-2: #1e1e1e;
    --text: #f0f0f0;
    --text-2: #999999;
    --text-3: #555555;
    --accent: #00d4ff;
    --accent-2: #8b5cf6;
    --accent-glow: rgba(0, 212, 255, .15);
    --border: rgba(255,255,255,.08);
    --border-hover: rgba(255,255,255,.18);
    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --ease: cubic-bezier(.19, 1, .22, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --transition: .6s var(--ease);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg);
}

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

body.no-scroll { overflow: hidden; }

::selection { background: var(--accent); color: var(--bg); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 60px; }

/* ===== LOADER ===== */
.loader {
    position: fixed; inset: 0;
    z-index: 100000;
    background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    transition: opacity .8s ease, visibility .8s ease;
}

.loader.done { pointer-events: none; display: none; }

#balloon-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.loader-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader-logo {
    margin-bottom: 30px;
    display: flex; justify-content: center;
    cursor: pointer;
}

.loader-logo img {
    width: min(680px, 80vw);
    height: auto;
    filter: drop-shadow(0 0 80px rgba(0,212,255,.5)) drop-shadow(0 0 160px rgba(139,92,246,.3));
    animation: loaderLogoPulse 2.5s ease-in-out infinite;
    transition: transform 1.8s cubic-bezier(.4, 0, 0, 1), opacity 1.2s ease;
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at center, #000 35%, transparent 72%);
    mask-image: radial-gradient(ellipse 70% 70% at center, #000 35%, transparent 72%);
    will-change: transform, opacity;
}

.loader-logo:hover img {
    filter: drop-shadow(0 0 100px rgba(0,212,255,.7)) drop-shadow(0 0 200px rgba(139,92,246,.5));
}

@keyframes loaderLogoPulse {
    0%, 100% { filter: drop-shadow(0 0 80px rgba(0,212,255,.4)) drop-shadow(0 0 160px rgba(139,92,246,.2)); }
    50% { filter: drop-shadow(0 0 120px rgba(0,212,255,.6)) drop-shadow(0 0 220px rgba(139,92,246,.45)); }
}

.loader-hint {
    font-family: var(--font-mono);
    font-size: .85rem;
    font-weight: 400;
    color: rgba(240,240,240,.45);
    letter-spacing: .18em;
    text-transform: uppercase;
    animation: hintBlink 2.2s ease-in-out infinite;
    transition: opacity .5s ease;
}

@keyframes hintBlink {
    0%, 100% { opacity: .45; }
    50% { opacity: 1; }
}

.loader.zoom-out .loader-logo img {
    transform: scale(20);
    opacity: 0;
    filter: none;
    animation: none;
}

.loader.zoom-out .loader-hint {
    opacity: 0;
}

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

/* ===== WELCOME SCREEN ===== */
.welcome-screen {
    position: fixed; inset: 0;
    z-index: 99999;
    background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .6s cubic-bezier(.4, 0, .2, 1), visibility .6s cubic-bezier(.4, 0, .2, 1);
    will-change: opacity;
}

.welcome-screen.active {
    opacity: 1;
    visibility: visible;
}

.welcome-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.welcome-text {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -.03em;
    line-height: 1.2;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .5s ease, transform .5s ease;
}

.welcome-screen.active .welcome-text {
    opacity: 1;
    transform: translateY(0);
}

.welcome-text .wl {
    display: inline-block;
    color: #fff;
    transition: color .25s ease;
}

.welcome-text .wl.lit {
    color: var(--accent);
}

.welcome-text .wl.final {
    color: #fff;
}

.welcome-text .wl.accent-final {
    color: var(--accent);
}

/* ===== NAVIGATION ===== */
.nav {
    position: fixed; top: 0; left: 0; width: 100%;
    z-index: 10000;
    padding: 28px 0;
    transition: background .5s, padding .5s, backdrop-filter .5s;
}

.nav.scrolled {
    background: rgba(12, 12, 12, .9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1280px; margin: 0 auto; padding: 0 60px;
    display: flex; align-items: center; justify-content: space-between;
}

.nav-brand {
    font-family: var(--font-mono);
    font-size: .8rem;
    color: var(--text-2);
    letter-spacing: .1em;
}

.nav-version { opacity: .5; }

.nav-links { display: flex; gap: 40px; }

.nav-link {
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--text-2);
    position: relative;
    transition: color .3s;
}

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

.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }

.nav-burger {
    display: none;
    flex-direction: column; gap: 7px;
    padding: 4px;
}

.nav-burger span {
    display: block; width: 24px; height: 1.5px;
    background: var(--text); transition: transform .4s var(--ease), opacity .3s;
}

.nav-burger.active span:first-child { transform: rotate(45deg) translate(3px, 3px); }
.nav-burger.active span:last-child { transform: rotate(-45deg) translate(3px, -3px); }

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
    position: fixed; bottom: 40px; left: 60px;
    display: flex; align-items: center; gap: 12px;
    z-index: 100;
    font-family: var(--font-mono);
    font-size: .65rem;
    letter-spacing: .25em;
    color: var(--text-3);
    transition: opacity .5s;
}

.scroll-indicator.hidden { opacity: 0; pointer-events: none; }

.scroll-indicator-line {
    width: 40px; height: 1px;
    background: var(--border); overflow: hidden;
    position: relative;
}

.scroll-indicator-line::after {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--accent);
    animation: scrollLineAnim 2.2s ease-in-out infinite;
}

@keyframes scrollLineAnim {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(0); }
    100% { transform: translateX(100%); }
}

/* ===== HERO SEQUENCE ===== */
.hero-sequence {
    position: relative;
}

.hero-panel {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 60px;
    position: relative;
    overflow: visible;
}

.hero-statement {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7.5vw, 7rem);
    font-weight: 800;
    line-height: 1.5;
    text-align: left;
    max-width: 1100px;
    width: 100%;
    overflow: visible;
}

.hs-line {
    display: block;
    overflow: visible;
}

.hs-word {
    display: inline-block;
    margin-right: .18em;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}

.hs-word.visible { opacity: 1; transform: none; }

.hs-highlight { color: var(--accent); }

.hs-glow {
    text-shadow: 0 0 60px rgba(0, 212, 255, .25), 0 0 120px rgba(0, 212, 255, .08);
}

/* ===== SECTIONS GENERAL ===== */
.section { padding: 160px 0; position: relative; }

.section-header-left { margin-bottom: 80px; }

.section-tag {
    font-family: var(--font-mono);
    font-size: .7rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
    display: block;
}

.section-title-xl {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 24px;
}

.section-sub {
    font-size: 1.05rem;
    color: var(--text-2);
    max-width: 560px;
    line-height: 1.8;
}

/* ===== MANIFESTO ===== */
.manifesto { background: var(--bg); }

.manifesto-tag {
    margin-bottom: 60px;
}

.tag-label {
    font-family: var(--font-display);
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    font-weight: 600;
    color: var(--text-2);
    letter-spacing: .02em;
    line-height: 1.5;
    display: inline;
}

.manifesto-body {
    max-width: 700px;
    margin-bottom: 80px;
}

.manifesto-text {
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    color: var(--text-2);
    line-height: 1.9;
    margin-bottom: 40px;
}

.manifesto-text strong { color: var(--text); font-weight: 600; }

/* CTA Links (Turbulent style) */
.cta-link {
    display: inline-flex; align-items: center; gap: 16px;
    font-family: var(--font-mono);
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--text);
    transition: color .3s, gap .4s var(--ease);
    position: relative;
}

.cta-link::before {
    content: '';
    position: absolute; bottom: -4px; left: 0;
    width: 100%; height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .5s var(--ease);
}

.cta-link:hover::before { transform: scaleX(1); }
.cta-link:hover { color: var(--accent); gap: 24px; }

.cta-link-sm { font-size: .7rem; }
.cta-link-lg { font-size: .85rem; }

.cta-arrow {
    font-size: .7rem;
    transition: transform .4s var(--ease);
}

.cta-link:hover .cta-arrow { transform: translateX(6px); }

/* Manifesto Card */
.manifesto-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    max-width: 560px;
    transition: border-color .4s, transform .4s var(--ease), box-shadow .4s;
}

.manifesto-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 24px 80px rgba(0,0,0,.4);
}

.manifesto-card-inner { padding: 40px; }

.mc-label {
    display: block;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.mc-desc {
    font-size: .92rem;
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 24px;
}

/* ===== TRIFECTA ===== */
.trifecta { background: var(--bg-2); }

.trifecta-tag {
    margin-bottom: 20px;
}

.spaced-text, .spaced-text-row span {
    font-family: var(--font-mono);
    font-size: .65rem;
    letter-spacing: .4em;
    color: var(--accent);
    text-transform: uppercase;
    opacity: .6;
}

.spaced-text-row { margin-bottom: 20px; }

.trifecta-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 80px;
}

.trifecta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.trifecta-item {
    padding: 40px 32px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    transition: border-color .4s, transform .4s var(--ease), box-shadow .4s;
}

.trifecta-item:hover {
    border-color: var(--accent);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0,0,0,.3), 0 0 40px var(--accent-glow);
}

.tf-number {
    font-family: var(--font-mono);
    font-size: .7rem;
    color: var(--accent);
    opacity: .4;
    letter-spacing: .15em;
    margin-bottom: 28px;
}

.trifecta-item h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
}

.trifecta-item p {
    font-size: .9rem;
    color: var(--text-2);
    line-height: 1.7;
}

/* ===== WORK / PROJECTS ===== */
.work-section { background: var(--bg); }

.work-list {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 60px;
}

.work-item {
    display: block;
    border-top: 1px solid var(--border);
    transition: background .5s var(--ease);
    position: relative;
    overflow: hidden;
}

.work-item:last-child { border-bottom: 1px solid var(--border); }

.work-item:hover { background: var(--surface); }

.work-item-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 48px 40px;
    gap: 40px;
}

.wi-left { flex: 1; }

.wi-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: .65rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 12px;
}

.wi-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 10px;
    transition: color .3s;
}

.work-item:hover .wi-title { color: var(--accent); }

.wi-desc {
    font-size: .9rem;
    color: var(--text-2);
    max-width: 500px;
    line-height: 1.7;
}

.wi-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    flex-shrink: 0;
}

.wi-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: .65rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--text-3);
    transition: color .3s;
}

.wi-cta i { font-size: .55rem; transition: transform .3s var(--ease); }

.work-item:hover .wi-cta { color: var(--accent); }
.work-item:hover .wi-cta i { transform: translate(3px, -3px); }

.wi-metric {
    font-family: var(--font-mono);
    font-size: .8rem;
    color: var(--accent);
    opacity: .5;
    letter-spacing: .05em;
}

.work-item-bar {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .7s var(--ease);
}

.work-item:hover .work-item-bar { transform: scaleX(1); }

.work-item-no-link { cursor: default; }

/* ===== SERVICES / PROCESS ===== */
.services-section { background: var(--bg-2); }

.big-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 80px;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 120px;
}

.process-step {
    display: flex;
    gap: 24px;
    padding: 36px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-2);
    transition: border-color .4s, transform .4s var(--ease);
}

.process-step:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.ps-number {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 300;
    color: var(--accent);
    opacity: .25;
    line-height: 1;
    flex-shrink: 0;
}

.ps-content h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.ps-content p {
    font-size: .88rem;
    color: var(--text-2);
    line-height: 1.7;
}

/* Benefits */
.benefits-band { padding: 120px 0; }

.benefits-tag { margin-bottom: 20px; }

.benefits-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 40px;
}

.benefits-list {
    list-style: none;
    max-width: 600px;
}

.benefits-list li {
    font-size: 1rem;
    color: var(--text-2);
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: color .3s, padding .4s var(--ease);
}

.benefits-list li:hover { color: var(--text); padding-left: 8px; }

.bl-bullet { color: var(--accent); font-size: 1.2rem; }

/* Impact */
.impact-block {
    padding: 120px 0 40px;
    max-width: 700px;
}

.impact-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 24px;
}

.impact-desc {
    font-size: 1rem;
    color: var(--text-2);
    line-height: 1.85;
    margin-bottom: 40px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 100px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--text-3);
}

.footer-logo {
    width: 60px; height: auto;
    margin-bottom: 24px;
    border-radius: 8px;
    filter: drop-shadow(0 0 20px rgba(0,212,255,.2));
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border);
    font-size: .95rem;
    color: var(--text-2);
    transition: all .3s;
}

.footer-social a:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 16px var(--accent-glow);
}

.footer-contact-data a, .footer-nav-col a {
    display: block;
    font-size: .9rem;
    color: var(--text-2);
    margin-bottom: 10px;
    transition: color .3s;
}

.footer-contact-data a:hover, .footer-nav-col a:hover { color: var(--accent); }

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

.footer-spaced {
    font-family: var(--font-mono);
    font-size: .6rem;
    letter-spacing: .08em;
    opacity: .4;
}

/* ===== WHATSAPP FLOAT ===== */
.wa-float {
    position: fixed; bottom: 28px; right: 28px;
    width: 52px; height: 52px;
    background: #25d366;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: #fff;
    z-index: 9999;
    transition: transform .3s var(--ease), box-shadow .3s;
    box-shadow: 0 6px 20px rgba(37,211,102,.3);
}

.wa-float:hover { transform: scale(1.12); box-shadow: 0 10px 30px rgba(37,211,102,.4); }

/* ===== FADE-IN ANIMATION ===== */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.fade-in.visible {
    opacity: 1;
    transform: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .trifecta-grid { grid-template-columns: 1fr; gap: 20px; }
    .process-steps { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-statement { font-size: clamp(2.5rem, 6vw, 5rem); }
}

@media (max-width: 768px) {
    .container { padding: 0 24px; }
    .nav-inner { padding: 0 24px; }
    .work-list { padding: 0 24px; }

    .hero-panel { padding: 40px 24px; }
    .section { padding: 100px 0; }

    .nav-links {
        position: fixed; inset: 0;
        background: var(--bg);
        display: flex; flex-direction: column;
        align-items: center; justify-content: center;
        gap: 36px;
        opacity: 0; visibility: hidden;
        transition: opacity .4s, visibility .4s;
        z-index: 9999;
    }

    .nav-links.open { opacity: 1; visibility: visible; }
    .nav-link { font-size: 1.1rem; }

    .nav-burger { display: flex; z-index: 10000; }

    .scroll-indicator { left: 24px; bottom: 24px; }

    .work-item-inner { flex-direction: column; align-items: flex-start; padding: 32px 20px; gap: 20px; }
    .wi-right { align-items: flex-start; }

    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
    .hero-statement { font-size: 2.2rem; }
    .work-item-inner { padding: 24px 16px; }
    .big-title { font-size: 1.8rem; }
}
