/* Hub-style theme: deep green-black, mint accent, Archivo + DM Mono */
:root, :root[data-theme="light"], :root[data-theme="dark"] {
  color-scheme: dark;
  --hub-bg: #00100f;
  --hub-bg-2: #082014;
  --hub-mint: #6fe8a2;
  --hub-cream: #f5f3ec;
  --hub-muted: #a9b8b2;

  --text-primary: var(--hub-cream);
  --text-secondary: var(--hub-muted);
  --text-tertiary: #f5f3ec4d;
  --text-primary-on: #00100f;
  --text-secondary-on: #0b3a24;
  --fill-primary: var(--hub-mint);
  --fill-primary-on: var(--hub-bg);
  --fill-secondary: #6fe8a280;
  --fill-tertiary: #0c2219;
  --fill-segment: #12352a;
  --stroke-primary: #6fe8a238;
  --stroke-secondary: #6fe8a21a;
  --stroke-primary-on: #00100f1a;
  --hover-wash: #6fe8a212;
  --hover-wash-primary-on: #00100f14;

  --hero-surface: #00100f;
  --hero-text: #f5f3ec;
  --hero-text-muted: #f5f3eccc;
  --hero-scrim-strong: rgb(0 16 15 / 0.82);
  --hero-scrim-soft: rgb(0 16 15 / 0.25);
  --hero-scrim-side: rgb(0 16 15 / 0.55);
  --hero-glass: rgb(0 16 15 / 0.55);
  --hero-glass-faint: rgb(0 16 15 / 0.4);
  --hero-glass-stroke: rgb(111 232 162 / 0.35);

  --mat-regular: rgb(8 32 20 / 0.7);
  --mat-thin: rgb(8 32 20 / 0.45);
  --mat-agent: rgb(8 32 20 / 0.85);
  --mat-inverse: rgb(0 16 15 / 0.82);
  --hark-shadow: 0 8px 40px #0008;

  --sans: "Archivo", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
}

body {
  background:
    radial-gradient(1200px 600px at 85% -10%, #6fe8a21f, transparent 60%),
    radial-gradient(900px 500px at -10% 40%, #6fe8a20f, transparent 60%),
    var(--hub-bg);
}

h1, h2, .hero h1 {
  font-family: "Archivo", sans-serif;
  font-stretch: 112%;
  font-weight: 800;
  letter-spacing: -0.01em;
}
h2 { font-weight: 700; }
h1 { text-shadow: 0 0 28px #6fe8a240; }

.hero__eyebrow, .head__eyebrow, .hero__meta, .callout__head, .fineprint {
  font-family: var(--mono);
  letter-spacing: 0.04em;
}
.hero__eyebrow, .head__eyebrow { color: var(--hub-mint); text-transform: uppercase; font-size: 12px; }

.x-code__val { font-family: var(--mono) !important; color: var(--hub-mint) !important; }
.x-code { background: #00100fcc !important; border-color: #6fe8a259 !important; }

.btn, .x-copy {
  background: var(--hub-mint) !important;
  color: #00100f !important;
  font-weight: 700;
  box-shadow: 0 0 24px #6fe8a259;
}
.btn:hover, .x-copy:hover { box-shadow: 0 0 36px #6fe8a28c; opacity: 1; }

.section {
  border: 1px solid var(--stroke-secondary);
  background: linear-gradient(180deg, #082014b3, #00100fb3);
}
.card, .cards > * {
  border-color: var(--stroke-primary);
}
a.link { color: var(--hub-mint); }

/* Robot gallery */
.robots {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 900px) { .robots { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.robot {
  margin: 0;
  border-radius: var(--r-l);
  overflow: hidden;
  border: 1px solid var(--stroke-primary);
  background: var(--fill-tertiary);
}
.robot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.robot figcaption { padding: 12px 14px 14px; font: var(--type-small); color: var(--text-secondary); }
.robot figcaption b { display: block; color: var(--text-primary); font-family: var(--mono); font-weight: 400; margin-bottom: 4px; }
.robot--wide { grid-column: 1 / -1; }
.robot--wide img { aspect-ratio: 21 / 9; object-position: center 35%; }
.credit { font: var(--type-caption); color: var(--text-secondary); margin-top: 8px; }

/* Nav on dark */
.seg { background: #0c2219; }
.seg a { color: var(--hub-muted); }
.seg a:hover { color: var(--hub-cream); }
.seg a[aria-current="true"] { background: var(--hub-mint); color: #00100f; }
.theme-btn { display: none !important; }
.glass { border-color: #6fe8a226; }

/* Hero framing for the Hubens photo */
.hero__img { object-position: 62% 25%; }
@media (max-width: 899px) { .hero__img { object-position: 58% 20% !important; } }

.section { padding: clamp(20px, 4vw, 40px); border-radius: var(--r-xl); }

/* Legibilidade do hero (16 nov): texto nunca sobre o rosto do robô */
.hero::after {
  background:
    linear-gradient(to right, rgb(0 16 15 / 0.96) 0%, rgb(0 16 15 / 0.88) 38%, rgb(0 16 15 / 0.35) 62%, transparent 80%),
    linear-gradient(to top, rgb(0 16 15 / 0.9) 0%, transparent 45%) !important;
}
.hero h1, .hero__sub, .hero__meta { text-shadow: 0 2px 12px rgb(0 0 0 / 0.6); }
.hero__meta { color: #f5f3ec !important; }
@media (min-width: 900px) { .hero__img { object-position: 85% 25% !important; } .hero__copy { max-width: 34rem; } }
@media (max-width: 899px) {
  .hero { display: block !important; min-height: 0 !important; background: #00100f; }
  .hero__img { position: relative !important; inset: auto !important; display: block; width: 100%; height: 260px !important; object-position: 55% 18% !important; z-index: 0 !important; }
  .hero::after { display: none !important; }
  .hero__copy { position: relative; padding: 22px 20px 26px !important; }
  .hero h1 { font-size: clamp(30px, 8.5vw, 40px) !important; line-height: 1.08; }
  .hero__credit { top: 12px !important; right: 12px !important; }
}

/* Posição das mãos na gravação (28 nov) */
.hands { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .hands { grid-template-columns: minmax(0, 1fr); } }
.hands figure { margin: 0; border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--stroke-primary); background: var(--fill-tertiary); }
.hands img { display: block; width: 100%; height: auto; }
.hands figcaption { padding: 12px 14px 14px; font: var(--type-small); color: var(--text-secondary); }
.hands figcaption b { display: block; color: var(--text-primary); font-family: var(--mono); font-weight: 400; margin-bottom: 4px; }
.tips { margin-top: 16px; }

/* Vídeos (28 nov) */
.videos { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: start; }
.video { margin: 0; padding: 14px; border-radius: var(--r-l); border: 1px solid var(--stroke-primary); background: var(--fill-tertiary); min-width: 0; }
.video h3 { font: var(--type-heading); margin: 0 0 10px; color: var(--text-primary); }
.video__frame { width: 100%; max-width: 340px; margin: 0 auto; aspect-ratio: 9 / 17; border-radius: var(--r-m); overflow: hidden; background: #000; }
.video__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.video__ig { max-width: 340px; margin: 0 auto; }
.video__ig .instagram-media { min-width: 0 !important; width: 100% !important; max-width: 340px !important; margin: 0 !important; }
.video figcaption { padding-top: 10px; font: var(--type-small); color: var(--text-secondary); }
.video figcaption p { margin: 0 0 8px; color: var(--text-primary); }
.video__url { word-break: break-all; font-family: var(--mono); font-size: 12px; }

/* Mentoria grátis (28 nov) */
.mentoria { margin: 12px 0; padding: 12px 14px; border-radius: var(--r-m); border: 1px solid var(--hub-mint); background: #6fe8a21f; color: var(--hub-cream); font-size: 15px; line-height: 1.4; }
.mentoria strong { color: var(--hub-mint); }

/* Listas de links: evita sobreposição no celular */
.prose li > a.link { display: inline !important; margin: 0 !important; min-height: 0 !important; min-width: 0 !important; line-height: 1.45 !important; vertical-align: baseline !important; }
.prose ul li { margin-bottom: 14px !important; line-height: 1.45 !important; }
