/* ===========================================================
   Matheus Vinícius Dev — design system do ecossistema
   (Institucional + Blog + Loja compartilham este arquivo)
   =========================================================== */

:root {
  --bg: #0b0f1a;
  --bg-elevated: #111726;
  --bg-card: #151d30;
  --border: #232d45;
  --text: #e7ecf7;
  --text-muted: #93a0bd;
  --text-faint: #5c6a8c;

  --accent: #5b8dff;
  --accent-2: #9b6bff;
  --accent-3: #d363ff;
  --accent-soft: rgba(91, 141, 255, .14);
  --gradient: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 55%, var(--accent-3) 100%);
  --glow: 0 0 0 1px rgba(155, 107, 255, .35), 0 12px 32px -8px rgba(124, 92, 255, .55);
  --glow-sm: 0 0 20px rgba(124, 92, 255, .4);

  --clearance: #ff6a3d;
  --clearance-soft: rgba(255, 106, 61, .14);

  --success: #33d17a;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;

  --grid-line: rgba(147, 160, 189, .07);
}

* { 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;
  opacity: 1;
  transition: opacity .22s ease;
}
body.is-leaving { opacity: 0; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 .5em; line-height: 1.2; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-inline: 24px;
}

.section { padding-block: 88px; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(79, 124, 255, .25);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.eyebrow::before { content: "//"; opacity: .6; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 26, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; }
.brand-mark {
  display: block;
  box-sizing: border-box;
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--gradient);
  padding: 2px;
  box-shadow: 0 0 0 1px rgba(155, 107, 255, .35);
}
.brand-name { font-size: 1.05rem; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--text-muted); font-weight: 500; font-size: .95rem; transition: color .2s; }
.site-nav a:hover, .site-nav a.active { color: var(--text); }
.site-nav a.nav-cta {
  color: #fff;
  background: var(--gradient);
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 18px; margin: 0 auto; background: var(--text); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  padding-block: 96px 64px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -20% -10% auto -10%;
  height: 480px;
  background: radial-gradient(circle at 30% 30%, rgba(79,124,255,.25), transparent 60%),
              radial-gradient(circle at 70% 60%, rgba(124,92,255,.2), transparent 55%);
  filter: blur(10px);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.hero .highlight { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .hero-roles { display: block; margin-top: .6em; font-size: clamp(1.05rem, 1.7vw, 1.35rem); line-height: 1.5; font-weight: 500; color: var(--text-muted); }
.hero p.lead { color: var(--text-muted); font-size: 1.15rem; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-position .4s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--gradient);
  background-size: 160% 160%;
  background-position: 0% 50%;
  color: #fff;
}
.btn-primary:hover { background-position: 100% 50%; box-shadow: var(--glow-sm); }
.btn-outline { border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }

.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.hero-card ul { display: flex; flex-direction: column; gap: 14px; }
.hero-card li { display: flex; justify-content: space-between; color: var(--text-muted); font-size: .92rem; border-bottom: 1px dashed var(--border); padding-bottom: 12px; }
.hero-card li:last-child { border: none; padding-bottom: 0; }
.hero-card li strong { color: var(--text); }
.hero-inner > * { min-width: 0; }
.hero-card li { gap: 12px; }
.hero-card li strong { text-align: right; overflow-wrap: anywhere; }

.stat-row { display: flex; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.stat-row .stat strong { display: block; font-family: var(--font-display); font-size: 1.9rem; }
.stat-row .stat span { color: var(--text-faint); font-size: .85rem; }

/* ---------- Skills ---------- */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.skill-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-weight: 600;
  font-size: .92rem;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.skill-pill:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--glow-sm); }
.skill-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
img.skill-icon {
  background: rgba(255,255,255,.92);
  border-radius: 6px;
  padding: 3px;
  object-fit: contain;
}
.skill-icon-emoji { font-size: 1.25rem; line-height: 1; }

/* ---------- Certificações ---------- */
.cert-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.cert-badge:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--glow-sm); }
.cert-badge-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  border-radius: 50%;
  background: var(--gradient);
}
.cert-badge strong { display: block; font-size: .92rem; }
.cert-badge-year { color: var(--text-faint); font-size: .8rem; font-family: var(--font-mono); }

/* ---------- Cards (projects / posts / products) ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity .25s ease;
}
.card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(155, 107, 255, .5);
  box-shadow: var(--glow);
}
.card:hover::before { opacity: 1; }
.card-thumb {
  height: 160px;
  background: var(--gradient);
  background-size: 160% 160%;
  background-position: 0% 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: rgba(255,255,255,.85);
  font-size: 1.4rem;
  transition: background-position .5s ease;
}
.card:hover .card-thumb { background-position: 100% 50%; }
.card-thumb-img { padding: 0; background: var(--bg-elevated); }
.card-thumb-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s ease; }
.card:hover .card-thumb-img img { transform: scale(1.05); }

.card-thumb-icon img { width: 52px; height: 52px; transition: transform .3s ease; }
.card:hover .card-thumb-icon img { transform: scale(1.12) rotate(-4deg); }
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}
.card-body h3 { font-size: 1.15rem; }
.card-body p { color: var(--text-muted); font-size: .92rem; flex: 1; }
.card-links { display: flex; gap: 16px; margin-top: 6px; }
.card-links a { font-size: .88rem; font-weight: 600; color: var(--accent); }

/* ---------- Timeline (experiência) ---------- */
.timeline { border-left: 2px solid var(--border); padding-left: 28px; display: flex; flex-direction: column; gap: 36px; }
.timeline-item { position: relative; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -34px; top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gradient);
}
.timeline-item time { font-family: var(--font-mono); color: var(--accent); font-size: .82rem; font-weight: 500; letter-spacing: .02em; }
.timeline-item h3 { margin: 6px 0 4px; font-size: 1.1rem; }
.timeline-item p { color: var(--text-muted); margin: 0; }
.timeline-bullets { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.timeline-bullets li { color: var(--text-muted); list-style: disc; margin-left: 1.2em; }

/* ---------- Contato ---------- */
.contact-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-info { display: flex; flex-direction: column; gap: 20px; justify-content: center; }
.contact-info a { color: var(--accent); font-weight: 600; }
.contact-info .info-row { display: flex; gap: 14px; align-items: flex-start; color: var(--text-muted); }
.contact-info .info-row strong { display: block; color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding-top: 48px; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; padding-bottom: 32px; }
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-brand p { margin: 2px 0 0; color: var(--text-faint); font-size: .85rem; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a, .footer-social a { color: var(--text-muted); font-size: .9rem; }
.footer-links a:hover, .footer-social a:hover { color: var(--text); }
.footer-social { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom { border-top: 1px solid var(--border); padding-block: 20px; color: var(--text-faint); font-size: .82rem; }

/* ---------- Page hero (blog/loja) ---------- */
.page-hero { padding-block: 64px 32px; text-align: center; }
.page-hero h1 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
.page-hero p { color: var(--text-muted); max-width: 560px; margin-inline: auto; }

/* ---------- Blog ---------- */
.post-meta { display: flex; gap: 12px; color: var(--text-faint); font-size: .82rem; }

/* ---------- Vídeos (canal do YouTube) ---------- */
.video-card .card-thumb { height: auto; aspect-ratio: 16 / 9; padding: 0; background: #000; }
.video-card .card-thumb iframe { width: 100%; height: 100%; border: 0; display: block; }
.youtube-banner {
  background: linear-gradient(120deg, rgba(255,0,51,.14), rgba(255,0,51,.04));
  border: 1px solid rgba(255,0,51,.35);
  border-radius: var(--radius);
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.youtube-banner p { color: var(--text-muted); margin: 4px 0 0; }
.youtube-banner .btn { flex-shrink: 0; }

/* ---------- Loja / Clearance ---------- */
.clearance-banner {
  background: linear-gradient(120deg, rgba(255,106,61,.16), rgba(255,106,61,.04));
  border: 1px solid var(--clearance-soft);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.clearance-banner h2 { color: var(--clearance); margin: 0 0 4px; font-size: 1.5rem; }
.clearance-banner p { margin: 0; color: var(--text-muted); }
.badge-clearance {
  background: var(--clearance);
  color: #fff;
  font-weight: 700;
  font-size: .75rem;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: .03em;
}

.product-card { position: relative; }
.product-card .badge-clearance { position: absolute; top: 14px; left: 14px; z-index: 2; }
.product-price { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; }
.product-price .old { color: var(--text-faint); text-decoration: line-through; font-size: .88rem; }
.product-price .new { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--success); }
.product-price .new.clearance-price { color: var(--clearance); }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-bar a {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .88rem;
  font-weight: 600;
}
.filter-bar a.active { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* ---------- Utilitários ---------- */
.section-alt { background: var(--bg-elevated); }
.mt-sm { margin-top: 14px; }
.mb-sm { margin-bottom: 14px; }
.mb-md { margin-bottom: 36px; }
.mb-lg { margin-bottom: 48px; }
.mb-xl { margin-bottom: 64px; }
.pt-0 { padding-top: 0; }
.pt-sm { padding-top: 8px; }
.pt-md { padding-top: 16px; }
.pb-md { padding-bottom: 20px; }
.text-faint-sm { color: var(--text-faint); font-size: .85rem; margin: 0; }
.link-clearance { color: var(--clearance); font-weight: 600; }

/* ---------- Vídeo de fundo (hero e topo do blog) ---------- */
.bg-video { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; }
.bg-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.bg-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11,15,26,.95) 0%, rgba(11,15,26,.85) 45%, rgba(11,15,26,.6) 100%),
    linear-gradient(to bottom, transparent 55%, var(--bg) 100%);
}
.hero::before, .hero::after { z-index: 1; }
.page-hero-video { position: relative; overflow: hidden; padding-block: 96px 64px; }
.page-hero-video .bg-video::after { background: linear-gradient(rgba(11,15,26,.78), rgba(11,15,26,.88) 70%, var(--bg)); }
.page-hero-video .container { position: relative; z-index: 2; }
.page-hero-video p { color: var(--text); }
.media-credit { position: absolute; right: 16px; bottom: 10px; z-index: 2; margin: 0; font-size: .72rem; color: var(--text-faint); }
.media-credit a { color: inherit; text-decoration: underline; }
@media (prefers-reduced-motion: reduce) {
  .bg-video video { display: none; }
}

/* ---------- Galeria de aviação ---------- */
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.media-card { margin: 0; }
.card-thumb-photo { height: auto; aspect-ratio: 16 / 10; }
.card-thumb-photo img { object-position: center; }
.photo-credit { display: block; margin-top: 10px; font-size: .72rem; color: var(--text-faint); }
.photo-credit:hover { color: var(--text-muted); }
.video-card .card-thumb video { width: 100%; height: 100%; display: block; object-fit: cover; background: #000; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .hero-inner, .contact-wrap { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .bg-video::after { background: linear-gradient(rgba(11,15,26,.86), rgba(11,15,26,.9) 70%, var(--bg)); }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 18px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .stat-row { gap: 20px; }
  .clearance-banner { flex-direction: column; align-items: flex-start; }
  .section { padding-block: 56px; }
}
