/* ==========================================================================
   DESIGN SYSTEM - PROPOSTA COMERCIAL CENTER FITNESS
   DESENVOLVIDO POR: x3onlinesistemas
   ========================================================================== */

/* Fontes */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Cores */
  --bg-primary: #08090c;
  --bg-secondary: #11141a;
  --bg-tertiary: #161b24;
  --primary: #00ff66;
  --primary-rgb: 0, 255, 102;
  --primary-hover: #00e65a;
  --accent-blue: #00d2ff;
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 255, 102, 0.15);
  --glass-bg: rgba(17, 20, 26, 0.75);
  --glass-border: rgba(255, 255, 255, 0.05);
  
  /* Fontes */
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Efeitos */
  --shadow-neon: 0 0 15px rgba(0, 255, 102, 0.35);
  --shadow-neon-lg: 0 0 30px rgba(0, 255, 102, 0.5);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

/* Reset Geral */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--bg-secondary);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Barra de rolagem customizada */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-secondary);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

/* Layout Utilitários */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 80px 0;
}

.text-center {
  text-align: center;
}

.gradient-text {
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(0, 255, 102, 0.1);
  color: var(--primary);
  border: 1px solid rgba(0, 255, 102, 0.2);
}

.badge-blue {
  background: rgba(0, 210, 255, 0.1);
  color: var(--accent-blue);
  border: 1px solid rgba(0, 210, 255, 0.2);
}

/* Header & Nav */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 9, 12, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
  transition: var(--transition);
}

header.scrolled {
  padding: 12px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.x3-logo {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 20px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.x3-logo span {
  color: var(--primary);
}

.client-tag {
  border-left: 2px solid var(--border-color);
  padding-left: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(0, 255, 102, 0.08);
  border: 1px solid rgba(0, 255, 102, 0.2);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 100px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  animation: pulse 1.5s infinite alternate;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 100px 0 60px 0;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 255, 102, 0.12) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 52px;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero p.lead {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

/* Proposta Metadata Grid */
.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .meta-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .hero h1 {
    font-size: 64px;
  }
}

.meta-card {
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: var(--transition);
}

.meta-card:hover {
  border-color: rgba(0, 255, 102, 0.25);
  transform: translateY(-2px);
}

.meta-card span {
  display: block;
}

.meta-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.meta-value {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.meta-value.price {
  color: var(--primary);
  text-shadow: 0 0 10px rgba(0, 255, 102, 0.1);
}

/* Layout Preview Grid */
.preview-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 992px) {
  .preview-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.preview-info {
  padding-right: 0;
}

@media (min-width: 992px) {
  .preview-info {
    padding-right: 40px;
  }
}

.preview-info h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.preview-info p {
  margin-bottom: 24px;
}

.preview-feature-list {
  list-style: none;
}

.preview-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.preview-feature-icon {
  background: rgba(0, 255, 102, 0.08);
  border: 1px solid rgba(0, 255, 102, 0.2);
  color: var(--primary);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}

.preview-feature-text h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
}

.preview-feature-text p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 0;
}

.gallery-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 600px) {
  .gallery-container {
    grid-template-columns: 1fr 1fr;
  }
}

.gallery-card {
  position: relative;
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  aspect-ratio: 4/5;
  cursor: pointer;
}

.gallery-card.featured {
  aspect-ratio: 4/5;
}

.gallery-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 255, 102, 0.35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 255, 102, 0.15);
}

.gallery-img-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(8, 9, 12, 0.95) 0%, rgba(8, 9, 12, 0.4) 60%, transparent 100%);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.gallery-overlay h3 {
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.gallery-overlay p {
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
}

/* Phases Section */
.phases-section {
  position: relative;
}

.phases-header {
  max-width: 650px;
  margin: 0 auto 60px auto;
}

.phases-header h2 {
  font-size: 40px;
  margin-bottom: 16px;
}

.phases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .phases-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1024px) {
  .phases-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.phase-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.phase-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--border-color);
  transition: var(--transition);
}

.phase-card.active {
  border-color: rgba(0, 255, 102, 0.25);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.phase-card.active::before {
  background: linear-gradient(90deg, var(--primary), var(--accent-blue));
}

.phase-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 255, 102, 0.4);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 255, 102, 0.1);
}

.phase-card:hover::before {
  background: linear-gradient(90deg, var(--primary), var(--accent-blue));
}

.phase-num {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  display: block;
}

.phase-title {
  font-size: 26px;
  margin-bottom: 12px;
}

.phase-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 30px;
  min-height: 50px;
}

.phase-price-box {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.phase-price-label {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.phase-price-value {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
}

.phase-card.active .phase-price-value {
  color: var(--primary);
  text-shadow: 0 0 10px rgba(0, 255, 102, 0.15);
}

.phase-features-title {
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.phase-features-list {
  list-style: none;
  margin-bottom: 40px;
  flex-grow: 1;
}

.phase-features-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}

.phase-features-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: 800;
  font-size: 14px;
}

.phase-features-list li.sub-item {
  color: var(--text-muted);
  padding-left: 36px;
}

.phase-features-list li.sub-item::before {
  content: '↳';
  left: 20px;
  color: var(--text-muted);
}

/* Diferenciais Section */
.tech-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.tech-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 600px) {
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .tech-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.tech-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}

.tech-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 255, 102, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.tech-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 255, 102, 0.08);
  border: 1px solid rgba(0, 255, 102, 0.2);
  border-radius: var(--radius-md);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.tech-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.tech-card p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Call to Action & Acceptance */
.cta-section {
  position: relative;
  text-align: center;
}

.cta-box {
  background: radial-gradient(circle at top right, rgba(0, 255, 102, 0.06), transparent), var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 255, 102, 0.05) 0%, transparent 100%);
  pointer-events: none;
}

.cta-box h2 {
  font-size: 36px;
  margin-bottom: 16px;
}

.cta-box p {
  max-width: 600px;
  margin: 0 auto 32px auto;
}

.total-investment {
  display: inline-flex;
  flex-direction: column;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  padding: 20px 40px;
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
}

.total-investment .val-label {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.total-investment .val-amount {
  font-family: var(--font-title);
  font-size: 40px;
  font-weight: 800;
  color: var(--primary);
  text-shadow: 0 0 15px rgba(0, 255, 102, 0.25);
}

.actions-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

@media (min-width: 600px) {
  .actions-group {
    flex-direction: row;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 100px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: #000000;
  box-shadow: var(--shadow-neon);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: var(--shadow-neon-lg);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* Modal de Aceite */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(8, 9, 12, 0.9);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  max-width: 500px;
  width: 90%;
  padding: 40px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
  transform: scale(0.9);
  transition: var(--transition);
}

.modal-overlay.open .modal-card {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.modal-title {
  font-size: 24px;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--text-primary);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(0, 255, 102, 0.1);
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-secondary);
  border: 1px solid rgba(0, 255, 102, 0.3);
  border-left: 4px solid var(--primary);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), var(--shadow-neon);
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
}

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

.toast-icon {
  color: var(--primary);
  font-size: 20px;
}

.toast-message {
  font-size: 14px;
  font-weight: 500;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  background-color: var(--bg-primary);
  font-size: 14px;
  color: var(--text-muted);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
}

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

/* Animações */
@keyframes pulse {
  from {
    transform: scale(0.9);
    box-shadow: 0 0 5px var(--primary);
  }
  to {
    transform: scale(1.1);
    box-shadow: 0 0 12px var(--primary);
  }
}

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

.animate-fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Lightbox para Imagens */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(8, 9, 12, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  max-width: 90%;
  max-height: 85%;
  position: relative;
}

.lightbox-img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 28px;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-close:hover {
  color: var(--primary);
}
