/* ── Tokens ── */
:root {
  --bg: #07080c;
  --surface: #11131a;
  --surface-elevated: #181b24;
  --text: #f3efe7;
  --muted: #8b91a1;
  --muted-dark: #555b68;
  --coral: #ff4d55;
  --coral-rgb: 255, 77, 85;
  --cyan: #69ddff;
  --cyan-rgb: 105, 221, 255;
  --line: rgba(243, 239, 231, 0.1);
  --line-strong: rgba(243, 239, 231, 0.18);
  --font-sans: 'Sora', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --shell: min(1240px, calc(100vw - 64px));
  --header-height: 76px;
  --pointer-x: 68%;
  --pointer-y: 35%;
  --field-x: 0px;
  --field-y: 0px;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --shine-x: 50%;
  --shine-y: 30%;
  --scroll-progress: 0%;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.5;
}

::selection {
  background: var(--coral);
  color: var(--bg);
}

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

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

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

ul {
  padding: 0;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 500;
  padding: 10px 14px;
  background: var(--cyan);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  transform: translateY(-160%);
  transition: transform 180ms var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

.context-label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 14px rgba(var(--coral-rgb), 0.72);
  animation: live-pulse 2.4s ease-in-out infinite;
}

@keyframes live-pulse {
  50% { opacity: 0.4; transform: scale(0.72); }
}

/* ── Ambientação ── */
.ambient-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.ambient-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(255, 255, 255, 0.035), transparent 22%);
}

.ambient-glow {
  position: absolute;
  width: min(58vw, 820px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  will-change: transform;
}

.ambient-glow-coral {
  top: -23%;
  right: -14%;
  background: rgba(var(--coral-rgb), 0.45);
  transform: translate3d(var(--field-x), var(--field-y), 0);
  animation: float-coral 14s ease-in-out infinite alternate;
}

.ambient-glow-cyan {
  left: 20%;
  bottom: -42%;
  background: rgba(var(--cyan-rgb), 0.32);
  transform: translate3d(calc(var(--field-x) * -0.5), calc(var(--field-y) * -0.5), 0);
  animation: float-cyan 18s ease-in-out infinite alternate;
}

@keyframes float-coral {
  to { translate: -6% 10%; scale: 1.08; }
}

@keyframes float-cyan {
  to { translate: 7% -8%; scale: 0.9; }
}

.dot-field {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -29%;
  height: 69%;
  opacity: 0.2;
  background-image: radial-gradient(circle, rgba(243, 239, 231, 0.34) 1px, transparent 1.2px);
  background-size: 30px 30px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 62%, transparent 94%);
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 62%, transparent 94%);
  transform: perspective(500px) rotateX(62deg) translate3d(calc(var(--field-x) * 0.2), calc(var(--field-y) * 0.2), 0);
  transform-origin: center top;
  animation: field-drift 16s linear infinite;
}

@keyframes field-drift {
  to { background-position: 30px 30px; }
}

.noise-field {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.is-paused .ambient-glow,
.is-paused .dot-field,
.hero-offscreen .ambient-glow,
.hero-offscreen .dot-field {
  animation-play-state: paused;
}

/* ── Progresso ── */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 300;
  height: 2px;
  background: rgba(255, 255, 255, 0.025);
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: var(--scroll-progress);
  height: 100%;
  background: linear-gradient(90deg, var(--coral), var(--cyan));
  box-shadow: 0 0 14px rgba(var(--cyan-rgb), 0.5);
}

/* ── Header ── */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  height: var(--header-height);
  background: rgba(7, 8, 12, 0.68);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(243, 239, 231, 0.07);
}

.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.brand {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.brand-mark {
  position: relative;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: border-color 220ms ease, transform 500ms var(--ease-out);
}

.brand-mark span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 8px;
  height: 1px;
  background: var(--coral);
  transform-origin: left center;
}

.brand-mark span:first-child { transform: rotate(45deg); }
.brand-mark span:last-child { transform: rotate(-45deg); }

.brand:hover .brand-mark {
  border-color: var(--coral);
  transform: rotate(90deg);
}

.header-context {
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.header-context span {
  margin-inline: 8px;
  color: var(--coral);
}

.header-links {
  justify-self: end;
  display: flex;
  gap: 26px;
}

.header-links a {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.header-links a:hover {
  color: var(--text);
}

.header-links a span {
  color: var(--cyan);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--header-height) + 58px) 0 64px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 2%, var(--line-strong) 22%, var(--line-strong) 78%, transparent 98%);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(330px, 0.8fr) minmax(530px, 1.2fr);
  gap: clamp(52px, 7vw, 110px);
  align-items: center;
}

.hero-intro {
  position: relative;
  z-index: 2;
}

.hero-intro .context-label {
  margin-bottom: 28px;
}

.hero h1 {
  max-width: 570px;
  font-size: clamp(3.75rem, 6.25vw, 6.75rem);
  font-weight: 500;
  letter-spacing: -0.067em;
  line-height: 0.91;
  text-wrap: balance;
}

.hero-description {
  max-width: 450px;
  margin-top: 30px;
  color: var(--muted);
  font-size: clamp(0.9375rem, 1.35vw, 1.0625rem);
  line-height: 1.75;
}

.terminal {
  min-height: 74px;
  margin-top: 42px;
  padding: 15px 17px;
  background: rgba(17, 19, 26, 0.56);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.9;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

.terminal-path {
  color: var(--cyan);
}

.terminal-symbol {
  margin-inline: 6px;
  color: var(--coral);
}

.terminal-caret {
  display: inline-block;
  width: 6px;
  height: 1em;
  margin-left: 3px;
  vertical-align: -2px;
  background: var(--coral);
  animation: caret-blink 900ms step-end infinite;
}

.terminal-output {
  color: var(--text);
}

.folder-icon {
  color: var(--coral);
}

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

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.text-link:hover {
  color: var(--text);
}

.text-link-line {
  position: relative;
  width: 38px;
  height: 1px;
  overflow: hidden;
  background: var(--line-strong);
}

.text-link-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--coral);
  transform: translateX(-105%);
  transition: transform 360ms var(--ease-out);
}

.text-link:hover .text-link-line::after {
  transform: translateX(0);
}

.project-stage {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 28px 26px 30px;
  perspective: 1400px;
}

.stage-label {
  position: absolute;
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.12em;
}

.stage-label-top {
  top: 2px;
  left: 26px;
}

.stage-label-side {
  top: 50%;
  right: -30px;
  writing-mode: vertical-rl;
  transform: translateY(-50%);
}

.project-launch {
  position: relative;
  display: block;
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition: transform 180ms ease-out;
  will-change: transform;
}

.window-aura {
  position: absolute;
  inset: 9% 8% 13%;
  z-index: -1;
  border-radius: 24px;
  background: linear-gradient(130deg, rgba(var(--coral-rgb), 0.45), rgba(var(--cyan-rgb), 0.25));
  filter: blur(55px);
  opacity: 0.35;
  transform: translateZ(-50px);
  transition: opacity 300ms ease, scale 500ms var(--ease-out);
}

.project-launch:hover .window-aura {
  opacity: 0.62;
  scale: 1.08;
}

.app-window {
  position: relative;
  overflow: hidden;
  background: #0d0f15;
  border: 1px solid rgba(243, 239, 231, 0.17);
  border-radius: 16px;
  box-shadow:
    0 34px 80px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(0, 0, 0, 0.7),
    inset 0 1px rgba(255, 255, 255, 0.06);
  transform: translateZ(14px);
}

.app-window::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
  background: radial-gradient(circle at var(--shine-x) var(--shine-y), rgba(255, 255, 255, 0.13), transparent 29%);
  opacity: 0.5;
  pointer-events: none;
}

.window-chrome {
  position: relative;
  z-index: 6;
  height: 48px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: rgba(24, 27, 36, 0.92);
  border-bottom: 1px solid var(--line);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted-dark);
}

.window-dots i:first-child { background: var(--coral); }
.window-dots i:nth-child(2) { background: #ffc56e; }
.window-dots i:last-child { background: #65d699; }

.address-bar {
  min-width: 255px;
  padding: 7px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(7, 8, 12, 0.46);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.03em;
  transition: color 220ms ease, border-color 220ms ease, background 220ms ease;
}

.address-bar svg {
  width: 10px;
  fill: none;
  stroke: #65d699;
  stroke-width: 2;
}

.project-launch:hover .address-bar {
  color: var(--text);
  border-color: rgba(var(--cyan-rgb), 0.25);
  background: rgba(var(--cyan-rgb), 0.035);
}

.chrome-action {
  justify-self: end;
  color: var(--muted-dark);
  font-size: 0.75rem;
}

.app-screen {
  position: relative;
  min-height: clamp(370px, 42vw, 480px);
  padding: clamp(38px, 5vw, 68px) clamp(30px, 6vw, 82px);
  display: flex;
  align-items: center;
  background: #0c0e14;
}

.app-screen-grid {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(circle at 50% 44%, #000 0%, transparent 75%);
  mask-image: radial-gradient(circle at 50% 44%, #000 0%, transparent 75%);
}

.fopag-interface {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 510px;
  margin-inline: auto;
}

.fopag-heading {
  display: flex;
  align-items: center;
  gap: 17px;
}

.fopag-gear {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  color: #d9d9dc;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.45));
  transition: transform 700ms var(--ease-out);
}

.fopag-gear svg {
  width: 100%;
  fill: currentColor;
}

.fopag-gear circle:first-of-type { fill: #777a82; }
.fopag-gear circle:last-of-type { fill: #17191f; }

.project-launch:hover .fopag-gear {
  transform: rotate(45deg);
}

.fopag-heading h2 {
  font-size: clamp(1.65rem, 3.1vw, 2.45rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.fopag-heading p {
  margin-top: 8px;
  color: #8a8e99;
  font-size: clamp(0.55rem, 1vw, 0.75rem);
}

.fopag-tabs {
  position: relative;
  margin-top: 28px;
  display: flex;
  gap: 18px;
  color: #d9d9dc;
  font-size: clamp(0.5rem, 0.85vw, 0.6875rem);
  border-bottom: 1px solid #30333d;
}

.fopag-tabs span {
  position: relative;
  padding-bottom: 11px;
  white-space: nowrap;
}

.fopag-tabs .active {
  color: var(--coral);
}

.fopag-tabs .active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 34px;
  height: 2px;
  background: var(--coral);
}

.fopag-form {
  margin-top: 16px;
  padding: 15px;
  display: grid;
  gap: 8px;
  border: 1px solid #30333d;
  border-radius: 8px;
}

.mock-label {
  color: #e8e8eb;
  font-size: clamp(0.5rem, 0.85vw, 0.6875rem);
}

.mock-input,
.mock-button {
  display: block;
  height: clamp(30px, 3.4vw, 40px);
  border-radius: 7px;
}

.mock-input {
  position: relative;
  margin-bottom: 4px;
  background: #262933;
  border: 1px solid #2d303a;
}

.mock-password i {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 10px;
  height: 7px;
  border: 1px solid #d9d9dc;
  border-radius: 50%;
  transform: translateY(-50%);
}

.mock-password i::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #d9d9dc;
  transform: translate(-50%, -50%);
}

.mock-button {
  margin-top: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--coral);
  color: #fff;
  font-size: clamp(0.5rem, 0.85vw, 0.6875rem);
  box-shadow: 0 8px 28px rgba(var(--coral-rgb), 0.16);
}

.project-cta {
  position: relative;
  z-index: 4;
  margin: 14px 12px 0;
  padding: 14px 4px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text);
  font-size: 0.8125rem;
  letter-spacing: -0.02em;
  transform: translateZ(25px);
}

.project-cta small {
  display: block;
  margin-bottom: 3px;
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cta-arrow {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  box-shadow: 0 10px 25px rgba(var(--coral-rgb), 0.25);
  transition: transform 350ms var(--ease-out), background 220ms ease;
}

.project-launch:hover .cta-arrow {
  transform: translate(4px, -4px) rotate(5deg);
  background: var(--cyan);
  color: var(--bg);
}

.hero-index {
  position: absolute;
  right: max(32px, calc((100vw - 1240px) / 2));
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: 0.5rem;
}

.hero-index span:first-child {
  color: var(--coral);
}

.hero-index i {
  width: 38px;
  height: 1px;
  background: var(--line-strong);
}

/* ── Detalhes do projeto ── */
.project-details {
  position: relative;
  padding: 150px 0 132px;
  background: rgba(7, 8, 12, 0.84);
  overflow: hidden;
}

.project-details::before {
  content: 'FOPAG';
  position: absolute;
  top: 60px;
  right: -0.04em;
  color: rgba(243, 239, 231, 0.018);
  font-size: clamp(10rem, 27vw, 28rem);
  font-weight: 600;
  letter-spacing: -0.09em;
  line-height: 0.7;
  pointer-events: none;
}

.details-heading {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 80px;
  align-items: end;
  padding-bottom: 70px;
  border-bottom: 1px solid var(--line);
}

.details-heading .context-label {
  margin-bottom: 24px;
  color: var(--coral);
}

.details-heading h2 {
  font-size: clamp(4.5rem, 9vw, 9rem);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.77;
}

.details-summary {
  padding-bottom: 4px;
}

.details-summary p {
  max-width: 490px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.1875rem);
  line-height: 1.7;
}

.details-summary a {
  display: inline-flex;
  gap: 10px;
  margin-top: 30px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.details-summary a span {
  color: var(--cyan);
  transition: transform 220ms var(--ease-out);
}

.details-summary a:hover span {
  transform: translate(4px, -4px);
}

.capabilities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.capability {
  position: relative;
  min-height: 320px;
  padding: 38px 34px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  transition: background 300ms ease;
}

.capability:last-child {
  border-right: 0;
}

.capability:hover {
  background: rgba(255, 255, 255, 0.018);
}

.capability-index {
  color: var(--coral);
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
}

.capability h3 {
  margin-top: 82px;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.045em;
}

.capability p {
  max-width: 290px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.65;
}

.capability-orbit {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: transform 700ms var(--ease-out), border-color 300ms ease;
}

.capability-orbit::before,
.capability-orbit::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--line-strong);
  transform: translate(-50%, -50%);
}

.capability-orbit::before { width: 68px; height: 1px; }
.capability-orbit::after { width: 1px; height: 68px; }

.capability-orbit i {
  position: absolute;
  top: 4px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(var(--cyan-rgb), 0.7);
  transform: translateX(-50%);
}

.capability:hover .capability-orbit {
  border-color: rgba(var(--coral-rgb), 0.45);
  transform: rotate(135deg);
}

.stack-line {
  min-height: 110px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stack-line ul {
  display: flex;
  gap: 9px;
  list-style: none;
}

.stack-line li {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--muted);
  transition: color 180ms ease, border-color 180ms ease, transform 250ms var(--ease-out);
}

.stack-line li:hover {
  color: var(--text);
  border-color: rgba(var(--cyan-rgb), 0.36);
  transform: translateY(-2px);
}

.stack-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.stack-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #65d699;
  box-shadow: 0 0 10px rgba(101, 214, 153, 0.7);
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--line);
  background: #06070a;
}

.footer-inner {
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.footer-title {
  font-size: 1rem;
  font-weight: 500;
}

.footer-copy {
  margin-top: 7px;
  color: var(--muted-dark);
  font-size: 0.75rem;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 48px;
  color: var(--muted-dark);
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.footer-meta nav {
  display: flex;
  gap: 25px;
}

.footer-meta a {
  color: var(--muted);
  transition: color 180ms ease;
}

.footer-meta a:hover {
  color: var(--text);
}

/* ── Responsivo ── */
@media (max-width: 1020px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 88px);
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 72px;
  }

  .hero-intro {
    max-width: 700px;
  }

  .hero h1 {
    max-width: 760px;
    font-size: clamp(4.5rem, 10vw, 7rem);
  }

  .project-stage {
    width: min(760px, 100%);
    margin-left: auto;
  }

  .app-screen {
    min-height: 480px;
  }
}

@media (max-width: 768px) {
  :root {
    --shell: calc(100vw - 40px);
    --header-height: 68px;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .header-context,
  .header-links a:first-child {
    display: none;
  }

  .hero {
    padding-top: calc(var(--header-height) + 62px);
  }

  .hero-layout {
    gap: 58px;
  }

  .hero h1 {
    font-size: clamp(4rem, 14vw, 6.25rem);
  }

  .terminal {
    max-width: 470px;
  }

  .project-stage {
    padding-inline: 0;
  }

  .stage-label-top {
    left: 0;
  }

  .stage-label-side,
  .hero-index {
    display: none;
  }

  .window-chrome {
    grid-template-columns: auto 1fr auto;
    gap: 14px;
  }

  .address-bar {
    min-width: 0;
  }

  .details-heading {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .capabilities {
    grid-template-columns: 1fr;
  }

  .capability {
    min-height: 250px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .capability:last-child {
    border-bottom: 0;
  }

  .capability h3 {
    margin-top: 50px;
  }

  .stack-line {
    padding-block: 30px;
    grid-template-columns: 1fr auto;
  }

  .stack-line > span:first-child {
    grid-column: 1 / -1;
  }

  .footer-inner,
  .footer-meta {
    align-items: flex-start;
  }

  .footer-inner {
    padding-block: 54px;
  }

  .footer-meta {
    flex-direction: column;
    gap: 18px;
  }
}

@media (max-width: 480px) {
  :root {
    --shell: calc(100vw - 32px);
  }

  .hero {
    padding-top: calc(var(--header-height) + 44px);
    padding-bottom: 70px;
  }

  .hero-layout {
    gap: 48px;
  }

  .hero-intro .context-label {
    margin-bottom: 20px;
  }

  .hero h1 {
    font-size: clamp(3.35rem, 16vw, 4.65rem);
    line-height: 0.93;
  }

  .hero-description {
    margin-top: 22px;
  }

  .terminal {
    margin-top: 30px;
  }

  .text-link {
    display: none;
  }

  .project-stage {
    padding-top: 24px;
    padding-bottom: 0;
  }

  .app-window {
    border-radius: 12px;
  }

  .window-chrome {
    height: 42px;
    padding-inline: 12px;
    gap: 9px;
  }

  .window-dots {
    gap: 4px;
  }

  .window-dots i {
    width: 5px;
    height: 5px;
  }

  .address-bar {
    padding: 6px 9px;
    font-size: 0.48rem;
  }

  .chrome-action {
    font-size: 0.625rem;
  }

  .app-screen {
    min-height: 330px;
    padding: 36px 20px;
  }

  .fopag-heading {
    gap: 12px;
  }

  .fopag-gear {
    width: 34px;
    height: 34px;
  }

  .fopag-heading h2 {
    font-size: 1.35rem;
  }

  .fopag-heading p {
    font-size: 0.5rem;
  }

  .fopag-tabs {
    gap: 11px;
    margin-top: 22px;
    font-size: 0.45rem;
  }

  .fopag-form {
    padding: 11px;
  }

  .project-cta {
    margin-inline: 2px;
  }

  .project-cta small {
    font-size: 0.46rem;
  }

  .cta-arrow {
    width: 38px;
    height: 38px;
  }

  .project-details {
    padding: 100px 0 86px;
  }

  .details-heading {
    padding-bottom: 50px;
  }

  .details-heading h2 {
    font-size: clamp(4rem, 19vw, 5.25rem);
  }

  .capability {
    padding: 28px 24px;
  }

  .stack-line {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .stack-line ul {
    flex-wrap: wrap;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-meta nav {
    gap: 18px;
  }
}

/* ── Movimento reduzido ── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .project-launch {
    transform: none !important;
  }
}
