:root {
  --brand-red: #dc3545;
  --brand-dark: #0f172a;
  --brand-light: #f8fafc;
  --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  --card-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}



/* --- Hero Section --- */
.hero-section {
  background: radial-gradient(circle at top right, rgba(220, 53, 69, 0.05), transparent 40%),
    radial-gradient(circle at bottom left, rgba(220, 53, 69, 0.05), transparent 40%),
    #ffffff;
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

/* --- Card Styles --- */
.tool-card {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 20px;
  padding: 2rem;
  height: 100%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
}

.tool-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-hover);
  border-color: rgba(220, 53, 69, 0.3);
}

/* Icon Styling */
.icon-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(220, 53, 69, 0.08);
  color: var(--brand-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.tool-card:hover .icon-box {
  background: var(--brand-red);
  color: white;
  transform: scale(1.1) rotate(3deg);
}

/* Free Badge */
.badge-free {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #198754, #20c997);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 6px rgba(32, 201, 151, 0.2);
}

/* Dark Card (Premium) */
.card-premium {
  background: #1e293b;
  /* Slate 800 */
  border: 1px solid #334155;
  color: white;
}

.card-premium .text-muted {
  color: #94a3b8 !important;
  /* Lighter text for dark mode */
}

.card-premium:hover {
  border-color: var(--brand-red);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

.card-premium .icon-box {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.card-premium:hover .icon-box {
  background: var(--brand-red);
}

/* Links */
.link-arrow {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--brand-red);
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  /* Pushes to bottom */
  transition: gap 0.2s ease;
}

.link-arrow i {
  transition: transform 0.2s ease;
}

.link-arrow:hover {
  gap: 8px;
  color: #b02a37;
}

.link-arrow:hover i {
  transform: translateX(3px);
}

/* Section Separator */
.section-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 40px;
}

.section-header h3 {
  font-weight: 800;
  font-size: 1.75rem;
  margin: 0;
  color: var(--brand-dark);
}

.section-line {
  height: 2px;
  flex-grow: 1;
  background: #e2e8f0;
  border-radius: 2px;
}
