:root {
  --background: hsl(220, 20%, 6%);
  --foreground: hsl(210, 20%, 95%);
  --card: hsl(220, 18%, 10%);
  --primary: hsl(142, 76%, 45%);
  --primary-foreground: hsl(220, 20%, 6%);
  --secondary: hsl(220, 16%, 16%);
  --muted-foreground: hsl(215, 16%, 55%);
  --border: hsl(220, 16%, 18%);
  --radius: 0.75rem;
  --glow-primary: 0 0 60px hsla(142, 76%, 45%, 0.3);
  --glow-soft: 0 0 40px hsla(142, 76%, 45%, 0.15);
  
  /* Status Colors */
  --status-green: hsl(142, 76%, 45%);
  --status-yellow: hsl(45, 93%, 47%);
  --status-red: hsl(0, 84%, 60%);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.text-gradient { background: linear-gradient(135deg, #fff 0%, var(--primary) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* Status Utilities */
.text-danger { color: #ff4d4d !important; font-weight: 700; }
.text-success { color: var(--status-green) !important; font-weight: 700; }
.text-warning { color: #ffd700 !important; font-weight: 700; } /* Yellow */

/* Header & Navigation */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); border-bottom: 1px solid transparent; padding: 1.25rem 0; }
.header.scrolled { background: hsla(220, 20%, 6%, 0.85); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border-color: var(--border); padding: 0.75rem 0; }
.header-content { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 0.5rem; font-weight: 800; font-size: 1.35rem; color: white; text-decoration: none; white-space: nowrap; }
.logo-icon { color: var(--primary); width: 1.75rem; height: 1.75rem; }
.nav { display: flex; gap: 2rem; }
.nav a { color: var(--muted-foreground); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.3s; }
.nav a:hover { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 1rem; }

/* Buttons & Sizing */
.btn { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  gap: 0.5rem; 
  font-weight: 600; 
  border-radius: var(--radius); 
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
  text-decoration: none; 
  cursor: pointer; 
  font-family: 'Inter', sans-serif; 
}

.btn-fixed-size {
  min-width: 110px;
  height: 40px;
  padding: 0 1.25rem;
  font-size: 0.85rem;
}

.btn-login {
  background: var(--primary);
  color: var(--primary-foreground);
  border: none;
  box-shadow: 0 4px 14px hsla(142, 76%, 45%, 0.2);
}

.btn-login:hover {
  filter: invert(1);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

.btn-default { 
  background: var(--primary); 
  color: var(--primary-foreground);
  border: none;
}

.btn-default:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.btn-hero { background: var(--primary); color: var(--primary-foreground); padding: 1rem 2rem; box-shadow: var(--glow-primary); }
.btn-hero-outline { border: 2px solid hsla(142, 76%, 45%, 0.3); color: white; padding: 1rem 2rem; background: transparent; }

/* Dynamic Button CTA Shared Base */
.btn-dynamic-cta-red, .btn-dynamic-cta-yellow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 99px;
  text-decoration: none;
  background: transparent;
  transition: all 0.4s ease;
  position: relative;
  border: 2px solid transparent;
}

.blink-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid currentColor;
  background: transparent;
  display: inline-block;
  animation: blink-anim 1s infinite alternate;
}

@keyframes blink-anim {
  0% { opacity: 0.2; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1.1); }
}

/* Red Variant (CTA 1) */
.btn-dynamic-cta-red {
  border-color: #ff4d4d;
  color: #ff4d4d;
}

.btn-dynamic-cta-red .blink-dot {
  background: transparent;
}

/* Yellow Variant (CTA 2) */
.btn-dynamic-cta-yellow {
  border-color: #ffd700;
  color: #ffd700;
}

.btn-dynamic-cta-yellow .blink-dot {
  background: #ffd700;
  animation: blink-anim-filled-yellow 1s infinite alternate;
}

@keyframes blink-anim-filled-yellow {
  0% { opacity: 0.5; box-shadow: 0 0 0px #ffd700; }
  100% { opacity: 1; box-shadow: 0 0 10px #ffd700; }
}

/* Hover State - Both go Green (as per CTA 1 style request) */
.btn-dynamic-cta-red:hover, .btn-dynamic-cta-yellow:hover {
  color: var(--status-green);
  border-color: var(--status-green);
}

.btn-dynamic-cta-red:hover .blink-dot, .btn-dynamic-cta-yellow:hover .blink-dot {
  background: var(--status-green);
  border-color: var(--status-green);
  animation: blink-anim-filled 0.8s infinite alternate;
}

@keyframes blink-anim-filled {
  0% { opacity: 0.5; box-shadow: 0 0 0px var(--status-green); }
  100% { opacity: 1; box-shadow: 0 0 10px var(--status-green); }
}

/* Hero */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; padding: 8rem 0 4rem; }
.hero-grid-pattern { position: absolute; inset: 0; background-image: radial-gradient(circle at 2px 2px, hsla(220, 16%, 20%, 0.4) 1px, transparent 0); background-size: 40px 40px; }
.hero-gradient-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent, var(--background) 90%); }
.hero-glow { position: absolute; top: 20%; left: 50%; transform: translateX(-50%); width: 600px; height: 600px; background: hsla(142, 76%, 45%, 0.15); filter: blur(120px); border-radius: 50%; z-index: 1; }
.hero-content { position: relative; z-index: 10; width: 100%; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 4rem; align-items: center; }
.hero-title { font-size: clamp(2.5rem, 8vw, 4.5rem); font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem; letter-spacing: -0.02em; }
.hero-description { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--muted-foreground); margin-bottom: 3rem; max-width: 550px; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

/* CTA Sections Styles */
.cta-section { padding: 6rem 0; text-align: center; }
.cta-content { max-width: 850px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.cta-h2 { font-size: clamp(1.75rem, 5vw, 2.75rem); font-weight: 800; line-height: 1.2; color: white; }
.cta-h3 { font-size: clamp(1rem, 2vw, 1.25rem); color: var(--muted-foreground); font-weight: 500; line-height: 1.6; }

.btn-cta { 
  background: var(--primary); 
  color: var(--primary-foreground); 
  padding: 1.25rem 2.5rem; 
  font-size: 1.1rem; 
  border-radius: 99px;
  box-shadow: 0 10px 30px hsla(142, 76%, 45%, 0.3);
}
.btn-cta:hover { background: #12b04c; transform: translateY(-3px); box-shadow: 0 15px 40px hsla(142, 76%, 45%, 0.4); }

.punch-line-bg { background-color: #000; border-top: 1px solid var(--border); }

/* Updated Microcopy Styling */
.planos-footer-info {
  text-align: center;
  margin-top: 3rem;
}

.microcopy-v2 {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--muted-foreground);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  cursor: default;
}

.microcopy-v2:hover {
  background-color: var(--foreground);
  color: var(--background);
}

.microcopy { font-size: 0.9rem; color: var(--muted-foreground); margin-top: 0.5rem; opacity: 0.8; }

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: hsla(142, 76%, 45%, 0.1);
  border: 1px solid hsla(142, 76%, 45%, 0.2);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

/* Dashboard & Status Dots */
.dashboard-card { background: var(--card); border: 1px solid var(--border); border-radius: 1.5rem; padding: 2rem; box-shadow: 0 30px 60px rgba(0,0,0,0.6); position: relative; overflow: hidden; width: 100%; }
.dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.dashboard-title { font-size: 1rem; font-weight: 700; color: white; }
.dashboard-logo-pulse { color: var(--primary); animation: logoPulse 2.5s ease-in-out infinite; display: flex; align-items: center; justify-content: center; }

@keyframes logoPulse {
  0%, 100% { opacity: 0.9; transform: scale(1); filter: drop-shadow(0 0 4px var(--primary)); }
  50% { opacity: 0.3; transform: scale(0.85); filter: drop-shadow(0 0 10px var(--primary)); }
}

.status-list { display: flex; flex-direction: column; gap: 1.5rem; }
.status-item-v2 { display: flex; flex-direction: column; gap: 0.6rem; }
.status-info { display: flex; justify-content: space-between; align-items: center; }
.status-label-v2 { font-size: 0.8rem; font-weight: 600; color: var(--muted-foreground); }
.status-value-v2 { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; font-weight: 700; }

.status-dots-container {
  display: flex;
  gap: 3px;
  justify-content: flex-start;
  flex-wrap: nowrap;
  overflow: hidden;
}

.dot {
  width: 10px;
  height: 18px;
  border-radius: 2px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.dot:hover { transform: scaleY(1.2); filter: brightness(1.2); }

.d-green { background-color: var(--status-green); box-shadow: 0 0 4px hsla(142, 76%, 45%, 0.2); }
.d-yellow { background-color: var(--status-yellow); box-shadow: 0 0 4px hsla(45, 93%, 47%, 0.2); }
.d-red { background-color: var(--status-red); box-shadow: 0 0 4px hsla(0, 84%, 60%, 0.2); }

.online-text { color: var(--status-green); }
.danger-text { color: var(--status-red); }

/* Recursos & Integracoes Sections */
.section-padding { padding: 6rem 0; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-description { font-size: 1.1rem; color: var(--muted-foreground); max-width: 700px; margin: 1rem auto 0; }
.bg-muted { background-color: hsla(220, 20%, 4%, 1); }
.bg-muted-subtle { background-color: hsla(220, 20%, 8%, 1); }

.recursos-container { display: flex; flex-direction: column; gap: 4rem; }
.recursos-category { display: flex; flex-direction: column; gap: 2rem; }
.category-title { font-size: 1.5rem; font-weight: 800; color: white; display: flex; align-items: center; gap: 0.75rem; border-left: 4px solid var(--primary); padding-left: 1rem; }
.category-icon { color: var(--primary); width: 1.5rem; height: 1.5rem; }

.features-grid-v3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Mini Cards */
.mini-feature {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 1.25rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 0;
  cursor: pointer;
}

.mini-feature h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0;
  transition: margin 0.3s ease;
}

.mini-feature p {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  line-height: 1.5;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mini-feature:hover {
  border-color: var(--primary);
  background: hsla(142, 76%, 45%, 0.05);
  transform: translateY(-4px);
}

.mini-feature:hover h4 { margin-bottom: 0.75rem; }
.mini-feature:hover p { max-height: 100px; opacity: 1; margin-top: 0.5rem; }

/* Force show descriptions */
.desc-visible .mini-feature {
  padding-bottom: 1.5rem;
}
.desc-visible .mini-feature h4 { margin-bottom: 0.75rem; }
.desc-visible .mini-feature p { max-height: 100px; opacity: 1; margin-top: 0.5rem; }

/* DB Monitoring Card */
.db-monitoring-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 2.5rem;
  border-radius: 1.5rem;
  transition: all 0.4s ease;
  cursor: pointer;
}

.db-list {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0;
  transition: margin 0.3s ease;
}

.db-description {
  font-size: 1rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.4s ease;
}

.db-monitoring-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  background: hsla(142, 76%, 45%, 0.05);
}

.db-monitoring-card:hover .db-list { margin-bottom: 1rem; }
.db-monitoring-card:hover .db-description { max-height: 200px; opacity: 1; }

.desc-visible .db-monitoring-card .db-list { margin-bottom: 1rem; }
.desc-visible .db-monitoring-card .db-description { max-height: 200px; opacity: 1; }

/* Toggle Wrapper */
.recursos-toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.logo-toggle-btn {
  background: transparent;
  border: 2px solid var(--primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--primary);
}

.logo-toggle-btn.active {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 0 15px hsla(142, 76%, 45%, 0.4);
}

.toggle-text { font-size: 0.85rem; font-weight: 600; color: var(--muted-foreground); }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; margin-top: 2rem; }
.pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  transition: all 0.4s ease;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: var(--glow-soft);
  transform: scale(1.05);
  z-index: 2;
  background: linear-gradient(135deg, var(--card) 0%, hsla(142, 76%, 45%, 0.05) 100%);
}

.plan-name { font-size: 1.25rem; font-weight: 700; color: var(--primary); margin-bottom: 1rem; }
.plan-price { font-size: 2.5rem; font-weight: 800; margin-bottom: 2.5rem; line-height: 1; }
.plan-price span { font-size: 1rem; color: var(--muted-foreground); font-weight: 400; }
.plan-features { list-style: none; margin-bottom: 3rem; flex: 1; }
.plan-features li { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1.25rem; font-size: 0.95rem; color: var(--foreground); }
.plan-features li i { color: var(--primary); width: 1.2rem; margin-top: 0.2rem; flex-shrink: 0; }
.featured-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: var(--primary-foreground); padding: 0.4rem 1.2rem; border-radius: 99px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.05em; }

/* Footer */
.footer { padding: 4rem 0; border-top: 1px solid var(--border); background: var(--background); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.footer-copyright { display: flex; align-items: center; gap: 0.75rem; color: var(--muted-foreground); font-size: 0.85rem; }
.footer-separator { opacity: 0.3; }
.footer-social { display: flex; gap: 1.5rem; }
.social-link { 
  display: flex; 
  align-items: center; 
  gap: 0.5rem; 
  color: var(--muted-foreground); 
  text-decoration: none; 
  font-size: 0.85rem; 
  transition: color 0.3s ease; 
  font-weight: 600;
}
.social-link:hover { color: var(--primary); }

/* Mobile Menu */
.mobile-menu-toggle { background: transparent; border: none; color: white; cursor: pointer; display: none; padding: 0.5rem; z-index: 1001; }
.mobile-nav { position: fixed; top: 0; right: -100%; width: 100%; height: 100vh; background: var(--background); z-index: 999; transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1); padding: 6rem 2rem; display: flex; flex-direction: column; justify-content: space-between; }
.mobile-nav.open { right: 0; }
.mobile-nav nav { display: flex; flex-direction: column; gap: 2.5rem; }
.mobile-link { font-size: 1.75rem; font-weight: 800; color: white; text-decoration: none; transition: color 0.3s; }
.mobile-link:hover { color: var(--primary); }
.mobile-actions { display: flex; flex-direction: column; gap: 1rem; }

/* Animations */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
.animate-float { animation: float 6s ease-in-out infinite; }

/* Breakpoints Responsividade */
@media (max-width: 1024px) {
  .hero-grid { gap: 2rem; }
  .pricing-card.featured { transform: scale(1); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav.desktop-nav, .header-actions .btn-login.hide-mobile { display: none; }
  .mobile-menu-toggle { display: block; }
  
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 4rem; }
  .hero-text { display: flex; flex-direction: column; align-items: center; }
  .hero-description { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  
  .hero-dashboard { max-width: 500px; margin: 0 auto; }
  
  .pricing-grid { grid-template-columns: 1fr; max-width: 500px; margin-left: auto; margin-right: auto; }
  
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-copyright { flex-direction: column; gap: 0.5rem; }
  .footer-separator { display: none; }
}

@media (max-width: 480px) {
  .section-padding { padding: 4rem 0; }
  .hero { padding-top: 7rem; }
  .hero-title { font-size: 2.5rem; }
  .hero-buttons .btn { width: 100%; }
  
  .dashboard-card { padding: 1.25rem; }
  .status-dots-container .dot { width: 8px; height: 14px; }
  
  .category-title { font-size: 1.25rem; }
  .mini-feature { padding: 1.25rem; }
  
  .pricing-card { padding: 2.5rem 1.5rem; }
  .plan-price { font-size: 2.25rem; }
}
