/* MyInspector Landing — minimal, fast, dark theme */
:root {
  --bg-deep: #050508;
  --bg-elevated: #0c0c12;
  --bg-card: #12121a;
  --border: rgba(255, 255, 255, 0.06);
  --text: #f5f5f7;
  --text-muted: rgba(245, 245, 247, 0.62);
  --accent: #2997ff;
  --accent-hover: #4aa8ff;
  --accent-glow: rgba(41, 151, 255, 0.35);
  --radius: 16px;
  --radius-sm: 12px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 52px;
  /* Phone mockup: aro alinhado ao fundo da landing (carvão frio, não preto puro) */
  --phone-rim: #1c1e26;
  --phone-rim-deep: #12141c;
  --phone-rim-edge: #2a2d38;
  --phone-rim-tint: rgba(41, 151, 255, 0.06);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47059;
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

/* Ambient gradient (subtle motion) */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(41, 151, 255, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(100, 80, 200, 0.08), transparent 50%),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(41, 151, 255, 0.06), transparent 45%),
    var(--bg-deep);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .bg-mesh {
    animation: meshShift 22s var(--ease-out) infinite alternate;
  }
}

@keyframes meshShift {
  0% {
    filter: hue-rotate(0deg);
    opacity: 1;
  }
  100% {
    filter: hue-rotate(12deg);
    opacity: 0.95;
  }
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 48px);
  background: rgba(5, 5, 8, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}

.site-header.is-scrolled {
  background: rgba(5, 5, 8, 0.88);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.brand-logo {
  display: block;
  height: clamp(40px, 4.8vw, 56px);
  width: auto;
  max-width: min(280px, 48vw);
  object-fit: contain;
  object-position: left center;
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.25s var(--ease-out);
}

.nav-links a:hover {
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  border-radius: 980px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.25s var(--ease-out);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 0 transparent, 0 4px 24px rgba(41, 151, 255, 0.25);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: scale(1.02);
  box-shadow: 0 0 40px var(--accent-glow), 0 8px 32px rgba(41, 151, 255, 0.2);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(41, 151, 255, 0.4);
}

.btn-ghost:hover {
  background: rgba(41, 151, 255, 0.1);
  border-color: var(--accent);
}

/* Hero */
main {
  padding-top: var(--header-h);
}

.hero {
  min-height: min(92vh, 880px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px clamp(20px, 5vw, 48px) 80px;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: min(720px, 90vw);
  height: min(720px, 90vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(41, 151, 255, 0.12) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-glow {
    animation: heroPulse 8s var(--ease-out) infinite alternate;
  }
}

@keyframes heroPulse {
  from {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  to {
    transform: translate(-50%, -52%) scale(1.08);
    opacity: 1;
  }
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 980px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(41, 151, 255, 0.12);
  border: 1px solid rgba(41, 151, 255, 0.25);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(16px);
}

.hero-badge.is-visible {
  animation: riseIn 0.9s var(--ease-out) forwards;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 7vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 14ch;
  opacity: 0;
  transform: translateY(24px);
}

.hero h1.is-visible {
  animation: riseIn 0.9s var(--ease-out) 0.08s forwards;
}

.hero .sub {
  margin: 0 auto 40px;
  max-width: 36ch;
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--text-muted);
  font-weight: 400;
  opacity: 0;
  transform: translateY(20px);
}

.hero .sub.is-visible {
  animation: riseIn 0.9s var(--ease-out) 0.16s forwards;
}

@keyframes riseIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
}

.hero-cta.is-visible {
  animation: riseIn 0.9s var(--ease-out) 0.24s forwards;
}

/* Device mockup — rim + glass share one palette; inner radius = outer − side inset */
.hero-visual {
  margin-top: 64px;
  width: min(340px, 88vw);
  aspect-ratio: 9 / 19.5;
  --phone-outer-r: 50px;
  --phone-side-inset: 12px;
  --phone-glass-r: calc(var(--phone-outer-r) - var(--phone-side-inset));
  border-radius: var(--phone-outer-r);
  background:
    linear-gradient(311deg, rgba(255, 255, 255, 0.07) 0%, transparent 45%),
    linear-gradient(113deg, var(--phone-rim-edge) 0%, var(--phone-rim) 42%, var(--phone-rim-deep) 100%),
    radial-gradient(120% 80% at 50% 0%, var(--phone-rim-tint), transparent 55%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.45) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 40px 80px -20px rgba(0, 0, 0, 0.55),
    0 0 60px -10px var(--accent-glow);
  position: relative;
  opacity: 0;
  transform: translateY(40px) perspective(800px) rotateX(4deg);
}

.hero-visual.is-visible {
  animation: deviceIn 1.2s var(--ease-out) 0.35s forwards;
}

@keyframes deviceIn {
  to {
    opacity: 1;
    transform: translateY(0) perspective(800px) rotateX(0deg);
  }
}

/* .hero-visual::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: linear-gradient(180deg, #1a1c24 0%, var(--phone-rim-deep) 100%);
  border-radius: 20px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 1px 2px rgba(0, 0, 0, 0.35);
} */

.hero-visual-inner {
  position: absolute;
  inset: 21px var(--phone-side-inset) var(--phone-side-inset) var(--phone-side-inset);
  border-radius: var(--phone-glass-r);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-screenshot {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  /* Slightly smaller radius than the glass so corners blend with rim colour */
  border-radius: calc(var(--phone-glass-r, 24px) - 4px);
}

.hero-device-caption {
  margin: 28px auto 0;
  max-width: 42ch;
  padding: 0 16px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
  text-align: center;
  opacity: 0;
  transform: translateY(18px);
}

.hero-device-caption strong {
  color: var(--text);
  font-weight: 600;
}

.hero-device-caption.is-visible {
  animation: riseIn 0.9s var(--ease-out) 0.45s forwards;
}

/* Sections */
.section {
  padding: 100px clamp(20px, 5vw, 48px);
  max-width: 1120px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  text-align: center;
}

.section-lead {
  text-align: center;
  color: var(--text-muted);
  max-width: 48ch;
  margin: 0 auto 56px;
  font-size: 18px;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition:
    transform 0.55s var(--ease-out),
    border-color 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out),
    opacity 0.65s var(--ease-out);
  transition-delay: 0s;
  opacity: 0;
  transform: translateY(28px);
}

.feature-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.features-grid .feature-card:nth-child(1) {
  transition-delay: 0.04s;
}
.features-grid .feature-card:nth-child(2) {
  transition-delay: 0.1s;
}
.features-grid .feature-card:nth-child(3) {
  transition-delay: 0.16s;
}
.features-grid .feature-card:nth-child(4) {
  transition-delay: 0.22s;
}
.features-grid .feature-card:nth-child(5) {
  transition-delay: 0.28s;
}
.features-grid .feature-card:nth-child(6) {
  transition-delay: 0.34s;
}

.feature-card:hover {
  border-color: rgba(41, 151, 255, 0.25);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.5), 0 0 40px -20px var(--accent-glow);
  transform: translateY(-4px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(41, 151, 255, 0.12);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
}

/* About */
.about-block {
  border-radius: var(--radius);
  padding: clamp(32px, 5vw, 56px);
  background: linear-gradient(135deg, rgba(41, 151, 255, 0.06) 0%, var(--bg-card) 50%, var(--bg-card) 100%);
  border: 1px solid var(--border);
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  opacity: 0;
  transform: scale(0.98);
}

.about-block.is-visible {
  animation: fadeScale 0.8s var(--ease-out) forwards;
}

@keyframes fadeScale {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.about-block p {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Contact */
.contact-card {
  text-align: center;
  padding: 48px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  max-width: 480px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(24px);
}

.contact-card.is-visible {
  animation: riseIn 0.8s var(--ease-out) forwards;
}

.contact-card a {
  color: var(--accent);
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s;
}

.contact-card a:hover {
  opacity: 0.85;
  text-decoration: underline;
}

/* Footer */
.site-footer {
  padding: 48px clamp(20px, 5vw, 48px) 32px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-bottom: 24px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

.site-footer .copy {
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.7;
}

/* Legal pages */
.legal-page {
  padding: calc(var(--header-h) + 48px) clamp(20px, 5vw, 48px) 80px;
  max-width: 720px;
  margin: 0 auto;
}

.legal-page h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.legal-page .updated {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 36px 0 12px;
  letter-spacing: -0.01em;
}

.legal-page p,
.legal-page li {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 14px;
}

.legal-page ul {
  padding-left: 1.25rem;
  margin: 0 0 14px;
}

.legal-back {
  display: inline-block;
  margin-bottom: 32px;
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.legal-back:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .nav-links {
    gap: 12px;
  }
  .nav-links .nav-text {
    display: none;
  }
}
