:root {
  --bg-dark: #090d16;
  --bg-card: rgba(18, 26, 44, 0.7);
  --bg-card-hover: rgba(28, 40, 68, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(59, 130, 246, 0.4);
  
  --primary: #3b82f6;
  --primary-glow: rgba(59, 130, 246, 0.3);
  --accent: #6366f1;
  --teal: #14b8a6;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --badge-public-bg: rgba(20, 184, 166, 0.12);
  --badge-public-border: rgba(20, 184, 166, 0.3);
  --badge-public-color: #2dd4bf;
  
  --badge-auth-bg: rgba(245, 158, 11, 0.12);
  --badge-auth-border: rgba(245, 158, 11, 0.3);
  --badge-auth-color: #fbbf24;

  --badge-api-bg: rgba(99, 102, 241, 0.12);
  --badge-api-border: rgba(99, 102, 241, 0.3);
  --badge-api-color: #818cf8;

  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

/* Background Glow Effects */
.bg-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
}
.bg-glow-1 {
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, rgba(99, 102, 241, 0.1) 70%, transparent 100%);
}
.bg-glow-2 {
  top: 800px;
  right: -100px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.15) 0%, transparent 70%);
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Navigation */
.navbar {
  padding: 24px 0;
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 13, 22, 0.8);
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  box-shadow: 0 4px 20px var(--primary-glow);
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-title {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.5px;
  color: var(--text-main);
}
.brand-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}
.nav-actions {
  display: flex;
  gap: 12px;
}

/* Buttons */
.btn {
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 4px 16px var(--primary-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.45);
}
.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-color);
  color: var(--text-main);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Hero */
.hero {
  padding: 80px 0 60px 0;
  text-align: center;
}
.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 860px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 30px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--teal);
  box-shadow: 0 0 10px var(--teal);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}
.hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -1px;
}
.gradient-text {
  background: linear-gradient(135deg, #60a5fa, #a855f7, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-description {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 720px;
}

/* Search Box */
.search-box {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin-bottom: 48px;
}
.search-box input {
  width: 100%;
  padding: 18px 24px 18px 56px;
  background: rgba(18, 26, 44, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  color: var(--text-main);
  font-size: 16px;
  outline: none;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}
.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow), 0 8px 32px rgba(0, 0, 0, 0.4);
}
.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 18px;
}
.clear-btn {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  padding: 4px 8px;
}
.clear-btn:hover {
  color: var(--text-main);
}

/* Metrics Row */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
}
.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.metric-number {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
}
.metric-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

/* Services Section */
.services-section {
  padding: 40px 0 80px 0;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  gap: 20px;
  flex-wrap: wrap;
}
.section-title {
  font-size: 28px;
  font-weight: 700;
}
.section-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  gap: 8px;
  background: rgba(18, 26, 44, 0.5);
  padding: 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}
.filter-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}
.filter-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 10px var(--primary-glow);
}

.color-public { color: var(--teal); }
.color-auth { color: #fbbf24; }
.color-api { color: #818cf8; }

/* Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}

/* Service Card */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}
.service-card:hover::before {
  opacity: 1;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #60a5fa;
}

/* Badges */
.card-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.badge-publico {
  background: var(--badge-public-bg);
  border: 1px solid var(--badge-public-border);
  color: var(--badge-public-color);
}
.badge-restrito {
  background: var(--badge-auth-bg);
  border: 1px solid var(--badge-auth-border);
  color: var(--badge-auth-color);
}
.badge-api {
  background: var(--badge-api-bg);
  border: 1px solid var(--badge-api-border);
  color: var(--badge-api-color);
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}
.card-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}
.card-url {
  font-size: 12px;
  font-family: monospace;
  color: #60a5fa;
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-action {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s ease;
}
.service-card:hover .card-action {
  transform: translateX(4px);
  color: var(--primary);
}

/* No Results */
.no-results {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-color);
}
.no-results-icon {
  font-size: 48px;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.no-results h3 {
  font-size: 20px;
  margin-bottom: 8px;
}
.no-results p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Info Section */
.info-section {
  padding: 60px 0;
  border-top: 1px solid var(--border-color);
  background: rgba(18, 26, 44, 0.3);
}
.info-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
}
.info-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 16px;
}
.info-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.info-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Footer */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border-color);
  background: var(--bg-dark);
}
.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-left p {
  font-size: 13px;
  color: var(--text-muted);
}
.footer-domain span {
  color: var(--primary);
  font-weight: 600;
}
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--teal);
  background: rgba(20, 184, 166, 0.1);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(20, 184, 166, 0.2);
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--teal);
  box-shadow: 0 0 8px var(--teal);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-title { font-size: 36px; }
  .metrics-row { grid-template-columns: repeat(2, 1fr); }
  .info-card-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .metrics-row { grid-template-columns: 1fr; }
  .filter-tabs { width: 100%; justify-content: center; }
  .nav-actions { display: none; }
}
