/* ====================== CSS VARIABLES — DESIGN SYSTEM ====================== */
:root {
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --c-bg: #020304;
    --c-accent: #00c4ff;
    --c-accent-glow: rgba(0, 196, 255, 0.38);
    --c-text: rgba(255, 255, 255, 0.88);
    --c-text-mid: rgba(255, 255, 255, 0.75);
    --c-text-low: rgba(255, 255, 255, 0.55);
    --c-text-muted: rgba(255, 255, 255, 0.38);
    --c-border: rgba(255, 255, 255, 0.14);
    --c-border-strong: rgba(255, 255, 255, 0.28);
    --c-surface: rgba(0, 0, 0, 0.35);
}

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

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    background: var(--c-bg);
    color: var(--c-text);
    font-family: var(--font-body);
    overflow-x: hidden;
    position: relative;
    scrollbar-color: var(--c-accent) var(--c-bg);
    scrollbar-width: thin;
    width: 100%;
    max-width: 100vw;
}

/* ====================== BACKGROUND LAYER SYSTEM ====================== */
.bg-monogram {
    position: fixed;
    inset: 0;
    background: url('assets/monogram.svg') center/contain no-repeat;
    z-index: -3;
    opacity: 0.11;
    filter: brightness(1.7) blur(1.5px);
    animation: monogramBreath 18s ease-in-out infinite;
    pointer-events: none;
}

@keyframes monogramBreath {

    0%,
    100% {
        opacity: 0.11;
        transform: scale(1.02);
    }

    50% {
        opacity: 0.16;
        transform: scale(1.05);
    }
}

#neural-canvas {
    position: fixed;
    inset: 0;
    z-index: -2;
    opacity: 0.78;
    mix-blend-mode: screen;
    pointer-events: none;
}

.bg-energy {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% 30%, rgba(0, 196, 255, 0.12), transparent 70%);
    z-index: -1;
    opacity: 0.14;
    pointer-events: none;
}

/* ====================== SCAN LINE ====================== */
.scan-line {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00f0ff, #00c4ff, transparent);
    box-shadow: 0 0 25px #00f0ff, 0 0 40px rgba(0, 196, 255, 0.4);
    z-index: 9999;
    pointer-events: none;
    animation: scanInfinite 3.8s linear infinite;
}

@keyframes scanInfinite {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }

    12% {
        opacity: 0.75;
    }

    88% {
        opacity: 0.75;
    }

    100% {
        transform: translateY(110vh);
        opacity: 0;
    }
}

/* ====================== LOADER ====================== */
#loader {
    position: fixed;
    inset: 0;
    background: var(--c-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.9s ease;
}

.loader-text {
    font-family: var(--font-mono);
    font-size: 15px;
    letter-spacing: 4px;
    color: var(--c-accent);
    text-transform: uppercase;
    font-weight: 500;
    text-align: center;
    max-width: 92vw;
    padding: 0 25px;
    line-height: 1.55;
    word-break: break-word;
    white-space: pre-wrap;
}

@media (max-width: 480px) {
    .loader-text {
        font-size: 13px;
        letter-spacing: 2px;
        padding: 0 20px;
    }
}

/* ====================== CURSOR ====================== */
.cursor-dot,
.cursor-ring {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--c-accent);
}

.cursor-ring {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(0, 196, 255, 0.35);
    transition: width 0.3s, height 0.3s;
}

@media (pointer: coarse) {

    .cursor-dot,
    .cursor-ring {
        display: none !important;
    }
}

/* ====================== LAYOUT ====================== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
    width: 100%;
}

/* ====================== HEADER ====================== */
.header {
    padding: 48px 0 0;
}

.micro-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--c-text-muted);
    text-transform: uppercase;
    font-weight: 400;
}

/* ====================== HERO ====================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 140px 20px 170px;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 9vw, 5.8rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    color: rgba(255, 255, 255, 0.96);
}

.hero h2 {
    font-family: var(--font-mono);
    font-size: clamp(0.65rem, 1.4vw, 0.82rem);
    color: var(--c-text-low);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 55px;
    font-weight: 400;
}

.hero-text {
    font-family: var(--font-body);
    margin-bottom: 30px;
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    line-height: 1.6;
    color: var(--c-text-mid);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero-highlight {
    font-family: var(--font-body);
    margin-bottom: 65px;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.01em;
}

/* ====================== CTA BUTTON ====================== */
.cta {
    display: inline-block;
    padding: 18px 48px;
    border: 0.5px solid rgba(255, 255, 255, 0.35);
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    background: transparent;
    cursor: pointer;
}

.cta:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.62);
    color: #fff;
    box-shadow: 0 0 32px rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

.cta.glow {
    box-shadow: 0 0 20px rgba(0, 196, 255, 0.15);
}

/* ====================== SECTION GENERIC ====================== */
.section {
    padding: 100px 0;
}

/* ====================== TERMINAL — UNIFIED DESIGN ====================== */
.ai-terminal-section {
    padding: 80px 0 100px;
}

.terminal-window {
    max-width: 680px;
    margin: 0 auto;
    border: 0.5px solid var(--c-border);
    border-radius: 4px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.terminal-dot.red {
    background: rgba(255, 90, 80, 0.6);
}

.terminal-dot.yellow {
    background: rgba(255, 190, 60, 0.6);
}

.terminal-dot.green {
    background: rgba(80, 200, 100, 0.6);
}

.terminal-title {
    flex: 1;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--c-text-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.terminal-body {
    padding: 0;
}

.terminal-output {
    padding: 24px 28px 0;
    min-height: 180px;
    max-height: 340px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.8;
    color: var(--c-text-mid);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

/* legacy .output support */
.output {
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.8;
    color: var(--c-text-mid);
}

.terminal-line {
    display: flex;
    gap: 10px;
    margin-bottom: 4px;
}

.terminal-line-prefix {
    color: var(--c-text-muted);
    flex-shrink: 0;
}

.terminal-line-user {
    color: rgba(255, 255, 255, 0.85);
}

.terminal-line-sys {
    color: var(--c-text-mid);
}

.terminal-line-accent {
    color: rgba(255, 255, 255, 0.78);
}

.terminal-line-muted {
    color: rgba(255, 255, 255, 0.48);
}

.terminal-line-warn {
    color: rgba(255, 200, 80, 0.8);
}

.terminal-divider {
    height: 0.5px;
    background: rgba(255, 255, 255, 0.10);
    margin: 4px 28px;
}

.terminal-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px 20px;
}

.prompt {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--c-text-muted);
    flex-shrink: 0;
    user-select: none;
}

.terminal-input-row input[type="text"] {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-mono);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.88);
    caret-color: rgba(255, 255, 255, 0.6);
    min-width: 0;
}

.terminal-input-row input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.terminal-loader {
    display: none;
    width: 14px;
    height: 14px;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-top-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: termSpin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes termSpin {
    to {
        transform: rotate(360deg);
    }
}

#ai-terminal-submit {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 10px 20px;
    border: 0.5px solid rgba(255, 255, 255, 0.18);
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.2s;
    flex-shrink: 0;
    white-space: nowrap;
}

#ai-terminal-submit:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.04);
}

.terminal-hint-bar {
    padding: 0 28px 16px;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.term-hint-chip {
    display: inline-block;
    padding: 3px 8px;
    border: 0.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s;
    color: rgba(255, 255, 255, 0.35);
}

.term-hint-chip:hover {
    border-color: rgba(255, 255, 255, 0.35);
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.05);
}

/* ====================== PROFILE SECTION ====================== */
.profile-section {
    padding: 140px 20px;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 80px;
    align-items: center;
}

.profile-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 16px;
    box-shadow: 0 0 90px rgba(0, 196, 255, 0.28);
    display: block;
}

.profile-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 12px;
    line-height: 1.1;
}

.profile-content h3 {
    font-family: var(--font-mono);
    font-size: 11px;
    color: rgba(0, 196, 255, 0.85);
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 400;
}

.profile-content p,
.profile-content li {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.82;
    margin-bottom: 20px;
    color: var(--c-text-mid);
}

.profile-content h4 {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-text-muted);
    margin-bottom: 16px;
    font-weight: 400;
}

.content-block {
    margin-bottom: 32px;
}

.intersection-block {
    margin-top: 8px;
}

.problems-list,
.intersection-list {
    list-style: none;
    padding: 0;
}

.problems-list li,
.intersection-list li {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--c-text-mid);
    line-height: 1.7;
    padding: 8px 0;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.problems-list li::before {
    content: '';
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    margin-top: 8px;
    flex-shrink: 0;
}

.intersection-list li::before {
    content: '—';
    font-family: var(--font-mono);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.2);
    margin-top: 2px;
    flex-shrink: 0;
}

p.lead {
    font-family: var(--font-body);
    font-size: 17px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 500;
    margin-bottom: 32px;
    line-height: 1.6;
}

p.signature {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--c-text-mid);
    margin-bottom: 32px;
    line-height: 1.7;
}

p.signature strong {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 500;
}

p.experience {
    font-family: var(--font-body);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.38);
    line-height: 1.7;
    margin-bottom: 0;
}

/* ====================== CONTENT ENHANCEMENT SECTION ====================== */
.content-enhancement-section {
    padding: 60px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 64px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.content-visual-placeholder {
    aspect-ratio: 4/3;
    border-radius: 4px;
    overflow: hidden;
    border: 0.5px solid rgba(255, 255, 255, 0.06);
}

.content-text h2 {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 16px;
    line-height: 1.2;
}

.content-text p {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--c-text-mid);
    line-height: 1.78;
}

/* ====================== CTA FINAL ====================== */
.cta-final {
    text-align: center;
    padding: 160px 20px 140px;
}

.cta-final p {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--c-text-muted);
    text-transform: uppercase;
    margin-bottom: 40px;
}

/* ====================== FOOTER ====================== */
footer {
    padding: 80px 24px;
    text-align: center;
    border-top: 0.5px solid rgba(255, 255, 255, 0.05);
}

.footer-contact {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--c-text-muted);
    text-decoration: none;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 16px;
    transition: color 0.2s;
}

.footer-contact:hover {
    color: rgba(255, 255, 255, 0.65);
}

.footer-rights {
    font-family: var(--font-mono);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.32);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ====================== RESPONSIVIDADE ====================== */
@media (max-width: 900px) {
    .profile-grid {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .profile-image img {
        max-width: 280px;
        margin: 0 auto;
    }

    .profile-content h2 {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
    }

    .problems-list li,
    .intersection-list li {
        text-align: left;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .content-visual-placeholder {
        max-height: 220px;
    }

    .hero {
        padding: 100px 20px 120px;
    }

    .hero h1 {
        font-size: clamp(2.6rem, 10vw, 3.8rem);
    }

    .cta-final {
        padding: 100px 20px 80px;
    }

    .section {
        padding: 70px 0;
    }

    .ai-terminal-section {
        padding: 60px 0;
    }

    .terminal-window {
        margin: 0 16px;
    }
}

@media (max-width: 560px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 80px 16px 100px;
    }

    .hero h1 {
        font-size: clamp(2.2rem, 12vw, 3.2rem);
    }

    .hero h2 {
        font-size: 0.6rem;
        letter-spacing: 0.15em;
    }

    .hero-text {
        font-size: 1rem;
    }

    .hero-highlight {
        font-size: 0.95rem;
    }

    .cta {
        padding: 16px 32px;
        font-size: 10px;
    }

    .profile-section {
        padding: 80px 16px;
    }

    .terminal-input-row {
        flex-wrap: wrap;
        gap: 8px;
    }

    #ai-terminal-submit {
        width: 100%;
        text-align: center;
    }

    .terminal-hint-bar {
        padding: 0 20px 14px;
    }
}