:root {
  --bg-main: #0a0f1d;
  --bg-card: #131b2e;
  --bg-card-hover: #1b2640;
  --primary: #0066ff;
  --primary-hover: #0052cc;
  --accent-cyan: #00d2ff;
  --accent-green: #10b981;
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --border-color: #1e293b;
  --radius: 16px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

header {
  padding: 24px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

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

.brand-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.brand-title span {
  color: var(--accent-cyan);
}

.badge-tag {
  background: rgba(0, 102, 255, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 210, 255, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

main {
  flex: 1;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 20px 60px;
}

.hero {
  text-align: center;
  padding: 40px 10px 30px;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 12px;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero-description {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto 32px;
}

/* Área de Download e Botões de Ação */
.action-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 450px;
  margin: 0 auto 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  border-radius: var(--radius);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  width: 100%;
}

.btn svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.hero-main-action {
  margin: 32px auto 10px;
  max-width: 520px;
}

.btn-hero-primary {
  background: linear-gradient(135deg, #0066ff 0%, #00d2ff 100%);
  color: #ffffff;
  padding: 18px 28px;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 102, 255, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  width: 100%;
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 210, 255, 0.5);
}

/* Grid das Plataformas (iOS & Android) */
.platform-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.platform-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-width: 1.5px;
}

.ios-card-highlight {
  border-color: rgba(255, 255, 255, 0.25);
  background: linear-gradient(180deg, #162038 0%, #111828 100%);
}

.android-card-highlight {
  border-color: rgba(16, 185, 129, 0.35);
  background: linear-gradient(180deg, #13222e 0%, #0d1924 100%);
}

.apple-icon-box {
  background: #ffffff !important;
  color: #000000 !important;
}

.android-icon-box {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #10b981 !important;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.card-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.android-actions-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}

.qr-wrapper-clean {
  background: #ffffff;
  padding: 16px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 14px;
}

.qr-wrapper-clean img,
.qr-wrapper-clean canvas {
  margin: 0 auto;
  display: block;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #00d2ff 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 102, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 102, 255, 0.5);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: #334155;
}

.btn-apple {
  background: #ffffff;
  color: #000000;
  font-weight: 700;
}

.btn-apple:hover {
  background: #f1f5f9;
}

.pulse {
  animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
  0% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.6); }
  70% { box-shadow: 0 0 0 15px rgba(0, 210, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0); }
}

/* Cards e Layout Geral */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s, border-color 0.2s;
}

.card:hover {
  border-color: #2e3d5b;
  transform: translateY(-3px);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 102, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* QR Code Card */
.qr-card {
  text-align: center;
  background: linear-gradient(180deg, #131b2e 0%, #0d1424 100%);
  border: 1px solid #23314f;
}

.qr-wrapper {
  background: #ffffff;
  padding: 16px;
  border-radius: 14px;
  display: inline-block;
  margin: 16px 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.qr-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Instruções iOS Card */
.ios-card {
  border-left: 4px solid var(--accent-cyan);
}

.steps-list {
  margin-top: 14px;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.steps-list li {
  margin-bottom: 10px;
}

.steps-list strong {
  color: #ffffff;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  max-width: 480px;
  width: 100%;
  padding: 28px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  font-weight: 600;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.hidden {
  display: none !important;
}

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