/* ============================================================
   DACROTY — home / landing
   Dark P&B · Plus Jakarta Sans + JetBrains Mono
   ============================================================ */

:root {
    --bg:           #000000;
    --bg-elev-1:    #050505;
    --bg-elev-2:    #0a0a0a;
    --bg-elev-3:    #111111;
    --border:       #181818;
    --border-soft:  #0e0e0e;
    --border-strong:#262626;
    --text:         #ffffff;
    --text-soft:    #d4d4d4;
    --text-muted:   #8a8a8a;
    --text-dim:     #525252;
    --accent:       #ffffff;
    --t-fast:       180ms cubic-bezier(0.4, 0, 0.2, 1);
    --t-med:        320ms cubic-bezier(0.4, 0, 0.2, 1);
    --container:    1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    width: 100%;
}
body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}
body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
::selection { background: #fff; color: #000; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #1f1f1f; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #2e2e2e; }

#bg-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none !important;
    touch-action: none;
    opacity: 0.55;
    user-select: none;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 32px);
    position: relative;
    z-index: 1;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    padding: 0 clamp(16px, 3vw, 32px);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-soft);
}
.nav-brand {
    height: 100%;
    align-self: stretch;
}
.nav-brand .nav-logo {
    /* Logo pode ser maior que o nav — fica "flutuando" levemente */
    position: relative;
    margin: -10px 0;
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-logo {
    width: 88px; height: 88px;
    border-radius: 16px;
    background: linear-gradient(145deg, #ffffff 0%, #b3b3b3 100%);
    color: #000;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    font-size: 38px;
    letter-spacing: -1.5px;
    box-shadow: 0 2px 12px rgba(255,255,255,0.08);
    overflow: hidden;
}
.nav-logo.has-image {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}
.nav-logo.has-image img {
    width: 100%; height: 100%;
    object-fit: contain;
}
.nav-logo.footer-logo {
    width: 96px;
    height: 96px;
}
.nav-logo.small { width: 28px; height: 28px; font-size: 14px; border-radius: 7px; }

@media (max-width: 600px) {
    .nav { height: 48px; padding: 0 12px; }
    .nav-logo { width: 78px; height: 78px; }
    .nav-brand .nav-logo { margin: -15px 0; }

    .footer { height: 54px; }
    .nav-logo.footer-logo { width: 88px; height: 88px; }
    .footer-brand .nav-logo { margin: -17px 0; }

    /* Hardening anti-overflow mobile */
    main, section, .container { max-width: 100%; }
}
.nav-name {
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 2px;
}
.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}
.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-soft);
    transition: color var(--t-fast);
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0; right: 0;
    height: 1px;
    background: var(--text);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--t-fast);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 100px 24px 80px;
    text-align: center;
}
.hero-inner {
    max-width: 880px;
    position: relative;
    z-index: 2;
    animation: heroIn 0.8s ease-out;
}
@keyframes heroIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 32px;
    font-family: 'JetBrains Mono', monospace;
}
.kicker-line {
    width: 14px;
    height: 1px;
    background: var(--text);
    opacity: 0.7;
}

.hero-title {
    font-size: clamp(56px, 13vw, 150px);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -5px;
    margin: 0 0 24px;
    background: linear-gradient(180deg, #ffffff 0%, #888888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

/* Logo no hero (substituiu o texto "DACROTY") */
.hero-logo {
    margin: 0 0 24px;
    line-height: 0;
    display: flex;
    justify-content: center;
}
.hero-logo img {
    max-width: 100%;
    height: clamp(120px, 22vw, 220px);
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(255,255,255,0.06));
}
.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.hero-subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(11px, 1.4vw, 14px);
    letter-spacing: clamp(4px, 0.7vw, 7px);
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 28px;
    font-weight: 500;
}

.hero-tagline {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-muted);
    margin: 0 0 36px;
    line-height: 1.7;
    font-weight: 400;
}
.hero-tagline strong {
    color: var(--text);
    font-weight: 600;
}

.hero-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: all var(--t-fast);
    cursor: pointer;
    letter-spacing: 0.2px;
    border: 1px solid transparent;
}
.btn-primary {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}
.btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,255,255,0.12);
}
.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border-strong);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.04);
    border-color: var(--text);
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 36px;
    border: 1.5px solid var(--text-dim);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
    opacity: 0.5;
}
.hero-scroll span {
    width: 3px; height: 7px;
    background: var(--text);
    border-radius: 2px;
    animation: scrollDown 1.6s ease-in-out infinite;
}
@keyframes scrollDown {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(14px); opacity: 0; }
}

/* ============================================================
   SECTION HEAD comum
   ============================================================ */
.section-head {
    text-align: center;
    margin-bottom: 56px;
}
.section-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 14px;
}
.section-title {
    font-size: clamp(26px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1.2px;
    margin: 0;
    color: var(--text);
}

/* ============================================================
   STATS
   ============================================================ */
.stats {
    padding: 60px 0;
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.stat {
    text-align: center;
    padding: 16px;
}
.stat-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: -2px;
    color: var(--text);
    line-height: 1;
    margin-bottom: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #999999 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-soft);
    margin-bottom: 4px;
}
.stat-hint {
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

/* ============================================================
   BIO
   ============================================================ */
.bio { padding: 100px 0; }
.bio-text {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.8;
    color: var(--text-soft);
}
.bio-text strong { color: var(--text); font-weight: 700; }

/* ============================================================
   SERVICES
   ============================================================ */
.services { padding: 100px 0; background: var(--bg-elev-1); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.service-card {
    background: var(--bg-elev-2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 28px;
    transition: all var(--t-med);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
    transition: left 0.6s;
}
.service-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.6);
}
.service-card:hover::before { left: 100%; }
.service-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
    border: 1px solid var(--border-strong);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    color: var(--text);
    margin-bottom: 22px;
}
.service-card h3 {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
}
.service-card p {
    margin: 0 0 18px;
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.65;
}
.service-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.service-card li {
    font-size: 13px;
    color: var(--text-soft);
    display: flex;
    align-items: center;
    gap: 8px;
}
.service-card li::before {
    content: '';
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--text);
    flex-shrink: 0;
}

/* ============================================================
   STACK
   ============================================================ */
.stack { padding: 100px 0; }
.stack-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}
.stack-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-elev-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-soft);
    transition: all var(--t-fast);
}
.stack-tag i { color: var(--text-muted); font-size: 14px; }
.stack-tag:hover {
    background: var(--bg-elev-3);
    border-color: var(--border-strong);
    transform: translateY(-2px);
    color: var(--text);
}
.stack-tag:hover i { color: var(--text); }

/* ============================================================
   CONTATO
   ============================================================ */
.contact {
    padding: 100px 0 120px;
    text-align: center;
    background: var(--bg-elev-1);
    border-top: 1px solid var(--border-soft);
}
.contact-text {
    max-width: 600px;
    margin: 0 auto 36px;
    font-size: 17px;
    color: var(--text-muted);
}
.contact-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    height: 80px;
    border-top: 1px solid var(--border-soft);
    background: #000;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
}
.footer .container { width: 100%; }
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
}
.footer-brand .nav-logo {
    /* Logo grande sem inflar o footer */
    margin: -15px 0;
}
.footer-copy {
    font-size: 11.5px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: 1fr; gap: 14px; }
    .service-card { padding: 26px 22px; }
    .bio, .stack, .services, .contact { padding: 70px 0; }
    .nav-links { gap: 18px; font-size: 13px; }
    .nav-name { font-size: 13px; letter-spacing: 1.5px; }
}

@media (max-width: 600px) {
    .nav { padding: 12px 16px; }
    .nav-links { gap: 14px; font-size: 12.5px; }
    .nav-links a { font-size: 12.5px; }

    .hero { padding: 68px 16px 56px; }
    .kicker { font-size: 10px; letter-spacing: 1px; padding: 6px 12px; margin-bottom: 24px; }
    .hero-title { letter-spacing: -3px; }
    .hero-tagline { font-size: 15px; }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn { width: 100%; justify-content: center; }

    .stats-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .stat-value { font-size: 34px; letter-spacing: -1.5px; }

    .section-head { margin-bottom: 36px; }
    .section-label { font-size: 10px; letter-spacing: 3px; }
    .section-title { font-size: 24px; letter-spacing: -0.8px; }

    .bio, .stack, .services, .contact { padding: 60px 0; }
    .bio-text { font-size: 15px; line-height: 1.75; }

    .stack-list { gap: 8px; }
    .stack-tag { padding: 8px 14px; font-size: 12px; }

    .contact-actions .btn { width: 100%; justify-content: center; }
    .footer-inner { flex-direction: column; gap: 10px; text-align: center; }
}

@media (max-width: 400px) {
    .hero-title { font-size: 56px !important; }
    .stats-grid { grid-template-columns: 1fr; }
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
