:root {
  --rc-primary: #4f46e5;
  --rc-primary-dark: #2f116f;
  --rc-accent: #7c3aed;
  --rc-teal: #0d9488;
  --rc-blue: #0284c7;
  --rc-emerald: #059669;
  --rc-amber: #d97706;
  --rc-rose: #e11d48;
  --rc-bg: #f8fafc;
  --rc-card-bg: #ffffff;
  --rc-border: #e2e8f0;
  --rc-text-main: #0f172a;
  --rc-text-muted: #64748b;
}

body {
  background-color: var(--rc-bg) !important;
  font-family: "Celias", "Inter", system-ui, -apple-system, sans-serif !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.rc-hero-title,
.rc-section-title,
.rc-card-title,
.rc-cta-box h2,
.rc-cta-box h3 {
  font-family: "Celias", "Inter", system-ui, sans-serif !important;
}

/* Premium Hero Banner */
.rc-hero-section {
  background: linear-gradient(135deg, #1e084d 0%, #2f116f 40%, #4b1fad 80%, #6d28d9 100%);
  color: #ffffff;
  padding: 4.5rem 1.5rem 5.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.rc-hero-section::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.18) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  z-index: 1;
}

.rc-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.rc-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #cbd5e1;
  margin-bottom: 1.25rem;
}

.rc-breadcrumb a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.rc-breadcrumb a:hover {
  color: #ffffff;
  text-decoration: none;
}

.rc-breadcrumb .sep {
  color: #94a3b8;
}

.rc-breadcrumb .current {
  color: #a5b4fc;
  font-weight: 600;
}

.rc-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #e0e7ff;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.rc-hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.rc-hero-title span {
  background: linear-gradient(135deg, #38bdf8 0%, #a855f7 50%, #f472b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rc-hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: #e2e8f0;
  font-weight: 300;
  line-height: 1.65;
  max-width: 780px;
  margin: 0 auto 2rem;
}

/* Search & Filter Floating Card */
.rc-search-container {
  max-width: 1140px;
  margin: -2.75rem auto 2.5rem;
  padding: 0 1.25rem;
  position: relative;
  z-index: 10;
}

.rc-search-card {
  background: #ffffff;
  border: 1px solid var(--rc-border);
  border-radius: 20px;
  padding: 1.25rem 1.75rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.rc-search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.rc-search-icon {
  position: absolute;
  left: 18px;
  color: #94a3b8;
  font-size: 1.2rem;
  pointer-events: none;
}

.rc-search-input {
  width: 100%;
  padding: 14px 18px 14px 48px;
  font-size: 1.05rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
  color: #0f172a;
  background: #f8fafc;
}

.rc-search-input:focus {
  border-color: #6366f1;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

/* Filter Tabs */
.rc-filter-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.rc-filter-tabs::-webkit-scrollbar {
  height: 4px;
}
.rc-filter-tabs::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.rc-tab-btn {
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rc-tab-btn:hover {
  background: #eef2ff;
  color: #4338ca;
  border-color: #c7d2fe;
}

.rc-tab-btn.active {
  background: #4f46e5;
  color: #ffffff;
  border-color: #4f46e5;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

/* Main Hub Container */
.rc-main-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

/* Section Title Block */
.rc-section-block {
  margin-bottom: 3.5rem;
  scroll-margin-top: 100px;
}

.rc-section-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.75rem;
}

.rc-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 6px;
  width: fit-content;
  margin-bottom: 8px;
}

.badge-ai { background: #e0e7ff; color: #4338ca; }
.badge-industry { background: #ccfbf1; color: #0f766e; }
.badge-compare { background: #fef3c7; color: #b45309; }
.badge-dev { background: #e0f2fe; color: #0369a1; }
.badge-guide { background: #fce7f3; color: #be185d; }
.badge-trust { background: #dcfce7; color: #15803d; }
.badge-faq { background: #f3e8ff; color: #6b21a8; }

.rc-section-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--rc-text-main);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.rc-section-desc {
  font-size: 1rem;
  color: var(--rc-text-muted);
  margin-bottom: 0;
}

/* Cards Grid */
.rc-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.rc-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 992px) {
  .rc-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .rc-grid-3, .rc-grid-2 { grid-template-columns: 1fr; }
}

/* Individual Resource Card */
.rc-card,
.rc-card:hover,
.rc-card:focus,
.rc-card:active {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 1.5rem !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  position: relative !important;
  text-decoration: none !important;
  color: inherit !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
  transform: none !important;
  -webkit-transform: none !important;
  transition: none !important;
  animation: none !important;
}

.rc-card *,
.rc-card:hover * {
  transform: none !important;
  -webkit-transform: none !important;
  transition: none !important;
  animation: none !important;
}

.rc-card-top {
  margin-bottom: 1.25rem;
}

.rc-card-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  line-height: 1;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.rc-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--rc-text-main);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.rc-card-desc {
  font-size: 0.92rem;
  color: var(--rc-text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.rc-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
  font-size: 0.88rem;
  font-weight: 600;
  color: #4f46e5;
}

.rc-card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
}

.rc-card-arrow {
  display: inline-block;
}

/* Developer Interactive Panel */
.rc-dev-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  border: 1px solid #334155;
  border-radius: 20px;
  padding: 2rem;
  color: #ffffff;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-top: 1rem;
}

@media (max-width: 860px) {
  .rc-dev-banner { grid-template-columns: 1fr; }
}

.rc-dev-code-box {
  background: #090d16;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 1.25rem;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.82rem;
  color: #38bdf8;
  overflow-x: auto;
}

.rc-dev-code-box .code-comment { color: #64748b; }
.rc-dev-code-box .code-keyword { color: #f43f5e; }
.rc-dev-code-box .code-str { color: #34d399; }

/* FAQ Accordion Section */
.rc-faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rc-faq-card {
  background: #ffffff;
  border: 1px solid var(--rc-border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.rc-faq-header {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--rc-text-main);
  user-select: none;
}

.rc-faq-header:hover {
  background: #f8fafc;
}

.rc-faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 600;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.rc-faq-body {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.65;
}

/* Authority CTA Box */
.rc-cta-box {
  background: linear-gradient(135deg, #2f116f 0%, #4b1fad 50%, #6366f1 100%);
  border-radius: 24px;
  padding: 3.5rem 2rem;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 20px 40px rgba(79, 70, 229, 0.2);
  position: relative;
  overflow: hidden;
  margin-top: 4rem;
}

.rc-cta-box h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

.rc-cta-box p {
  font-size: 1.1rem;
  color: #e0e7ff;
  max-width: 650px;
  margin: 0 auto 2rem;
  line-height: 1.6;
  font-weight: 300;
}

.rc-cta-btn-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.rc-btn-primary {
  background: #ffffff;
  color: #2f116f;
  font-weight: 700;
  padding: 14px 34px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 1.05rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.rc-btn-primary:hover {
  background: #f8fafc;
  color: #1e084d;
  transform: translateY(-2px);
  text-decoration: none;
}

.rc-btn-outline {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 1.05rem;
  transition: all 0.2s ease;
}

.rc-btn-outline:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  text-decoration: none;
}

/* No search result fallback */
.rc-no-results {
  display: none;
  text-align: center;
  padding: 3rem 1rem;
  background: #ffffff;
  border-radius: 16px;
  border: 1px dashed #cbd5e1;
  color: #64748b;
}
