/* ============================================================
   hicharles.com.br
   ------------------------------------------------------------
   1. Tokens          6. Hero
   2. Base            7. Cards e grids
   3. Utilitários     8. Timeline
   4. Header/nav      9. Footer
   5. Botões         10. Responsivo
   ============================================================ */


/* ---------- 1. Tokens ---------- */

:root {
    /* superfícies */
    --bg: #F6F7F5;
    --white: #fff;

    /* texto */
    --ink: #0C1310;
    --ink-2: #33403A;
    --body: #465049;
    --muted: #5A665F;

    /* marca */
    --green: #10B981;
    --green-d: #047857;
    --green-dd: #065f46;
    --green-h: #0ea372;
    --on-green: #04150E;
    --mint-bg: #E7F7F0;
    --mint-br: #B7E7CF;
    --mint-num: #A7E3C9;

    /* traços */
    --line: #E7EBE7;
    --line-2: #E4E8E4;
    --line-3: #EEF1EE;
    --input-br: #D3DAD5;
    --dot-br: #C6D0CA;

    /* bloco de código */
    --code-br: #1e2a24;
    --code-bar-br: #1b2620;
    --code-dot: #3a4640;
    --code-file: #6b776f;
    --code-txt: #C7D0CB;
    --tk-comment: #5f6d65;
    --tk-key: #34D399;
    --tk-str: #6EE7B7;

    /* rodapé */
    --foot-txt: #c7d0cb;
    --foot-muted: #8a958e;
    --foot-meta: #6b776f;
    --foot-line: #1c2721;

    /* tipografia */
    --f-display: 'Space Grotesk', sans-serif;
    --f-body: 'Hanken Grotesk', system-ui, sans-serif;
    --f-mono: 'JetBrains Mono', monospace;
}


/* ---------- 2. Base ---------- */

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--f-body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility
}

h1, h2, h3, h4 {
    margin: 0
}

p {
    margin: 0
}

a {
    color: var(--green-d);
    text-decoration: none
}

a:hover {
    color: var(--green-dd)
}

::selection {
    background: var(--green);
    color: var(--on-green)
}

@keyframes blink {
    0%, 48% {
        opacity: 1
    }
    49%, 100% {
        opacity: 0
    }
}

@keyframes floaty {
    0%, 100% {
        transform: translateY(0)
    }
    50% {
        transform: translateY(-7px)
    }
}


/* ---------- 3. Utilitários ---------- */

.page {
    position: relative;
    overflow-x: hidden
}

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 28px
}

.container--contact {
    max-width: 820px;
    text-align: center
}

.section {
    padding: 96px 0;
    border-top: 1px solid var(--line)
}

.section--white {
    background: var(--white);
    border-bottom: 1px solid var(--line)
}

.section--contact {
    padding: 104px 0;
    background: var(--white)
}

.eyebrow {
    font-family: var(--f-mono);
    font-size: 13px;
    color: var(--green);
    margin-bottom: 16px
}

.eyebrow--contact {
    margin-bottom: 18px
}

.section-head {
    margin-bottom: 52px;
    max-width: 660px
}

.section-head--narrow {
    max-width: 640px
}

.section-head--tight {
    margin-bottom: 48px;
    max-width: 640px
}

.h1 {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: clamp(40px, 5.4vw, 68px);
    line-height: 1.03;
    letter-spacing: -0.025em;
    margin-bottom: 22px
}

.h2 {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: clamp(28px, 3.4vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.02em
}

.h2--sm {
    font-size: clamp(28px, 3.2vw, 40px)
}

.h2--xl {
    font-size: clamp(32px, 4.6vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin-bottom: 20px
}

.lead {
    font-size: 17.5px;
    line-height: 1.6;
    color: var(--body);
    margin-top: 16px
}

.text-strong {
    color: var(--ink);
    font-weight: 500
}

/* cursor piscando */
.cursor {
    display: inline-block;
    background: var(--green);
    animation: blink 1.15s step-end infinite
}

.cursor--title {
    width: .3em;
    height: .82em;
    border-radius: 2px;
    margin-left: 8px;
    transform: translateY(.06em)
}

.cursor--code {
    width: 8px;
    height: 16px;
    transform: translateY(3px);
    margin-left: 2px
}

/* selo "disponível" */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 14px;
    background: var(--mint-bg);
    border: 1px solid var(--mint-br);
    border-radius: 999px;
    margin-bottom: 24px
}

.badge--contact {
    padding: 8px 16px;
    margin-bottom: 36px
}

.badge__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px #10b98126
}

.badge__text {
    font-family: var(--f-mono);
    font-size: 12px;
    color: var(--green-d);
    font-weight: 500
}

.badge__text--contact {
    font-size: 12.5px
}


/* ---------- 4. Header / nav ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(246, 247, 245, .82);
    border-bottom: 1px solid var(--line)
}

.site-header__inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 15px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px
}

.brand__logo {
    height: 22px;
    display: block
}

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

.navlink {
    font-size: 14.5px;
    color: var(--ink-2);
    font-weight: 500
}

/* fixa a cor: sem isso o a:hover global mudaria o tom */
.navlink:hover {
    color: var(--ink-2)
}


/* ---------- 5. Botões ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    border-radius: 11px;
    font-size: 15.5px;
    padding: 14px 24px;
    cursor: pointer
}

.btn--primary {
    background: var(--green);
    color: var(--on-green);
    gap: 9px;
    border: 0
}

.btn--primary:hover {
    background: var(--green-h);
    color: var(--on-green)
}

.btn--ghost {
    background: var(--white);
    color: var(--ink);
    border: 1px solid var(--input-br)
}

.btn--ghost:hover {
    border-color: var(--green);
    color: var(--green-d)
}

/* variante compacta do header */
.btn--nav {
    gap: 8px;
    padding: 10px 18px;
    border-radius: 9px;
    font-size: 14.5px
}

/* variante grande da seção de contato */
.btn--lg {
    padding: 15px 26px
}

.btn--ghost.btn--lg {
    padding: 15px 24px
}

/* alternador de idioma */
.btn-lang {
    font-family: var(--f-mono);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--input-br);
    border-radius: 8px;
    padding: 7px 11px;
    cursor: pointer
}

.btn-lang:hover {
    border-color: var(--green);
    color: var(--green-d)
}


/* ---------- 6. Hero ---------- */

.hero {
    position: relative;
    padding: 84px 0 96px
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(#0c13100a 1px, transparent 1px),
    linear-gradient(90deg, #0c13100a 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 20%, #000, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 30% 20%, #000, transparent 75%);
    pointer-events: none
}

.hero-grid {
    position: relative;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 28px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 56px;
    align-items: center
}

.terminal-line {
    font-family: var(--f-mono);
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 20px
}

.terminal-line__cmd {
    color: var(--green-d)
}

.hero-lead {
    font-size: 18px;
    line-height: 1.6;
    color: var(--body);
    max-width: 520px;
    margin-bottom: 34px
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 44px
}

.hero-stats {
    display: flex;
    gap: 38px;
    flex-wrap: wrap
}

.stat__num {
    font-family: var(--f-display);
    font-size: 24px;
    font-weight: 600
}

.stat__label {
    font-family: var(--f-mono);
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 2px
}

/* bloco de código flutuante */
.hero-card {
    animation: floaty 7s ease-in-out infinite
}

.code-card {
    background: var(--ink);
    border: 1px solid var(--code-br);
    border-radius: 16px;
    box-shadow: 0 30px 70px -30px #0c131066;
    overflow: hidden
}

.code-card__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--code-bar-br)
}

.code-card__dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--code-dot)
}

.code-card__dot--live {
    background: var(--green)
}

.code-card__file {
    font-family: var(--f-mono);
    font-size: 12px;
    color: var(--code-file);
    margin-left: 8px
}

.code-card__body {
    margin: 0;
    padding: 24px;
    font-family: var(--f-mono);
    font-size: 13.5px;
    line-height: 1.95;
    color: var(--code-txt);
    overflow-x: auto
}

.tk-comment {
    color: var(--tk-comment)
}

.tk-key {
    color: var(--tk-key)
}

.tk-str {
    color: var(--tk-str)
}


/* ---------- 7. Cards e grids ---------- */

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

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px
}

.card {
    background: var(--white);
    border: 1px solid var(--line-2);
    border-radius: 16px;
    padding: 28px
}

.card--hover:hover {
    border-color: var(--green)
}

.card--step {
    background: var(--bg);
    padding: 26px
}

.card--stack {
    border-radius: 14px;
    padding: 24px
}

.card__icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: var(--mint-bg);
    border: 1px solid var(--mint-br);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f-mono);
    font-size: 15px;
    font-weight: 600;
    color: var(--green-d);
    margin-bottom: 18px
}

.card__icon--sm {
    font-size: 14px
}

.card__icon--lg {
    font-size: 17px
}

.card__title {
    font-family: var(--f-display);
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 8px
}

.card__title--sm {
    font-size: 18px
}

.card__text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--muted)
}

.card__text--sm {
    font-size: 14.5px
}

.card__step-num {
    font-family: var(--f-mono);
    font-size: 32px;
    font-weight: 600;
    color: var(--mint-num);
    margin-bottom: 14px
}

/* seção sobre */
.sobre-grid {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 28px;
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 56px
}

.sobre-copy {
    display: flex;
    flex-direction: column;
    gap: 22px;
    font-size: 18px;
    line-height: 1.68;
    color: #3a443e;
    padding-top: 38px
}

.list-card {
    margin-top: 28px;
    border: 1px solid var(--line-2);
    border-radius: 14px;
    background: var(--white);
    overflow: hidden
}

.list-card__item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--line-3)
}

.list-card__item:last-child {
    border-bottom: 0
}

/* seção stack */
.stack-label {
    font-family: var(--f-mono);
    font-size: 12.5px;
    color: var(--green-d);
    margin-bottom: 16px
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.tag {
    font-family: var(--f-mono);
    font-size: 13px;
    padding: 6px 12px;
    background: var(--bg);
    border: 1px solid var(--line-2);
    border-radius: 8px
}

/* seção contato */
.contact-lead {
    font-size: 18.5px;
    line-height: 1.6;
    color: var(--body);
    max-width: 560px;
    margin: 0 auto 30px
}

.contact-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center
}


/* ---------- 8. Timeline ---------- */

.timeline {
    max-width: 760px
}

.tl-item {
    position: relative;
    padding: 0 0 40px 36px;
    border-left: 1px solid var(--line-2)
}

.tl-item--last {
    padding-bottom: 8px;
    border-left-color: transparent
}

.tl-item__dot {
    position: absolute;
    left: -7px;
    top: 4px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--white);
    border: 2.5px solid var(--dot-br)
}

.tl-item__dot--now {
    border-color: var(--green)
}

.tl-item__date {
    font-family: var(--f-mono);
    font-size: 12.5px;
    color: var(--muted);
    margin-bottom: 9px
}

.tl-item__date--row {
    display: flex;
    align-items: center;
    gap: 10px
}

.tl-item__tag {
    padding: 2px 9px;
    background: var(--mint-bg);
    color: var(--green-d);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600
}

.tl-item__role {
    font-family: var(--f-display);
    font-size: 21px;
    font-weight: 600
}

.tl-item__org {
    font-size: 14.5px;
    color: var(--muted);
    margin: 3px 0 12px;
    font-weight: 500
}

.tl-item__desc {
    font-size: 16px;
    line-height: 1.6;
    color: var(--body)
}

.edu {
    margin-top: 26px;
    background: var(--bg);
    border: 1px solid var(--line-2);
    border-radius: 14px;
    padding: 22px 24px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center
}

.edu__label {
    font-family: var(--f-mono);
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 6px
}

.edu__course {
    font-family: var(--f-display);
    font-size: 18px;
    font-weight: 600
}

.edu__school {
    font-size: 14px;
    color: var(--muted);
    margin-top: 2px
}

.edu__years {
    font-family: var(--f-mono);
    font-size: 13px;
    color: var(--body)
}


/* ---------- 9. Footer ---------- */

.site-footer {
    background: var(--ink);
    padding: 52px 0 40px
}

.site-footer__top {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 28px;
    flex-wrap: wrap
}

.site-footer__logo {
    height: 22px;
    display: block;
    margin-bottom: 14px
}

.site-footer__tagline {
    font-family: var(--f-mono);
    font-size: 12.5px;
    color: var(--foot-muted);
    max-width: 320px;
    line-height: 1.6
}

.footer-nav {
    display: flex;
    gap: 26px;
    flex-wrap: wrap
}

.footer-nav a {
    font-size: 14px;
    color: var(--foot-txt)
}

.footer-nav a:hover {
    color: var(--green)
}

.site-footer__bottom {
    max-width: 1160px;
    margin: 34px auto 0;
    padding: 22px 28px 0;
    border-top: 1px solid var(--foot-line);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap
}

.site-footer__meta {
    font-family: var(--f-mono);
    font-size: 12px;
    color: var(--foot-meta)
}

.site-footer__accent {
    color: var(--green)
}


/* ---------- 10. Responsivo e acessibilidade ---------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto
    }

    .cursor, .hero-card {
        animation: none
    }

    [data-reveal] {
        transition: none !important
    }
}

@media (max-width: 940px) {
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media (max-width: 820px) {
    .navlink {
        display: none
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 36px
    }

    .hero-card {
        display: none
    }

    .sobre-grid {
        grid-template-columns: 1fr;
        gap: 24px
    }

    .sobre-copy {
        padding-top: 0
    }

    .section,
    .hero {
        padding-top: 64px;
        padding-bottom: 64px
    }
}

@media (max-width: 600px) {
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr
    }

    .hero-stats {
        gap: 24px
    }
}
