/* ==========================================================================
   afCode Educational Clone - Core Design System & Variables
   Inspired by afcode.com.br
   ========================================================================== */

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

:root {
  /* Color Palette - Dark Mode Signature */
  --bg-primary: #090a0f;
  --bg-surface: #0f111a;
  --bg-card: rgba(18, 21, 33, 0.75);
  --bg-card-hover: rgba(26, 30, 48, 0.85);
  --bg-elevated: #161926;
  --bg-glass: rgba(15, 17, 26, 0.8);

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(0, 242, 254, 0.35);
  --border-focus: #00f2fe;

  /* Typography Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #090a0f;

  /* Accents & Brand Gradients */
  --cyan: #00f2fe;
  --blue: #4facfe;
  --purple: #8a2be2;
  --violet: #a855f7;
  --emerald: #10b981;
  --gold: #f59e0b;
  --rose: #f43f5e;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #00f2fe 0%, #4facfe 50%, #8a2be2 100%);
  --grad-text: linear-gradient(135deg, #ffffff 30%, #94a3b8 100%);
  --grad-accent-text: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  --grad-emerald: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --grad-card: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  --grad-glow: radial-gradient(circle at 50% 0%, rgba(0, 242, 254, 0.15) 0%, transparent 70%);

  /* Typography Fonts */
  --font-heading: "Outfit", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  /* Layout Constants */
  --header-height: 72px;
  --max-width: 1280px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows & Glows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --glow-cyan: 0 0 24px rgba(0, 242, 254, 0.25);
  --glow-purple: 0 0 28px rgba(138, 43, 226, 0.3);

  /* Transitions */
  --trans-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --trans-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --trans-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Mode Support */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(241, 245, 249, 0.95);
  --bg-elevated: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 114, 255, 0.35);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;
  --grad-text: linear-gradient(135deg, #0f172a 30%, #334155 100%);
  --grad-card: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.04) 100%);
  --grad-glow: radial-gradient(circle at 50% 0%, rgba(0, 114, 255, 0.08) 0%, transparent 70%);
}

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

html {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(ellipse at 50% 0%, rgba(0, 242, 254, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 85% 30%, rgba(138, 43, 226, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 15% 70%, rgba(16, 185, 129, 0.04) 0%, transparent 50%);
  background-attachment: fixed;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--trans-fast);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
  transition: var(--trans-fast);
}

input, select, textarea {
  font-family: inherit;
  color: inherit;
  outline: none;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 24px;
}

.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-cyan {
  background: var(--grad-accent-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--trans-normal), border-color var(--trans-normal);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--grad-primary);
  display: grid;
  place-items: center;
  color: #090a0f;
  font-weight: 800;
  font-size: 17px;
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.4);
}

.brand-dot {
  color: var(--cyan);
}

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

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  padding-block: 6px;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--cyan);
}

.nav-badge-new {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  background: rgba(0, 242, 254, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(0, 242, 254, 0.3);
  font-weight: 600;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  place-items: center;
  color: var(--text-secondary);
}

.theme-toggle-btn:hover {
  color: var(--cyan);
  border-color: var(--border-hover);
  background: rgba(0, 242, 254, 0.08);
}

.btn-login {
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.btn-login:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  background: var(--grad-primary);
  color: #090a0f;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.35);
  transition: transform var(--trans-fast), box-shadow var(--trans-fast);
}

.btn-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.55);
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  place-items: center;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 70px 0 60px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 56px;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 6px 14px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

.hero-eyebrow .pulsing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(38px, 4.4vw, 64px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.hero-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  transition: all var(--trans-fast);
}

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

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.hero-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Hero Visual Card Terminal Simulation */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-card-window {
  width: 100%;
  max-width: 520px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), var(--glow-cyan);
  overflow: hidden;
  transition: transform var(--trans-smooth), border-color var(--trans-normal);
}

.hero-card-window:hover {
  border-color: rgba(0, 242, 254, 0.4);
  transform: translateY(-4px);
}

.window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-subtle);
}

.window-dots {
  display: flex;
  gap: 7px;
}

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.window-dot.red { background: #ef4444; }
.window-dot.yellow { background: #f59e0b; }
.window-dot.green { background: #10b981; }

.window-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.window-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald);
  font-weight: 600;
}

.window-body {
  padding: 24px;
}

.code-snippet {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.code-keyword { color: #f43f5e; font-weight: 600; }
.code-fn { color: #38bdf8; }
.code-string { color: #a3e635; }
.code-param { color: #fbbf24; }
.code-comment { color: #64748b; font-style: italic; }

.live-preview-box {
  margin-top: 18px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.live-preview-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.live-preview-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(0, 242, 254, 0.1);
  color: var(--cyan);
  display: grid;
  place-items: center;
}

.live-preview-info h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.live-preview-info p {
  font-size: 11px;
  color: var(--text-muted);
}

.live-preview-price {
  text-align: right;
}

.live-preview-price .price-tag {
  font-size: 15px;
  font-weight: 700;
  color: var(--emerald);
}

.live-preview-price .pix-tag {
  font-size: 10px;
  color: var(--text-muted);
}

/* ==========================================================================
   Continuous Marquee Ticker
   ========================================================================== */
.marquee-bar {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  overflow: hidden;
  padding-block: 14px;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeDrift 50s linear infinite;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-right: 36px;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

.marquee-item svg {
  color: var(--cyan);
}

.marquee-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.7;
}

@keyframes marqueeDrift {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-bar:hover .marquee-track {
  animation-play-state: paused;
}

/* ==========================================================================
   Search & Filter Section
   ========================================================================== */
.catalog-section {
  padding: 80px 0 100px;
}

.section-header {
  margin-bottom: 44px;
}

.section-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 600px;
}

.catalog-controls {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.search-box-wrapper {
  position: relative;
  max-width: 480px;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 48px;
  padding: 0 44px 0 46px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 14px;
  transition: all var(--trans-fast);
}

.search-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.2);
  background: var(--bg-surface);
}

.search-clear-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  display: none;
}

.search-clear-btn.visible {
  display: block;
}

/* Category Filter Tags */
.filter-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all var(--trans-fast);
}

.filter-tab:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-tab.active {
  background: rgba(0, 242, 254, 0.1);
  color: var(--cyan);
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.15);
}

.filter-count {
  font-size: 11px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
}

.filter-tab.active .filter-count {
  background: var(--cyan);
  color: #090a0f;
}

/* ==========================================================================
   Product Grid & Product Cards
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 28px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: transform var(--trans-normal), border-color var(--trans-normal), box-shadow var(--trans-normal);
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg), var(--glow-cyan);
}

.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0d0f18;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--trans-smooth);
}

.product-card:hover .card-media img {
  transform: scale(1.04);
}

.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(15, 17, 26, 0.85);
  backdrop-filter: blur(8px);
  color: var(--cyan);
  border: 1px solid rgba(0, 242, 254, 0.3);
}

.card-badge.launch {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
}

.card-badge.free {
  color: var(--emerald);
  border-color: rgba(16, 185, 129, 0.4);
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.card-tagline {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tech-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.card-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price-container {
  display: flex;
  flex-direction: column;
}

.price-main {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.price-pix {
  font-size: 11px;
  color: var(--emerald);
  font-weight: 500;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-details {
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.btn-details:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
}

.btn-buy {
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: var(--cyan);
  color: #090a0f;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.3);
}

.btn-buy:hover {
  background: #38bdf8;
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(0, 242, 254, 0.5);
}

.btn-demo {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.35);
  text-decoration: none;
  transition: all var(--trans-fast);
}

.btn-demo:hover {
  background: rgba(16, 185, 129, 0.22);
  border-color: rgba(16, 185, 129, 0.6);
  transform: translateY(-1px);
  color: #34d399;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

.card-media-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  cursor: pointer;
}

.card-title-link {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--trans-fast);
}

.card-title-link:hover {
  color: var(--cyan);
}

.live-demo-pill {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: rgba(9, 10, 15, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.45);
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.live-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-live-dot 2s infinite ease-in-out;
}

@keyframes pulse-live-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* Empty State */
.empty-catalog-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-card);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
}

.empty-catalog-state svg {
  margin: 0 auto 16px;
  color: var(--text-muted);
}

.empty-catalog-state h3 {
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.empty-catalog-state p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ==========================================================================
   Editorial Pillars / How it works
   ========================================================================== */
.editorial-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.01);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.pillar-card {
  padding: 28px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: transform var(--trans-normal), border-color var(--trans-normal);
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

.pillar-number {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 14px;
}

.pillar-card h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

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

/* ==========================================================================
   Stack Tecnológica (Tech Strip)
   ========================================================================== */
.stack-section {
  padding: 70px 0;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.tech-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-top: 40px;
  overflow: hidden;
}

.tech-strip-item {
  background: var(--bg-surface);
  padding: 28px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: background var(--trans-fast);
}

.tech-strip-item:hover {
  background: var(--bg-card-hover);
}

.tech-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  place-items: center;
  color: var(--cyan);
}

.tech-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.tech-desc {
  font-size: 11px;
  color: var(--text-muted);
}

/* ==========================================================================
   Comunidade & Gamificação
   ========================================================================== */
.community-section {
  padding: 90px 0;
  border-top: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(138, 43, 226, 0.05) 0%, transparent 100%);
}

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

.community-copy h2 {
  font-family: var(--font-heading);
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}

.community-copy p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.community-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.community-feat-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.feat-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.feat-text h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.feat-text p {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Gamification Ranking Card Visual */
.community-visual-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg), var(--glow-purple);
  position: relative;
}

.gamification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.gamification-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
}

.gamification-coins {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-mono);
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ranking-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
}

.ranking-item.top-user {
  background: rgba(0, 242, 254, 0.06);
  border-color: rgba(0, 242, 254, 0.25);
}

.ranking-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rank-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.ranking-item:nth-child(1) .rank-badge {
  background: var(--gold);
  color: #090a0f;
}

.user-name-tag {
  font-size: 13px;
  font-weight: 500;
}

.user-points {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
  font-weight: 600;
}

/* ==========================================================================
   Testimonials & Social Proof
   ========================================================================== */
.testimonials-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-subtle);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.testimonial-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--trans-normal), border-color var(--trans-normal);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  color: var(--gold);
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 16px;
  color: #090a0f;
}

.author-meta h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.author-meta span {
  font-size: 11px;
  color: var(--text-muted);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
  padding: 80px 0 100px;
  border-top: 1px solid var(--border-subtle);
}

.faq-container {
  max-width: 820px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color var(--trans-fast);
}

.faq-item.open {
  border-color: rgba(0, 242, 254, 0.4);
}

.faq-question-btn {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.faq-question-btn:hover {
  color: var(--cyan);
}

.faq-icon {
  transition: transform var(--trans-fast);
  color: var(--text-muted);
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
  color: var(--cyan);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--trans-normal), padding var(--trans-fast);
  padding: 0 24px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 20px;
}

/* ==========================================================================
   CTA Banner
   ========================================================================== */
.cta-banner-section {
  padding: 70px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.cta-banner-box {
  padding: 50px 40px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.1) 0%, rgba(138, 43, 226, 0.1) 100%);
  border: 1px solid rgba(0, 242, 254, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: var(--shadow-lg), var(--glow-cyan);
}

.cta-banner-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 10px;
}

.cta-banner-text p {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 520px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #06070a;
  border-top: 1px solid var(--border-subtle);
  padding: 70px 0 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 320px;
  margin-top: 14px;
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-visual {
    order: -1;
  }
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tech-strip {
    grid-template-columns: repeat(3, 1fr);
  }
  .community-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .cta-banner-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .nav-links, .btn-login {
    display: none;
  }
  .mobile-menu-btn {
    display: grid;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .tech-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ==========================================================================
   Source Code Download Buttons & Central de Downloads Styles
   ========================================================================== */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-download:hover {
  background: #10b981;
  color: #090a0f;
  border-color: #10b981;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.downloads-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-subtle);
  background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.05) 0%, transparent 60%);
}

.downloads-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}

.downloads-header h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  margin-bottom: 12px;
}

.downloads-header p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.downloads-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.downloads-search-box {
  position: relative;
  flex: 1;
  min-width: 260px;
  max-width: 440px;
}

.downloads-search-box input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 14px;
}

.downloads-search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.download-item-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.2s ease;
}

.download-item-card:hover {
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.download-item-info h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.download-item-info p {
  font-size: 11px;
  color: var(--text-muted);
}

.download-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

