/* ============================================================
   PhotoRescuer — Landing Page
   Dark theme inspired by the app
   ============================================================ */

:root {
  --bg: #0a0c14;
  --bg-2: #0f1220;
  --bg-3: #141830;
  --surface: #171b2e;
  --surface-2: #1d2240;
  --border: #262b4a;
  --text: #e7e9f7;
  --text-dim: #9aa0c2;
  --text-faint: #6b6f8e;
  --accent: #7b8cff;
  --accent-2: #b66bff;
  --accent-3: #ff6bd6;
  --success: #4ade80;
  --warn: #fbbf24;
  --grad: linear-gradient(120deg, #7b8cff 0%, #b66bff 50%, #ff6bd6 100%);
  --shadow-lg: 0 30px 80px -20px rgba(123, 140, 255, 0.25);
  --radius: 18px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

section[id] { scroll-margin-top: 88px; }

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(123, 140, 255, 0.12);
  color: #c8d0ff;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.92em;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ----------- NAV ----------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(10, 12, 20, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.nav__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
}
.nav__logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: block;
  object-fit: contain;
  box-shadow: 0 4px 14px -4px rgba(123, 140, 255, 0.45);
}
.nav__name { letter-spacing: -0.01em; }
.nav__links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav__links a {
  color: var(--text-dim);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.15s;
}
.nav__links a:hover { color: var(--text); }
.nav__cta {
  background: var(--grad);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 6px 24px -8px rgba(123, 140, 255, 0.6);
}

@media (max-width: 760px) {
  .nav__links a:not(.nav__cta) { display: none; }
}

/* ----------- HERO ----------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 60px;
}
.hero__glow {
  position: absolute;
  inset: -200px -200px auto auto;
  width: 800px;
  height: 800px;
  background: radial-gradient(closest-side, rgba(182, 107, 255, 0.25), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.hero::before {
  content: '';
  position: absolute;
  inset: auto auto -300px -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(closest-side, rgba(123, 140, 255, 0.18), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero__pill {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 24px;
}
.hero__title {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 22px;
}
.hero__sub {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 540px;
  margin: 0 0 32px;
}
.hero__sub strong { color: var(--text); font-weight: 600; }

.hero__cta {
  display: flex;
  gap: 14px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.hero__bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero__bullets li {
  color: var(--text-dim);
  font-size: 14.5px;
}

.hero__shot { position: relative; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.stat__num {
  font-size: 38px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}
.stat__lbl {
  color: var(--text-faint);
  font-size: 13.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
}

/* ----------- BUTTONS ----------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(182, 107, 255, 0.6);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px -10px rgba(182, 107, 255, 0.8);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--text);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.07); }
.btn--play {
  gap: 10px;
  background: rgba(123, 140, 255, 0.12);
  border-color: rgba(123, 140, 255, 0.45);
  color: var(--text);
}
.btn--play:hover {
  background: rgba(123, 140, 255, 0.2);
  border-color: rgba(123, 140, 255, 0.7);
}
.btn__play {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}
.btn--lg .btn__play { width: 16px; height: 16px; }
.btn--lg { padding: 16px 30px; font-size: 16px; border-radius: 14px; }

/* ----------- PLACEHOLDERS ----------- */
.placeholder {
  position: relative;
  background:
    linear-gradient(135deg, rgba(123, 140, 255, 0.08), rgba(182, 107, 255, 0.05)),
    repeating-linear-gradient(45deg,
      rgba(255, 255, 255, 0.015) 0,
      rgba(255, 255, 255, 0.015) 12px,
      transparent 12px,
      transparent 24px);
  border: 1.5px dashed rgba(123, 140, 255, 0.35);
  border-radius: var(--radius);
  padding: 32px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--text-dim);
  overflow: hidden;
}
.placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(123, 140, 255, 0.08), transparent 50%);
  pointer-events: none;
}
.placeholder__tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  background: rgba(123, 140, 255, 0.12);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.placeholder__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.placeholder__desc {
  font-size: 14px;
  line-height: 1.55;
  max-width: 520px;
  position: relative;
  z-index: 1;
}
.placeholder__desc strong { color: var(--text); }

.placeholder--hero {
  min-height: 460px;
  box-shadow: var(--shadow-lg);
}
.placeholder--wide {
  margin-top: 60px;
  min-height: 380px;
}
.placeholder--galaxy {
  aspect-ratio: 1 / 1;
  min-height: 0;
  background:
    radial-gradient(circle at center, rgba(182, 107, 255, 0.18), transparent 65%),
    linear-gradient(135deg, rgba(123, 140, 255, 0.08), rgba(255, 107, 214, 0.05));
}

/* ----------- SCREENSHOTS ----------- */
.shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, 0.02);
}
.shot--wide { margin-top: 60px; }
.shot--galaxy {
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

/* ----------- DEVICE MOCKUP (MacBook bezel) ----------- */
.device {
  position: relative;
  width: 100%;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55));
}
.device__bezel {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
  pointer-events: none;
}
/* Screenshot sits behind the frame, filling the transparent screen cavity.
   Percentages measured from the bezel art (macbook-bezel.png). */
/* Screenshot sits on top of the frame, filling the black display area
   (leaving only a thin dark bezel + the citrus body). Percentages measured
   from the bezel art's black display region. */
.device__screen {
  position: absolute;
  z-index: 3;
  left: 8.44%;
  top: 1.85%;
  width: 83.13%;
  height: 87%;
  object-fit: cover;
  object-position: left top;
  border-radius: 8px;
}

/* ----------- SECTIONS ----------- */
.section {
  padding: 100px 0;
  position: relative;
}
.section--alt {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
}
.section__head {
  max-width: 780px;
  margin: 0 auto 64px;
  text-align: center;
}
.section__head h2 {
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-weight: 800;
  margin: 0 0 18px;
}
.section__head h2 em {
  font-style: italic;
  color: var(--accent-2);
}
.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 14px;
}
.section__lead {
  font-size: 17px;
  color: var(--text-dim);
  margin: 0;
}
.section__lead strong { color: var(--text); }

/* ----------- USE CASE CARDS ----------- */
.usecase__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
  margin-bottom: 24px;
}
.ucard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s, border-color 0.2s;
}
.ucard:hover {
  transform: translateY(-3px);
  border-color: rgba(123, 140, 255, 0.4);
}
.ucard__icon {
  font-size: 32px;
  margin-bottom: 16px;
}
.ucard h3 {
  font-size: 18px;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.ucard p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-dim);
}
.ucard code { font-size: 0.88em; }

/* ----------- FEATURES (alternating) ----------- */
.features {
  display: flex;
  flex-direction: column;
  gap: 100px;
}
.feature {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.feature--rev .feature__copy { order: 2; }
.feature--rev .feature__shot { order: 1; }

.feature__tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-3);
  background: rgba(255, 107, 214, 0.1);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.badge-new {
  display: inline-block;
  vertical-align: middle;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #062b16;
  background: var(--success);
  padding: 5px 11px;
  border-radius: 999px;
  margin: 0 0 16px 8px;
  box-shadow: 0 4px 16px -6px rgba(74, 222, 128, 0.7);
}
.feature__copy h3 {
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  line-height: 1.15;
}
.feature__copy p {
  font-size: 16px;
  color: var(--text-dim);
  margin: 0 0 18px;
}
.feature__copy p strong { color: var(--text); }
.feature__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feature__list li {
  position: relative;
  padding-left: 22px;
  color: var(--text-dim);
  font-size: 14.5px;
}
.feature__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature--rev .feature__copy { order: 1; }
  .feature--rev .feature__shot { order: 2; }
}

/* ----------- SAFETY ----------- */
.safety {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}
.safety__item {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.safety__num {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.safety__item h4 {
  font-size: 17px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.safety__item p {
  margin: 0;
  font-size: 14px;
  color: var(--text-dim);
}

/* ----------- CTA FINAL ----------- */
.cta-final {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(182, 107, 255, 0.18), transparent 60%),
    radial-gradient(circle at 50% 100%, rgba(123, 140, 255, 0.15), transparent 60%),
    var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-final__inner {
  text-align: center;
  max-width: 720px;
}
.cta-final h2 {
  font-size: clamp(30px, 4.5vw, 50px);
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 18px;
  line-height: 1.1;
}
.cta-final p {
  font-size: 17px;
  color: var(--text-dim);
  margin: 0 0 32px;
}
.cta-final__buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.cta-final__note {
  font-size: 13px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}

/* ----------- FOOTER ----------- */
.footer {
  padding: 60px 0 30px;
  background: var(--bg-2);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
  margin-bottom: 40px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.footer__cols h5 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin: 0 0 14px;
  font-weight: 700;
}
.footer__cols a {
  display: block;
  font-size: 14px;
  color: var(--text-dim);
  padding: 4px 0;
}
.footer__cols a:hover { color: var(--text); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-faint);
}
.footer__legal {
  margin-top: 18px;
}
.footer__legal p {
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--text-faint);
  margin: 0;
  max-width: 920px;
  letter-spacing: 0.005em;
}

@media (max-width: 700px) {
  .footer__inner { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
  .footer__bottom { flex-direction: column; gap: 8px; }
}

/* ----------- LIGHTBOX ----------- */
.zoomable {
  cursor: zoom-in;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.shot.zoomable:hover {
  transform: translateY(-4px);
  box-shadow: 0 40px 90px -20px rgba(123, 140, 255, 0.35);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(6, 8, 16, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.9);
  transform: scale(0.94);
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.lightbox.is-open .lightbox__img { transform: scale(1); }
.lightbox [hidden] { display: none; }
.lightbox__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
  padding: 0 60px;
  pointer-events: none;
}
.lightbox__close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.14); }

/* Modal do vídeo demo (YouTube). Reaproveita a camada `.lightbox`; só o
   contêiner do player é próprio.

   A largura combina três limites num único `min()` para o quadro 16:9 NUNCA
   passar da altura útil da janela — travar por `max-height` junto de
   `aspect-ratio` deformaria o vídeo em telas baixas. 160vh ≈ 90vh × 16/9. */
.lightbox__frame {
  width: min(1180px, 92vw, 160vh);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  transform: scale(0.94);
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.lightbox.is-open .lightbox__frame { transform: scale(1); }
.lightbox__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .zoomable,
  .lightbox,
  .lightbox__img,
  .lightbox__frame { transition: none; }
  .shot.zoomable:hover { transform: none; }
}

@media (max-width: 700px) {
  .lightbox { padding: 16px; }
  .lightbox__caption { display: none; }
  .lightbox__frame { width: min(100%, 160vh); }
}

/* ----------- SUPPORT FORM (support.php) ----------- */
.support {
  /* A página não tem hero: o nav sticky pediria um respiro extra no topo. */
  padding-top: 72px;
  min-height: calc(100vh - 190px);
}
.support__inner {
  max-width: 760px;
}
.support__head {
  margin-bottom: 40px;
}
.support__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-lg);
}
.support__field {
  margin-bottom: 22px;
}
.support__field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.support__field input,
.support__field textarea {
  width: 100%;
  padding: 13px 15px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.support__field textarea {
  resize: vertical;
  min-height: 160px;
}
.support__field input::placeholder,
.support__field textarea::placeholder {
  color: var(--text-faint);
}
.support__field input:focus,
.support__field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(123, 140, 255, 0.18);
}
.support__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.support__actions .btn {
  font-family: inherit;
}
.support__actions .btn[disabled] {
  opacity: 0.55;
  cursor: default;
  transform: none;
}
.support__privacy {
  flex: 1 1 240px;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-faint);
}
.support__alert {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  margin-bottom: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  line-height: 1.5;
}
.support__alert--ok {
  background: rgba(74, 222, 128, 0.09);
  border-color: rgba(74, 222, 128, 0.35);
  color: var(--text);
  margin-bottom: 0;
}
.support__alert--err {
  background: rgba(255, 107, 214, 0.09);
  border-color: rgba(255, 107, 214, 0.38);
  color: var(--text);
}
/* Honeypot: fora da tela, nunca oculto com display:none — há robô que ignora
   campos não renderizados e preenche só os que "existem" no layout. */
.support__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 700px) {
  .support { padding-top: 48px; }
  .support__card { padding: 24px 20px; }
  .support__actions { flex-direction: column; align-items: stretch; }
  .support__actions .btn { width: 100%; }
}

/* ----------- HIDE DOWNLOAD BUTTONS ----------- */
.nav__cta { display: none; }
.hero__cta .btn--primary { display: none; }
.cta-final__buttons .btn--primary { display: none; }
