/* Google Fonts - Instrument Sans */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&display=swap');

/* Variáveis do TrackFind */
:root {
  /* Fundo e Superfícies */
  --surface-1: #1E1E22; /* Fundo mais escuro para o grid destacar */
  --surface-2: rgba(40, 40, 46, 0.8); /* Cards com leve transparência */
  --surface-3: #202024;
  --surface-soft: rgba(255, 255, 255, 0.05);
  
  /* Textos */
  --text-strong: #FFFFFF;
  --text-1: #F8FAFC;
  --text-2: #CBD5E1;
  --text-3: #94A3B8;

  /* Marca (Verdes) */
  --brand: #A2F07C;
  --brand-strong: #8EE85F;
  --brand-light: #C2F7A8;
  --brand-soft: rgba(162, 240, 124, 0.15);
  --brand-glow: rgba(162, 240, 124, 0.4);
  --brand-text: #0F172A;

  /* Bordas */
  --border: rgba(255, 255, 255, 0.08);

  /* Dimensões */
  --max-width: 1200px;
}

/* Reset Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Instrument Sans', sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: var(--surface-1);
  color: var(--text-2);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Efeito de GRID Animado e Glow no Fundo */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  /* Criação da malha do grid */
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center center;
  z-index: -2;
  pointer-events: none;
}

/* Sombreamento no meio da tela para dar profundidade ao grid */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 50% 0%, rgba(162, 240, 124, 0.05) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}

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

ul {
  list-style: none;
}

/* Tipografia */
h1, h2, h3, h4 {
  color: var(--text-strong);
  line-height: 1.2;
}

h1 {
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #FFFFFF 0%, #A3A3A3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

p {
  font-size: 1.125rem;
}

/* Utilidades */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.text-brand {
  color: var(--brand);
  background: none;
  -webkit-text-fill-color: var(--brand);
}

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

/* Animações CSS */
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 20px rgba(162, 240, 124, 0.2); }
  50% { box-shadow: 0 0 40px rgba(162, 240, 124, 0.5); }
  100% { box-shadow: 0 0 20px rgba(162, 240, 124, 0.2); }
}

.animate-fade-up {
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.5s; }

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  border-radius: 999px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--brand);
  color: var(--brand-text);
  animation: pulseGlow 3s infinite;
}

.btn-primary:hover {
  background-color: var(--brand-light);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-strong);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

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

/* Header / Navbar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.25rem 0;
  background: rgba(30, 30, 34, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1000;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-strong);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-2);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-strong);
  text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.nav-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Hero Section */
.hero {
  padding: 14rem 0 8rem 0;
  position: relative;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero p {
  margin: 1.5rem 0 3rem 0;
  font-size: 1.35rem;
  color: var(--text-2);
  max-width: 700px;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.2rem;
  border-radius: 999px;
  background: rgba(162, 240, 124, 0.1);
  color: var(--brand);
  font-weight: 600;
  font-size: 0.875rem;
  border: 1px solid rgba(162, 240, 124, 0.2);
  margin-bottom: 2rem;
  box-shadow: 0 0 20px rgba(162, 240, 124, 0.1);
}

/* Dashboard Mockup (Visual) */
.hero-mockup {
  margin-top: 5rem;
  width: 100%;
  max-width: 100%;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
}

.hero-mockup img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Integrations Marquee */
.integrations {
  padding: 4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0,0,0,0.2);
}

.integration-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  opacity: 0.6;
}

.integration-logos i {
  font-size: 3.5rem;
  color: var(--text-2);
  transition: all 0.3s ease;
}

.integration-logos i:hover {
  color: var(--brand);
  transform: scale(1.15) translateY(-5px);
  filter: drop-shadow(0 0 15px var(--brand-glow));
  opacity: 1;
}

/* Funcionalidades Complexas */
.features {
  padding: 10rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  margin-bottom: 1rem;
}

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

.feature-card {
  background: var(--surface-2);
  backdrop-filter: blur(10px);
  padding: 3rem 2.5rem;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(162, 240, 124, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: rgba(162, 240, 124, 0.3);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: rgba(162, 240, 124, 0.1);
  color: var(--brand);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(162, 240, 124, 0.2);
}

.feature-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* Detalhamento Sistema (Nova Seção) */
.system-info {
  padding: 8rem 0;
  background: rgba(0,0,0,0.3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.info-text h2 {
  margin-bottom: 1.5rem;
}

.info-text p {
  color: var(--text-2);
  margin-bottom: 2rem;
  font-size: 1.15rem;
}

.info-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--text-1);
}

.info-list i {
  color: var(--brand);
  font-size: 1.5rem;
  background: rgba(162, 240, 124, 0.1);
  padding: 0.5rem;
  border-radius: 50%;
}

.info-visual {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  animation: float 6s ease-in-out infinite;
}

/* API Code Box */
.code-box {
  background: #0D1117;
  border-radius: 12px;
  padding: 1.5rem;
  font-family: monospace;
  color: #a3a3a3;
  font-size: 0.9rem;
  overflow-x: auto;
  border: 1px solid rgba(255,255,255,0.1);
}

.code-box .keyword { color: #ff7b72; }
.code-box .string { color: #a5d6ff; }
.code-box .function { color: #d2a8ff; }

/* CTA Section */
.cta {
  padding: 10rem 0;
  text-align: center;
}

.cta-box {
  background: linear-gradient(135deg, rgba(40,40,46,0.8) 0%, rgba(20,20,24,0.9) 100%);
  border: 1px solid rgba(162, 240, 124, 0.2);
  padding: 6rem 4rem;
  border-radius: 40px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.cta-box::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(162, 240, 124, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-box h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

/* Footer */
footer {
  padding: 4rem 0 2rem 0;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 2rem;
}

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

/* Responsividade */
@media (max-width: 992px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding: 8rem 0 5rem 0; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .cta-box { padding: 4rem 2rem; border-radius: 24px; }
  .integration-logos { gap: 2rem; }
  .integration-logos i { font-size: 2.5rem; }
}
