/* ============================================================================
   MotoNation — Landing page (https://motonation.app)
   Tema escuro + laranja, hero sem scroll. Handoff: claude.design/landingpage/
   Tipografia: o handoff pede Sora/Manrope/JetBrains Mono (Google Fonts), mas a
   página não usa recursos externos — as pilhas abaixo usam essas famílias se
   estiverem instaladas localmente e caem para fontes de sistema equivalentes.
   ========================================================================== */

:root {
  --orange: #ec7620;
  --orange-deep: #a8520f;
  --star: #f5c518;
  --text: #f6f7f6;
  --text-light: #f3f5f4;
  --muted: #9aa09c;
  --dim: #5c655f;
  --bg: #08090b;
  --hairline: rgba(255, 255, 255, 0.06);
  --font-display: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

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

html {
  height: 100%;
}

body {
  margin: 0;
  height: 100dvh;
  min-height: 600px;
  overflow: hidden; /* desktop: hero ocupa a viewport inteira, sem scroll */
  background: var(--bg);
  color: var(--text-light);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

.page {
  position: relative;
  height: 100%;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: radial-gradient(135% 120% at 76% 32%, #090703 0%, #030305 52%, #000000 100%);
}

/* ---------- Camadas decorativas de fundo ---------- */

.bg-mesh,
.bg-beam,
.bg-watermark,
.bg-grid,
.bg-dots,
.bg-hairline,
.bg-vignette,
.bg-wordmark {
  position: absolute;
  pointer-events: none;
}

.bg-mesh {
  inset: 0;
  background:
    radial-gradient(72% 95% at 80% 30%, rgba(236, 118, 32, 0.30) 0%, rgba(236, 118, 32, 0.07) 34%, transparent 60%),
    radial-gradient(60% 70% at 10% 90%, rgba(236, 118, 32, 0.10) 0%, transparent 55%),
    radial-gradient(55% 65% at 50% -12%, rgba(150, 95, 45, 0.18) 0%, transparent 60%);
}

.bg-beam {
  top: -20%;
  right: 8%;
  width: 46%;
  height: 150%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(236, 118, 32, 0.10), transparent);
  filter: blur(28px);
}

.bg-watermark {
  right: 9vw;
  top: 50%;
  transform: translateY(-52%);
  height: 118vh;
  width: auto;
  opacity: 0.06;
  filter: blur(0.3px);
}

.bg-grid {
  inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 80px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 62%, transparent 92%);
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 62%, transparent 92%);
}

.bg-dots {
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(120% 100% at 70% 36%, #000 35%, transparent 80%);
  mask-image: radial-gradient(120% 100% at 70% 36%, #000 35%, transparent 80%);
}

.bg-hairline {
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(236, 118, 32, 0.7), transparent);
}

.bg-vignette {
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.55));
}

.bg-wordmark {
  left: -14px;
  bottom: -96px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: min(34vw, 360px);
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.10);
  white-space: nowrap;
}

/* ---------- Header ---------- */

.header {
  position: relative;
  z-index: 5;
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px clamp(28px, 5vw, 72px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand__logo {
  height: 48px;
  width: auto;
  display: block;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--text-light);
}

.accent {
  color: var(--orange);
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.btn-open {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  background: var(--orange);
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 6px 20px -6px rgba(236, 118, 32, 0.6);
  transition: filter 0.15s ease, transform 0.15s ease;
}

.btn-open:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* ---------- Main / hero ---------- */

.main {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 390px;
  column-gap: clamp(32px, 5vw, 70px);
  align-items: center;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(28px, 5vw, 72px) 24px;
  min-height: 0;
}

.intro {
  display: flex;
  flex-direction: column;
}

.hero {
  grid-area: hero; /* usado apenas no layout mobile */
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
}

.rating__score {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--orange);
}

.rating__stars {
  color: var(--star);
  font-size: 13px;
  letter-spacing: 1px;
}

.rating__divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.15);
}

.rating__count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 4.8vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0 0 clamp(14px, 2.5vh, 24px);
}

.sub {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 530px;
  margin: 20px 0 24px;
}

/* ---------- Botões das lojas ---------- */

.cta {
  grid-area: cta; /* usado apenas no layout mobile */
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 22px;
  border-radius: 13px;
  text-decoration: none;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.store-btn:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.store-btn--apple {
  background: #f3f5f4;
}

.store-btn--play {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.store-btn__text {
  display: block;
  text-align: left;
}

.store-btn__label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
}

.store-btn__store {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.store-btn--apple .store-btn__label { color: var(--dim); }
.store-btn--apple .store-btn__store { color: #08090b; }
.store-btn--play .store-btn__label { color: var(--muted); }
.store-btn--play .store-btn__store { color: var(--text-light); }

/* ---------- Mockup do celular ---------- */

.phone {
  grid-area: auto;
  align-self: center;
  justify-self: center;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: scale(1.08);
}

.device {
  width: 296px;
  padding: 9px;
  background: linear-gradient(155deg, #1c1d22, #050506 60%);
  box-shadow:
    0 2px 2px rgba(255, 255, 255, 0.06) inset,
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 0 22px rgba(255, 255, 255, 0.10),
    0 0 60px rgba(255, 255, 255, 0.07),
    0 0 90px rgba(236, 118, 32, 0.10),
    0 40px 90px -30px rgba(0, 0, 0, 0.85);
}

.device__screen {
  position: relative;
  width: 278px;
  height: 600px;
  overflow: hidden;
  background: radial-gradient(120% 80% at 80% -10%, #15211d 0%, #0b0c0e 55%);
}

.device__shot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.device__camera {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  z-index: 5;
}

/* Bezel iPhone: moldura 50px, tela 42px, dynamic island */
.device--iphone { border-radius: 50px; }
.device--iphone .device__screen { border-radius: 42px; }
.device--iphone .device__camera {
  top: 11px;
  width: 88px;
  height: 25px;
  border-radius: 14px;
}

/* Bezel Android: moldura 40px, tela 32px, punch-hole */
.device--android { border-radius: 40px; }
.device--android .device__screen { border-radius: 32px; }
.device--android .device__camera {
  top: 12px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

/* Desktop com pouca altura (ex.: 1280x720): reduz o mockup para caber sem corte */
@media (min-width: 821px) and (max-height: 780px) {
  .phone {
    transform: none;
    zoom: 0.85;
  }
}

/* ---------- Mobile (<= 820px) ---------- */

@media (max-width: 820px) {
  body {
    height: auto;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto; /* ajustado para caber sem scroll, mas permite se crescer */
  }

  .page {
    height: auto;
    min-height: 100dvh;
  }

  .header {
    position: sticky;
    top: 0;
    z-index: 30;
    padding: 14px 20px;
    background: rgba(8, 9, 11, 0.72);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--hairline);
  }

  .nav__link {
    display: none;
  }

  .bg-grid,
  .bg-wordmark {
    display: none;
  }

  .bg-watermark {
    left: 50%;
    right: auto;
    top: 15%;
    transform: translateX(-50%);
    height: auto;
    width: 150%;
    max-width: none;
    opacity: 0.05;
  }

  .intro {
    display: contents; /* hero e cta viram itens do grid abaixo */
  }

  .main {
    grid-template-columns: 42% minmax(0, 1fr);
    grid-template-areas:
      "hero hero"
      "cta phone";
    column-gap: 14px;
    row-gap: 26px;
    align-content: start;
    align-items: center;
    padding: 24px 22px 40px;
    max-width: 560px;
  }

  .rating {
    margin: 30px 0;
  }

  .h1 {
    font-size: 38px;
    line-height: 1.05;
    margin: 0 0 14px;
  }

  .sub {
    font-size: 15px;
    line-height: 1.55;
    max-width: 100%;
    margin: 30px 0 40px;
  }

  .cta {
    align-self: center;
    flex-direction: column;
    gap: 12px;
  }

  .store-btn {
    width: 100%;
    justify-content: flex-start;
    gap: 9px;
    padding: 11px 13px;
  }

  .store-btn svg {
    width: 18px;
    height: 18px;
  }

  .store-btn__label { font-size: 9px; }
  .store-btn__store { font-size: 13px; }

  .phone {
    grid-area: phone;
    align-self: center;
    justify-self: center;
    min-width: 0;
    transform: none;
    zoom: 0.6;
  }
}

/* ---------- Mobile estreito (<= 430px) ---------- */

@media (max-width: 430px) {
  .h1 {
    font-size: 30px;
    margin-bottom: 12px;
  }

  .main {
    grid-template-columns: 44% minmax(0, 1fr);
    row-gap: 20px;
    padding: 20px 20px 28px;
  }

  .sub {
    font-size: 14.5px;
    margin: 30px 0 40px;
  }

  .store-btn {
    padding: 10px 11px;
  }

  .phone {
    zoom: 0.5;
  }
}

/* ============================================================================
   Páginas públicas de compartilhamento (perfil.html / p.html / e.html)
   Mesmo tema da landing; conteúdo centralizado com botão "Abrir no app".
   ========================================================================== */

body.share {
  height: auto;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
}

.share .page {
  height: auto;
  min-height: 100dvh;
}

.share-main {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px clamp(20px, 5vw, 72px) 56px;
}

.share-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 560px;
}

.share-card__logo {
  height: 92px;
  width: auto;
  margin-bottom: 22px;
  filter: drop-shadow(0 10px 30px rgba(236, 118, 32, 0.35));
}

.share-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 10px;
}

.share-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0 0 14px;
}

.share-text {
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 470px;
  margin: 0 0 28px;
}

.btn-abrir-app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(160deg, var(--orange), var(--orange-deep));
  padding: 16px 44px;
  border-radius: 40px;
  text-decoration: none;
  box-shadow: 0 12px 34px -8px rgba(236, 118, 32, 0.65);
  transition: filter 0.15s ease, transform 0.15s ease;
}

.btn-abrir-app:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.share-fallback {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  background: rgba(236, 118, 32, 0.08);
  border: 1px solid rgba(236, 118, 32, 0.25);
  border-radius: 12px;
  padding: 10px 16px;
  margin: 18px 0 0;
  max-width: 420px;
}

.share-fallback[hidden] {
  display: none;
}

.share-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 380px;
  margin: 30px 0 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

.share-divider::before,
.share-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hairline);
}

.share-stores {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 430px) {
  .share-card__logo {
    height: 72px;
  }

  .share-stores {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }
}

/* Telas baixas (ex.: 360x640): comprime espaçamentos para caber sem scroll */
@media (max-width: 430px) and (max-height: 700px) {
  .brand__logo {
    height: 38px;
  }

  .rating {
    margin: 14px 0;
  }

  .h1 {
    font-size: 28px;
  }

  .sub {
    margin: 14px 0 20px;
  }

  .main {
    row-gap: 12px;
    padding: 14px 20px 18px;
  }

  .phone {
    zoom: 0.44;
  }
}
