/* =====================================================================
   PIXEL FORGE — estilo principal
   Paleta: tinta escura · papel quente · indigo elétrico · coral (micro)
   Tipos:  Space Grotesk (display) · Inter (texto) · JetBrains Mono (meta)
   ===================================================================== */

:root {
  --ink:        #13131c;
  --ink-soft:   #1d1d2b;
  --ink-line:   #2b2b3d;
  --paper:      #f4f1e9;
  --paper-2:    #ece7da;
  --text:       #1a1a22;
  --text-soft:  #5a5a68;
  --paper-text: #cfcde0;
  --accent:     #4b3bff;   /* indigo elétrico — principal */
  --accent-2:   #ff5f45;   /* coral — só micro-acentos / promoções */
  --mint:       #19d68a;   /* preço / sucesso */
  --radius:     14px;
  --shadow:     0 18px 50px -24px rgba(19,19,28,.45);
  --maxw:       1140px;
  --font-disp:  'Space Grotesk', sans-serif;
  --font-body:  'Inter', sans-serif;
  --font-mono:  'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-disp);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ---- Botões ----------------------------------------------------------- */
.btn-accent {
  --bs-btn-color: #fff;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  padding: .62rem 1.4rem;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-accent:hover {
  background: #3a2bef;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -12px rgba(75,59,255,.7);
}
.btn-ghost {
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  padding: .6rem 1.3rem;
  background: transparent;
  transition: border-color .18s ease, color .18s ease;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---- Header / nav ----------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(244,241,233,.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--paper-2);
}
.navbar { padding-top: .9rem; padding-bottom: .9rem; }
.navbar-brand {
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -.02em;
}
.brand-mark { color: var(--accent); letter-spacing: -3px; }
.navbar .nav-link {
  font-weight: 500;
  color: var(--text-soft);
  padding-left: .9rem;
  padding-right: .9rem;
  transition: color .15s ease;
}
.navbar .nav-link:hover { color: var(--text); }
.nav-soon { opacity: .55; }
.navbar-toggler { border: none; padding: .4rem; }
.navbar-toggler:focus { box-shadow: none; }
.toggler-bar {
  display: block; width: 22px; height: 2px;
  background: var(--ink); margin: 4px 0; border-radius: 2px;
}

/* ---- Hero ------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: 7rem 0 6rem;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--ink-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink-line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 70% 30%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 60% at 70% 30%, #000 0%, transparent 75%);
  opacity: .5;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  color: #fff;
  max-width: 14ch;
}
.hero h1 .hl { color: var(--accent); }
.hero-lead {
  color: var(--paper-text);
  font-size: 1.15rem;
  max-width: 46ch;
  margin: 1.4rem 0 2.2rem;
}
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-actions .btn-ghost { color: #fff; border-color: var(--ink-line); }
.hero-actions .btn-ghost:hover { border-color: var(--accent); color: #fff; }

.hero-stats {
  display: flex; gap: 2.5rem; margin-top: 3.4rem;
  font-family: var(--font-mono);
  color: var(--paper-text);
  flex-wrap: wrap;
}
.hero-stats b { display: block; font-size: 1.6rem; color: #fff; font-family: var(--font-disp); }
.hero-stats span { font-size: .78rem; letter-spacing: .08em; }

/* ---- Secções ---------------------------------------------------------- */
.section { padding: 5.5rem 0; }
.section-head { max-width: 56ch; margin-bottom: 2.6rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.section-head p { color: var(--text-soft); margin-top: .8rem; }
.section-ink { background: var(--ink); color: var(--paper); }
.section-ink h2 { color: #fff; }
.section-ink p { color: var(--paper-text); }

/* ---- Cartão-pacote de produto (assinatura) ---------------------------- */
.product-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--paper-2);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: #ddd6c6;
}
.product-thumb {
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(75,59,255,.18), transparent 55%),
    var(--ink);
  display: flex; align-items: center; justify-content: center;
  color: #fff; position: relative;
}
.product-thumb .glyph {
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: 2.4rem;
  opacity: .9;
  letter-spacing: -.04em;
}
.product-badge {
  position: absolute; top: .8rem; left: .8rem;
  font-family: var(--font-mono);
  font-size: .66rem; letter-spacing: .12em; text-transform: uppercase;
  background: var(--accent-2); color: #fff;
  padding: .25rem .55rem; border-radius: 6px;
}
.product-badge.is-sub { background: var(--accent); }

/* faixa mono de metadados — "isto é um ficheiro" */
.product-meta {
  display: flex; gap: .9rem; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: .7rem; color: var(--text-soft);
  padding: .7rem 1.1rem;
  border-bottom: 1px dashed var(--paper-2);
}
.product-meta span::before { content: "› "; color: var(--accent); }

.product-body { padding: 1.1rem 1.1rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.product-cat {
  font-family: var(--font-mono);
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .35rem;
}
.product-title { font-size: 1.18rem; margin: 0 0 .35rem; }
.product-desc { color: var(--text-soft); font-size: .92rem; margin: 0 0 1.1rem; }
.product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.price { font-family: var(--font-disp); font-weight: 700; font-size: 1.25rem; }
.price .old { font-size: .85rem; color: var(--text-soft); text-decoration: line-through; font-weight: 500; margin-right: .4rem; }
.price .sub-int { font-family: var(--font-mono); font-size: .72rem; color: var(--text-soft); font-weight: 400; }

/* ---- Tira de categorias ---------------------------------------------- */
.cat-strip { display: flex; gap: .6rem; flex-wrap: wrap; }
.cat-chip {
  font-family: var(--font-mono);
  font-size: .78rem;
  border: 1px solid var(--paper-2);
  border-radius: 999px;
  padding: .4rem .95rem;
  color: var(--text-soft);
  transition: all .15s ease;
  background: #fff;
}
.cat-chip:hover, .cat-chip.active { border-color: var(--accent); color: var(--accent); }

/* ---- Faixa de valor (porquê comprar) ---------------------------------- */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.value-item { padding: 1.6rem; border: 1px solid var(--ink-line); border-radius: var(--radius); }
.value-item .num { font-family: var(--font-mono); color: var(--accent); font-size: .8rem; letter-spacing: .1em; }
.value-item h4 { color: #fff; font-size: 1.15rem; margin: .7rem 0 .5rem; }
.value-item p { color: var(--paper-text); font-size: .92rem; margin: 0; }

/* ---- Página de produto ----------------------------------------------- */
.product-hero { background: var(--paper); padding: 3rem 0 1rem; }
.breadcrumb-mono {
  font-family: var(--font-mono); font-size: .76rem; color: var(--text-soft);
  margin-bottom: 1.4rem;
}
.breadcrumb-mono a:hover { color: var(--accent); }
.product-detail-thumb {
  aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(75,59,255,.22), transparent 55%),
    var(--ink);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.product-detail-thumb .glyph { font-family: var(--font-disp); font-weight: 700; font-size: 4rem; letter-spacing: -.04em; }
.spec-table {
  width: 100%; font-family: var(--font-mono); font-size: .82rem;
  border-top: 1px solid var(--paper-2); margin-top: 1.4rem;
}
.spec-table div { display: flex; justify-content: space-between; padding: .6rem 0; border-bottom: 1px solid var(--paper-2); }
.spec-table div span:first-child { color: var(--text-soft); }
.buy-box {
  background: #fff; border: 1px solid var(--paper-2);
  border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow);
}
.buy-price { font-family: var(--font-disp); font-weight: 700; font-size: 2rem; }

/* ---- Footer ----------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--paper-text); padding: 3.6rem 0 1.6rem; margin-top: 2rem; }
.footer-brand { font-family: var(--font-disp); font-weight: 700; color: #fff; font-size: 1.2rem; }
.footer-tag { margin-top: .8rem; max-width: 36ch; font-size: .95rem; }
.footer-head { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: .5rem; }
.footer-list a { color: var(--paper-text); font-size: .92rem; }
.footer-list a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem;
  border-top: 1px solid var(--ink-line); margin-top: 2.6rem; padding-top: 1.4rem;
  font-size: .82rem;
}
.footer-mono { font-family: var(--font-mono); color: var(--accent); }

/* ---- Responsivo ------------------------------------------------------- */
@media (max-width: 991px) {
  .navbar-collapse { background: var(--paper); margin-top: .8rem; padding: 1rem; border-radius: var(--radius); border: 1px solid var(--paper-2); }
  .value-grid { grid-template-columns: 1fr; }
  .hero { padding: 5rem 0 4rem; }
}

/* ---- Acessibilidade --------------------------------------------------- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
