/* ==========================================================================
   CRONIXVERSO - THE VERGE + APPLE HYBRID DESIGN SYSTEM
   Exact Palette:
   - Fundo: #05070D
   - Cards: #10131A
   - Azul Elétrico: #3B82F6
   - Roxo: #8B5CF6
   - Ciano: #22D3EE
   - Branco: #F8FAFC
   Tipografia:
   - Títulos: Space Grotesk
   - Textos: Inter
   - Código/Specs: JetBrains Mono
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  /* Color Palette */
  --bg-dark: #05070D;
  --bg-card: rgba(16, 19, 26, 0.75);
  --bg-card-hover: rgba(24, 28, 38, 0.9);
  --bg-glass: rgba(16, 19, 26, 0.6);
  
  --blue-electric: #3B82F6;
  --purple-glow: #8B5CF6;
  --cyan-bright: #22D3EE;
  
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;

  --border-glow: rgba(59, 130, 246, 0.2);
  --border-glow-active: rgba(34, 211, 238, 0.5);
  --border-card: rgba(255, 255, 255, 0.08);

  /* Fonts */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-code: 'JetBrains Mono', monospace;

  /* Shadows & Glows */
  --shadow-neon-cyan: 0 0 25px rgba(34, 211, 238, 0.35);
  --shadow-neon-blue: 0 0 35px rgba(59, 130, 246, 0.3);
  --shadow-neon-purple: 0 0 30px rgba(139, 92, 246, 0.3);
  --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.6);

  --backdrop-blur: blur(16px);
}

/* Reset & Global Settings */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Particle Canvas Background */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #05070D;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
  border: 1px solid rgba(59, 130, 246, 0.2);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--blue-electric);
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #F8FAFC 0%, #3B82F6 50%, #22D3EE 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-purple {
  background: linear-gradient(135deg, #8B5CF6 0%, #22D3EE 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  border-radius: 9999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-electric) 0%, var(--purple-glow) 100%);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-glow);
  -webkit-backdrop-filter: var(--backdrop-blur);
  backdrop-filter: var(--backdrop-blur);
}

.btn-glass:hover {
  background: rgba(59, 130, 246, 0.12);
  border-color: var(--cyan-bright);
  box-shadow: var(--shadow-neon-cyan);
  transform: translateY(-2px);
}

/* Header & Navbar (Apple / Verge Minimalist) */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.1rem 0;
  background: rgba(5, 7, 13, 0.8);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.3));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.03);
  filter: drop-shadow(0 0 16px rgba(34, 211, 238, 0.6));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.25s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--cyan-bright);
}

/* Hero Section (The Verge + Apple Style) */
.hero-section {
  padding-top: 10rem;
  padding-bottom: 5rem;
  text-align: center;
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-box {
  max-width: 820px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  border-radius: 9999px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.25);
  font-family: var(--font-code);
  font-size: 0.78rem;
  color: var(--cyan-bright);
  margin-bottom: 1.8rem;
}

.hero-title {
  font-size: 4rem;
  line-height: 1.08;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--cyan-bright);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 2.5rem auto;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem auto;
}

.section-subtitle {
  font-family: var(--font-code);
  font-size: 0.82rem;
  color: var(--cyan-bright);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: 2.6rem;
  font-weight: 700;
}

/* 🔥 Destaques Section (Card Grande) */
.destaques-section {
  padding: 4rem 0;
}

.card-grande-destaque {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  min-height: 480px;
  padding: 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  -webkit-backdrop-filter: var(--backdrop-blur);
  backdrop-filter: var(--backdrop-blur);
  background-image: 
    linear-gradient(180deg, transparent 20%, rgba(5, 7, 13, 0.95) 100%),
    radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.2) 0%, transparent 60%);
  box-shadow: var(--shadow-card);
}

.destaque-tag {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid var(--cyan-bright);
  font-family: var(--font-code);
  font-size: 0.78rem;
  color: var(--cyan-bright);
  margin-bottom: 1.2rem;
}

.destaque-title {
  font-size: 2.8rem;
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 1rem;
}

.destaque-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 1.8rem;
}

/* Bento Grid Section (Categorias) */
.bento-section {
  padding: 5rem 0;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1.5rem;
}

.bento-item {
  background: var(--bg-card);
  -webkit-backdrop-filter: var(--backdrop-blur);
  backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--border-card);
  border-radius: 24px;
  padding: 2.5rem;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan-bright), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.bento-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(59, 130, 246, 0.2);
}

.bento-item:hover::before {
  opacity: 1;
}

.bento-large { grid-column: span 2; }
.bento-tall { grid-row: span 2; }

.bento-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--cyan-bright);
  margin-bottom: 1.5rem;
}

.bento-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

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

.tags-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.5rem;
}

.tag-mini {
  font-family: var(--font-code);
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  color: var(--text-dim);
}

/* Últimas Notícias (Grid 3x2) */
.news-section {
  padding: 5rem 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 1.8rem;
  transition: all 0.35s ease;
}

.news-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-neon-blue);
  background: var(--bg-card-hover);
}

.news-meta {
  font-family: var(--font-code);
  font-size: 0.75rem;
  color: var(--cyan-bright);
  margin-bottom: 0.6rem;
}

.news-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.news-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Timeline do Futuro */
.timeline-section {
  padding: 5rem 0;
  background: rgba(16, 19, 26, 0.4);
}

.timeline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 2rem 0;
}

.timeline-node {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 18px;
  padding: 1.5rem;
  min-width: 220px;
  text-align: center;
  transition: all 0.3s ease;
}

.timeline-node:hover {
  border-color: var(--cyan-bright);
  transform: translateY(-4px);
  box-shadow: var(--shadow-neon-cyan);
}

.timeline-year {
  font-family: var(--font-code);
  font-size: 0.85rem;
  color: var(--cyan-bright);
  margin-bottom: 0.4rem;
}

.timeline-title {
  font-size: 1.1rem;
  font-weight: 700;
}

/* Ferramentas de IA, Reviews, Comparativos Tabs */
.tools-section {
  padding: 5rem 0;
}

.tool-tab-buttons {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 3rem;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-card);
  padding: 0.75rem 1.4rem;
  border-radius: 9999px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn:hover, .tab-btn.active {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--cyan-bright);
  color: #ffffff;
  box-shadow: var(--shadow-neon-cyan);
}

.tool-card-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 24px;
  padding: 2.5rem;
  -webkit-backdrop-filter: var(--backdrop-blur);
  backdrop-filter: var(--backdrop-blur);
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.ai-tool-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
}

.ai-tool-item:hover {
  border-color: var(--cyan-bright);
  transform: translateY(-3px);
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
}

.comp-table th, .comp-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.comp-table th {
  font-family: var(--font-code);
  color: var(--cyan-bright);
}

/* Newsletter & Footer */
.newsletter-box {
  background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.15) 0%, rgba(16, 19, 26, 0.8) 100%);
  border: 1px solid var(--border-glow);
  border-radius: 28px;
  padding: 4rem 2rem;
  box-shadow: var(--shadow-card);
  -webkit-backdrop-filter: var(--backdrop-blur);
  backdrop-filter: var(--backdrop-blur);
  max-width: 900px;
  margin: 0 auto 4rem auto;
  text-align: center;
}

.newsletter-form {
  display: flex;
  gap: 0.8rem;
  max-width: 500px;
  margin: 2rem auto 0 auto;
}

.form-input {
  width: 100%;
  padding: 0.85rem 1.2rem;
  background: rgba(5, 7, 13, 0.9);
  border: 1px solid var(--border-glow);
  border-radius: 9999px;
  color: #ffffff;
  font-family: var(--font-body);
  outline: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 0.88rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo-img {
  height: 30px;
  width: auto;
  opacity: 0.9;
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.2));
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-title { font-size: 3rem; }
  .grid-3, .bento-grid, .directory-grid { grid-template-columns: 1fr; }
  .bento-large, .bento-tall { grid-column: auto; grid-row: auto; }
}

@media (max-width: 768px) {
  .mobile-menu-toggle { display: block; background: transparent; border: 1px solid var(--border-glow); color: var(--text-main); font-size: 1.2rem; padding: 6px 12px; border-radius: 8px; cursor: pointer; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: rgba(5, 7, 13, 0.95); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); flex-direction: column; padding: 20px; border-bottom: 1px solid var(--border-card); }
  .nav-links.active { display: flex !important; }
  .hero-title { font-size: 2.2rem; }
  .newsletter-form { flex-direction: column; }
}

/* ── Cinematic Animations — Cronixverso ──────────────────────── */

@keyframes heroDrift {
  0%, 100% { transform: scale(1.05) translate(0, 0); }
  33%       { transform: scale(1.08) translate(-0.7%, -0.4%); }
  66%       { transform: scale(1.06) translate(0.5%, 0.3%); }
}

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

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes purpleGlowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.2); }
  50%       { box-shadow: 0 0 60px rgba(139, 92, 246, 0.6), 0 0 100px rgba(139,92,246,0.1); }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.animate-fade-up    { animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
.animate-fade-scale { animation: fadeInScale 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
.glow-pulse-purple  { animation: purpleGlowPulse 3s ease-in-out infinite; }

.stagger-1 { animation-delay: 0.08s; }
.stagger-2 { animation-delay: 0.16s; }
.stagger-3 { animation-delay: 0.24s; }
.stagger-4 { animation-delay: 0.32s; }
.stagger-5 { animation-delay: 0.40s; }

.shimmer-card { position: relative; overflow: hidden; }
.shimmer-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(139,92,246,0.07) 50%, transparent 60%);
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.shimmer-card:hover::after {
  opacity: 1;
  animation: shimmer 0.8s ease forwards;
}

.text-gradient-violet {
  background: linear-gradient(135deg, #c4b5fd 0%, #8b5cf6 50%, #6d28d9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .animate-fade-up, .animate-fade-scale, .glow-pulse-purple, .scroll-reveal {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

