/* ═══════════════════════════════════════════════════════════════
   LUCAS MIRANDA — Inteligência Artificial Aplicada
   mission-control aesthetic · deep navy + electric cyan
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg: #04070d;
  --bg-2: #060b15;
  --panel: rgba(13, 22, 38, 0.55);
  --panel-solid: #0b1322;
  --line: rgba(103, 232, 249, 0.10);
  --line-strong: rgba(103, 232, 249, 0.22);
  --cyan: #67e8f9;
  --cyan-dim: #22d3ee;
  --blue: #366df0;
  --text: #e8eef8;
  --muted: #93a1b8;
  --muted-2: #7d8ca6;

  --font-display: "Clash Display", sans-serif;
  --font-body: "Satoshi", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 76px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(103, 232, 249, 0.25); color: #fff; }

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

.mono { font-family: var(--font-mono); }
.container { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { background: none; border: 0; color: inherit; cursor: pointer; }

/* ─── grain + atmosphere ─────────────────────────────────────── */

.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 9997;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 9s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 3%); }
}

/* ─── boot overlay ───────────────────────────────────────────── */

.boot {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg);
  display: grid; place-items: center;
  transition: opacity 0.55s var(--ease), visibility 0.55s;
  /* failsafe: dismisses itself even if main.js never runs */
  animation: boot-autohide 0.55s var(--ease) 3.2s forwards;
}
@keyframes boot-autohide { to { opacity: 0; visibility: hidden; } }
.boot.is-done { opacity: 0; visibility: hidden; }
.boot__inner { display: grid; gap: 18px; width: min(420px, 80vw); }
.boot__line {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em;
  color: var(--muted);
}
.boot__line b { color: var(--cyan); }
.boot__caret {
  display: inline-block; width: 8px; height: 14px; margin-left: 6px;
  background: var(--cyan); vertical-align: -2px;
  animation: blink 0.8s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.boot__bar {
  height: 2px; background: rgba(103, 232, 249, 0.12); overflow: hidden;
}
.boot__bar i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  animation: bootbar 0.9s var(--ease) forwards;
}
@keyframes bootbar { to { width: 100%; } }

/* ─── custom cursor ──────────────────────────────────────────── */

.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; }
  .cursor__dot {
    position: absolute; width: 6px; height: 6px; border-radius: 50%;
    background: var(--cyan); translate: -50% -50%;
  }
  .cursor__ring {
    position: absolute; width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid rgba(103, 232, 249, 0.35); translate: -50% -50%;
    transition: width 0.25s var(--ease), height 0.25s var(--ease), border-color 0.25s;
  }
  .cursor.is-hover .cursor__ring {
    width: 52px; height: 52px; border-color: rgba(103, 232, 249, 0.7);
  }
}

/* ─── scroll progress ────────────────────────────────────────── */

.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  z-index: 9998;
}

/* ─── nav ────────────────────────────────────────────────────── */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: clamp(20px, 4vw, 48px);
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(4, 7, 13, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__brand { display: flex; align-items: center; gap: 12px; }
/* the logo file carries generous transparent padding; oversize and
   pull the margins in so the visible mark fills most of the nav */
.nav__logo { height: 96px; width: auto; margin-block: -20px; }
@media (max-width: 560px) {
  .nav__logo { height: 78px; margin-block: -14px; }
}
.nav__brand-fallback { display: flex; align-items: center; gap: 12px; }
.nav__mark { color: var(--cyan); display: grid; place-items: center; }
.nav__name {
  font-family: var(--font-display); font-size: 17px; font-weight: 500;
  display: grid; line-height: 1.15;
}
.nav__name b { font-weight: 600; display: inline; }
.nav__name small {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted-2); margin-top: 2px;
}
.nav__links { display: flex; gap: clamp(18px, 3vw, 38px); }
.nav__links a {
  font-size: 14px; font-weight: 500; color: var(--muted);
  display: flex; align-items: baseline; gap: 6px;
  transition: color 0.25s;
  position: relative;
}
.nav__links a [data-i] {
  font-family: var(--font-mono); font-size: 10px; color: var(--cyan-dim); opacity: 0.55;
}
.nav__links a:hover { color: var(--text); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--cyan); transition: width 0.3s var(--ease);
}
.nav__links a:hover::after { width: 100%; }
.nav__meta { display: flex; align-items: center; gap: 20px; }
.nav__clock { font-size: 11px; color: var(--muted-2); letter-spacing: 0.1em; }
.nav__burger { display: none; }

.mobile-menu { display: none; }

/* ─── buttons ────────────────────────────────────────────────── */

.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 14px;
  letter-spacing: 0.01em;
  padding: 13px 26px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: rgba(103, 232, 249, 0.04);
  transition: border-color 0.3s, background 0.3s, color 0.3s, transform 0.2s;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.btn:hover { border-color: var(--cyan); background: rgba(103, 232, 249, 0.09); }
.btn--primary {
  background: linear-gradient(120deg, var(--blue), var(--cyan-dim));
  border-color: transparent;
  color: #03121c;
}
.btn--primary:hover { filter: brightness(1.12); background: linear-gradient(120deg, var(--blue), var(--cyan-dim)); }
.btn--ghost { background: transparent; }
.btn--sm { padding: 10px 18px; font-size: 13px; }
.btn--lg { padding: 17px 34px; font-size: 15px; }

/* ─── chips / labels ─────────────────────────────────────────── */

.chip {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.22em;
  color: var(--cyan);
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  background: rgba(103, 232, 249, 0.05);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.chip__pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(103, 232, 249, 0.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(103, 232, 249, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(103, 232, 249, 0); }
  100% { box-shadow: 0 0 0 0 rgba(103, 232, 249, 0); }
}

/* ─── hero ───────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}
.hero__scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 90% 65% at 30% 45%, transparent 40%, rgba(4, 7, 13, 0.82) 100%),
    linear-gradient(180deg, rgba(4,7,13,0.4) 0%, transparent 22%, transparent 70%, var(--bg) 100%);
}
.hero__content { position: relative; z-index: 2; padding-block: 60px; }

.hero__tag { margin-bottom: clamp(24px, 4vh, 44px); }

.hero__title {
  font-size: clamp(52px, 11vw, 148px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 0.98;
  text-transform: none;
}
.hero__line { display: block; }
.hero__line em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(232, 238, 248, 0.5);
}
.hero__line--solid {
  background: linear-gradient(100deg, #fff 20%, var(--cyan) 65%, var(--blue) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__dot { color: var(--cyan); -webkit-text-fill-color: var(--cyan); }

.hero__bottom {
  margin-top: clamp(28px, 5vh, 52px);
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 48px; flex-wrap: wrap;
}
.hero__sub {
  max-width: 560px; font-size: clamp(16px, 1.5vw, 19px); color: var(--muted);
}
.hero__sub strong { color: var(--text); font-weight: 700; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__hud {
  margin-top: clamp(36px, 6vh, 64px);
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  font-size: 10px; letter-spacing: 0.16em; color: var(--muted-2);
}
.hero__hud-sep { width: 34px; height: 1px; background: var(--line-strong); }

.hero__scroll {
  position: absolute; right: clamp(20px, 4vw, 48px); bottom: 34px; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 10px; letter-spacing: 0.3em; color: var(--muted-2);
  writing-mode: vertical-rl;
}
.hero__scroll i {
  width: 1px; height: 48px;
  background: linear-gradient(180deg, var(--cyan), transparent);
  animation: drip 2s var(--ease) infinite;
}
@keyframes drip {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ─── ticker ─────────────────────────────────────────────────── */

.ticker {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  padding-block: 16px;
  position: relative;
}
.ticker__track {
  display: flex; align-items: center;
  width: max-content;
  animation: ticker 36s linear infinite;
}
.ticker__group {
  display: flex; align-items: center; gap: 34px;
  padding-right: 34px;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__track span {
  font-family: var(--font-display); font-size: 15px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}
.ticker__track b { color: var(--cyan-dim); font-size: 9px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ─── sections base ──────────────────────────────────────────── */

.section { padding-block: clamp(90px, 12vw, 150px); position: relative; }

.s-head {
  display: flex; align-items: center; gap: 18px;
  margin-bottom: clamp(48px, 7vw, 80px);
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.s-head__icon {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  color: var(--cyan);
  border: 1px solid var(--line-strong);
  background: rgba(103, 232, 249, 0.05);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.s-head h2 {
  font-size: clamp(30px, 4.4vw, 46px); font-weight: 600; letter-spacing: -0.01em;
}
.s-head__sub {
  display: block; margin-top: 6px;
  font-size: 10px; letter-spacing: 0.28em; color: var(--muted-2);
}
.s-head__idx {
  margin-left: auto; font-size: clamp(28px, 4vw, 44px);
  color: transparent; -webkit-text-stroke: 1px rgba(103, 232, 249, 0.25);
  font-weight: 700;
}

/* ─── sobre ──────────────────────────────────────────────────── */

.sobre { background: var(--bg); }
.sobre__grid {
  display: grid; grid-template-columns: minmax(280px, 380px) 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.sobre__photo { position: relative; }
.sobre__photo-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(160deg, rgba(54, 109, 240, 0.12), rgba(103, 232, 249, 0.04) 60%),
    var(--panel-solid);
  overflow: hidden;
}
.sobre__photo-frame img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92) contrast(1.04); }
.sobre__photo-fallback {
  position: absolute; inset: 0;
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.2em; color: var(--muted-2);
  background:
    repeating-linear-gradient(45deg, transparent, transparent 14px, rgba(103, 232, 249, 0.03) 14px, rgba(103, 232, 249, 0.03) 15px);
}
.sobre__photo-frame.is-missing .sobre__photo-fallback { display: flex; }
.sobre__photo figcaption {
  margin-top: 14px; font-size: 10px; letter-spacing: 0.22em; color: var(--muted-2);
  display: flex; align-items: center; gap: 10px;
}
.sobre__photo figcaption::before {
  content: ""; width: 22px; height: 1px; background: var(--cyan-dim);
}

.corner { position: absolute; width: 14px; height: 14px; z-index: 2; }
.corner--tl { top: -1px; left: -1px; border-top: 2px solid var(--cyan); border-left: 2px solid var(--cyan); }
.corner--tr { top: -1px; right: -1px; border-top: 2px solid var(--cyan); border-right: 2px solid var(--cyan); }
.corner--bl { bottom: -1px; left: -1px; border-bottom: 2px solid var(--cyan); border-left: 2px solid var(--cyan); }
.corner--br { bottom: -1px; right: -1px; border-bottom: 2px solid var(--cyan); border-right: 2px solid var(--cyan); }

.sobre__lead {
  font-size: clamp(26px, 3.4vw, 38px); font-weight: 500; margin-bottom: 26px;
  letter-spacing: -0.01em;
}
.sobre__lead em {
  font-style: normal;
  background: linear-gradient(100deg, var(--cyan), var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sobre__body p { color: var(--muted); margin-bottom: 18px; max-width: 62ch; }
.sobre__body p strong { color: var(--text); }

.sobre__creds { list-style: none; margin-top: 36px; display: grid; gap: 0; }
.sobre__creds li {
  display: flex; align-items: center; gap: 20px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
  transition: background 0.3s, padding-left 0.3s var(--ease);
}
.sobre__creds li:last-child { border-bottom: 1px solid var(--line); }
.sobre__creds li:hover { background: rgba(103, 232, 249, 0.03); padding-left: 10px; }
.sobre__creds [data-i] {
  font-size: 11px; color: var(--cyan-dim); flex: none;
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--line-strong);
}
.sobre__creds b { display: block; font-size: 16px; font-weight: 700; }
.sobre__creds small { color: var(--muted-2); font-size: 13.5px; }

/* ─── stats ──────────────────────────────────────────────────── */

.stats {
  margin-top: clamp(56px, 8vw, 90px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(8px);
}
.stats__item {
  padding: clamp(24px, 3vw, 40px) clamp(18px, 2.5vw, 34px);
  display: grid; gap: 10px;
  border-right: 1px solid var(--line);
  position: relative;
}
.stats__item:last-child { border-right: 0; }
.stats__num {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(34px, 4.5vw, 56px); line-height: 1;
  color: var(--text);
}
.stats__num i { font-style: normal; color: var(--cyan-dim); }
.stats__label { font-size: 9.5px; letter-spacing: 0.18em; color: var(--muted-2); }

/* ─── serviços / bento ───────────────────────────────────────── */

.servicos { background: var(--bg-2); border-block: 1px solid var(--line); }

.bento {
  display: grid; gap: 16px;
  grid-template-columns: repeat(6, 1fr);
}
.card { grid-column: span 2; }
.card--wide { grid-column: span 3; }

.card {
  position: relative;
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(6px);
  overflow: hidden;
  transition: border-color 0.35s, transform 0.35s var(--ease), background 0.35s;
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(103, 232, 249, 0.08), transparent 65%);
  opacity: 0; transition: opacity 0.35s;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.card__idx {
  position: absolute; top: 22px; right: 24px;
  font-size: 13px; color: transparent;
  -webkit-text-stroke: 1px rgba(103, 232, 249, 0.4);
  font-weight: 700; font-size: 26px;
}
.card__icon {
  width: 54px; height: 54px; margin-bottom: 22px;
  display: grid; place-items: center;
  color: var(--cyan);
  border: 1px solid var(--line-strong);
  background: rgba(103, 232, 249, 0.05);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  transition: background 0.3s, transform 0.3s var(--ease);
}
.card:hover .card__icon { background: rgba(103, 232, 249, 0.12); transform: rotate(-4deg) scale(1.05); }
.card h3 { font-size: clamp(19px, 2vw, 23px); font-weight: 600; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 15px; }
.card__tags {
  list-style: none; display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px;
}
.card__tags li {
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cyan-dim);
  padding: 5px 10px;
  border: 1px solid var(--line);
  background: rgba(103, 232, 249, 0.03);
}

/* ─── método ─────────────────────────────────────────────────── */

.metodo__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.steps { list-style: none; counter-reset: step; }
.steps__item {
  display: flex; gap: 24px;
  padding-block: 28px;
  border-top: 1px solid var(--line);
  position: relative;
}
.steps__item:last-child { border-bottom: 1px solid var(--line); }
.steps__num {
  flex: none;
  font-size: 13px; font-weight: 700; color: var(--cyan);
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  background: rgba(103, 232, 249, 0.05);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.steps__item h3 { font-size: 21px; font-weight: 600; margin-bottom: 8px; }
.steps__item p { color: var(--muted); font-size: 15px; max-width: 52ch; }

/* terminal */
.terminal {
  border: 1px solid var(--line-strong);
  background: #050a12;
  box-shadow: 0 30px 80px -30px rgba(34, 211, 238, 0.12);
  position: sticky; top: calc(var(--nav-h) + 24px);
}
.terminal__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.terminal__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(147, 161, 184, 0.25); }
.terminal__bar i:first-child { background: rgba(103, 232, 249, 0.5); }
.terminal__bar span { margin-left: 10px; font-size: 10px; letter-spacing: 0.14em; color: var(--muted-2); }
.terminal__body {
  padding: 20px 18px;
  font-size: 12.5px; line-height: 1.9;
  min-height: 300px;
  color: var(--muted);
}
.terminal__body .t-ok { color: var(--cyan); }
.terminal__body .t-dim { color: var(--muted-2); }
.terminal__body .t-hl { color: #fff; }
.terminal__body .t-caret {
  display: inline-block; width: 7px; height: 13px;
  background: var(--cyan); vertical-align: -2px;
  animation: blink 0.8s steps(2) infinite;
}

/* ─── CTA ────────────────────────────────────────────────────── */

.cta {
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
.cta__glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 50% 110%, rgba(54, 109, 240, 0.18), transparent 70%),
    radial-gradient(ellipse 40% 35% at 50% 115%, rgba(103, 232, 249, 0.12), transparent 70%);
}
.cta .container { position: relative; z-index: 2; display: grid; justify-items: center; }
.cta__title {
  margin-top: 30px;
  font-size: clamp(38px, 6.5vw, 84px);
  font-weight: 600; letter-spacing: -0.02em; line-height: 1.04;
}
.cta__title span { display: block; }
.cta__title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--cyan) 10%, var(--blue) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cta__sub { margin-top: 26px; max-width: 56ch; color: var(--muted); font-size: 17px; }
.cta__actions { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.cta__mail { margin-top: 34px; font-size: 12px; letter-spacing: 0.14em; color: var(--muted-2); }

/* ─── footer ─────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--line);
  padding-block: 28px;
  background: var(--bg);
}
.footer__grid {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 10px; letter-spacing: 0.2em; color: var(--muted-2);
}
.footer__tag { color: var(--cyan-dim); }
.footer__top { transition: color 0.25s; }
.footer__top:hover { color: var(--cyan); }

/* ─── reveal animations ──────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.06s; }
.reveal.d2 { transition-delay: 0.14s; }
.reveal.d3 { transition-delay: 0.22s; }
.reveal.d4 { transition-delay: 0.3s; }
.reveal.d5 { transition-delay: 0.38s; }
.reveal.d6 { transition-delay: 0.5s; }

/* ─── responsive ─────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card, .card--wide { grid-column: span 1; }
  .metodo__grid { grid-template-columns: 1fr; }
  .terminal { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats__item:nth-child(2) { border-right: 0; }
  .stats__item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 860px) {
  .nav__links, .nav__clock { display: none; }
  .nav__burger {
    display: grid; gap: 6px; padding: 10px; z-index: 102;
  }
  .nav__burger i { width: 24px; height: 2px; background: var(--text); transition: transform 0.3s var(--ease), opacity 0.3s; display: block; }
  .nav__burger[aria-expanded="true"] i:first-child { transform: translateY(4px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] i:last-child { transform: translateY(-4px) rotate(-45deg); }

  .mobile-menu {
    display: grid; align-content: center; justify-items: start; gap: 8px;
    /* below .nav (100) so the burger stays clickable while open */
    position: fixed; inset: 0; z-index: 99;
    background: rgba(4, 7, 13, 0.96);
    backdrop-filter: blur(18px);
    padding: 100px 36px;
    opacity: 0; visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s;
  }
  .mobile-menu.is-open { opacity: 1; visibility: visible; }
  .mobile-menu a {
    font-family: var(--font-display); font-size: clamp(30px, 8vw, 44px); font-weight: 600;
    padding-block: 8px;
    display: flex; align-items: baseline; gap: 14px;
  }
  .mobile-menu a .mono { font-size: 12px; color: var(--cyan-dim); }
  .mobile-menu .btn { margin-top: 28px; font-size: 15px; }

  .sobre__grid { grid-template-columns: 1fr; }
  .sobre__photo { max-width: 340px; }
  .hero__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 700px) {
  .bento { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav__meta { display: none; }
  .stats { grid-template-columns: 1fr; }
  .stats__item { border-right: 0; border-bottom: 1px solid var(--line); }
  .stats__item:last-child { border-bottom: 0; }
  .hero__scroll { display: none; }
  .container { width: calc(100% - 40px); }
}

/* ─── reduced motion ─────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
  .grain { display: none; }
}
