/* ============================================================
   HOME PAGE — estilos exclusivos da landing page (index.html)
   Scoped com body.home-page para não vazar para outras páginas
   ============================================================ */

body.home-page {
  background: #ffffff !important;
}
body.home-page::before {
  display: none !important;
}

body.home-page .header {
  padding: 14px 5% !important;
}

body.home-page .header .logo img {
  height: 32px !important;
  max-height: 32px !important;
}

/* ============================================================
   HERO
   ============================================================ */
.home-hero {
  background: linear-gradient(135deg, #001020 0%, #002D62 55%, #00388a 100%);
  padding: 90px 0 100px;
  overflow: hidden;
  position: relative;
}

.home-hero::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -120px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,127,0,0.09), transparent 70%);
  pointer-events: none;
}

.home-hero::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -60px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,100,220,0.11), transparent 70%);
  pointer-events: none;
}

.home-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 5%;
  position: relative;
}

.home-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* ---- Coluna de texto ---- */
.home-hero-text { color: #fff; }

.home-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 127, 0, 0.14);
  border: 1px solid rgba(255, 127, 0, 0.32);
  color: #FFB060;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 26px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FF7F00;
  flex-shrink: 0;
  animation: badgePulse 2.2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,127,0,0.45); }
  50%       { opacity: 0.7; box-shadow: 0 0 0 5px rgba(255,127,0,0); }
}

.home-headline {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 22px;
  color: #fff;
}

.home-accent {
  background: linear-gradient(90deg, #FF7F00, #FFB347);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-subhead {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.70);
  line-height: 1.75;
  max-width: 460px;
  margin-bottom: 38px;
}

.home-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  align-items: center;
}

.home-btn-primary {
  display: inline-block;
  background: #FF7F00;
  color: #fff;
  padding: 13px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.93rem;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 18px rgba(255, 127, 0, 0.35);
}
.home-btn-primary:hover {
  background: #E06A00;
  transform: translateY(-2px);
  box-shadow: 0 7px 24px rgba(255, 127, 0, 0.45);
  color: #fff;
}

.home-btn-ghost {
  display: inline-block;
  color: rgba(255, 255, 255, 0.82);
  padding: 13px 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.93rem;
  transition: all 0.2s;
}
.home-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.home-trust {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12.5px;
  font-weight: 500;
}

.trust-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: #4ade80;
  font-weight: 900;
  flex-shrink: 0;
}

/* ============================================================
   MOCKUP BROWSER
   ============================================================ */
.home-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mockup-browser {
  background: #fff;
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.07),
    0 28px 64px rgba(0,0,0,0.55),
    0 8px 20px rgba(0,0,0,0.30);
  width: 100%;
  max-width: 520px;
  overflow: hidden;
  transform: perspective(1000px) rotateY(-3deg) rotateX(2deg);
  transition: transform 0.4s ease;
}

.mockup-browser:hover {
  transform: perspective(1000px) rotateY(-1deg) rotateX(1deg);
}

.mockup-topbar {
  background: #ebebeb;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #d8d8d8;
}

.topbar-dot { width: 10px; height: 10px; border-radius: 50%; }
.topbar-dot.red    { background: #ff5f57; }
.topbar-dot.yellow { background: #febc2e; }
.topbar-dot.green  { background: #28c840; }

.topbar-url {
  flex: 1;
  background: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 5px;
  padding: 3px 10px;
  font-size: 10.5px;
  color: #888;
  margin-left: 8px;
  font-family: monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mockup-content {
  padding: 14px;
  background: #f8fafc;
}

.mock-dash-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 12px;
}

.mock-logo-box {
  width: 26px;
  height: 26px;
  background: #002D62;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
  font-family: 'Open Sans', sans-serif;
}

.mock-dash-title {
  font-size: 12px;
  font-weight: 700;
  color: #002D62;
  flex: 1;
}

.mock-dash-user {
  font-size: 10px;
  color: #94a3b8;
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 3px 8px;
  border-radius: 5px;
  white-space: nowrap;
}

/* ---- Carousel com screenshots ---- */
.mock-carousel {
  position: relative;
  height: 310px;
  margin-bottom: 11px;
}

.mock-slide {
  position: absolute;
  width: 100%;
  opacity: 0;
  transform: translateY(6px);
}

/* 5 slides, ciclo de 15s, intervalo de 3s entre cada */
.mock-slide:nth-child(1) { animation: mockSlide 15s ease-in-out infinite 0s; }
.mock-slide:nth-child(2) { animation: mockSlide 15s ease-in-out infinite 3s; }
.mock-slide:nth-child(3) { animation: mockSlide 15s ease-in-out infinite 6s; }
.mock-slide:nth-child(4) { animation: mockSlide 15s ease-in-out infinite 9s; }
.mock-slide:nth-child(5) { animation: mockSlide 15s ease-in-out infinite 12s; }

@keyframes mockSlide {
  0%, 100%  { opacity: 0; transform: translateY(6px); }
  4%, 18%   { opacity: 1; transform: translateY(0);   }
  22%       { opacity: 0; transform: translateY(-4px); }
}

.mock-img-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}

.mock-img-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #1e293b;
}

.mock-tool-tag {
  background: #EFF6FF;
  color: #1d4ed8;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.mock-screenshot {
  width: 100%;
  height: 266px;
  object-fit: cover;
  object-position: top left;
  border-radius: 7px;
  border: 1px solid #e2e8f0;
  display: block;
}

/* ---- Mini abas ---- */
.mock-tabs {
  display: flex;
  gap: 5px;
}

.mock-tab {
  flex: 1;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  padding: 6px 4px;
  text-align: center;
  font-size: 9.5px;
  font-weight: 600;
  color: #64748b;
}

.mock-tab.active {
  background: #002D62;
  color: #fff;
  border-color: #002D62;
}

/* ============================================================
   FEATURES
   ============================================================ */
.home-features {
  background: #fff;
  padding: 80px 0;
  border-bottom: 1px solid #f1f5f9;
}

.home-section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #002D62;
  margin-bottom: 10px;
}

.home-section-sub {
  text-align: center;
  color: #64748b;
  font-size: 1rem;
  margin-bottom: 52px;
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.features-grid .feature-card {
  flex: 0 1 calc(33.333% - 16px);
  min-width: 260px;
}

.feature-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-top: 3px solid #FF7F00;
  border-radius: 12px;
  padding: 28px 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #002D62, #0B4A8F);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.7;
  margin: 0;
}

/* ============================================================
   FERRAMENTAS
   ============================================================ */
.home-tools {
  background: #f8fafc;
  padding: 80px 0;
}

.tools-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px;
}

.tool-showcase-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.tool-showcase-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.09);
}

.tool-showcase-thumb {
  height: 120px;
  overflow: hidden;
  border-bottom: 1px solid #e2e8f0;
  background: #f1f5f9;
}

.tool-showcase-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  display: block;
  transition: transform 0.3s ease;
}

.tool-showcase-card:hover .tool-showcase-thumb img {
  transform: scale(1.04);
}

.tool-showcase-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #002D62;
  padding: 14px 16px 6px;
}

.tool-showcase-desc {
  font-size: 0.79rem;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0;
  padding: 0 16px 16px;
}

/* ============================================================
   CTA FINAL
   ============================================================ */
.home-bottom-cta {
  background: linear-gradient(135deg, #002D62 0%, #001120 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.home-bottom-cta::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,127,0,0.07), transparent 70%);
  pointer-events: none;
}

.home-bottom-cta h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.home-bottom-cta p {
  color: rgba(255,255,255,0.60);
  font-size: 1rem;
  margin-bottom: 34px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

body.home-page .footer {
  margin-top: 0 !important;
}

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 960px) {
  .home-hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .home-hero { padding: 70px 0 80px; }
  .home-subhead { max-width: none; margin-left: auto; margin-right: auto; }
  .home-ctas { justify-content: center; }
  .home-trust { justify-content: center; }
  .features-grid { flex-direction: column; gap: 16px; }
  .features-grid .feature-card { flex: 1 1 100%; min-width: unset; }

  /* Mockup: sem perspectiva, centralizado e com largura limitada */
  .home-hero-visual {
    display: flex;
    justify-content: center;
  }
  .mockup-browser {
    transform: none !important;
    max-width: 540px;
  }
  .mock-carousel { height: 260px; }
  .mock-screenshot { height: 216px; }
}

@media (max-width: 640px) {
  .tools-showcase { grid-template-columns: 1fr 1fr; }
  .home-hero { padding: 56px 0 64px; }
  .home-headline { font-size: 1.9rem; }
  .mockup-browser { max-width: 100%; }
  .mock-carousel { height: 220px; }
  .mock-screenshot { height: 176px; }
}

@media (max-width: 400px) {
  .tools-showcase { grid-template-columns: 1fr; }
  .mock-carousel { height: 190px; }
  .mock-screenshot { height: 148px; }
}
