/* =========================================================
   João Padilha — site.css
   Design system próprio: tokens, base, componentes, seções.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #eceef2;
  --text: #0f1217;
  --text-2: #3b4250;
  --muted: #6b7280;
  --border: rgba(15, 18, 23, 0.08);
  --border-strong: rgba(15, 18, 23, 0.16);

  --accent: #2457f5;
  --accent-hover: #1b47d1;
  --accent-ink: #ffffff;
  --accent-soft: rgba(36, 87, 245, 0.10);
  --gold: #c2410c;
  --gold-soft: rgba(217, 119, 6, 0.12);

  --shadow-sm: 0 1px 2px rgba(15, 18, 23, 0.05), 0 1px 1px rgba(15, 18, 23, 0.03);
  --shadow-md: 0 10px 28px -10px rgba(15, 18, 23, 0.18), 0 2px 6px rgba(15, 18, 23, 0.05);
  --shadow-lg: 0 32px 64px -24px rgba(15, 18, 23, 0.30);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --nav-h: 72px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0b0d12;
  --surface: #12151c;
  --surface-2: #1a1e28;
  --text: #eef1f6;
  --text-2: #c5cbd6;
  --muted: #8b93a3;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --accent: #6f8dff;
  --accent-hover: #8ba3ff;
  --accent-ink: #0b0d12;
  --accent-soft: rgba(111, 141, 255, 0.14);
  --gold: #fbbf24;
  --gold-soft: rgba(251, 191, 36, 0.14);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 32px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 32px 64px -24px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0d12;
    --surface: #12151c;
    --surface-2: #1a1e28;
    --text: #eef1f6;
    --text-2: #c5cbd6;
    --muted: #8b93a3;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --accent: #6f8dff;
    --accent-hover: #8ba3ff;
    --accent-ink: #0b0d12;
    --accent-soft: rgba(111, 141, 255, 0.14);
    --gold: #fbbf24;
    --gold-soft: rgba(251, 191, 36, 0.14);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 12px 32px -12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 32px 64px -24px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
svg { display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; color: var(--text); }
h1 { font-size: clamp(2.75rem, 7.5vw, 5.75rem); font-weight: 800; letter-spacing: -0.035em; line-height: 0.98; }
h2 { font-size: clamp(2rem, 4.2vw, 2.9rem); letter-spacing: -0.03em; line-height: 1.05; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }

.prose a { color: var(--accent); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); transition: text-decoration-color .2s; }
.prose a:hover { text-decoration-color: var(--accent); }
.prose a.btn, .prose a.link, .prose .socials a { text-decoration: none; }
.prose a.btn--ghost, .prose .socials a { color: var(--text-2); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

::selection { background: var(--accent); color: var(--accent-ink); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; opacity: .7; }

.lead { font-size: 1.1rem; color: var(--text-2); max-width: 60ch; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; line-height: 1; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, border-color .2s, color .2s;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 20px -10px var(--accent); }
.btn.btn--primary:hover { background: var(--accent-hover); box-shadow: 0 12px 24px -10px var(--accent); color: var(--accent-ink); }

.btn--ghost { border-color: var(--border-strong); color: var(--text); background: transparent; }
.btn--ghost:hover { background: var(--surface); border-color: var(--text); }

.btn--light { background: #fff; color: #0f1217; }
.btn--light:hover { background: #f1f3f7; }

.btn--sm { padding: 9px 14px; font-size: 0.85rem; }

.link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.02em;
  color: var(--accent); text-decoration: none;
}
.link svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.link:hover { text-decoration: underline; }
.link:hover svg { transform: translate(2px, -2px); }

/* ---------- Social icons ---------- */
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--border-strong); color: var(--text-2); text-decoration: none;
  transition: background .2s, color .2s, border-color .2s, transform .25s var(--ease);
}
.socials a:hover { background: var(--text); color: var(--bg); border-color: var(--text); transform: translateY(-2px); }
.socials svg { width: 17px; height: 17px; fill: currentColor; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--nav-h);
  color: #fff;
  transition: background .3s, border-color .3s, color .3s, height .3s;
}
.nav::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  opacity: 0; transition: opacity .3s;
}
.nav.is-solid { color: var(--text); }
.nav.is-solid::before { opacity: 1; }

.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.nav__brand {
  font-weight: 700; letter-spacing: -0.02em; text-decoration: none; font-size: 1.05rem;
  display: inline-flex; align-items: center; gap: 8px; color: inherit;
}
.nav__brand i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }
.nav:not(.is-solid) .nav__brand i { background: #fff; }

.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__links a {
  padding: 8px 13px; border-radius: 999px;
  font-size: 0.9rem; font-weight: 500; text-decoration: none;
  color: color-mix(in srgb, currentColor 78%, transparent);
  transition: background .2s, color .2s;
}
.nav__links a:hover { color: inherit; background: color-mix(in srgb, currentColor 10%, transparent); }
.nav__links a.is-active { color: inherit; background: color-mix(in srgb, currentColor 12%, transparent); }
.nav.is-solid .nav__links a.is-active { background: var(--accent-soft); color: var(--accent); }

.nav__actions { display: flex; align-items: center; gap: 6px; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid transparent;
  display: grid; place-items: center; background: transparent; cursor: pointer; color: inherit;
  transition: background .2s, border-color .2s;
}
.icon-btn:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.icon-btn svg { width: 19px; height: 19px; }

.lang-switch {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.04em;
  padding: 8px 12px; border-radius: 999px; text-decoration: none;
  border: 1px solid color-mix(in srgb, currentColor 25%, transparent); color: inherit;
  transition: background .2s, border-color .2s;
}
.lang-switch:hover { background: color-mix(in srgb, currentColor 10%, transparent); }

.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

.nav__toggle { display: none; }
.nav__toggle .icon-close { display: none; }
.nav.is-open .nav__toggle .icon-close { display: block; }
.nav.is-open .nav__toggle .icon-menu { display: none; }

@media (max-width: 960px) {
  .nav__toggle { display: grid; }
  .nav__links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gutter) 20px;
    background: var(--surface); color: var(--text);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; }
  .nav__links a { padding: 12px 14px; font-size: 1rem; }
  .nav__links a.is-active { background: var(--accent-soft); color: var(--accent); }
  .nav.is-open { color: var(--text); }
  .nav.is-open::before { opacity: 1; }
  .lang-switch { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: calc(var(--nav-h) + 56px) 0 clamp(56px, 9vh, 104px);
  color: #fff;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background: #0b0d12 url('../img/hero_laundrykit_1600x1066.jpg') center 45% / cover no-repeat;
  transform: scale(1.04);
  animation: hero-zoom 14s var(--ease) forwards;
}
@keyframes hero-zoom { to { transform: scale(1); } }
@media (min-aspect-ratio: 16/10) { .hero__bg { background-position: center 40%; } }
@media (max-width: 720px) { .hero__bg { background-position: 38% center; } }
@media (max-width: 520px) { .apps { grid-template-columns: repeat(2, 1fr); gap: 12px; } .app { padding: 10px; } }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 10, 16, 0.38) 0%, rgba(8, 10, 16, 0.12) 35%, rgba(8, 10, 16, 0.80) 76%, rgba(8, 10, 16, 0.95) 100%),
    radial-gradient(60% 50% at 20% 85%, rgba(36, 87, 245, 0.22), transparent 70%);
}

.hero > .container { width: 100%; }
.hero__content { max-width: 820px; }
@media (min-width: 1024px) {
  .hero .container { display: flex; justify-content: flex-end; width: 100%; }
  .hero__content { max-width: 620px; }
  .hero__scroll { right: auto; left: var(--gutter); }
}
.hero__eyebrow {
  font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72); margin-bottom: 18px; display: inline-flex; align-items: center; gap: 12px;
}
.hero__eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.hero h1 { color: #fff; margin-bottom: 24px; text-wrap: balance; }
.hero h1 span { color: rgba(255, 255, 255, 0.55); }

.hero__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.hero__tags li {
  font-size: 0.85rem; font-weight: 500;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: inline-flex; align-items: center; gap: 8px;
}
.hero__tags li.is-gold { border-color: rgba(251, 191, 36, 0.5); background: rgba(251, 191, 36, 0.14); color: #fde68a; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero .btn--ghost { border-color: rgba(255, 255, 255, 0.32); color: #fff; background: rgba(255, 255, 255, 0.06); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero .btn--ghost:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.6); }

.hero__scroll {
  position: absolute; right: var(--gutter); bottom: 32px;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6); text-decoration: none;
  writing-mode: vertical-rl;
  width: 1.4rem; align-items: center;
}
.hero__scroll::after { content: ''; width: 1px; height: 48px; background: linear-gradient(to bottom, currentColor, transparent); animation: scroll-line 2s infinite; }
@keyframes scroll-line { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 720px) { .hero__scroll { display: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section--alt { background: var(--surface); border-block: 1px solid var(--border); }
:root[data-theme="dark"] .section--alt { background: color-mix(in srgb, var(--surface) 60%, var(--bg)); }

.section__head { max-width: 680px; margin-bottom: clamp(40px, 6vw, 64px); }
.section__head h2 { margin-bottom: 14px; text-wrap: balance; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow::before { display: none; }

.subhead { display: flex; align-items: baseline; gap: 14px; margin: 0 0 22px; }
.subhead h3 { font-size: 1.15rem; }
.subhead .count { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
.subhead::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.grid + .subhead { margin-top: 56px; }

/* ---------- Card ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 10px; padding: 24px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card p { color: var(--muted); font-size: 0.95rem; }
.card__logo {
  width: 60px; height: 60px; border-radius: 16px; margin-bottom: 8px;
  background: #fff; border: 1px solid var(--border); display: grid; place-items: center; overflow: hidden; padding: 9px;
}
.card__logo img { width: 100%; height: 100%; object-fit: contain; }
.card__logo--icon { color: var(--accent); background: var(--accent-soft); border-color: transparent; }
.card__logo--icon svg { width: 26px; height: 26px; }
.card__links { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.about__media { position: relative; max-width: 460px; }
.about__media::before {
  content: ''; position: absolute; inset: 18px -18px -18px 18px;
  border-radius: var(--radius-lg); border: 1px solid var(--border-strong);
  background: repeating-linear-gradient(135deg, var(--border) 0 1px, transparent 1px 10px);
  z-index: -1;
}
.about__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 1; object-fit: cover; width: 100%; }
.about__badge {
  position: absolute; left: -16px; bottom: 28px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-md);
  padding: 12px 16px; display: flex; align-items: center; gap: 12px;
}
.about__badge .emoji { font-size: 1.5rem; line-height: 1; }
.about__badge strong { display: block; font-size: 0.95rem; letter-spacing: -0.01em; }
.about__badge span { font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

.about__text h2 { margin-bottom: 8px; }
.about__text .greeting { font-size: 1.15rem; font-weight: 500; color: var(--text-2); margin-bottom: 26px; }
.facts { display: grid; gap: 10px; margin-bottom: 22px; }
.facts li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.facts .emoji { flex: none; width: 28px; text-align: center; font-size: 1.1rem; line-height: 1.5; }
.facts--awards li { font-weight: 600; color: var(--text); }
.about__text .bio { color: var(--text-2); margin-bottom: 26px; }
.about__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .about__media { max-width: 420px; }
}

/* ---------- Timeline ---------- */
.timelines { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(28px, 4vw, 48px); }
.tl-group { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(24px, 3.5vw, 40px); box-shadow: var(--shadow-sm); }
.tl-group__title { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.tl-group__title h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-mono); font-weight: 600; color: var(--accent); }
.tl { position: relative; padding-left: 26px; }
.tl::before { content: ''; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(to bottom, var(--accent), var(--border)); border-radius: 2px; }
.tl__item { position: relative; padding-bottom: 32px; }
.tl__item:last-child { padding-bottom: 0; }
.tl__item::before {
  content: ''; position: absolute; left: -26px; top: 7px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), 0 0 0 1px var(--surface) inset;
}
.tl__date { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; display: block; }
.tl__item h4 { margin-bottom: 8px; }
.tl__item p { color: var(--muted); font-size: 0.95rem; }
.tl__item p + p { margin-top: 10px; }
.tl__item strong { color: var(--text); font-weight: 600; }
.tl__img { margin: 14px 0 4px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 3 / 2; }
.tl__img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip {
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: transparent; color: var(--text-2);
  font-size: 0.88rem; font-weight: 500; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--text); color: var(--text); }
.chip.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }

.apps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); }
.app {
  text-decoration: none; padding: 14px; gap: 0;
  animation: app-in .4s var(--ease) both;
}
.app[hidden] { display: none; }
@keyframes app-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.app__icon { aspect-ratio: 1; border-radius: 22.5%; overflow: hidden; margin-bottom: 14px; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.35); background: var(--surface-2); }
.app__icon img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.app:hover .app__icon img { transform: scale(1.04); }
.app__name { font-weight: 600; letter-spacing: -0.01em; }
.app__type { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.app__store {
  margin-top: 12px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; font-weight: 600; color: var(--accent);
}
.app__store svg { width: 13px; height: 13px; fill: currentColor; }

/* ---------- Post card (conquistas + blog) ---------- */
.post { padding: 0; overflow: hidden; text-decoration: none; }
.post__img { aspect-ratio: 3 / 2; overflow: hidden; border-bottom: 1px solid var(--border); background: var(--surface-2); position: relative; }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post:hover .post__img img { transform: scale(1.04); }
.post__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.post__meta .tag { padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.post__meta .tag--gold { background: var(--gold-soft); color: var(--gold); }
.post__body h4 { font-size: 1.08rem; line-height: 1.3; }
.post__body h4 a { text-decoration: none; }
.post__body h4 a:hover { color: var(--accent); }
.post__body p { color: var(--muted); font-size: 0.93rem; }
.post__links { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* ---------- Contact ---------- */
.contact { max-width: 880px; margin-inline: auto; text-align: center; }
.contact__email {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: clamp(1.35rem, 3.6vw, 2.4rem); font-weight: 700; letter-spacing: -0.03em; text-decoration: none;
  margin: 8px 0 40px; padding-bottom: 4px;
  background-image: linear-gradient(var(--accent), var(--accent)); background-size: 0% 2px; background-repeat: no-repeat; background-position: left bottom;
  transition: background-size .4s var(--ease), color .2s;
  word-break: break-all;
}
.contact__email:hover { background-size: 100% 2px; color: var(--accent); }
.contact__email svg { width: 1em; height: 1em; flex: none; }
.contact__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; text-align: left; }
.contact__item { padding: 20px 22px; gap: 6px; }
.contact__item .label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.contact__item .label svg { width: 15px; height: 15px; color: var(--accent); }
.contact__item .value { font-weight: 600; letter-spacing: -0.01em; }
.contact__item .value a { text-decoration: none; }
.contact__item .value a:hover { color: var(--accent); }
.contact__item .socials { margin-top: 4px; }
.contact__item .socials a { width: 36px; height: 36px; }
.contact__item .socials svg { width: 15px; height: 15px; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 36px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 36px 0 44px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer__brand { font-weight: 700; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.footer__brand i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.footer small { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); letter-spacing: 0.02em; }
.footer .socials a { width: 36px; height: 36px; }
.footer .socials svg { width: 15px; height: 15px; }

/* ---------- Reveal on scroll ---------- */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
html.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html.js .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .nav, .hero__scroll, .theme-toggle, .filters { display: none !important; }
  .hero { min-height: auto; color: #000; }
  .hero::after, .hero__bg { display: none; }
  .hero h1 { color: #000; }
  .card, .tl-group { break-inside: avoid; box-shadow: none; }
}
