/* =========================================================
   Hugo Senna — estilo
   ========================================================= */
:root {
  --bg: #ffffff;
  --bg-tint: #f2f7fe;
  --surface: #ffffff;
  --text: #06101c;
  --muted: #4a5a70;
  --line: #e2ebf7;
  --accent: #1763d6;
  --accent-2: #3b8bff;
  --accent-soft: #e6f0ff;
  --nav-bg: rgba(14, 22, 34, .92);
  --nav-text: #e8eef8;
  --shadow: 0 1px 2px rgba(10, 30, 60, .04), 0 12px 32px -12px rgba(10, 40, 90, .14);
  --shadow-lg: 0 30px 60px -20px rgba(15, 60, 140, .35);
  --radius: 18px;
  --wrap: 1160px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070d16; --bg-tint: #0c1522; --surface: #101b2b; --text: #eaf1fb; --muted: #9db0c8;
    --line: #1c2a3e; --accent: #4c94ff; --accent-2: #7ab0ff; --accent-soft: #13243d;
    --nav-bg: rgba(20, 30, 46, .9);
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -12px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #070d16; --bg-tint: #0c1522; --surface: #101b2b; --text: #eaf1fb; --muted: #9db0c8;
  --line: #1c2a3e; --accent: #4c94ff; --accent-2: #7ab0ff; --accent-soft: #13243d;
  --nav-bg: rgba(20, 30, 46, .9);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -12px rgba(0,0,0,.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--text);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong, b { font-weight: 700; color: var(--text); }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.accent { color: var(--accent); }
.muted { color: var(--muted); }
.muted + .muted { margin-top: 14px; }

.skip {
  position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 16px; border-radius: 10px;
  background: var(--accent); color: #fff; font-weight: 600; transform: translateY(-200%); transition: transform .2s;
}
.skip:focus { transform: none; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 50;
  display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 18px;
  background: var(--nav-bg); color: var(--nav-text); border-radius: 14px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.06);
  max-width: calc(100% - 24px);
}
.nav__logo { font-weight: 800; font-size: 17px; letter-spacing: -.03em; margin-right: 14px; white-space: nowrap; }
.nav__logo span { color: #7ab0ff; }
.nav__logo i { font-style: normal; color: #7ab0ff; }
.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__links a {
  font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 9px; opacity: .85; white-space: nowrap;
  transition: background .2s, opacity .2s;
}
.nav__links a:hover { background: rgba(255,255,255,.08); opacity: 1; }
.nav__links .nav__cta { background: linear-gradient(135deg, #3b8bff, #1763d6); opacity: 1; font-weight: 600; margin-left: 4px; }
.nav__links .nav__cta:hover { background: linear-gradient(135deg, #5a9dff, #1d6fe8); }
.nav__btn {
  width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 9px; cursor: pointer;
  background: rgba(255,255,255,.07); color: inherit; transition: background .2s;
}
.nav__btn:hover { background: rgba(255,255,255,.14); }
.nav__menu { display: none; }
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; }
:root[data-theme="dark"] .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: block; }
  :root:not([data-theme="light"]) .i-moon { display: none; }
}

/* ---------- BOTÕES ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 24px; border-radius: 12px; font-weight: 700; font-size: 15px; border: 0; cursor: pointer;
  font-family: inherit; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff;
  box-shadow: 0 10px 24px -8px rgba(23, 99, 214, .6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(23, 99, 214, .7); }
.btn--ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { padding: 11px 18px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- TÍTULOS ---------- */
.badge {
  display: inline-block; padding: 7px 14px; border-radius: 999px; font-size: 13px; color: var(--accent);
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}
.badge b { color: var(--accent); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--accent);
  padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; }
h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -.03em; }
h3 { font-size: 18px; font-weight: 700; }
.head { text-align: center; max-width: 960px; margin: 0 auto 52px; }
.head h2 { text-wrap: balance; }
.head p { margin: 14px auto 0; font-size: 17px; max-width: 720px; }
.split h2, .contact h2 { margin-bottom: 18px; }

/* ---------- HERO ---------- */
.hero {
  position: relative; padding: 140px 0 60px;
  background:
    radial-gradient(800px 420px at 85% 10%, color-mix(in srgb, var(--accent-2) 16%, transparent), transparent 70%),
    radial-gradient(600px 400px at 0% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%),
    linear-gradient(var(--bg-tint), var(--bg) 75%);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { margin: 22px 0 22px; }
.lead { font-size: 18px; color: var(--muted); max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__stats { display: flex; gap: 36px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero__stats strong { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.03em; color: var(--accent); }
.hero__stats span { font-size: 13px; color: var(--muted); }

.hero__media { position: relative; }
.code-card {
  background: linear-gradient(160deg, #0f2a5c 0%, #0a1830 55%, #07101f 100%);
  border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden;
  border: 1px solid rgba(122, 176, 255, .18);
}
.code-card__bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.07); }
.code-card__bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.code-card__bar i:nth-child(2) { background: #febc2e; }
.code-card__bar i:nth-child(3) { background: #28c840; }
.code-card__bar span { margin-left: 10px; font: 500 12.5px var(--mono); color: #8aa4c8; }
.code { margin: 0; padding: 22px 22px 26px; font: 400 13.5px/1.7 var(--mono); color: #cfe0ff; overflow-x: auto; }
.c-k { color: #ff7ab6; } .c-t { color: #7ad7ff; } .c-f { color: #ffd479; } .c-v { color: #b9a6ff; } .c-s { color: #8ff0b0; }
.caret { display: inline-block; width: 8px; height: 16px; background: #7ab0ff; vertical-align: -3px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.chip {
  position: absolute; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px;
  background: var(--surface); color: var(--text); font-size: 13px; font-weight: 600; box-shadow: var(--shadow);
  border: 1px solid var(--line); animation: float 6s ease-in-out infinite;
}
.chip svg { color: var(--accent); }
.chip--a { top: -16px; right: 24px; }
.chip--b { bottom: -18px; left: -18px; animation-delay: -3s; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.18); }
@keyframes float { 50% { transform: translateY(-8px); } }

.stack { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 80px; }
.stack li {
  padding: 9px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line);
}

/* ---------- SEÇÕES ---------- */
.section { padding: 100px 0; }
.section--tint { background: var(--bg-tint); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

.checklist-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.checklist-card h3 { margin-bottom: 20px; }
.checklist { display: grid; gap: 14px; margin-bottom: 26px; }
.checklist li { position: relative; padding-left: 34px; color: var(--muted); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 7px; background: var(--accent-soft);
}
.checklist li::after {
  content: ""; position: absolute; left: 7px; top: 7px; width: 8px; height: 5px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); transition: transform .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.card__icon {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff;
  box-shadow: 0 8px 18px -6px rgba(23, 99, 214, .55);
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }

/* timeline */
.timeline { max-width: 820px; margin: 0 auto; position: relative; }
.timeline::before { content: ""; position: absolute; left: 150px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 150px 1fr; gap: 40px; padding: 0 0 36px; position: relative; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 144px; top: 6px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--accent);
}
.timeline li:first-child::before { background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.timeline__when { font-weight: 700; font-size: 14px; color: var(--accent); padding-top: 2px; text-align: right; padding-right: 28px; }
.timeline__body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow); }
.timeline__org { display: block; font-size: 14px; font-weight: 600; color: var(--accent); margin: 4px 0 8px; }
.timeline__body p { color: var(--muted); font-size: 15px; }

/* formação */
.edu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.edu__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.edu__item h3 { font-size: 17px; margin: 12px 0 6px; }
.edu__item p { color: var(--muted); font-size: 14px; }
.edu__item--main { grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; color: #fff;
  background: linear-gradient(150deg, #3b8bff, #1763d6 55%, #0f4fb0); border: 0; box-shadow: var(--shadow-lg); }
.edu__item--main h3 { font-size: 26px; color: #fff; }
.edu__item--main p { color: rgba(255,255,255,.8); font-size: 15px; }
.edu__item--main .tag { background: rgba(255,255,255,.18); color: #fff; align-self: flex-start; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }

/* portfólio */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.work { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s; }
.work:hover { transform: translateY(-4px); }
.work__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-tint); }
.work__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s; }
.work__img--logo { background: #fff; }
.work__img--logo img { object-fit: contain; object-position: center; }
.work__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--accent); }
.work__link:hover { text-decoration: underline; }
.work:hover .work__img img { transform: scale(1.05); }
.work figcaption { padding: 20px 22px 24px; }
.work h3 { margin: 10px 0 4px; }
.work p { color: var(--muted); font-size: 14px; }

/* passos */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); }
.steps__n {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; margin-bottom: 18px;
  background: var(--accent-soft); color: var(--accent); font-weight: 800;
}
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 15px; }

/* contato */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact__list { display: grid; gap: 16px; margin-top: 32px; }
.contact__list li { display: flex; align-items: center; gap: 14px; }
.contact__ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.contact__ic svg { width: 20px; height: 20px; }
.contact__list small { display: block; font-size: 12px; color: var(--muted); }
.contact__list a, .contact__list span { font-weight: 600; }
.contact__list a:hover { color: var(--accent); }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 32px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 7px; font-size: 13px; font-weight: 600; }
.form input, .form textarea {
  font: inherit; font-size: 15px; font-weight: 400; color: var(--text); background: var(--bg-tint);
  border: 1px solid var(--line); border-radius: 11px; padding: 13px 14px; resize: vertical; transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.form .invalid { border-color: #e5484d; }
.hp { position: absolute; left: -9999px; }
.form__status { font-size: 14px; min-height: 1.4em; text-align: center; }
.form__status.ok { color: #16a34a; }
.form__status.err { color: #e5484d; }

/* footer */
.footer { background: linear-gradient(#1763d6, #0f4fb0); color: rgba(255,255,255,.82); padding: 70px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer__logo { font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -.03em; }
.footer__logo span { color: #bcd6ff; }
.footer p { margin: 12px 0 20px; max-width: 320px; font-size: 15px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer__grid > div:not(:first-child) a, .footer__grid > div:not(:first-child) span { display: block; font-size: 15px; padding: 4px 0; }
.footer a:hover { color: #fff; }
.social { display: flex; gap: 10px; }
.social a { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.12); transition: background .2s; }
.social a:hover { background: rgba(255,255,255,.24); }
.social svg { width: 18px; height: 18px; }
.footer__bottom { margin-top: 50px; padding: 22px 24px; border-top: 1px solid rgba(255,255,255,.15); font-size: 13px; }

/* whatsapp */
.wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; display: flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: 14px; background: #1763d6; color: #fff; font-weight: 700; font-size: 14px;
  box-shadow: 0 0 0 6px rgba(23, 99, 214, .18), 0 12px 24px -8px rgba(23, 99, 214, .7); transition: transform .2s;
}
.wa:hover { transform: translateY(-2px); }

/* animação de entrada */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .chip, .caret { animation: none; }
}

/* ---------- RESPONSIVO ---------- */
@media (max-width: 1024px) {
  .cards, .steps { grid-template-columns: repeat(2, 1fr); }
  .works { grid-template-columns: repeat(2, 1fr); }
  .edu { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .nav { padding-left: 16px; }
  .nav__menu { display: grid; }
  .nav__links {
    position: absolute; top: calc(100% + 8px); right: 0; min-width: 220px; flex-direction: column; align-items: stretch;
    background: var(--nav-bg); border-radius: 14px; padding: 8px; box-shadow: 0 20px 40px -12px rgba(0,0,0,.5);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .2s;
  }
  .nav__links.open { opacity: 1; visibility: visible; transform: none; }
  .nav__links a { padding: 12px 14px; }
  .nav__links .nav__cta { margin: 6px 0 0; text-align: center; }
  .hero { padding-top: 110px; }
  .hero__grid, .split, .contact { grid-template-columns: 1fr; gap: 48px; }
  .hero__media { max-width: 560px; }
  .stack { margin-top: 64px; }
  .section { padding: 76px 0; }
  .timeline::before { left: 7px; }
  .timeline li { grid-template-columns: 1fr; gap: 10px; padding-left: 36px; }
  .timeline li::before { left: 1px; }
  .timeline__when { text-align: left; padding-right: 0; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .cards, .steps, .works, .edu, .form__row { grid-template-columns: 1fr; }
  .edu__item--main { grid-row: auto; min-height: 180px; }
  .hero__stats { gap: 20px; justify-content: space-between; }
  .hero__stats strong { font-size: 24px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .code { font-size: 11.5px; padding: 18px 16px 20px; }
  .chip--b { left: 8px; }
  .chip--a { right: 8px; }
  .form, .checklist-card { padding: 22px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .wa span { display: none; }
  .wa { padding: 14px; border-radius: 50%; }
}
