/* Tudo Sobre Vibe Coding × LUMENN — página estática, vanilla CSS (sem framework) */

/* ============ TOKENS (DESIGN.md v1.0) ============ */
:root {
  color-scheme: dark;
  --canvas-base: #0A0A0A;
  --overlay-gradient: linear-gradient(to top, rgba(10, 10, 10, .97) 0%, rgba(10, 10, 10, .5) 55%, transparent 100%);
  --canvas-glass: rgba(13, 209, 255, .04);
  --accent-primary: #D01452;
  --accent-primary-hover: #E81A60;
  --accent-primary-pressed: #B80F46;
  --accent-primary-muted: rgba(208, 20, 82, .15);
  --accent-holo: #00D4F5;
  --accent-holo-border: rgba(0, 212, 245, .15);
  --accent-holo-text: #7DD8EC;
  --accent-gold: #C8A84B;
  --text-primary: #EEF2FF;
  --text-secondary: #8BA8C4;
  --text-tertiary: #5E80A0;
  --text-on-primary: #fff;
  --status-new: #46D369;
  --border-subtle: rgba(238, 242, 255, .10);
  --border-focus: #00D4F5;
  --font-display: "Anton", sans-serif;
  --font-hud: "Orbitron", "Rajdhani", sans-serif;
  --font-ui: "Rajdhani", "Segoe UI", sans-serif;
  /* ponytail: mono do sistema em vez de webfont (~20KB poupados; Orbitron entra no lugar) */
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --gutter: 4vw;
  --radius: 4px;
  --radius-panel: 8px;
  --dur-fast: 100ms;
  --dur-quick: 150ms;
  --dur: 200ms;
  --dur-ripple: 300ms;
  --dur-hero: 500ms;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

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

html {
  scroll-behavior: smooth
}

body {
  background: var(--canvas-base);
  color: var(--text-primary);
  font: 500 16px/1.5 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer
}

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

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

::selection {
  background: var(--accent-primary-muted);
  color: var(--text-primary)
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap
}

.row,
.block,
#mapa,
.pilares {
  scroll-margin-top: 76px
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--accent-primary);
  color: var(--text-on-primary);
  padding: .6rem 1rem;
  border-radius: 0 0 8px 8px;
  font: 700 15px/1 var(--font-ui);
  transition: top var(--dur);
}

.skip-link:focus {
  top: 0
}

/* ============ NAV (transparente → sólida) ============ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 var(--gutter);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--dur) ease, border-color var(--dur) ease;
}

.nav.is-solid {
  background: var(--canvas-base);
  border-bottom-color: rgba(0, 212, 245, .08)
}

.nav__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 9px
}

.nav__face {
  height: 26px;
  width: auto
}

.nav__logo img {
  height: 30px;
  width: auto
}

.nav__links {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}

.nav__links::-webkit-scrollbar {
  display: none
}

.nav__links a {
  font: 600 15px/1 var(--font-ui);
  color: var(--text-primary);
  white-space: nowrap;
  padding: 6px 2px;
  transition: color var(--dur-quick) ease;
}

.nav__links a:hover {
  color: var(--accent-holo)
}

.nav__github {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 10px 16px;
  font: 600 14px/1 var(--font-ui);
  color: var(--text-primary);
  background: rgba(0, 212, 245, .06);
  border: 1px solid rgba(0, 212, 245, .30);
  border-radius: var(--radius);
  transition: border-color var(--dur) ease, background var(--dur) ease;
}

.nav__github:hover {
  border-color: rgba(0, 212, 245, .60);
  background: rgba(0, 212, 245, .12)
}

/* ============ HERO BILLBOARD ============ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh; /* barra de URL no mobile não corta o hero */
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 0 var(--gutter) clamp(48px, 10vh, 110px);
  background:
    radial-gradient(120% 90% at 72% 38%, rgba(26, 58, 92, .75) 0%, transparent 55%),
    linear-gradient(160deg, #05070c 0%, #0A0A0A 45%, #000 100%);
  animation: hero-in var(--dur-hero) ease both;
}

@keyframes hero-in {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 30%;
  opacity: .55;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, .92) 0%, rgba(10, 10, 10, .45) 55%, transparent 100%),
    var(--overlay-gradient);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  animation: hero-up var(--dur-hero) ease .1s both;
}

@keyframes hero-up {
  from {
    opacity: 0;
    transform: translateY(16px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

.eyebrow {
  font: 400 12px/1 var(--font-ui);
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--accent-holo);
  margin-bottom: 18px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(56px, 7.5vw, 72px);
  line-height: 1.05;
  letter-spacing: -.03em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero__title em {
  font-style: normal;
  color: var(--accent-primary)
}

/* contexto wordmark */
.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 14px
}

.badge {
  font: 700 10px/1 var(--font-hud);
  letter-spacing: .06em;
  padding: 4px 7px;
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  color: var(--text-secondary);
}

.hero__synopsis {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.55;
  max-width: 56ch;
  margin-bottom: 26px;
}

/* ============ BOTÕES ============ */
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px
}

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 24px;
  border-radius: var(--radius);
  font: 700 15px/1.2 var(--font-hud);
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background var(--dur) ease, box-shadow var(--dur) ease, border-color var(--dur) ease;
}

.btn--play {
  background: var(--accent-primary);
  color: var(--text-on-primary)
}

.btn--play:hover {
  background: var(--accent-primary-hover);
  box-shadow: 0 0 16px rgba(208, 20, 82, .45)
}

.btn--play:active {
  background: var(--accent-primary-pressed)
}

.btn--glass {
  background: rgba(0, 212, 245, .06);
  color: var(--text-primary);
  border: 1px solid rgba(0, 212, 245, .30);
}

.btn--glass:hover {
  border-color: rgba(0, 212, 245, .60);
  background: rgba(0, 212, 245, .12)
}

/* skill ripple — micro-efeito de click autorizado */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: var(--accent-holo);
  opacity: .5;
  transform: scale(0);
  animation: ripple var(--dur-ripple) ease-out forwards;
  pointer-events: none;
}

@keyframes ripple {
  to {
    opacity: 0;
    transform: scale(2.6)
  }
}

/* ============ BLOCOS E LINHAS ============ */
.rows {
  position: relative;
  z-index: 2;
  margin-top: -40px;
  padding-bottom: 56px
}

.row,
.block {
  position: relative;
  margin-bottom: 44px
}

.block .row:last-child {
  margin-bottom: 0
}

.row__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 0 var(--gutter);
  margin-bottom: 12px;
}

.row__kicker {
  font: 700 11px/1 var(--font-hud);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-holo-text);
  margin-bottom: 6px;
}

.row__title {
  font-family: var(--font-hud);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: .01em;
  text-transform: uppercase;
}

/* rosto LUMENN como marca nos títulos de seção */
.row__title::before {
  content: "";
  display: inline-block;
  width: .73em;
  height: .95em;
  margin-right: .4em;
  background: url("assets/lumenn-icon-filled.png") center / contain no-repeat;
  vertical-align: -.08em;
}

.row__title--lg {
  font-size: clamp(22px, 2.6vw, 28px)
}

.row__all {
  font: 600 13px/1 var(--font-ui);
  color: var(--accent-holo);
  white-space: nowrap;
  opacity: 0;
  transition: opacity var(--dur) ease;
}

.row:hover .row__all,
.row:focus-within .row__all {
  opacity: 1
}

.row__note {
  padding: 0 var(--gutter);
  margin: -4px 0 14px;
  color: var(--text-secondary);
  font-size: 14px;
  max-width: 90ch;
}

.track {
  position: relative
}

.row__track {
  display: flex;
  gap: 12px;
  padding: 6px var(--gutter) 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.row__track::-webkit-scrollbar {
  display: none
}

.row__arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  background: rgba(10, 10, 10, .7);
  border: 1px solid var(--accent-holo-border);
  border-radius: 50%;
  color: var(--accent-holo);
  opacity: 0;
  transition: opacity var(--dur) ease, background var(--dur) ease;
}

.row:hover .row__arrow,
.row__arrow:focus-visible {
  opacity: 1
}

.row__arrow:hover {
  background: rgba(0, 212, 245, .12)
}

.row__arrow--prev {
  left: calc(var(--gutter) / 2)
}

.row__arrow--next {
  right: calc(var(--gutter) / 2)
}

.strip {
  position: relative;
  overflow: hidden;
  margin: 0 var(--gutter) 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
}

/* letterbox com blur da própria arte nas laterais — nada é cortado */
.strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--art) center / cover;
  filter: blur(28px) brightness(.5);
  transform: scale(1.15);
}

.strip img {
  position: relative;
  width: 100%;
  aspect-ratio: 1672 / 941;
  max-height: min(36vh, 340px);
  object-fit: contain;
}

/* ============ CARD (art gradient) ============ */
.card {
  position: relative;
  flex: 0 0 240px;
  scroll-snap-align: start;
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 100% at var(--x, 30%) var(--y, 20%), var(--g1, rgba(0, 212, 245, .35)) 0%, transparent 60%),
    radial-gradient(90% 90% at 85% 90%, var(--g2, rgba(208, 20, 82, .30)) 0%, transparent 65%),
    #10141b;
  transition: transform var(--dur) ease, border-color var(--dur) ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 212, 245, .45)
}

/* pré-visualização do repositório (opengraph do GitHub) como fundo do card */
.card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .45;
  filter: saturate(.85) brightness(.75);
}

.card:has(.card__bg)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, .88), rgba(10, 10, 10, .12) 60%, transparent);
  pointer-events: none;
}

.card__label,
.card__sub {
  position: relative;
  z-index: 1
}

.card__label {
  font: 700 15px/1.25 var(--font-ui);
  letter-spacing: .02em
}

.card__sub {
  font: 500 12.5px/1.35 var(--font-ui);
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font: 700 9px/1 var(--font-hud);
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 4px 6px;
  border-radius: 3px;
  background: rgba(10, 10, 10, .65);
  border: 1px solid var(--border-subtle);
  color: var(--accent-holo-text);
}

.tag--ok {
  color: var(--status-new);
  border-color: rgba(70, 211, 105, .45)
}

@media (hover: none) {
  .row__all {
    opacity: 1
  }

  .row__arrow {
    display: none
  }
}

code {
  font: 500 13px/1.4 var(--font-mono);
  color: var(--accent-holo-text);
  background: rgba(0, 212, 245, .08);
  padding: 1px 5px;
  border-radius: 3px
}

/* ============ FILOSOFIA (quote + pilares) ============ */
.quote {
  margin: 0 var(--gutter);
  padding: 26px 28px;
  background: var(--canvas-glass);
  border: 1px solid var(--accent-holo-border);
  border-left: 3px solid var(--accent-holo);
  border-radius: var(--radius-panel);
}

.quote p {
  font: 400 clamp(22px, 3vw, 30px)/1.4 var(--font-ui);
  letter-spacing: .01em;
}

.pilares {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px var(--gutter) 0;
}

.pilar {
  padding: 20px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-panel);
}

.pilar h3 {
  font: 400 20px/1.2 var(--font-display);
  letter-spacing: .02em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.pilar p {
  color: var(--text-secondary);
  font-size: 14.5px
}

.pilar__sub {
  font: 700 11px/1.3 var(--font-hud);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 10px
}

/* ============ COMEÇAR (painel) ============ */
.panel {
  margin: 0 var(--gutter);
  padding: clamp(26px, 5vw, 44px);
  background: var(--canvas-glass);
  border: 1px solid var(--accent-holo-border);
  border-radius: var(--radius-panel);
}

.passos {
  list-style: none;
  display: grid;
  gap: 18px;
  margin-bottom: 30px
}

.passo {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start
}

.passo__n {
  font: 700 40px/1 var(--font-hud);
  color: var(--accent-gold);
  min-width: 56px;
  text-align: right;
}

.passo h3 {
  font: 600 17px/1.3 var(--font-ui);
  margin-bottom: 4px
}

.passo p {
  color: var(--text-secondary);
  font-size: 15px
}

/* ============ FOOTER ============ */
.footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 34px var(--gutter) 46px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-tertiary);
  font-size: 14px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px
}

.footer__brand img {
  height: 26px;
  width: auto
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none
}

.footer__links a {
  color: var(--text-secondary);
  transition: color var(--dur-quick) ease
}

.footer__links a:hover {
  color: var(--accent-holo)
}

/* ============ 404 ============ */
.page-center {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  text-align: center;
  padding: var(--gutter);
}

/* arte de fundo com scrim — mesma linguagem do hero */
.page-center__bg {
  position: absolute;
  inset: 0;
}

.page-center__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  opacity: .5;
}

.page-center__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(5, 7, 12, .72), rgba(10, 10, 10, .9));
}

.page-center > :not(.page-center__bg) {
  position: relative;
  z-index: 1;
}

.page-center__face {
  width: clamp(56px, 9vw, 88px);
  height: auto;
  filter: drop-shadow(0 6px 24px rgba(208, 20, 82, .45));
}

/* ============ RESPONSIVO ============ */
@media (max-width: 1024px) {
  .pilares {
    grid-template-columns: 1fr
  }
}

@media (max-width: 768px) {
  .eyebrow {
    letter-spacing: .26em
  }

  .nav {
    gap: 14px
  }

  .nav__links {
    gap: 16px
  }

  .nav__github {
    display: none
  }

  .row__head {
    flex-wrap: wrap
  }

  .row__all {
    white-space: normal
  }

  .hero {
    padding-bottom: clamp(64px, 12vh, 96px)
  }

  .hero__media img {
    object-position: 62% 30%;
    opacity: .42
  }

  .card {
    flex-basis: 210px
  }

  .passo__n {
    font-size: 32px;
    min-width: 44px
  }
}

@media (max-width: 420px) {
  .hero__title {
    font-size: clamp(44px, 13vw, 56px)
  }

  .card {
    flex-basis: 84vw
  }

  .cta .btn {
    flex: 1 1 auto;
    justify-content: center
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important
  }

  .ripple {
    display: none
  }

  .card:hover {
    transform: none
  }
}