/* ============================================================
   LP — IA PARA DEVS · FACULDADE PECEGE
   Design system: Vertex Core (Blueprint/Schematic UI)
   ============================================================ */

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: 0; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* Skip link — accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 12px;
}

/* Focus rings — visible keyboard focus */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   TOKENS — dark Pecege palette
   ============================================================ */
:root {
  /* Fonts */
  --font-display: "Funnel Display", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "Reddit Mono", ui-monospace, monospace;

  /* Vertex Brace */
  --vb-size: 20px;
  --vb-weight: 1.5px;

  /* Grid density: fina */
  --grid-size: 72px;
  --grid-opacity: 0.22;

  /* Micro UI: ativo */
  --micro-opacity: 1;

  /* Easing */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* Layout */
  --max: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(72px, 9vw, 128px);

  /* Dark Pecege surfaces (built around brand #2f2d48) */
  --bg: #14121f;
  --bg-elev: #1c1a2b;
  --surface: #252336;
  --surface-2: #2f2d48;

  --line: #3d3b58;
  --line-strong: #56537a;
  --line-faint: rgba(61, 59, 88, 0.65);

  --text: #f8f5fc;
  --text-soft: #dcd6e4;
  --text-muted: #a8a3b8;
  --text-faint: #807a92;

  /* Accent: Pecege Red */
  --accent: #f20c3a;
  --accent-hi: #ff3d5f;
  --accent-soft: rgba(242, 12, 58, 0.16);
  --accent-ink: #ffffff;

  --danger: #ff7799;
  --warn: #ffc966;
  --ok: #85ffc4;

  --grid-color: rgba(242, 12, 58, 0.08);
  --grid-color-strong: rgba(242, 12, 58, 0.22);
  --scan-color: rgba(242, 12, 58, 0.05);
}

/* ============================================================
   BACKGROUND GRID — the infinite blueprint
   ============================================================ */
.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  opacity: var(--grid-opacity);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 90%);
}

.scan-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent 0,
    transparent 7px,
    var(--scan-color) 7px,
    var(--scan-color) 8px
  );
  opacity: 0.6;
}

/* Background spark — Claude-Code-inspired asterisk pulse, follows mouse */
.bg-spark {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-spark-pos {
  position: absolute;
  left: var(--spark-x, 50%);
  top: var(--spark-y, 50%);
  width: 60vmin;
  height: 60vmin;
  transform: translate(-50%, -50%);
  will-change: left, top;
}
.bg-spark-inner {
  width: 100%;
  height: 100%;
  color: var(--accent);
  filter: drop-shadow(0 0 24px var(--accent));
  animation:
    spark-rotate 32s linear infinite,
    spark-pulse 4.5s ease-in-out infinite;
}
.bg-spark-inner svg {
  width: 100%;
  height: 100%;
  display: block;
}
.bg-spark-inner svg line {
  transform-origin: 100px 100px;
  animation: spark-ray 3.6s ease-in-out infinite;
}
.bg-spark-inner svg line:nth-child(1)  { animation-delay: -0.0s; }
.bg-spark-inner svg line:nth-child(2)  { animation-delay: -0.3s; }
.bg-spark-inner svg line:nth-child(3)  { animation-delay: -0.6s; }
.bg-spark-inner svg line:nth-child(4)  { animation-delay: -0.9s; }
.bg-spark-inner svg line:nth-child(5)  { animation-delay: -1.2s; }
.bg-spark-inner svg line:nth-child(6)  { animation-delay: -1.5s; }
.bg-spark-inner svg line:nth-child(7)  { animation-delay: -1.8s; }
.bg-spark-inner svg line:nth-child(8)  { animation-delay: -2.1s; }
.bg-spark-inner svg line:nth-child(9)  { animation-delay: -2.4s; }
.bg-spark-inner svg line:nth-child(10) { animation-delay: -2.7s; }
.bg-spark-inner svg line:nth-child(11) { animation-delay: -3.0s; }
.bg-spark-inner svg line:nth-child(12) { animation-delay: -3.3s; }

@keyframes spark-rotate {
  to { transform: rotate(360deg); }
}
@keyframes spark-pulse {
  0%, 100% { opacity: 0.06; }
  50%      { opacity: 0.16; }
}
@keyframes spark-ray {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(0.65); }
}

@media (max-width: 540px) {
  .bg-spark-inner {
    width: 92vmin;
    height: 92vmin;
    filter: drop-shadow(0 0 16px var(--accent));
  }
  @keyframes spark-pulse {
    0%, 100% { opacity: 0.04; }
    50%      { opacity: 0.10; }
  }
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.04;
  color: var(--text);
  text-wrap: balance;
}
h2.display { text-wrap: balance; }

h1, .h1 { font: 600 clamp(40px, 6vw, 76px) / 1.02 var(--font-display); letter-spacing: -0.025em; }
h2, .h2 { font: 600 clamp(32px, 4.6vw, 56px) / 1.05 var(--font-display); letter-spacing: -0.02em; }
h3, .h3 { font: 600 clamp(24px, 2.4vw, 32px) / 1.15 var(--font-display); letter-spacing: -0.01em; }
h4, .h4 { font: 600 20px/1.25 var(--font-display); }

.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }
.upper { text-transform: uppercase; letter-spacing: 0.12em; }

.lead {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 62ch;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  position: relative;
}

.section {
  position: relative;
  padding-block: var(--section-y);
  z-index: 1;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: clamp(40px, 5vw, 72px);
  max-width: 920px;
}

.section-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  align-self: flex-start;
}
.section-num .id {
  color: var(--accent);
  border: 1px solid var(--line-strong);
  padding: 3px 8px;
  background: var(--bg);
}

/* ============================================================
   VERTEX BRACES — the signature corners
   ============================================================ */
.vb {
  position: relative;
}
.vb::before,
.vb::after,
.vb > .vb-c1,
.vb > .vb-c2 {
  content: "";
  position: absolute;
  width: var(--vb-size);
  height: var(--vb-size);
  pointer-events: none;
  z-index: 2;
}
/* VBs grow INWARD — anchored at 0 so increased weight thickens into the container */
.vb::before {
  top: 0; left: 0;
  border-top: var(--vb-weight) solid var(--accent);
  border-left: var(--vb-weight) solid var(--accent);
}
.vb::after {
  top: 0; right: 0;
  border-top: var(--vb-weight) solid var(--accent);
  border-right: var(--vb-weight) solid var(--accent);
}
.vb > .vb-c1 {
  bottom: 0; left: 0;
  border-bottom: var(--vb-weight) solid var(--accent);
  border-left: var(--vb-weight) solid var(--accent);
}
.vb > .vb-c2 {
  bottom: 0; right: 0;
  border-bottom: var(--vb-weight) solid var(--accent);
  border-right: var(--vb-weight) solid var(--accent);
}

/* ============================================================
   MICRO-UI — coordinates, serial numbers, infinite lines
   ============================================================ */
.micro {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  text-transform: uppercase;
  opacity: var(--micro-opacity);
  transition: opacity 0.25s var(--ease);
}

.coord {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  opacity: var(--micro-opacity);
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-faint);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
@media (max-width: 720px) {
  .nav-inner { gap: 12px; padding-left: 16px; padding-right: 16px; }
  .nav-divider,
  .nav-curso { display: none; }
  .nav-brand img { height: 22px; }
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: opacity 0.2s var(--ease);
}
.nav-brand:hover { opacity: 0.8; }
.nav-brand img {
  height: 26px;
  width: auto;
  filter: brightness(0) invert(1) opacity(0.92);
}

.nav-divider {
  width: 1px;
  height: 22px;
  background: var(--line-strong);
}
.nav-curso {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.nav-curso strong {
  color: var(--text);
  font-weight: 500;
}
.nav-links {
  display: flex;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}
.nav-links a {
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Hamburger toggle — mobile only */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--line-strong);
  padding: 0 11px;
  transition: border-color 0.2s var(--ease);
}
.nav-toggle:hover { border-color: var(--accent); }
.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 1023px) {
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 12px var(--gutter) 28px;
    gap: 0;
    font-size: 14px;
    letter-spacing: 0.1em;
    z-index: 49;
  }
  .nav-links.open {
    display: flex;
    animation: nav-drawer-in 0.25s var(--ease);
  }
  .nav-links a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line-faint);
    color: var(--text);
  }
  .nav-links a:last-child { border-bottom: 0; }
}
@keyframes nav-drawer-in {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  transition: all 0.2s var(--ease);
  position: relative;
  white-space: nowrap;
}
.btn::after {
  content: "→";
  font-family: var(--font-mono);
  transition: transform 0.2s var(--ease);
}
.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn:hover::after { transform: translateX(4px); }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover {
  background: var(--accent-hi);
  border-color: var(--accent-hi);
  color: var(--accent-ink);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.btn-sm {
  padding: 11px 16px;
  font-size: 12px;
  min-height: 40px;
}

/* ============================================================
   01 — HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: clamp(40px, 5vw, 80px);
  padding-bottom: clamp(40px, 5vw, 80px);
  border-bottom: 1px solid var(--line-faint);
  overflow: hidden;
}

.hero > .wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 940px;
  gap: clamp(36px, 5vw, 56px);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 24px;
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  backdrop-filter: blur(6px);
}
.hero-status .dot {
  width: 7px; height: 7px;
  background: var(--ok, #66ffb0);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok, #66ffb0) 30%, transparent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  margin-bottom: 24px;
  text-wrap: balance;
  /* ~4 lines on desktop for typical hook length */
  max-width: clamp(280px, 60vw, 720px);
  margin-inline: auto;
}
@media (max-width: 720px) {
  .hero h1 { max-width: 95%; }
}
.hero h1 .accent { color: var(--accent); }
.hero h1 .strike {
  text-decoration: line-through;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  color: var(--text-muted);
}

.hero-sub {
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 60ch;
  margin: 0 auto 36px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
  justify-content: center;
}

.hero-meta {
  display: inline-grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin-inline: auto;
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  backdrop-filter: blur(6px);
}
@media (min-width: 540px) {
  .hero-meta { grid-template-columns: repeat(3, auto); }
}
.hero-meta > div {
  padding: 14px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.hero-meta dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 4px;
  white-space: nowrap;
}
.hero-meta dd {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
}
@media (max-width: 540px) {
  .hero-meta dt { font-size: 9px; }
  .hero-meta dd { font-size: 14px; }
  .hero-meta > div { padding: 12px 14px; }
}

.hero-hook-cycler {
  display: flex;
  gap: 6px;
  margin-bottom: 28px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  align-items: center;
  justify-content: center;
}
.hero-hook-cycler .label { margin-right: 8px; }
.hero-hook-cycler button {
  width: 22px; height: 22px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  transition: all 0.2s var(--ease);
}
.hero-hook-cycler button:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.hero-hook-cycler button[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

/* ----- terminal wrap · drives outer width ----- */
.hero-term-wrap {
  width: min(720px, 100%);
  margin-inline: auto;
}

/* ----- terminal · fixed-size container with absolute children ----- */
.terminal {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  padding: 0;
  width: 100%;
  height: 500px;
  overflow: hidden;
  contain: size layout paint;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-soft);
}
.terminal-head {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  z-index: 1;
}
.terminal-head .left {
  display: flex;
  gap: 6px;
}
.terminal-head .left span {
  width: 9px; height: 9px;
  background: var(--line-strong);
  display: block;
}
.terminal-head .left span:first-child { background: var(--accent); }
.terminal-head .right {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.terminal-body {
  position: absolute;
  top: 36px;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 18px 24px;
  overflow: hidden;
}
.terminal-line { white-space: pre-wrap; min-height: 1.6em; }
.terminal-line .prompt { color: var(--accent); }
.terminal-line .kw     { color: var(--accent-hi); }
.terminal-line .com    { color: var(--text-faint); }
.terminal-line .str    { color: var(--ok); }
.terminal-line .num    { color: var(--warn); }
.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  vertical-align: text-bottom;
  background: var(--accent);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}

/* stack stripe */
.stack-stripe {
  border-block: 1px solid var(--line);
  padding-block: 20px;
  overflow: hidden;
  position: relative;
}
.stack-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  align-items: center;
}
.stack-track .item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.stack-track .item::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  display: inline-block;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   02 — DIAGNÓSTICO
   ============================================================ */
.symptoms {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (min-width: 720px) { .symptoms { grid-template-columns: repeat(2, 1fr); } }
.symptom {
  padding: 28px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
  align-items: flex-start;
  position: relative;
  transition: background 0.25s var(--ease);
}
.symptom:hover { background: var(--accent-soft); }
.symptom .x {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1.2;
  width: 26px;
  height: 26px;
  border: 1px solid var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.symptom p {
  font-size: 16px;
  color: var(--text-soft);
  line-height: 1.5;
}
.symptom .idx {
  position: absolute;
  top: 8px;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  opacity: var(--micro-opacity);
}

.symptoms-cta {
  margin-top: 28px;
  padding: 20px 24px;
  border: 1px dashed var(--line-strong);
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.symptoms-cta strong { color: var(--accent); font-weight: 500; }

/* ============================================================
   03 — O MAPA
   ============================================================ */
.map-table {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.map-col {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
@media (min-width: 900px) {
  .map-table {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto repeat(5, auto);
  }
  .map-col {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 6;
  }
}
.map-col-head {
  padding: 22px 22px 18px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.map-col-head .tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 8px;
}
.map-col-head h3 {
  font-size: 24px;
  line-height: 1.2;
}
.map-col[data-kind="noise"] .map-col-head h3 { color: var(--text-muted); }
.map-col[data-kind="found"] .map-col-head h3 { color: var(--text); }
.map-col[data-kind="prod"]  .map-col-head h3 { color: var(--accent); }

.map-item {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line-faint);
  font-size: 14px;
  color: var(--text-soft);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.map-item:last-child { border-bottom: 0; }
.map-item .bullet {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-faint);
  width: 18px;
  flex-shrink: 0;
  padding-top: 2px;
}
.map-col[data-kind="noise"] .map-item { color: var(--text-muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.map-col[data-kind="prod"]  .map-item .bullet { color: var(--accent); }

/* ============================================================
   04 — VS
   ============================================================ */
.vs-table {
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr;
}
.vs-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.1fr;
  border-bottom: 1px solid var(--line);
}
.vs-row:last-child { border-bottom: 0; }
.vs-row > div { padding: 20px 22px; border-right: 1px solid var(--line); }
.vs-row > div:last-child { border-right: 0; }
.vs-row .axis {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: flex;
  align-items: center;
}
.vs-row .gen { color: var(--text-muted); font-size: 14px; }
.vs-row .ours {
  color: var(--text);
  font-size: 14px;
  background: var(--accent-soft);
  position: relative;
}
.vs-row.head .axis { background: var(--surface); }
.vs-row.head .gen, .vs-row.head .ours {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--text);
  background: var(--surface);
}
.vs-row.head .ours { background: var(--surface-2); }
.vs-row.head .ours::after {
  content: "★";
  position: absolute;
  top: 14px; right: 18px;
  color: var(--accent);
  font-size: 14px;
}
.vs-icon {
  display: inline-block;
  width: 16px; height: 16px;
  margin-right: 10px;
  vertical-align: -3px;
}
.vs-x { color: var(--text-faint); }
.vs-check { color: var(--accent); }

@media (max-width: 720px) {
  .vs-row { grid-template-columns: 1fr; }
  .vs-row > div { border-right: 0; border-bottom: 1px solid var(--line-faint); }
}

/* ============================================================
   05 — CURRÍCULO (tabs)
   ============================================================ */
.curri-intro {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-soft);
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  margin-bottom: 36px;
  max-width: 720px;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--line);
}
@media (min-width: 900px) {
  .tabs {
    grid-template-columns: 280px 1fr;
    height: 620px;
  }
  .tab-panels {
    min-height: 0;
    overflow-y: auto;
  }
}
.tabs-list {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: var(--bg-elev);
}
@media (max-width: 899px) {
  .tabs-list { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
}
.tab-btn {
  text-align: left;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line-faint);
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  transition: background 0.2s var(--ease);
  font-family: var(--font-display);
  flex-shrink: 0;
  min-width: 180px;
}
.tab-btn .num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.tab-btn .lbl {
  font-size: 16px;
  color: var(--text-soft);
  font-weight: 500;
}
.tab-btn:hover { background: var(--surface); }
.tab-btn:hover .lbl { color: var(--text); }
.tab-btn[aria-selected="true"] {
  background: var(--bg);
}
.tab-btn[aria-selected="true"] .lbl { color: var(--accent); }
.tab-btn[aria-selected="true"]::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
}
@media (max-width: 899px) {
  .tab-btn[aria-selected="true"]::before { left: 0; top: auto; bottom: 0; height: 3px; width: 100%; }
}

.tab-panel {
  padding: 32px;
  display: none;
}
.tab-panel[aria-current="true"] { display: block; }
.tab-panel h3 {
  font-size: 28px;
  margin-bottom: 6px;
}
.tab-panel .lvl {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.tab-panel .ementa { color: var(--text-soft); line-height: 1.6; margin-bottom: 22px; max-width: 64ch; }
.tab-panel .ementa-list {
  display: grid;
  gap: 10px;
}
.tab-panel .ementa-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--text-soft);
  padding-left: 0;
}
.tab-panel .ementa-list li::before {
  content: "▸";
  color: var(--accent);
  font-family: var(--font-mono);
  flex-shrink: 0;
}
.tab-panel .hands {
  margin-top: 26px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  font-size: 14px;
  color: var(--text-soft);
}
.tab-panel .hands .tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

/* ============================================================
   06 — OUTPUT (projeto-âncora)
   ============================================================ */
.project {
  position: relative;
  padding: 36px;
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  margin-bottom: 28px;
}
.project-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.project h3 {
  font-size: clamp(24px, 2.6vw, 36px);
  margin-bottom: 18px;
  max-width: 22ch;
}
.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 18px;
}
@media (min-width: 880px) {
  .project-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
.project-list {
  display: grid;
  gap: 10px;
}
.project-list li {
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: var(--text-soft);
}
.project-list li::before {
  content: "[ ✓ ]";
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 12px;
  white-space: nowrap;
  padding-top: 3px;
}

/* phone mock */
.phone-mock {
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  position: relative;
  min-height: 320px;
}
.phone-mock .head {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-faint);
  padding-bottom: 10px;
  margin-bottom: 14px;
  color: var(--text-faint);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.bubble {
  margin-bottom: 10px;
  padding: 10px 12px;
  max-width: 84%;
  border: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-soft);
}
.bubble.user {
  background: var(--surface);
  border-color: var(--line-strong);
  margin-left: auto;
  color: var(--text);
}
.bubble.bot {
  border-left: 3px solid var(--accent);
  background: var(--bg-elev);
}
.bubble .from {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 4px;
  display: block;
}

.objection {
  margin-top: 28px;
  padding: 22px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(
    45deg, transparent 0, transparent 6px,
    var(--scan-color) 6px, var(--scan-color) 7px
  );
}
.objection q {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  color: var(--text);
  display: block;
  margin-bottom: 10px;
}
.objection q::before { content: "» "; color: var(--accent); font-style: normal; }
.objection p { color: var(--text-soft); font-size: 14px; line-height: 1.6; max-width: 68ch; }

.output-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 36px;
}
@media (min-width: 880px) {
  .output-cols { grid-template-columns: 1fr 1fr; }
}
.output-block {
  padding: 28px;
  border: 1px solid var(--line);
  position: relative;
}
.output-block h4 {
  font-size: 20px;
  margin-bottom: 6px;
}
.output-block .sub {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.output-block ul { display: grid; gap: 10px; }
.output-block ul li {
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.5;
}
.output-block ul li::before {
  content: "▸";
  font-family: var(--font-mono);
  color: var(--accent);
}

/* ============================================================
   07 — INSTRUTOR
   ============================================================ */
.instructor {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  border: 1px solid var(--line);
  padding: 36px;
  position: relative;
}
@media (min-width: 800px) {
  .instructor { grid-template-columns: 280px 1fr; align-items: start; }
}
.instructor-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(135deg, var(--surface) 25%, transparent 25%) 0 0,
    linear-gradient(225deg, var(--surface) 25%, transparent 25%) 0 0,
    linear-gradient(315deg, var(--surface) 25%, transparent 25%) 0 0,
    linear-gradient(45deg, var(--surface) 25%, transparent 25%) 0 0,
    var(--bg-elev);
  background-size: 10px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.instructor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.instructor-photo .ph-coord {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-faint);
  opacity: var(--micro-opacity);
}
.instructor-bio h3 {
  font-size: 32px;
  margin-bottom: 4px;
}
.instructor-bio .role {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 22px;
  display: block;
}
.instructor-bio p { color: var(--text-soft); line-height: 1.6; margin-bottom: 14px; max-width: 64ch; font-size: 16px;}
/* ============================================================
   08 — INFRA
   ============================================================ */
.infra {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (min-width: 880px) {
  .infra { grid-template-columns: repeat(3, 1fr); }
}
.infra-card {
  padding: 32px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}
.infra-card .glyph {
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--accent);
}
.infra-card h4 {
  font-size: 20px;
  margin-bottom: 12px;
}
.infra-card p {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.55;
}
.infra-card .coord {
  top: 8px; right: 12px;
}

/* ============================================================
   09 — CUSTO DE NÃO FAZER
   ============================================================ */
.cost {
  border: 1px solid var(--line);
  padding: 36px;
  position: relative;
  background: var(--bg-elev);
}
.cost-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin: 28px 0;
}
@media (min-width: 720px) {
  .cost-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
}
.cost-item {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.cost-item .label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.cost-item .stat {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 10px;
  font-feature-settings: "tnum";
}
.cost-item .stat .small { font-size: 0.5em; color: var(--text-soft); }
.cost-item p { color: var(--text-soft); font-size: 14px; line-height: 1.55; }
.cost-item .source {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 0.1em;
}
.cost-item .placeholder {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--text-muted);
  padding: 8px 12px;
  border: 1px dashed var(--line-strong);
  display: inline-block;
}
.cost-bottom {
  margin-top: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 24px);
  color: var(--text);
  line-height: 1.4;
  max-width: 64ch;
}
.cost-bottom strong { color: var(--accent); font-weight: 500; }

/* ============================================================
   10 — INVESTIMENTO
   ============================================================ */
.invest-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.invest-card {
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  padding: clamp(28px, 4vw, 48px);
  position: relative;
}
.invest-card .label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.invest-card h3 {
  font-size: 28px;
  margin-bottom: 22px;
}
.invest-price {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.invest-price .big {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 68px);
  line-height: 1;
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.invest-price .big .pre {
  font-family: var(--font-mono);
  font-size: 0.4em;
  color: var(--text-muted);
  vertical-align: 0.3em;
  margin-right: 4px;
}
.invest-price .mode {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.invest-alt {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 24px;
}
.invest-date {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 28px;
}
.invest-included {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px 40px;
  margin-bottom: 36px;
  padding: 24px 0;
  border-top: 1px solid var(--line-faint);
  border-bottom: 1px solid var(--line-faint);
}
@media (min-width: 720px) {
  .invest-included { grid-template-columns: 1fr 1fr; }
}
.invest-included li {
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.5;
}
.invest-included li::before {
  content: "[ ✓ ]";
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
  padding-top: 3px;
}

.invest-card .btn-primary {
  width: 100%;
  justify-content: center;
  padding: 20px 24px;
  font-size: 14px;
  letter-spacing: 0.1em;
}

/* ============================================================
   11 — FAQ
   ============================================================ */
.faq {
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text);
  transition: color 0.2s var(--ease);
}
.faq-q:hover { color: var(--accent); }
.faq-q .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.12em;
  flex-shrink: 0;
  padding-top: 6px;
}
.faq-q .toggle {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s var(--ease);
  padding-top: 2px;
}
.faq-item[aria-expanded="true"] .faq-q .toggle { transform: rotate(45deg); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease);
}
.faq-item[aria-expanded="true"] .faq-a { grid-template-rows: 1fr; }
.faq-a > div {
  overflow: hidden;
}
.faq-a p {
  padding: 0 36px 24px 60px;
  color: var(--text-soft);
  max-width: 78ch;
  font-size: 16px;
  line-height: 1.6;
}
.faq-a .ph {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  border: 1px dashed var(--line-strong);
  padding: 6px 10px;
  display: inline-block;
  margin-left: 60px;
  margin-bottom: 24px;
}

/* ============================================================
   12 — CTA FINAL
   ============================================================ */
.final {
  position: relative;
  padding: clamp(60px, 9vw, 120px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  overflow: hidden;
}
.final::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(45deg, transparent 49.5%, var(--line-faint) 49.5%, var(--line-faint) 50.5%, transparent 50.5%),
    linear-gradient(-45deg, transparent 49.5%, var(--line-faint) 49.5%, var(--line-faint) 50.5%, transparent 50.5%);
  opacity: 0.35;
  pointer-events: none;
}
.final-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.final h2 {
  font-size: clamp(36px, 5.4vw, 64px);
  max-width: 22ch;
  margin-bottom: 24px;
  text-wrap: balance;
}
.final h2 .accent { color: var(--accent); }
.final h2 .strike { text-decoration: line-through; text-decoration-color: var(--accent); color: var(--text-muted); }
.final-sub {
  font-size: clamp(16px, 1.3vw, 20px);
  color: var(--text-soft);
  max-width: 60ch;
  margin-bottom: 36px;
}
.final-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}
.final-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 36px;
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer h5 {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.footer ul { display: grid; gap: 10px; }
.footer a {
  color: var(--text-soft);
  font-size: 14px;
  transition: color 0.2s var(--ease);
}
.footer a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line-faint);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-bottom .fb-left  { justify-self: start; }
.footer-bottom .fb-mid   { justify-self: center; }
.footer-bottom .fb-right { justify-self: end; display: inline-flex; align-items: center; gap: 10px; color: var(--text-faint); transition: color 0.25s var(--ease); }
.footer-bottom .fb-right:hover { color: var(--text); }

/* Pecege logo — monochrome by default, full color on hover */
.footer-bottom .fb-right img {
  height: 16px;
  width: auto;
  filter: grayscale(1) brightness(1.6) opacity(0.55);
  transition: filter 0.25s var(--ease);
}
.footer-bottom .fb-right:hover img,
.footer-bottom .fb-right:focus-visible img {
  filter: none;
}
@media (max-width: 720px) {
  .footer-bottom { grid-template-columns: 1fr; gap: 12px; justify-items: start; }
  .footer-bottom .fb-mid,
  .footer-bottom .fb-right { justify-self: start; }
}

/* Faculdade Pecege logo in the footer main column */
.footer-brand { display: inline-block; margin-bottom: 18px; }
.footer-brand img {
  height: 32px;
  display: block;
  filter: brightness(0) invert(1) opacity(0.92);
  transition: opacity 0.2s var(--ease);
}
.footer-brand:hover img { opacity: 0.85; }

/* ============================================================
   STICKY MOBILE CTA
   ============================================================ */
.sticky-cta {
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 40;
  padding: 14px 18px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: none;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--accent-hi);
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}
@media (max-width: 900px) { .sticky-cta { display: flex; } }

/* ============================================================
   THEME SWITCHER — accent color picker
   ============================================================ */
[data-accent="green"] {
  --accent: #65ff00;
  --accent-hi: #8aff44;
  --accent-soft: rgba(101, 255, 0, 0.16);
  --accent-ink: #23753d;
  --grid-color: rgba(101, 255, 0, 0.08);
  --grid-color-strong: rgba(101, 255, 0, 0.22);
  --scan-color: rgba(101, 255, 0, 0.05);
}
[data-accent="orange"] {
  --accent: #ff6b1a;
  --accent-hi: #ff8e4a;
  --accent-soft: rgba(255, 107, 26, 0.16);
  --grid-color: rgba(255, 107, 26, 0.08);
  --grid-color-strong: rgba(255, 107, 26, 0.22);
  --scan-color: rgba(255, 107, 26, 0.05);
}
[data-accent="blue"] {
  --accent: #2680f5;
  --accent-hi: #5ba0ff;
  --accent-soft: rgba(38, 128, 245, 0.16);
  --grid-color: rgba(38, 128, 245, 0.08);
  --grid-color-strong: rgba(38, 128, 245, 0.22);
  --scan-color: rgba(38, 128, 245, 0.05);
}

.theme-switcher {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.theme-swatch {
  width: 22px;
  height: 22px;
  background: var(--c);
  border: 1px solid var(--line-faint);
  cursor: pointer;
  transition: transform 0.18s var(--ease);
  padding: 0;
}
.theme-swatch:hover { transform: scale(1.15); }
.theme-swatch[aria-pressed="true"] {
  border: 1px solid var(--text);
  outline: 1px solid var(--c);
  outline-offset: 2px;
}
@media (max-width: 900px) {
  .theme-switcher { display: none; }
}

/* ============================================================
   RESPONSIVE — mobile refinements (≤540px)
   ============================================================ */
@media (max-width: 540px) {
  .hero {
    min-height: 0;
    padding-top: 24px;
    padding-bottom: 24px;
  }
  .terminal {
    height: 420px;
  }
  .grid-bg { opacity: 0.14; }
  .scan-bg { opacity: 0.35; }
  .vb {
    --vb-size: 14px;
  }
  .symptom .idx,
  .infra-card .coord,
  [data-rand-coord] {
    display: none;
  }
}

/* ============================================================
   UTILITY
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
