/* ==========================================================================
   Base Styles & Variables
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

:root {
  --primary: #E50914;
  --primary-hover: #FF2D2D;
  --bg-color: #080808;
  --surface: #0F0F0F;
  --surface-hover: #161616;
  --text-main: #F5F5F5;
  --text-sec: #888888;
  --text-muted: #444444;
  --border: 1px solid #1E1E1E;
  --border-hover: 1px solid #E50914;
  --radius-card: 16px;
  --radius-btn: 8px;
  --shadow-accent: 0 0 30px rgba(229, 9, 20, 0.2);
  --max-w: 1100px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s, opacity 0.2s;
}

a:hover {
  opacity: 0.85;
}

::selection {
  background: rgba(229, 9, 20, 0.3);
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.text-red { color: var(--primary); }
.text-center { text-align: center; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

section {
  padding-top: 100px;
  padding-bottom: 100px;
}

/* ==========================================================================
   Components
   ========================================================================== */
/* Buttons */
.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: #fff !important;
  padding: 1rem 2rem;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(229, 9, 20, 0.4);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  border: 1px solid #333;
  color: var(--text-main);
  padding: 1rem 2rem;
  border-radius: var(--radius-btn);
  font-weight: 600;
  transition: all 0.2s;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: #fff;
}

/* Header */
.header-fixed {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: var(--border);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--primary);
  letter-spacing: -0.03em;
}

.header-fixed nav {
  display: flex;
  align-items: center;
}

.header-fixed nav a {
  color: var(--text-sec);
  font-weight: 500;
  font-size: 0.9rem;
  margin: 0 1rem;
}

.header-fixed nav a:hover {
  color: #FFFFFF;
}

.btn-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s, transform 0.1s;
}

.btn-cta:hover {
  background: #FF1C1C;
  transform: translateY(-1px);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,10,10,0.97) 0%,
    rgba(26,0,0,0.85) 50%,
    rgba(10,10,10,0.97) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 750px;
  padding: 0 2rem;
  margin: 0 auto;
  width: 100%;
  animation: fadeInUp 0.8s ease forwards;
}

.hero-badge {
  display: inline-block;
  background: rgba(229,9,20,0.15);
  border: 1px solid rgba(229,9,20,0.4);
  color: var(--primary);
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-sec);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 560px;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 0.8rem;
  color: #666;
  font-weight: 500;
}

.stat span {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.2rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

/* App Cards */
.apps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 860px;
  margin: 3rem auto 0;
}

.app-card {
  display: grid;
  grid-template-columns: 36px 56px 1fr auto;
  align-items: center;
  gap: 1.2rem;
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius-card);
  padding: 1.1rem 1.4rem;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  cursor: pointer;
}

.app-card:hover {
  border-color: var(--primary);
  background: #140000;
  transform: translateX(4px);
}

.app-rank {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  opacity: 0.8;
}

.app-img-wrap img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  transition: box-shadow 0.2s;
}

.app-card:hover .app-img-wrap img {
  box-shadow: 0 0 20px rgba(229,9,20,0.3);
}

.app-name {
  font-size: 0.92rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
  letter-spacing: -0.01em;
}

.app-desc {
  font-size: 0.76rem;
  color: #555;
  margin: 0 0 0.4rem;
  line-height: 1.4;
}

.app-rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.35rem;
}

.stars { color: #F7C948; font-size: 0.78rem; }
.rating-val { font-weight: 700; font-size: 0.82rem; }
.rating-count { color: #444; font-size: 0.72rem; }

.app-tags {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.tag {
  border: 1px solid #2a2a2a;
  color: #555;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
}

.app-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-ver-app {
  border: 1px solid #2a2a2a;
  color: #777;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-btn);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.btn-ver-app:hover {
  border-color: #F5F5F5;
  color: #F5F5F5;
}

.btn-testar {
  background: var(--primary);
  color: #fff !important;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-btn);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.1s, background 0.2s;
}

.btn-testar:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius-card);
  padding: 2rem;
  transition: border-color 0.2s;
}

.feature-card:hover {
  border-color: #333;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(229,9,20,0.1);
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.feature-card p {
  color: var(--text-sec);
  font-size: 0.9rem;
}

/* Compare Table */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 3rem;
  background: var(--surface);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: var(--border);
}

.compare-table th, .compare-table td {
  padding: 1.2rem;
  text-align: left;
  border-bottom: var(--border);
}

.compare-table th {
  background: #141414;
  font-weight: 700;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table td.yes { color: #2ECC71; font-weight: 600; }
.compare-table td.no { color: var(--primary); }
.compare-table td.partial { color: #F39C12; }

/* Reviews */
.rating-block {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2rem;
  padding: 2rem;
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius-card);
  margin-bottom: 2rem;
}

.rating-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.rating-big {
  font-size: 4rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1;
}

.star { color: #333; }
.star.filled { color: #F7C948; }
.star.half { color: #F7C94880; }

.rating-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.8rem;
  color: var(--text-sec);
  margin-bottom: 0.4rem;
}

.bar {
  flex: 1;
  height: 6px;
  background: #1E1E1E;
  border-radius: 3px;
  overflow: hidden;
}

.fill {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  transition: width 0.8s ease;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.review-card {
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  transition: border-color 0.2s;
}

.review-card:hover { border-color: #333; }

.review-card header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.reviewer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
}

.reviewer-info {
  display: flex;
  flex-direction: column;
}

.reviewer-name {
  font-weight: 700;
  font-size: 0.9rem;
}

.reviewer-location {
  font-size: 0.75rem;
  color: var(--text-sec);
}

.review-stars {
  color: #F7C948;
  margin-left: auto;
  font-size: 0.8rem;
}

.review-card p {
  font-size: 0.9rem;
  color: #CCC;
  margin-bottom: 1rem;
}

.review-card time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* FAQ */
.faq-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.faq-tab {
  border: 1px solid #333;
  color: var(--text-sec);
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
}

.faq-tab:hover {
  border-color: #555;
  color: #fff;
}

.faq-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.tab-count {
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
  padding: 0.1rem 0.5rem;
  font-size: 0.75rem;
}

.faq-tab.active .tab-count {
  background: rgba(255,255,255,0.3);
}

.faq-panel { display: none; }
.faq-panel.active { display: block; }

.faq-item {
  border-bottom: 1px solid #1a1a1a;
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  list-style: none;
  transition: color 0.2s;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary:hover { color: var(--primary); }

.faq-icon {
  width: 28px;
  height: 28px;
  border: 1px solid var(--primary);
  border-radius: 50%;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: all 0.2s;
}

.faq-item[open] .faq-icon {
  background: var(--primary);
  color: #fff;
  transform: rotate(45deg);
}

.faq-item p {
  color: var(--text-sec);
  line-height: 1.7;
  padding-bottom: 1.2rem;
  font-size: 0.9rem;
}

/* Steps */
.steps-list {
  list-style: none;
  counter-reset: steps;
  margin-top: 3rem;
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.steps-list li {
  display: flex;
  gap: 1.5rem;
}

.step-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.steps-list h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.steps-list p {
  color: var(--text-sec);
  font-size: 0.9rem;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.blog-card {
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color 0.2s;
}

.blog-card:hover { border-color: #333; }

.blog-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.blog-card-content {
  padding: 1.5rem;
}

.blog-cat {
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.5rem;
}

.blog-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.blog-card p {
  color: var(--text-sec);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.blog-date {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Footer */
footer {
  border-top: var(--border);
  padding: 4rem 2rem 2rem;
  margin-top: 4rem;
}

footer section {
  padding: 0;
}

footer nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  max-width: var(--max-w);
  margin: 0 auto 3rem;
}

footer h3 {
  font-size: 1rem;
  margin-bottom: 1.2rem;
  color: #fff;
}

footer ul {
  list-style: none;
}

footer ul li {
  margin-bottom: 0.8rem;
}

footer ul a {
  color: var(--text-sec);
  font-size: 0.9rem;
}

footer ul a:hover {
  color: var(--primary);
}

.footer-copy {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding-top: 2rem;
  border-top: 1px solid #1a1a1a;
  max-width: var(--max-w);
  margin: 0 auto;
}

/* Article & Author */
.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0 2rem;
  border-bottom: 1px solid #1E1E1E;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.author-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #888;
  font-size: 0.85rem;
  font-weight: 600;
}

.author-link img {
  border-radius: 50%;
  width: 36px;
  height: 36px;
  object-fit: cover;
}

.article-meta time {
  color: #444;
  font-size: 0.78rem;
}

.article-meta time + time::before {
  content: "•";
  margin-right: 0.8rem;
  color: #333;
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #CCC;
}

.article-content h2 {
  margin: 2.5rem 0 1rem;
  color: #fff;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content ul, .article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  /* Header Responsivo */
  .header-fixed { padding: 1rem 1.5rem; }
  .logo { font-size: 1.2rem; }
  .header-fixed nav a:not(.btn-cta) { display: none; }
  
  /* Hero Responsivo */
  .hero-content {
    text-align: center;
    padding: 80px 1rem 0;
  }
  .hero-stats { 
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem; 
    justify-items: center;
  }
  .stat { align-items: center; text-align: center; }
  .hero-ctas { flex-direction: column; width: 100%; gap: 1rem; }
  .hero-ctas a { width: 100%; text-align: center; }

  /* Rodapé Responsivo */
  footer { padding: 3rem 1.5rem 1.5rem; }
  footer section { padding: 0; }
  footer nav { 
    grid-template-columns: 1fr 1fr; 
    text-align: left; 
    gap: 2rem 1rem; 
  }
  
  /* Grids e Elementos */
  .features-grid, .blog-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .rating-block { grid-template-columns: 1fr; }
  .app-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .app-card .app-actions { justify-content: center; width: 100%; }
  
  /* Tabelas */
  .compare-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
