/* ==========================================================
   RB Player — Landing Page
   ========================================================== */

:root {
  --bg-0: #0a0a0c;
  --bg-1: #121216;
  --bg-2: #1a1a20;
  --bg-3: #22222a;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f5f7;
  --text-muted: #a0a0aa;
  --text-dim: #70707a;

  --accent: #ff3b30;
  --accent-2: #ff6b35;
  --accent-gradient: linear-gradient(135deg, #ff3b30 0%, #ff6b35 100%);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 10px 40px rgba(255, 59, 48, 0.25);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

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

/* ==========================================================
   BOTÕES
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 50px rgba(255, 59, 48, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: var(--bg-2);
  border-color: var(--border-strong);
}

.btn-outline {
  background: var(--bg-2);
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover {
  background: var(--bg-3);
  border-color: var(--border-strong);
}

.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-icon { font-size: 1.1em; }

/* ==========================================================
   NAVBAR
   ========================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(10, 10, 12, 0.8);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 0.85rem;
}

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top left, rgba(255, 59, 48, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(255, 107, 53, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}

.badge-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.3);
  color: var(--accent-2);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 99px;
  margin-bottom: 24px;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.meta-item strong {
  color: var(--accent-2);
  font-size: 1.1rem;
}

.hero-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
  background: var(--bg-2);
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-dim);
  background:
    linear-gradient(135deg, var(--bg-2) 0%, var(--bg-3) 100%);
}
.hero-image-placeholder .ph-icon { font-size: 3rem; margin-bottom: 12px; }
.hero-image-placeholder code {
  background: var(--bg-1);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--accent-2);
}

/* ==========================================================
   SECTION HEAD (reutilizável)
   ========================================================== */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.eyebrow {
  display: inline-block;
  color: var(--accent-2);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ==========================================================
   FEATURES
   ========================================================== */
.features {
  padding: 100px 0;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 32px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 59, 48, 0.15), rgba(255, 107, 53, 0.1));
  border: 1px solid rgba(255, 59, 48, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

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

/* ==========================================================
   SCREENSHOTS
   ========================================================== */
.screenshots {
  padding: 100px 0;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.screenshot {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
}
.screenshot:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.screenshot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--bg-3);
}

.screenshot.empty img {
  display: none;
}

.screenshot.empty::before {
  content: '📷 Adicione a imagem em images/';
  display: block;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
}

.screenshot figcaption {
  padding: 16px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

/* ==========================================================
   DOWNLOAD
   ========================================================== */
.download {
  padding: 100px 0;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}

.download-card {
  position: relative;
  padding: 40px 32px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.3s ease;
}
.download-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.download-card.featured {
  border-color: rgba(255, 59, 48, 0.4);
  background: linear-gradient(180deg, var(--bg-2) 0%, rgba(255, 59, 48, 0.04) 100%);
}

.download-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 14px;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 99px;
  box-shadow: var(--shadow-glow);
}

.download-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--text);
}

.download-card h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.download-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.download-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.download-meta {
  display: flex;
  justify-content: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.download-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 40px;
}
.download-note a { color: var(--accent-2); }
.download-note a:hover { text-decoration: underline; }

.download-note-inline {
  margin-top: 16px;
  padding: 10px 14px;
  background: rgba(255, 107, 53, 0.08);
  border: 1px solid rgba(255, 107, 53, 0.22);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.4;
}
.download-note-inline a {
  color: var(--accent-2);
  font-weight: 600;
}
.download-note-inline a:hover { text-decoration: underline; }

/* ==========================================================
   SMARTSCREEN TUTORIAL
   ========================================================== */
.smartscreen {
  padding: 100px 0;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.safety-banner {
  max-width: 880px;
  margin: 0 auto 48px;
  display: flex;
  gap: 20px;
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(52, 199, 89, 0.08), rgba(52, 199, 89, 0.02));
  border: 1px solid rgba(52, 199, 89, 0.25);
  border-radius: var(--radius-lg);
  align-items: flex-start;
}
.safety-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}
.safety-banner strong {
  display: block;
  color: #34c759;
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.safety-banner p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

.steps-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.step-card {
  position: relative;
  padding: 28px 22px 22px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}
.step-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: var(--shadow-glow);
}
.step-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.step-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
}
.step-card code {
  background: var(--bg-3);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.82rem;
  color: var(--accent-2);
}

.smartscreen-why {
  max-width: 800px;
  margin: 56px auto 0;
  padding: 28px 32px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}
.smartscreen-why h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.smartscreen-why p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 12px;
}
.smartscreen-why p:last-child {
  margin-bottom: 0;
}
.smartscreen-why a {
  color: var(--accent-2);
  font-weight: 600;
}
.smartscreen-why a:hover { text-decoration: underline; }
.safety-note {
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.88rem !important;
}

/* ==========================================================
   CTA FINAL
   ========================================================== */
.cta-final {
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255, 59, 48, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.cta-final h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
}

.cta-final p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 32px;
  position: relative;
}

.cta-final .btn {
  position: relative;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  padding: 60px 0 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 16px;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text);
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--accent-2); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.85rem;
  text-align: center;
}

/* ==========================================================
   RESPONSIVO
   ========================================================== */
@media (max-width: 900px) {
  .nav-links { display: none; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .hero { padding: 40px 0 60px; }
  .features, .screenshots, .download, .cta-final { padding: 60px 0; }

  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
