@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  --ink: #000000;
  --ink-soft: #000000;
  --ink-card: #080808;
  --paper: #f5f5f5;
  --muted: #a3a3a3;
  --muted-dark: #666666;
  --accent: #ffffff;
  --accent-light: #ffffff;
  --accent-muted: #d4d4d4;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.22);
  --mono: 'DM Mono', monospace;
  --body: 'DM Sans', sans-serif;
  --display: 'Space Grotesk', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
::selection { background: #ffffff; color: #000000; }
.container { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.section { position: relative; padding: 116px 0; }

.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid var(--line); background: rgba(0, 0, 0, .94); backdrop-filter: blur(16px); }
.nav-wrap { display: flex; min-height: 86px; align-items: center; justify-content: space-between; }
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand-logo {
  height: 62px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  background: transparent;
  display: block;
  filter: contrast(1.15) brightness(1.15);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.brand-logo:hover {
  transform: scale(1.04);
  opacity: 0.95;
}
.footer-logo {
  height: 72px;
}
.site-nav { display: flex; align-items: center; gap: 38px; color: #c5c7bf; font-size: 13px; }
.site-nav > a:not(.nav-cta):hover, .text-link:hover { color: #ffffff; }
.nav-cta { padding: 10px 16px; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 2px; color: #ffffff; transition: background .2s, color .2s, border-color .2s; }
.nav-cta:hover { background: #ffffff; color: #000000; border-color: #ffffff; }
.nav-cta span { margin-left: 8px; color: #ffffff; }
.nav-cta:hover span { color: #000000; }
.menu-toggle { display: none; }

.hero { overflow: hidden; min-height: 650px; padding: 89px 0 27px; }
.hero::before { position: absolute; inset: 0; background-image: linear-gradient(rgba(242,240,233,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(242,240,233,.025) 1px, transparent 1px); background-size: 68px 68px; content: ''; mask-image: linear-gradient(to right, #000, transparent 85%); pointer-events: none; }
.hero-glow { position: absolute; top: 48px; right: 4%; width: 590px; height: 510px; border-radius: 50%; background: radial-gradient(ellipse, rgba(255,255,255,.03), transparent 66%); pointer-events: none; translate: var(--parallax-x, 0px) var(--parallax-y, 0px); }
.hero-grid { position: relative; display: grid; min-height: 477px; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 52px; }
.eyebrow { display: flex; align-items: center; gap: 11px; color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .12em; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #ffffff; box-shadow: 0 0 10px rgba(255,255,255,.8); }
.hero h1 { max-width: 620px; margin: 24px 0 20px; font-family: var(--display); font-size: clamp(48px, 6.1vw, 76px); font-weight: 500; letter-spacing: -.065em; line-height: .99; }
.hero h1 span, .section-heading h2 span, .about-copy h2 span, .contact-copy h2 span { background: linear-gradient(100deg, #ffffff, #d8d8d8 50%, #888888); background-clip: text; color: transparent; -webkit-background-clip: text; }
.hero-lead { max-width: 470px; margin: 0; color: #b4b7ae; font-size: 16px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 32px; }
.button { display: inline-flex; min-height: 49px; align-items: center; justify-content: center; gap: 22px; padding: 0 19px; border: 0; border-radius: 2px; font-family: var(--body); font-size: 13px; font-weight: 600; }
.button-primary { background: #ffffff; color: #000000; border: 1px solid #ffffff; transition: transform .2s, background .2s, box-shadow .2s; }
.button-primary:hover { transform: translateY(-2px); background: #e5e5e5; box-shadow: 0 4px 20px rgba(255,255,255,.2); }
.button-primary span { font-size: 17px; }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: #d4d5cf; font-size: 13px; transition: color .2s; }
.text-link span { color: #ffffff; font-size: 16px; }
.hero-note { display: flex; align-items: center; gap: 11px; margin-top: 56px; color: var(--muted-dark); font-family: var(--mono); font-size: 10px; }
.note-line { width: 28px; height: 1px; background: rgba(255,255,255,.4); }
.hero-art {
  position: relative;
  display: grid;
  min-height: 540px;
  place-items: center;
  perspective: 1200px;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

/* Órbitas monocromáticas elegantes */
.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  translate: var(--parallax-x, 0px) var(--parallax-y, 0px);
  transition: transform 0.25s ease-out;
}
.orbit-one {
  width: 410px;
  height: 410px;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.orbit-two {
  width: 520px;
  height: 520px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  animation: orbitRotateCCW 36s linear infinite;
}
.orbit-three {
  width: 630px;
  height: 630px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: orbitRotateCW 50s linear infinite;
}
.orbit-outer {
  width: 750px;
  height: 750px;
  border: 1px dotted rgba(255, 255, 255, 0.08);
  animation: orbitRotateCW 70s linear infinite;
}

/* Satélites luminosos brancos */
.orbit-sat {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px #ffffff, 0 0 20px rgba(255, 255, 255, 0.8);
}
.sat-1 { top: 0; left: 50%; transform: translate(-50%, -50%); }
.sat-2 { bottom: 15%; right: 10%; }
.sat-3 { top: 22%; left: 8%; width: 4px; height: 4px; }

@keyframes orbitRotateCW {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes orbitRotateCCW {
  from { transform: translate(-50%, -50%) rotate(360deg); }
  to { transform: translate(-50%, -50%) rotate(0deg); }
}

/* Globo centralizado com efeito Parallax nas órbitas */
.hero-globe-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 390px;
  height: 390px;
  background: transparent;
  translate: var(--parallax-x, 0px) var(--parallax-y, 0px);
  cursor: pointer;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out;
}
.hero-globe-wrap:active {
  cursor: grabbing;
}
.hero-globe-img {
  width: 375px;
  height: 375px;
  object-fit: contain;
  background: transparent;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.3));
  transition: transform 0.3s ease, filter 0.3s ease;
  animation: globeFloat 6s ease-in-out infinite alternate;
}
.hero-globe-wrap:hover .hero-globe-img {
  filter: drop-shadow(0 0 45px rgba(255, 255, 255, 0.6));
}
@keyframes globeFloat {
  0% { transform: translateY(-6px) scale(0.99); }
  100% { transform: translateY(6px) scale(1.02); }
}
.float-tag { position: absolute; z-index: 2; display: flex; align-items: center; gap: 9px; padding: 10px 14px; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(0, 0, 0, 0.95); color: #f5f5f5; font-family: var(--mono); font-size: 9px; letter-spacing: .08em; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6); backdrop-filter: blur(8px); }
.tag-top { top: 92px; right: 12px; transform: rotate(4deg); translate: var(--parallax-x, 0px) var(--parallax-y, 0px); }
.tag-top span { color: #ffffff; font-size: 14px; }
.tag-bottom { bottom: 91px; left: 8px; transform: rotate(-3deg); translate: var(--parallax-x, 0px) var(--parallax-y, 0px); }
.tag-bottom .status-dot { width: 6px; height: 6px; }
.spark { position: absolute; color: #ffffff; opacity: 0.7; translate: var(--parallax-x, 0px) var(--parallax-y, 0px); }
.spark-one { top: 51px; left: 73px; font-size: 20px; }
.spark-two { right: 47px; bottom: 58px; color: #8293a9; font-size: 12px; }
.hero-footer { display: flex; align-items: center; gap: 18px; padding-top: 19px; border-top: 1px solid var(--line); color: var(--muted-dark); font-family: var(--mono); font-size: 8px; letter-spacing: .14em; }
.hero-footer-line { width: 44px; height: 1px; background: rgba(255,255,255,.3); }

.services { background: #000000; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 50px; margin-bottom: 54px; }
.section-index { color: #ffffff; }
.section-heading h2, .about-copy h2, .contact-copy h2 { margin: 18px 0 0; font-family: var(--display); font-size: clamp(38px, 4.7vw, 57px); font-weight: 500; letter-spacing: -.055em; line-height: 1.08; }
.section-heading > p { max-width: 350px; margin: 0 0 5px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.service-card { position: relative; min-height: 255px; padding: 22px 20px 23px; border: 1px solid var(--line); background: rgba(255,255,255,.012); transition: border-color .2s, background .2s, transform .2s; }
.service-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.02); }
.service-number { color: var(--muted-dark); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; }
.service-icon { width: 30px; height: 30px; margin-top: 28px; color: #ffffff; }
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 { margin: 18px 0 9px; font-family: var(--display); font-size: 17px; font-weight: 500; letter-spacing: -.025em; }
.service-card p { max-width: 225px; margin: 0; color: #a0a8b6; font-size: 12px; line-height: 1.75; }
.service-arrow { position: absolute; top: 19px; right: 19px; color: var(--muted-dark); font-size: 15px; }

.portfolio { background: #000000; }
.portfolio-heading { margin-bottom: 42px; }
.project-grid {
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.project-card {
  width: 100%;
  min-width: 0;
  opacity: 1 !important;
  translate: 0 0 !important;
}
.project-large {
  width: 100%;
}
.project-visual {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: #000000;
  cursor: pointer;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.65);
}
.project-media {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-card:hover .project-media {
  transform: scale(1.02);
}
.project-visual:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}
.project-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 3px;
  color: #ffffff;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  backdrop-filter: blur(8px);
  pointer-events: none;
}
.project-info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 2px 0;
}
.project-type {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.project-info h3 {
  margin: 6px 0 0;
  font-family: var(--display);
  font-size: clamp(20px, 2.3vw, 26px);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #ffffff;
}
.project-link { display: grid; width: 35px; height: 35px; flex: 0 0 35px; place-items: center; border: 1px solid var(--line); color: #ffffff; font-size: 16px; transition: background .2s, color .2s, border-color .2s; }
.project-link:hover { background: #ffffff; color: #000000; border-color: #ffffff; }
.portfolio-hint { display: flex; align-items: center; gap: 9px; margin: 31px 0 0; color: var(--muted-dark); font-size: 11px; }
.portfolio-hint span { color: #ffffff; font-size: 14px; }

.about { background: #000000; }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 105px; }
.about-visual { position: relative; display: grid; min-height: 390px; place-items: center; }
.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}
.about-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 380px;
  background: transparent;
  border: none;
  box-shadow: none;
  translate: var(--parallax-x, 0px) var(--parallax-y, 0px);
}
.about-photo {
  width: 100%;
  max-width: 380px;
  height: auto;
  object-fit: contain;
  background: transparent;
  display: block;
  filter: contrast(1.1) brightness(1.1);
  transition: transform 0.3s ease;
}
.about-frame:hover .about-photo {
  transform: scale(1.03);
}
.about-stamp span { font-size: 13px; }
.about-copy h2 { max-width: 530px; margin-bottom: 22px; font-size: clamp(37px, 4.3vw, 50px); }
.about-copy > p { max-width: 510px; color: #a7afbd; font-size: 13px; line-height: 1.9; }
.about-link { margin-top: 19px; }

.contact { padding: 105px 0 112px; background: var(--ink); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 105px; }
.contact-copy h2 { max-width: 450px; margin-bottom: 21px; font-size: clamp(42px, 5.4vw, 63px); }
.contact-copy > p { max-width: 385px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.contact-note { display: flex; align-items: center; gap: 10px; margin-top: 42px; color: var(--muted-dark); font-family: var(--mono); font-size: 9px; letter-spacing: .075em; }
.contact-note .status-dot { width: 6px; height: 6px; }
.contact-form { display: flex; flex-direction: column; align-items: flex-start; }
.contact-form label { margin: 0 0 8px; color: #d1d2cc; font-size: 11px; }
.contact-form label:not(:first-child) { margin-top: 20px; }
.contact-form label span { color: var(--muted-dark); }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 2px; outline: 0; background: #080808; color: var(--paper); font-size: 12px; transition: border-color .2s; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: #ffffff; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #696e63; }
.contact-form select:invalid { color: #696e63; }
.contact-form select option { color: var(--paper); background: var(--ink-soft); }
.contact-form textarea { resize: vertical; }
.form-submit { margin-top: 22px; cursor: pointer; }
.form-note, .form-feedback { margin: 10px 0 0; color: var(--muted-dark); font-size: 10px; line-height: 1.6; }
.form-feedback:not(:empty) { color: #ffffff; }

.site-footer { border-top: 1px solid var(--line); background: #000000; }
.footer-main { display: flex; min-height: 124px; align-items: center; justify-content: space-between; gap: 25px; }
.footer-main > p { margin: 0; color: #9aa5b6; font-family: var(--display); font-size: 14px; line-height: 1.6; text-align: center; }
.back-top { color: #a4b0bf; font-family: var(--mono); font-size: 8px; letter-spacing: .1em; }
.back-top span { margin-left: 7px; color: #ffffff; font-size: 14px; }
.footer-bottom { display: flex; min-height: 43px; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: #6f746a; font-family: var(--mono); font-size: 8px; letter-spacing: .07em; }

.has-scroll-effects [data-reveal] { opacity: 0; translate: 0 34px; transition: opacity .75s ease, translate .75s cubic-bezier(.2,.7,.25,1); }
.has-scroll-effects [data-reveal].is-visible { opacity: 1; translate: 0 0; }
.has-scroll-effects .project-card,
.has-scroll-effects .project-card.is-visible {
  opacity: 1 !important;
  translate: 0 0 !important;
}
.has-scroll-effects .service-card:nth-child(2), .has-scroll-effects .project-card:nth-child(2) { transition-delay: .1s; }
.has-scroll-effects .service-card:nth-child(3), .has-scroll-effects .project-card:nth-child(3) { transition-delay: .2s; }
.has-scroll-effects .service-card:nth-child(4) { transition-delay: .3s; }

@media (max-width: 900px) {
  .container { width: min(100% - 48px, 700px); }
  .section { padding: 88px 0; }
  .hero { padding-top: 62px; }
  .hero-grid { grid-template-columns: 1fr .8fr; gap: 15px; }
  .hero-art { transform: scale(.83); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { gap: 55px; }
  .about-grid { grid-template-columns: .85fr 1.15fr; }
  .about-visual { min-height: 330px; }
  .about-frame { min-height: 290px; }
  .about-monogram { font-size: 120px; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 68px; }
  .container { width: calc(100% - 40px); }
  .section { padding: 76px 0; }
  .nav-wrap { min-height: 68px; }
  .menu-toggle { display: flex; width: 40px; height: 40px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
  .menu-toggle span { width: 15px; height: 1px; background: var(--paper); transition: transform .2s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .site-nav { position: absolute; top: 67px; right: 0; left: 0; display: none; align-items: stretch; gap: 0; padding: 7px 20px 18px; border-bottom: 1px solid var(--line); background: #000000; }
  .site-nav.is-open { display: flex; flex-direction: column; }
  .site-nav > a:not(.nav-cta) { padding: 14px 3px; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 14px; text-align: center; }
  .hero { min-height: 0; padding: 63px 0 22px; }
  .hero::before { background-size: 48px 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero h1 { max-width: 500px; margin-top: 19px; font-size: clamp(47px, 13vw, 70px); }
  .hero-lead { max-width: 450px; font-size: 14px; }
  .hero-actions { flex-wrap: wrap; gap: 20px; margin-top: 25px; }
  .hero-note { margin-top: 31px; }
  .hero-art { min-height: 310px; margin: 5px 0 -5px; transform: scale(.72); }
  .orbit-one { width: 240px; height: 240px; }
  .orbit-two { width: 340px; height: 340px; }
  .orbit-three { width: 430px; height: 430px; }
  .tag-top { top: 63px; right: 2px; }
  .tag-bottom { bottom: 56px; left: 0; }
  .hero-footer { gap: 10px; font-size: 7px; letter-spacing: .06em; }
  .hero-footer-line { width: 24px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 18px; margin-bottom: 34px; }
  .section-heading h2, .about-copy h2 { font-size: 42px; }
  .section-heading > p { max-width: 430px; font-size: 13px; }
  .service-grid { gap: 9px; }
  .service-card { min-height: 248px; padding: 17px 14px; }
  .service-icon { margin-top: 23px; }
  .service-card h3 { font-size: 15px; }
  .service-card p { font-size: 11px; }
  .project-grid { gap: 40px; }
  .project-large { grid-column: auto; }
  .project-visual, .project-large .project-visual { min-height: auto; aspect-ratio: 16 / 9; }
  .store-preview { width: 83%; height: 180px; }
  .store-preview strong { font-size: 33px; }
  .dashboard-preview { width: 85%; min-height: 165px; }
  .landing-preview { width: 83%; min-height: 165px; }
  .portfolio-hint { align-items: flex-start; font-size: 10px; line-height: 1.7; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 39px; }
  .about-visual { min-height: 310px; }
  .about-frame { width: 83%; min-height: 290px; }
  .about-stamp { right: 4px; }
  .about-copy h2 { margin-top: 15px; }
  .contact-copy h2 { font-size: 49px; }
  .contact-note { margin-top: 25px; font-size: 8px; }
  .footer-main { min-height: 150px; flex-wrap: wrap; justify-content: space-between; padding: 22px 0; }
  .footer-main > p { order: 3; width: 100%; font-size: 12px; text-align: left; }
  .footer-bottom { min-height: 57px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 5px; font-size: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .has-scroll-effects [data-reveal] { opacity: 1; translate: none; }
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}
.lightbox-content {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: lightboxPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes lightboxPop {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.lightbox-img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid rgba(242, 240, 233, 0.15);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}
.lightbox-caption {
  margin-top: 14px;
  color: var(--paper);
  font-family: var(--display);
  font-size: 15px;
  text-align: center;
  letter-spacing: -0.01em;
}
.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: transparent;
  border: 1px solid rgba(242, 240, 233, 0.25);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--paper);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.lightbox-close:hover { background: #ffffff; color: #000000; border-color: #ffffff; }



/* ==========================================
   BOTÃO FLUTUANTE DE WHATSAPP
   ========================================== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 14px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50px;
  color: #ffffff;
  text-decoration: none;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 255, 255, 0.1);
  transition: transform 0.25s ease, border-color 0.25s, box-shadow 0.25s;
}
.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: #ffffff;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.9), 0 0 25px rgba(255, 255, 255, 0.25);
}
.whatsapp-float svg {
  width: 22px;
  height: 22px;
  fill: #ffffff;
}
.whatsapp-float-label {
  letter-spacing: 0.02em;
}

/* ==========================================
   AÇÕES DO PROJETO NA VITRINE
   ========================================== */
.project-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.project-site-btn {
  padding: 8px 14px;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  color: #ffffff;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.project-site-btn:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

/* ==========================================
   RODAPÉ: BOTÃO DO PAINEL
   ========================================== */
.footer-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}
.admin-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  padding: 7px 12px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.admin-open-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.04);
}
.admin-gear {
  font-size: 12px;
}

/* ==========================================
   PAINEL DE CONTROLE ADMINISTRATIVO (MODAL)
   ========================================== */
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.admin-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.admin-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
}
.admin-window {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 0 0 40px rgba(255, 255, 255, 0.08);
  overflow: hidden;
  animation: adminPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes adminPop {
  from { transform: scale(0.96) translateY(10px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: #050505;
}
.admin-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.04em;
}
.admin-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00ff88;
  box-shadow: 0 0 10px #00ff88;
}
.admin-badge {
  padding: 2px 7px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
}
.admin-close-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.admin-close-btn:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.admin-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

/* Tela de PIN / Autenticação */
.admin-auth-card {
  max-width: 380px;
  margin: 40px auto;
  text-align: center;
}
.admin-auth-icon {
  font-size: 38px;
  margin-bottom: 14px;
}
.admin-auth-card h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 22px;
  color: #ffffff;
}
.admin-auth-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 24px;
}
.admin-auth-card input[type="password"] {
  width: 100%;
  padding: 13px;
  text-align: center;
  font-size: 18px;
  letter-spacing: 0.2em;
  background: #080808;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: #ffffff;
  margin-bottom: 14px;
  outline: none;
}
.admin-auth-card input[type="password"]:focus {
  border-color: #ffffff;
}
.admin-remember-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 20px;
  cursor: pointer;
}
.admin-btn-full {
  width: 100%;
  justify-content: center;
}
.admin-error-msg {
  color: #ff5555;
  font-size: 12px;
  margin-top: 14px;
}

/* Abas */
.admin-tabs {
  display: flex;
  gap: 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 24px;
}
.admin-tab {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  color: var(--muted);
  padding: 9px 16px;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.admin-tab:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}
.admin-tab.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.admin-tab-content {
  display: none;
}
.admin-tab-content.active {
  display: block;
}

/* Barra de ferramentas */
.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.admin-toolbar h4 {
  margin: 0;
  color: #ffffff;
  font-family: var(--display);
  font-size: 17px;
}
.admin-toolbar small {
  color: var(--muted);
  font-size: 12px;
}
.admin-btn-sm {
  min-height: 36px;
  padding: 0 14px;
  font-size: 11px;
}

/* Box de formulário */
.admin-form-box {
  background: #080808;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 22px;
  margin-bottom: 24px;
}
.admin-form-box h4 {
  margin: 0 0 6px;
  color: #ffffff;
  font-family: var(--display);
  font-size: 16px;
}
.admin-form-box p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  margin: 0 0 18px;
}
.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  margin-bottom: 6px;
  color: #ffffff;
  font-size: 11px;
  font-family: var(--mono);
  letter-spacing: 0.04em;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 10px 12px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  color: #ffffff;
  font-size: 12px;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: #ffffff;
}
.field-hint {
  display: block;
  margin-top: 5px;
  color: var(--muted-dark);
  font-size: 10px;
}
.image-upload-row {
  display: flex;
  gap: 10px;
}
.file-btn {
  white-space: nowrap;
  padding: 0 14px;
  min-height: 38px;
  cursor: pointer;
}
.image-preview-box {
  margin-top: 10px;
  width: 100%;
  height: 120px;
  background: #030303;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.image-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.preview-text {
  color: var(--muted-dark);
  font-size: 11px;
}
.admin-form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}
.admin-feedback-msg {
  margin-top: 14px;
  font-size: 12px;
  color: #00ff88;
}

/* Lista de Projetos */
.admin-projects-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.admin-project-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: #060606;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  transition: border-color 0.2s, background 0.2s;
}
.admin-project-item:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: #080808;
}
.admin-item-thumb {
  width: 90px;
  height: 52px;
  border-radius: 4px;
  object-fit: cover;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex: 0 0 90px;
}
.admin-item-info {
  flex: 1;
  min-width: 0;
}
.admin-item-type {
  display: block;
  color: var(--muted-dark);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}
.admin-item-name {
  margin: 3px 0;
  color: #ffffff;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-item-link {
  color: #ffffff;
  font-size: 11px;
  text-decoration: underline;
  opacity: 0.75;
}
.admin-item-link:hover {
  opacity: 1;
}
.admin-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-icon {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  padding: 6px 10px;
  color: #ffffff;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-icon:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}
.btn-icon-danger:hover {
  background: #ff4444;
  color: #ffffff;
  border-color: #ff4444;
}

/* WhatsApp Preview Box */
.wa-preview-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  margin: 16px 0;
  font-size: 12px;
}
.wa-preview-box a {
  color: #00ff88;
  word-break: break-all;
  flex: 1;
}

/* Backup and Actions Grid */
.admin-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.btn-danger {
  color: #ff6666 !important;
  border-color: rgba(255, 102, 102, 0.3) !important;
}
.btn-danger:hover {
  background: #ff4444 !important;
  color: #ffffff !important;
  border-color: #ff4444 !important;
}
.admin-logout-row {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .admin-form-grid {
    grid-template-columns: 1fr;
  }
  .admin-project-item {
    flex-wrap: wrap;
  }
  .admin-item-thumb {
    width: 60px;
    height: 38px;
    flex: 0 0 60px;
  }
  .footer-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
