/* ==========================================================================
   HR Informática — style.css
   Design mobile-first, responsivo (celular / tablet / desktop).
   ========================================================================== */

:root {
  --bg: #080b12;
  --bg-2: #0d1220;
  --bg-3: #121a2b;
  --surface: #101725;
  --surface-2: #161f31;
  --border: #1f2a3f;

  --text: #e8edf5;
  --text-muted: #8fa0b8;
  --text-dim: #5c6b83;

  --accent: #00d9ff;
  --accent-2: #7c5cff;
  --accent-soft: rgba(0, 217, 255, 0.12);
  --whatsapp: #25d366;
  --whatsapp-dark: #1ea952;

  --warn: #ffb648;
  --ok: #4ade80;

  --radius: 16px;
  --radius-sm: 10px;
  --container: 1160px;

  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-head: 'Sora', var(--font-body);

  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.55);
  --shadow-sm: 0 8px 24px -12px rgba(0, 0, 0, 0.5);

  --transition: 220ms cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-head); margin: 0; line-height: 1.15; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- background decor ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
.bg-glow {
  position: fixed;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.22;
  z-index: -1;
  pointer-events: none;
}
.bg-glow--1 { background: var(--accent); top: -220px; right: -180px; }
.bg-glow--2 { background: var(--accent-2); bottom: 10%; left: -220px; opacity: 0.15; }

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn .icon { width: 20px; height: 20px; flex-shrink: 0; }
.btn--whatsapp {
  background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark));
  color: #06210f;
  box-shadow: 0 10px 30px -10px rgba(37, 211, 102, 0.55);
}
.btn--whatsapp:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(37, 211, 102, 0.65); }
.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { padding: 9px 18px; font-size: 0.88rem; }
.btn--lg { padding: 17px 34px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(8, 11, 18, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}
.header.is-scrolled { border-color: var(--border); background: rgba(8, 11, 18, 0.92); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand__mark {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.brand__name { font-family: var(--font-head); font-weight: 500; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand__name strong { font-weight: 800; }

.nav { display: none; align-items: center; gap: 22px; }
.nav__link {
  font-size: 0.9rem;
  color: var(--text-muted);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition);
}
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
}

.header__cta { display: none; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile nav panel */
@media (max-width: 899px) {
  .nav {
    position: fixed;
    inset: 68px 16px auto 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
  }
  .nav.is-open { display: flex; opacity: 1; transform: none; pointer-events: auto; }
  .nav__link { padding: 12px 14px; border-radius: var(--radius-sm); }
  .nav__link:hover, .nav__link.is-active { background: var(--surface-2); }
  .nav__link.is-active::after { display: none; }
}

@media (min-width: 900px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
}

/* O botão de WhatsApp no header só aparece quando já sobra espaço ao lado
   dos 7 itens de menu — evita apertar o layout entre 900–1200px. */
@media (min-width: 1220px) {
  .header__cta { display: inline-flex; }
}

/* ---------- hero ---------- */
.hero { padding: 64px 0 40px; }
.hero__inner {
  display: grid;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow--center { display: block; text-align: center; }

.hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.grad-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-muted);
  max-width: 46ch;
  margin-bottom: 30px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--text); }
.stat__label { font-size: 0.8rem; color: var(--text-dim); }

.hero__visual { display: flex; justify-content: center; }
.orbit-card {
  position: relative;
  width: 260px;
  height: 260px;
  border-radius: 28px;
  background: linear-gradient(160deg, var(--surface), var(--bg-3));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}
.orbit-card__glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: conic-gradient(from 0deg, var(--accent), var(--accent-2), transparent 60%);
  opacity: 0.35;
  filter: blur(24px);
  animation: spin 8s linear infinite;
  z-index: -1;
}
.orbit-card__icon { width: 54%; height: 54%; color: var(--accent); }
.orbit-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 16px 2px var(--accent-2);
}
.orbit-dot--1 { top: 14%; left: 10%; animation: float 4s ease-in-out infinite; }
.orbit-dot--2 { bottom: 18%; right: 12%; background: var(--accent); box-shadow: 0 0 16px 2px var(--accent); animation: float 5s ease-in-out infinite 0.6s; }
.orbit-dot--3 { top: 50%; right: -6px; animation: float 3.4s ease-in-out infinite 1.1s; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (min-width: 900px) {
  .hero { padding: 96px 0 64px; }
  .hero__inner { grid-template-columns: 1.1fr 0.9fr; }
  .hero__stats { max-width: 480px; }
  .orbit-card { width: 340px; height: 340px; }
}

/* ---------- generic section ---------- */
.section { padding: 72px 0; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,0.015) 12%, rgba(255,255,255,0.015) 88%, transparent); }
.section__title {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-align: center;
  margin-bottom: 14px;
}
.section__title--left { text-align: left; }
.section__lead {
  text-align: center;
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 auto 48px;
}
.section__lead--left { text-align: left; margin: 0 0 32px; }

/* ---------- service cards ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); border-color: rgba(0,217,255,0.35); box-shadow: var(--shadow-sm); }
.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 18px;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 0.94rem; }

@media (min-width: 640px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- about / why us ---------- */
.about {
  display: grid;
  gap: 48px;
  align-items: center;
}
.feature-list { display: flex; flex-direction: column; gap: 18px; margin-top: 28px; }
.feature-list li { display: flex; align-items: flex-start; gap: 14px; }
.feature-list__icon {
  width: 24px; height: 24px;
  flex-shrink: 0;
  color: var(--ok);
  margin-top: 2px;
}
.feature-list strong { display: block; font-size: 1rem; margin-bottom: 2px; }
.feature-list span { color: var(--text-muted); font-size: 0.92rem; }

.about__visual { display: flex; justify-content: center; }
.terminal {
  width: 100%;
  max-width: 420px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.terminal__bar {
  display: flex;
  gap: 7px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.terminal__bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--text-dim); opacity: 0.5; }
.terminal__bar span:nth-child(1) { background: #ff5f57; opacity: 0.8; }
.terminal__bar span:nth-child(2) { background: #febc2e; opacity: 0.8; }
.terminal__bar span:nth-child(3) { background: #28c840; opacity: 0.8; }
.terminal__body {
  padding: 20px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.82rem;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.terminal__body p { color: var(--text-muted); }
.t-prompt { color: var(--accent); font-weight: 700; margin-right: 6px; }
.t-ok { color: var(--ok); }
.t-warn { color: var(--warn); }
.cursor-blink { animation: blink 1s step-end infinite; color: var(--accent); }
@keyframes blink { 50% { opacity: 0; } }

@media (min-width: 960px) {
  .about { grid-template-columns: 1fr 1fr; }
}

/* ---------- parceiros ---------- */
.partners-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
}
.partner-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: border-color var(--transition), transform var(--transition);
}
.partner-card:hover { border-color: rgba(0,217,255,0.35); transform: translateY(-3px); }
.partner-card__logo {
  width: 76px;
  height: 76px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-2);
}
.partner-card__logo img { width: 100%; height: 100%; object-fit: cover; }
.partner-card__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.partner-card__info strong { font-size: 1.02rem; }
.partner-card__info span { color: var(--text-muted); font-size: 0.88rem; }
.partner-card__link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.partner-card__link svg { width: 15px; height: 15px; }

@media (min-width: 640px) {
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- CTA band ---------- */
.cta-band {
  padding: 56px 0;
  background: linear-gradient(135deg, rgba(0,217,255,0.08), rgba(124,92,255,0.08));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-band__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
}
.cta-band h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 8px; }
.cta-band p { color: var(--text-muted); max-width: 46ch; }

@media (min-width: 760px) {
  .cta-band__inner { flex-direction: row; align-items: center; }
}

/* ---------- contact ---------- */
.contact-wrap {
  display: grid;
  gap: 24px;
}
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--text-muted); }
.field input, .field select, .field textarea {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color var(--transition);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-info { display: flex; flex-direction: column; gap: 14px; }
.info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  transition: border-color var(--transition), transform var(--transition);
}
.info-card:not(.info-card--static):hover { border-color: rgba(0,217,255,0.35); transform: translateX(4px); }
.info-card__icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}
.info-card__icon svg { width: 22px; height: 22px; }
.info-card strong { display: block; font-size: 0.92rem; }
.info-card span { color: var(--text-muted); font-size: 0.88rem; }

@media (min-width: 960px) {
  .contact-wrap { grid-template-columns: 1.2fr 0.8fr; align-items: start; }
}

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); padding-top: 40px; margin-top: 20px; }
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  padding-bottom: 24px;
}
.brand--footer { margin-right: 0; }
.footer__links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__links a { color: var(--text-muted); font-size: 0.9rem; transition: color var(--transition); }
.footer__links a:hover { color: var(--text); }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color var(--transition), border-color var(--transition);
}
.footer__social a svg { width: 18px; height: 18px; }
.footer__social a:hover { color: var(--accent); border-color: var(--accent); }
.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 20px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.82rem;
}

@media (min-width: 760px) {
  .footer__inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- back to top ---------- */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition), border-color var(--transition);
  z-index: 90;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--accent); color: var(--accent); }
.to-top svg { width: 20px; height: 20px; }

/* ==========================================================================
   Páginas internas (Downloads, Dicas, Galeria, Velocímetro, Contato, 404)
   ========================================================================== */

.page-head {
  padding: 56px 0 8px;
  text-align: center;
}
.page-head h1 {
  font-size: clamp(1.8rem, 4.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.page-head p {
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0 auto;
}

/* ---------- downloads ---------- */
.card__footer { margin-top: 18px; }
.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap var(--transition);
}
.card__link svg { width: 16px; height: 16px; }
.card__link:hover { gap: 10px; }
.card__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.download-note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 40px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.download-note svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--warn); margin-top: 2px; }

/* ---------- artigo (dicas) ---------- */
.article {
  max-width: 760px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.article__section h2 {
  font-size: 1.28rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.article__section h2 .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
  font-family: var(--font-head);
  flex-shrink: 0;
}
.article__section p { color: var(--text-muted); margin-bottom: 12px; }
.article__section ul { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.article__section li {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding-left: 22px;
  position: relative;
}
.article__section li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.kbd {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.84rem;
  color: var(--text);
}

/* ---------- galeria ---------- */
.gallery-note {
  background: var(--accent-soft);
  border: 1px dashed rgba(0, 217, 255, 0.4);
  border-radius: var(--radius);
  padding: 20px 24px;
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 36px 0;
  text-align: center;
}
.gallery-note strong { color: var(--text); }
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.gallery-item {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-dim);
  background: var(--surface);
  transition: border-color var(--transition), color var(--transition);
}
.gallery-item:hover { border-color: var(--accent); color: var(--accent); }
.gallery-item svg { width: 34px; height: 34px; opacity: 0.7; }
.gallery-item span { font-size: 0.84rem; }

.gallery-photo {
  position: relative;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  transition: border-color var(--transition), transform var(--transition);
}
.gallery-photo:hover { border-color: var(--accent); transform: translateY(-2px); }
.gallery-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.gallery-photo figcaption {
  padding: 10px 14px 14px;
  font-size: 0.84rem;
  color: var(--text-muted);
}
.gallery-photo__tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}
.gallery-photo__tag--before { background: rgba(124, 92, 255, 0.85); }
.gallery-photo__tag--after { background: rgba(0, 217, 255, 0.85); color: #061018; }
.gallery-photo--wide { grid-column: 1 / -1; }
.gallery-photo--wide img { aspect-ratio: 900 / 471; object-fit: contain; background: #fff; }

@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- velocímetro ---------- */
.speed-panel {
  max-width: 680px;
  margin: 40px auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
}
.speed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 8px 0 28px;
}
.speed-metric { display: flex; flex-direction: column; gap: 4px; }
.speed-metric__value {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.speed-metric__unit { font-size: 0.72rem; color: var(--text-dim); }
.speed-metric__label { font-size: 0.82rem; color: var(--text-muted); margin-top: 2px; }
.speed-status { min-height: 22px; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px; }
.speed-bar { height: 6px; border-radius: 4px; background: var(--bg-2); overflow: hidden; margin-bottom: 26px; }
.speed-bar__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 200ms linear;
}
.speed-disclaimer { margin-top: 22px; font-size: 0.78rem; color: var(--text-dim); }
.speed-widget-frame {
  max-width: 640px;
  margin: 0 auto;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
  min-height: 400px;
}
.speed-widget-frame iframe { display: block; width: 100% !important; border: 0; }

/* ---------- 404 ---------- */
.notfound {
  min-height: 56vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
  padding: 60px 20px;
}
.notfound__code {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(3rem, 12vw, 6rem);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.notfound p { color: var(--text-muted); max-width: 44ch; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .orbit-card__glow, .orbit-dot, .cursor-blink { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
}
