/* ==========================================================================
   DEIMOS CORP — console de P&D
   Retro-futurismo sci-fi · terminal avançado · estética CRT monoespaçada
   ========================================================================== */

:root {
  --bg: #05070B;
  --bg-deep: #03050A;
  --surface: #0B0F19;
  --surface-2: #0E1422;
  --line: #1E293B;
  --line-soft: rgba(30, 41, 59, 0.6);

  --text: #E2E8F0;
  --muted: #94A3B8;
  --dim: #64748B;

  --cyan: #00E5FF;
  --green: #10B981;
  --green-soft: #6EE7B7;
  --purple: #8B5CF6;
  --purple-soft: #C4B5FD;

  --mono: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --crt: "VT323", "JetBrains Mono", monospace;

  --radius: 16px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 229, 255, 0.06), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: rgba(0, 229, 255, 0.28); color: #fff; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3, p { margin: 0; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--cyan);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 12px;
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; }

/* ==========================================================================
   FX — chuva ASCII, scanlines, barra de varredura e vinheta
   ========================================================================== */

.fx-matrix {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.2;
  pointer-events: none;
}

.fx-scanlines {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.028) 0,
    rgba(255, 255, 255, 0.028) 1px,
    transparent 1px,
    transparent 3px
  );
  animation: flicker 6s steps(60) infinite;
}

.fx-scanbar {
  position: fixed;
  left: 0;
  right: 0;
  top: -30vh;
  height: 30vh;
  z-index: 61;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 229, 255, 0.018) 55%,
    rgba(0, 229, 255, 0.045) 88%,
    rgba(0, 229, 255, 0.02) 95%,
    transparent 100%
  );
  animation: scanbar 9s linear infinite;
}

.fx-noise {
  position: fixed;
  inset: 0;
  z-index: 59;
  pointer-events: none;
  background: radial-gradient(ellipse 120% 100% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

@keyframes scanbar {
  from { transform: translateY(0); }
  to { transform: translateY(160vh); }
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  48% { opacity: 0.85; }
  50% { opacity: 1; }
  52% { opacity: 0.9; }
}

.status-dot {
  position: relative;
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green), 0 0 2px var(--green);
}
.status-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--green);
  animation: ping 2s var(--ease) infinite;
}

@keyframes ping {
  from { transform: scale(1); opacity: 0.9; }
  to { transform: scale(3); opacity: 0; }
}

/* ==========================================================================
   SEÇÃO 1 — THE CORE (tela CRT)
   ========================================================================== */

main, .footer { position: relative; z-index: 1; }

.core {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 12px;
  display: flex;
}

.crt {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100svh - 24px);
  padding: 96px var(--gutter) 120px;
  overflow: hidden;
  /* Bordas elípticas: curvatura de tubo CRT / lente esférica */
  border-radius: 50% 50% 50% 50% / 7% 7% 7% 7%;
  border: 1px solid rgba(30, 41, 59, 0.9);
  background:
    radial-gradient(ellipse 60% 50% at 50% 45%, rgba(0, 229, 255, 0.07), transparent 70%),
    radial-gradient(ellipse 40% 30% at 50% 55%, rgba(139, 92, 246, 0.05), transparent 70%),
    rgba(5, 7, 11, 0.25);
  box-shadow:
    inset 0 0 140px 30px rgba(0, 0, 0, 0.85),
    inset 0 0 0 1px rgba(0, 229, 255, 0.04),
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(0, 229, 255, 0.05);
}

/* Reflexo de vidro côncavo no topo + vinheta interna */
.crt__glass {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 70% 22% at 50% -4%, rgba(226, 232, 240, 0.09), transparent 70%),
    radial-gradient(ellipse 110% 90% at 50% 50%, transparent 60%, rgba(0, 0, 0, 0.6) 100%);
}
.crt__glass::after {
  /* Linha do horizonte curvada no topo da tela */
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 3.2%;
  height: 22%;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  border-top: 1px solid rgba(0, 229, 255, 0.12);
  -webkit-mask: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
  mask: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}

/* HUD nos cantos da tela */
.hud {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--crt);
  font-size: 15px;
  line-height: 1.15;
  letter-spacing: 0.08em;
  color: rgba(148, 163, 184, 0.55);
  font-variant-numeric: tabular-nums;
}
.hud--tl { top: 13%; left: 8%; }
.hud--tr { top: 13%; right: 8%; text-align: right; }
.hud--bl { bottom: 13%; left: 8%; }
.hud--br { bottom: 13%; right: 8%; text-align: right; }

.bracket {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(0, 229, 255, 0.4);
  border-style: solid;
  border-width: 0;
}
.bracket--tl { top: calc(13% - 14px); left: calc(8% - 16px); border-top-width: 1px; border-left-width: 1px; }
.bracket--tr { top: calc(13% - 14px); right: calc(8% - 16px); border-top-width: 1px; border-right-width: 1px; }
.bracket--bl { bottom: calc(13% - 14px); left: calc(8% - 16px); border-bottom-width: 1px; border-left-width: 1px; }
.bracket--br { bottom: calc(13% - 14px); right: calc(8% - 16px); border-bottom-width: 1px; border-right-width: 1px; }

.core__center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 100%;
}

/* Linha de boot */
.boot {
  min-height: 1.2em;
  margin-bottom: clamp(20px, 3.5vh, 36px);
  font-family: var(--crt);
  font-size: clamp(17px, 1.6vw, 21px);
  letter-spacing: 0.06em;
  color: rgba(0, 229, 255, 0.75);
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.45);
}
.boot__ok {
  color: var(--green);
  text-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
}

/* ---------- Logo ASCII ---------- */

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 400;
}

.logo__stack {
  position: relative;
  display: block;
}

.logo__ascii,
.logo__ghost {
  display: block;
  white-space: pre;
  font-family: var(--mono);
  font-size: clamp(6.4px, 2.35vw, 23px);
  line-height: 1.04;
  letter-spacing: 0;
  text-align: left;
}

.logo__ascii {
  position: relative;
  background: linear-gradient(
    100deg,
    #64748B 0%,
    #CBD5E1 22%,
    #F8FAFC 38%,
    #FFFFFF 44%,
    #CBD5E1 52%,
    #94A3B8 70%,
    #E2E8F0 86%,
    #64748B 100%
  );
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 0 1px rgba(226, 232, 240, 0.5))
    drop-shadow(0 0 22px rgba(0, 229, 255, 0.28));
  animation: sheen 7s ease-in-out infinite;
}

@keyframes sheen {
  0%, 100% { background-position: 100% 0; }
  50% { background-position: 0% 0; }
}

/* Camadas de glitch (criadas via JS) */
.logo__ghost {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}
.logo__ghost--a { color: var(--cyan); }
.logo__ghost--b { color: var(--purple); }

.logo.is-glitching .logo__ghost--a {
  opacity: 0.85;
  animation: glitch-a 0.45s steps(2) both;
}
.logo.is-glitching .logo__ghost--b {
  opacity: 0.85;
  animation: glitch-b 0.45s steps(2) both;
}
.logo.is-glitching .logo__ascii { animation: sheen 7s ease-in-out infinite, jitter 0.45s steps(3) both; }

@keyframes glitch-a {
  0% { clip-path: inset(10% 0 70% 0); transform: translate(-6px, 0); }
  25% { clip-path: inset(55% 0 20% 0); transform: translate(5px, 0); }
  50% { clip-path: inset(30% 0 50% 0); transform: translate(-3px, 0); }
  75% { clip-path: inset(80% 0 5% 0); transform: translate(4px, 0); }
  100% { clip-path: inset(0 0 100% 0); transform: none; }
}
@keyframes glitch-b {
  0% { clip-path: inset(65% 0 12% 0); transform: translate(6px, 0); }
  25% { clip-path: inset(5% 0 75% 0); transform: translate(-5px, 0); }
  50% { clip-path: inset(40% 0 35% 0); transform: translate(3px, 0); }
  75% { clip-path: inset(20% 0 60% 0); transform: translate(-4px, 0); }
  100% { clip-path: inset(0 0 100% 0); transform: none; }
}
@keyframes jitter {
  0% { transform: translate(1px, 0); }
  50% { transform: translate(-1px, 0); }
  100% { transform: none; }
}

.logo__sub {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 22px);
  margin-top: clamp(14px, 2.2vh, 22px);
}
.logo__rule {
  width: clamp(40px, 9vw, 110px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(226, 232, 240, 0.55));
}
.logo__rule:last-child { background: linear-gradient(90deg, rgba(226, 232, 240, 0.55), transparent); }
.logo__corp {
  font-size: clamp(12px, 1.5vw, 17px);
  font-weight: 300;
  letter-spacing: 0.62em;
  margin-right: -0.62em;
  color: #CBD5E1;
  text-shadow: 0 0 14px rgba(226, 232, 240, 0.35);
}

/* ---------- Tagline digitada ---------- */

.tagline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  margin-top: clamp(26px, 4vh, 40px);
  min-height: 1.6em;
  font-size: clamp(12px, 1.2vw, 14px);
  color: var(--muted);
}
.tagline__prompt { color: var(--green); margin-right: 10px; text-shadow: 0 0 8px rgba(16, 185, 129, 0.6); }
.tagline__typed { color: var(--cyan); text-shadow: 0 0 10px rgba(0, 229, 255, 0.45); }

.caret {
  display: inline-block;
  width: 0.6em;
  height: 1.15em;
  margin-left: 3px;
  vertical-align: text-bottom;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.7);
  animation: blink 1.05s steps(1) infinite;
}
.caret--inline { background: var(--green); box-shadow: 0 0 10px rgba(16, 185, 129, 0.7); }

@keyframes blink { 50% { opacity: 0; } }

/* ---------- Cápsula de botões ---------- */

.capsule {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(22px, 3.5vh, 34px);
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(14, 20, 34, 0.85), rgba(8, 11, 18, 0.85));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow:
    inset 0 1px 0 rgba(226, 232, 240, 0.06),
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 0 6px rgba(11, 15, 25, 0.35);
}

.pill {
  --acc: var(--cyan);
  --acc-rgb: 0, 229, 255;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(var(--acc-rgb), 0.55);
  background: #070B12;
  color: var(--acc);
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 0 10px rgba(var(--acc-rgb), 0.45);
  box-shadow:
    inset 0 0 14px rgba(var(--acc-rgb), 0.08),
    0 0 18px rgba(var(--acc-rgb), 0.14);
  transition:
    background 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    transform 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease);
  overflow: hidden;
}

.pill::before {
  /* Varredura de luz ao passar o mouse */
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(var(--acc-rgb), 0.28), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s var(--ease);
}

.pill:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--acc-rgb), 0.95);
  background: rgba(var(--acc-rgb), 0.1);
  color: #fff;
  box-shadow:
    inset 0 0 18px rgba(var(--acc-rgb), 0.18),
    0 0 28px rgba(var(--acc-rgb), 0.38),
    0 0 2px rgba(var(--acc-rgb), 0.9);
}
.pill:hover::before { left: 120%; }
.pill:active { transform: translateY(0) scale(0.98); }

.pill__icon { width: 16px; height: 16px; flex: none; }

.pill--cyan { --acc: var(--cyan); --acc-rgb: 0, 229, 255; }

.pill--green {
  --acc: var(--green-soft);
  --acc-rgb: 16, 185, 129;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(139, 92, 246, 0.18));
  box-shadow:
    inset 0 0 16px rgba(16, 185, 129, 0.14),
    0 0 22px rgba(16, 185, 129, 0.25),
    0 0 40px rgba(139, 92, 246, 0.12);
}
.pill--green:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.32), rgba(139, 92, 246, 0.3));
}

.pill--purple { --acc: var(--purple-soft); --acc-rgb: 139, 92, 246; }

.pill--lg { padding: 15px 28px; font-size: 13px; }

/* ---------- Indicador de rolagem ---------- */

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 6.5%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--dim);
  transition: color 0.2s;
}
.scroll-cue:hover { color: var(--cyan); }
.scroll-cue__arrow {
  font-size: 9px;
  color: var(--cyan);
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(5px); opacity: 1; }
}

/* ==========================================================================
   Seções de conteúdo
   ========================================================================== */

.section {
  position: relative;
  padding: clamp(88px, 12vw, 140px) 0;
  background: rgba(5, 7, 11, 0.9);
}
.about {
  background: linear-gradient(180deg, rgba(5, 7, 11, 0) 0, rgba(5, 7, 11, 0.9) 160px);
}
.research {
  background: rgba(4, 6, 10, 0.94);
  border-top: 1px solid var(--line-soft);
}
/* Grade técnica sutil no fundo das seções */
.research::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(30, 41, 59, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 41, 59, 0.22) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask: radial-gradient(ellipse 70% 60% at 50% 40%, #000, transparent 80%);
  mask: radial-gradient(ellipse 70% 60% at 50% 40%, #000, transparent 80%);
}

.container {
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-bottom: 18px;
  margin-bottom: clamp(36px, 5vw, 56px);
  border-bottom: 1px dashed var(--line);
}

.section__title {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--cyan);
}

.section__icon {
  display: inline-grid;
  place-items: center;
  width: 1.45em;
  height: 1.45em;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: 0.85em;
  font-weight: 700;
  letter-spacing: 0;
}
.section__icon--sq { border-radius: 8px; }

.section__path {
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 0.04em;
}

/* ---------- SEÇÃO 2 — ABOUT ---------- */

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}

.manifesto {
  font-size: clamp(22px, 2.9vw, 38px);
  font-weight: 300;
  line-height: 1.42;
  letter-spacing: -0.01em;
  color: var(--text);
}
.manifesto em {
  font-style: normal;
  color: var(--cyan);
  text-shadow: 0 0 16px rgba(0, 229, 255, 0.4);
}
.manifesto strong {
  font-weight: 600;
  color: #fff;
  background: linear-gradient(transparent 72%, rgba(139, 92, 246, 0.38) 72%, rgba(139, 92, 246, 0.38) 94%, transparent 94%);
}

.terminal {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 229, 255, 0.03);
}

.terminal__bar,
.card__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.terminal__dots { display: inline-flex; gap: 6px; flex: none; }
.terminal__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #334155;
}
.terminal__dots i:nth-child(1) { background: rgba(248, 113, 113, 0.75); }
.terminal__dots i:nth-child(2) { background: rgba(251, 191, 36, 0.75); }
.terminal__dots i:nth-child(3) { background: rgba(16, 185, 129, 0.85); }

.terminal__name {
  font-size: 12px;
  color: var(--dim);
}

.terminal__body {
  padding: 18px 20px 20px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
}

.spec {
  margin: 8px 0 10px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}
.spec div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
}
.spec dt { color: var(--dim); }
.spec dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }

.t-prompt { color: var(--green); text-shadow: 0 0 8px rgba(16, 185, 129, 0.5); }
.t-ok { color: var(--green) !important; text-shadow: 0 0 8px rgba(16, 185, 129, 0.5); }

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
  margin: clamp(64px, 8vw, 96px) 0 0;
  padding: 0;
  list-style: none;
}

.principle {
  padding-top: 22px;
  border-top: 1px solid var(--line);
  position: relative;
}
.principle::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 44px;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}
.principle__n {
  display: block;
  font-family: var(--crt);
  font-size: 24px;
  line-height: 1;
  color: var(--cyan);
  margin-bottom: 14px;
}
.principle h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.principle p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- SEÇÃO 3 — RESEARCH ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.card {
  --acc: var(--cyan);
  --acc-rgb: 0, 229, 255;
  --mx: 50%;
  --my: 0%;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition:
    transform 0.4s var(--ease),
    border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}
.card--green { --acc: var(--green); --acc-rgb: 16, 185, 129; }
.card--purple { --acc: var(--purple); --acc-rgb: 139, 92, 246; }

.card::before {
  /* Spotlight que segue o cursor */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(var(--acc-rgb), 0.12), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--acc), transparent);
  opacity: 0.55;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--acc-rgb), 0.45);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(var(--acc-rgb), 0.12);
}
.card:hover::before { opacity: 1; }

.card__bar { position: relative; z-index: 1; }

.card__file {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: var(--dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  padding: 4px 10px;
  border: 1px solid rgba(16, 185, 129, 0.45);
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.08);
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.15);
}
.badge__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: blink 1.6s steps(1) infinite;
}

.card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px 22px 22px;
}

.card__id {
  font-family: var(--crt);
  font-size: 20px;
  line-height: 1;
  color: var(--acc);
  text-shadow: 0 0 10px rgba(var(--acc-rgb), 0.5);
}

.card__title {
  margin: 10px 0 12px;
  font-size: clamp(17px, 1.6vw, 19px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.card__desc {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
}

.card__code {
  margin: 20px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #060911;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.75;
  color: var(--muted);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.card__code code { font-family: inherit; }

.tk-kw { color: var(--purple-soft); }
.tk-fn { color: var(--cyan); }
.tk-str { color: var(--green-soft); }
.tk-op { color: var(--muted); }
.tk-cm { color: var(--dim); }
.tk-ok { color: var(--green); text-shadow: 0 0 8px rgba(16, 185, 129, 0.5); }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}
.tags li {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.015);
  font-size: 11px;
  color: var(--muted);
  transition: border-color 0.25s, color 0.25s;
}
.card:hover .tags li { border-color: rgba(var(--acc-rgb), 0.3); color: var(--text); }

.card__foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-top: 1px dashed var(--line);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--dim);
}

.meter {
  position: relative;
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.meter__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--value);
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(var(--acc-rgb), 0.4), var(--acc));
  box-shadow: 0 0 10px var(--acc);
  transform-origin: left;
  transition: transform 1.4s var(--ease) 0.3s;
}
.js .card:not(.is-visible) .meter__fill { transform: scaleX(0); }

.card__pct {
  color: var(--acc);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ---------- CTA ---------- */

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: clamp(56px, 7vw, 80px);
  padding: 28px 32px;
  border: 1px dashed rgba(139, 92, 246, 0.4);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 60% 120% at 0% 50%, rgba(139, 92, 246, 0.1), transparent 70%),
    rgba(11, 15, 25, 0.6);
}
.cta__text {
  font-size: clamp(14px, 1.5vw, 17px);
  color: var(--text);
}
.cta__text .t-prompt { margin-right: 8px; }

/* ==========================================================================
   SEÇÃO 4 — FOOTER
   ========================================================================== */

.footer {
  padding: 22px var(--gutter);
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
}

.footer__line {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}
.footer__line a { color: var(--cyan); transition: text-shadow 0.2s; }
.footer__line a:hover { text-shadow: 0 0 10px rgba(0, 229, 255, 0.7); }
.footer__line b { color: var(--green); font-weight: 600; }
.footer__sep { color: var(--line); }
.footer__ok {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--green);
  text-shadow: 0 0 8px rgba(16, 185, 129, 0.55);
}

/* ==========================================================================
   Animações de entrada
   ========================================================================== */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
  transition-delay: calc(var(--delay, 0) * 120ms);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
.js .card.reveal.is-visible:hover { transform: translateY(-5px); }

.js .core__center > * {
  animation: power-on 1.1s var(--ease) both;
}
.js .core__center > .logo { animation-delay: 0.15s; }
.js .core__center > .tagline { animation-delay: 0.45s; }
.js .core__center > .capsule { animation-delay: 0.6s; }

@keyframes power-on {
  0% { opacity: 0; transform: scaleY(0.02) scaleX(0.6); filter: brightness(3); }
  45% { opacity: 1; transform: scaleY(0.02) scaleX(1); filter: brightness(2.5); }
  100% { opacity: 1; transform: none; filter: none; }
}

/* ==========================================================================
   Responsivo
   ========================================================================== */

@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards .card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .about__grid { grid-template-columns: minmax(0, 1fr); }
  .principles { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hud, .bracket { display: none; }
}

@media (max-width: 720px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .cards .card:last-child { grid-column: auto; }

  .crt {
    border-radius: 50% 50% 50% 50% / 4.5% 4.5% 4.5% 4.5%;
    padding: 96px 16px 110px;
  }
  .crt__glass::after { height: 7%; top: 2.2%; }
  .logo__ascii,
  .logo__ghost { font-size: clamp(5.5px, 2.75vw, 14px); }


  .cta { padding: 24px 20px; }
  .cta .pill { width: 100%; }
}

@media (max-width: 540px) {
  .capsule {
    flex-direction: column;
    align-items: stretch;
    width: min(100%, 300px);
    border-radius: 28px;
    padding: 10px;
  }
  .capsule .pill { width: 100%; }
  .section__path { display: none; }
  .footer__sep { display: none; }
  .footer__line { flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .fx-scanbar { display: none; }
  .caret, .badge__dot { animation: none; }
}
