/**
 * HeadCode Theme - Main CSS
 * Component styles, grids, typography, sections, and utilities.
 * Supports Light Mode (Default) and Dark Mode.
 * @package HeadCode
 */

/* ==========================================================================
   1. Site Layout & Header / Footer Wrappers
   ========================================================================== */

.hc-site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.hc-site-main {
  flex: 1 0 auto;
  padding-top: var(--hc-space-8);
  padding-bottom: var(--hc-space-16);
}

/* ==========================================================================
   2. Grid Engine & Layout Utilities
   ========================================================================== */

.hc-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--hc-space-6);
}

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

@media (min-width: 1024px) {
  .hc-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hc-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--hc-space-6);
}

@media (min-width: 768px) {
  .hc-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.hc-grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--hc-space-4);
}

@media (min-width: 640px) {
  .hc-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .hc-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Content With Sidebar Layout */
.hc-layout-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--hc-space-8);
}

@media (min-width: 1024px) {
  .hc-layout-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: var(--hc-space-10);
    align-items: start;
  }
}

/* ==========================================================================
   3. Section Headers
   ========================================================================== */

.hc-section {
  padding: var(--hc-space-12) 0;
}

.hc-section:not(:last-child) {
  border-bottom: 1px solid var(--hc-border-subtle);
}

.hc-section-header {
  display: flex;
  flex-direction: column;
  gap: var(--hc-space-2);
  margin-bottom: var(--hc-space-8);
}

@media (min-width: 640px) {
  .hc-section-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.hc-section-header__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--hc-font-mono);
  font-size: var(--hc-text-xs);
  color: var(--hc-accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: var(--hc-space-1);
}

.hc-section-header__tag::before {
  content: "//";
  color: var(--hc-text-muted);
}

.hc-section-header__title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--hc-text-primary);
  letter-spacing: -0.02em;
}

.hc-section-header__desc {
  color: var(--hc-text-secondary);
  font-size: var(--hc-text-sm);
  max-width: 600px;
  margin-top: var(--hc-space-1);
}

.hc-section-header__action {
  margin-top: var(--hc-space-3);
}

@media (min-width: 640px) {
  .hc-section-header__action {
    margin-top: 0;
  }
}

/* ==========================================================================
   4. Hero Section
   ========================================================================== */

.hc-hero {
  position: relative;
  padding: var(--hc-space-12) 0 var(--hc-space-16);
  background: var(--hc-hero-radial);
  overflow: hidden;
}

.hc-hero__content {
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
}

.hc-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background-color: var(--hc-bg-surface-2);
  border: 1px solid var(--hc-border-strong);
  border-radius: var(--hc-radius-full);
  font-size: var(--hc-text-xs);
  font-family: var(--hc-font-mono);
  color: var(--hc-accent-cyan);
  margin-bottom: var(--hc-space-6);
  box-shadow: var(--hc-shadow-sm);
  font-weight: 700;
}

.hc-hero__badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--hc-accent-emerald);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hc-hero__title {
  font-size: clamp(2.25rem, 5vw + 0.5rem, 3.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--hc-text-primary);
  margin-bottom: var(--hc-space-6);
}

.hc-hero__title span.gradient-text {
  background: linear-gradient(135deg, var(--hc-accent-cyan) 0%, var(--hc-accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hc-hero__lead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--hc-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--hc-space-8);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hc-hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--hc-space-4);
  margin-bottom: var(--hc-space-10);
}

.hc-hero__terminal {
  background-color: #0b1120;
  border: 1px solid var(--hc-border-strong);
  border-radius: var(--hc-radius-lg);
  box-shadow: var(--hc-shadow-lg);
  max-width: 680px;
  margin: 0 auto;
  overflow: hidden;
  text-align: left;
}

.hc-terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background-color: #0f172a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

.hc-terminal-title {
  margin-left: auto;
  font-family: var(--hc-font-mono);
  font-size: 11px;
  color: #94a3b8;
}

.hc-terminal-body {
  padding: 16px 20px;
  font-family: var(--hc-font-mono);
  font-size: var(--hc-text-xs);
  color: #38bdf8;
  overflow-x: auto;
  background-color: #070c18;
}

/* ==========================================================================
   5. Post Cards & Article Grids
   ========================================================================== */

.hc-post-card {
  position: relative;
  background-color: var(--hc-bg-surface-1);
  border: 1px solid var(--hc-border-subtle);
  border-radius: var(--hc-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--hc-transition);
  box-shadow: var(--hc-shadow-sm);
}

.hc-post-card:hover {
  transform: translateY(-4px);
  border-color: var(--hc-border-accent);
  box-shadow: var(--hc-shadow-md);
}

.hc-post-card__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--hc-bg-surface-2);
  overflow: hidden;
}

.hc-post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hc-post-card:hover .hc-post-card__thumb img {
  transform: scale(1.04);
}

.hc-post-card__content {
  padding: var(--hc-space-5);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.hc-post-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--hc-space-3);
  font-size: var(--hc-text-xs);
  color: var(--hc-text-muted);
  margin-bottom: var(--hc-space-3);
}

.hc-post-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hc-post-card__title {
  font-size: var(--hc-text-lg);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: var(--hc-space-3);
}

.hc-post-card__title a {
  color: var(--hc-text-primary);
  text-decoration: none;
}

.hc-post-card__title a:hover {
  color: var(--hc-accent-cyan);
}

.hc-post-card__excerpt {
  font-size: var(--hc-text-sm);
  color: var(--hc-text-secondary);
  line-height: 1.55;
  margin-bottom: var(--hc-space-4);
  flex-grow: 1;
}

.hc-post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--hc-space-3);
  border-top: 1px solid var(--hc-border-subtle);
  font-size: var(--hc-text-xs);
}

/* Featured Hero Article */
.hc-featured-article {
  display: grid;
  grid-template-columns: 1fr;
  background-color: var(--hc-bg-surface-1);
  border: 1px solid var(--hc-border-strong);
  border-radius: var(--hc-radius-xl);
  overflow: hidden;
  margin-bottom: var(--hc-space-10);
  box-shadow: var(--hc-shadow-md);
  transition: var(--hc-transition);
}

@media (min-width: 900px) {
  .hc-featured-article {
    grid-template-columns: 1.2fr 1fr;
  }
}

.hc-featured-article__thumb {
  position: relative;
  min-height: 260px;
  background-color: var(--hc-bg-surface-2);
}

@media (min-width: 900px) {
  .hc-featured-article__thumb {
    min-height: 100%;
  }
}

.hc-featured-article__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hc-featured-article__content {
  padding: var(--hc-space-6);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 768px) {
  .hc-featured-article__content {
    padding: var(--hc-space-8);
  }
}

.hc-featured-article__title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
  margin-top: var(--hc-space-2);
  margin-bottom: var(--hc-space-3);
}

.hc-featured-article__title a {
  color: var(--hc-text-primary);
}

.hc-featured-article__title a:hover {
  color: var(--hc-accent-cyan);
}

/* ==========================================================================
   6. Single Article Layout & Components
   ========================================================================== */

.hc-single-header {
  margin-bottom: var(--hc-space-8);
  padding-bottom: var(--hc-space-8);
  border-bottom: 1px solid var(--hc-border-subtle);
}

.hc-single-title {
  font-size: clamp(1.85rem, 3.5vw + 0.5rem, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-top: var(--hc-space-3);
  margin-bottom: var(--hc-space-4);
  color: var(--hc-text-primary);
}

.hc-single-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--hc-space-4);
  font-size: var(--hc-text-sm);
  color: var(--hc-text-muted);
}

.hc-single-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hc-single-thumbnail {
  margin-bottom: var(--hc-space-8);
  border-radius: var(--hc-radius-lg);
  overflow: hidden;
  border: 1px solid var(--hc-border-subtle);
}

.hc-single-thumbnail img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Article Typography Body */
.hc-article-content {
  font-size: var(--hc-text-base);
  line-height: 1.75;
  color: var(--hc-text-secondary);
}

.hc-article-content > * + * {
  margin-top: var(--hc-space-5);
}

.hc-article-content h2 {
  font-size: 1.75rem;
  margin-top: var(--hc-space-10);
  margin-bottom: var(--hc-space-4);
  padding-bottom: var(--hc-space-2);
  border-bottom: 1px solid var(--hc-border-subtle);
  color: var(--hc-text-primary);
}

.hc-article-content h3 {
  font-size: 1.35rem;
  margin-top: var(--hc-space-8);
  margin-bottom: var(--hc-space-3);
  color: var(--hc-text-primary);
}

.hc-article-content h4 {
  font-size: 1.15rem;
  margin-top: var(--hc-space-6);
  margin-bottom: var(--hc-space-2);
  color: var(--hc-text-primary);
}

.hc-article-content strong {
  color: var(--hc-text-primary);
}

.hc-article-content code:not(pre code) {
  font-family: var(--hc-font-mono);
  font-size: 0.88em;
  padding: 0.2em 0.45em;
  border-radius: var(--hc-radius-sm);
  background-color: var(--hc-bg-surface-2);
  color: var(--hc-accent-cyan);
  border: 1px solid var(--hc-border-subtle);
  word-break: break-word;
}

/* Table of Contents Container */
.hc-toc-container {
  background-color: var(--hc-bg-surface-1);
  border: 1px solid var(--hc-border-subtle);
  border-radius: var(--hc-radius-lg);
  padding: var(--hc-space-5);
  margin-bottom: var(--hc-space-8);
  box-shadow: var(--hc-shadow-sm);
}

.hc-toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.hc-toc-header__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--hc-text-base);
  font-weight: 700;
  color: var(--hc-text-primary);
  margin: 0;
}

.hc-toc-toggle-btn {
  background: transparent;
  border: none;
  color: var(--hc-text-muted);
  cursor: pointer;
  padding: 4px;
}

.hc-toc-list {
  list-style: none;
  padding: 0;
  margin-top: var(--hc-space-4);
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: var(--hc-space-2);
}

.hc-toc-list li {
  margin-bottom: 0;
}

.hc-toc-list a {
  font-size: var(--hc-text-sm);
  color: var(--hc-text-secondary);
  text-decoration: none;
  display: inline-block;
}

.hc-toc-list a:hover {
  color: var(--hc-accent-cyan);
}

.hc-toc-list .hc-toc-item--level-3 {
  padding-left: var(--hc-space-4);
  font-size: var(--hc-text-xs);
}

/* Author Box */
.hc-author-box {
  display: flex;
  gap: var(--hc-space-5);
  background-color: var(--hc-bg-surface-1);
  border: 1px solid var(--hc-border-subtle);
  border-radius: var(--hc-radius-lg);
  padding: var(--hc-space-6);
  margin-top: var(--hc-space-10);
  align-items: center;
  box-shadow: var(--hc-shadow-sm);
}

.hc-author-box__avatar {
  flex-shrink: 0;
}

.hc-author-box__avatar img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--hc-border-strong);
}

.hc-author-box__name {
  font-size: var(--hc-text-lg);
  font-weight: 700;
  margin-bottom: var(--hc-space-1);
  color: var(--hc-text-primary);
}

.hc-author-box__bio {
  font-size: var(--hc-text-sm);
  color: var(--hc-text-secondary);
  margin: 0;
}

/* Related Posts */
.hc-related-posts {
  margin-top: var(--hc-space-12);
  padding-top: var(--hc-space-10);
  border-top: 1px solid var(--hc-border-subtle);
}

.hc-related-posts__title {
  font-size: 1.5rem;
  margin-bottom: var(--hc-space-6);
  color: var(--hc-text-primary);
}

/* ==========================================================================
   7. Comments Section
   ========================================================================== */

.hc-comments-area {
  margin-top: var(--hc-space-12);
  padding-top: var(--hc-space-10);
  border-top: 1px solid var(--hc-border-subtle);
}

.hc-comments-title {
  font-size: 1.5rem;
  margin-bottom: var(--hc-space-6);
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--hc-space-10) 0;
}

.comment-list .comment {
  background-color: var(--hc-bg-surface-1);
  border: 1px solid var(--hc-border-subtle);
  border-radius: var(--hc-radius-md);
  padding: var(--hc-space-5);
  margin-bottom: var(--hc-space-4);
  box-shadow: var(--hc-shadow-sm);
}

.comment-list .children {
  list-style: none;
  padding-left: var(--hc-space-4);
  margin-top: var(--hc-space-4);
  border-left: 2px solid var(--hc-border-subtle);
}

.comment-author {
  display: flex;
  align-items: center;
  gap: var(--hc-space-3);
  margin-bottom: var(--hc-space-2);
}

.comment-author .avatar {
  border-radius: 50%;
}

.comment-meta {
  font-size: var(--hc-text-xs);
  color: var(--hc-text-muted);
  margin-bottom: var(--hc-space-3);
}

.comment-reply-link {
  font-size: var(--hc-text-xs);
  font-weight: 600;
  color: var(--hc-accent-cyan);
}

/* ==========================================================================
   8. Breadcrumbs & Pagination
   ========================================================================== */

.hc-breadcrumbs {
  margin-bottom: var(--hc-space-6);
}

.hc-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: var(--hc-text-xs);
  color: var(--hc-text-muted);
  gap: 0.35rem;
}

.hc-breadcrumbs__item a {
  color: var(--hc-text-secondary);
}

.hc-breadcrumbs__item a:hover {
  color: var(--hc-accent-cyan);
}

.hc-breadcrumbs__item--current {
  color: var(--hc-accent-cyan);
  font-weight: 600;
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hc-breadcrumbs__separator {
  color: var(--hc-text-muted);
  opacity: 0.5;
  margin: 0 0.15rem;
}

/* WordPress Pagination */
.pagination, .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--hc-space-2);
  margin-top: var(--hc-space-10);
  list-style: none;
  padding: 0;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.4rem 0.85rem;
  border-radius: var(--hc-radius-md);
  background-color: var(--hc-bg-surface-1);
  border: 1px solid var(--hc-border-subtle);
  color: var(--hc-text-primary);
  font-size: var(--hc-text-sm);
  font-weight: 600;
  text-decoration: none;
  transition: var(--hc-transition-fast);
  box-shadow: var(--hc-shadow-sm);
}

.page-numbers:hover {
  background-color: var(--hc-bg-surface-2);
  border-color: var(--hc-accent-cyan);
  color: var(--hc-accent-cyan);
  text-decoration: none;
}

.page-numbers.current {
  background-color: var(--hc-accent-blue);
  border-color: var(--hc-accent-blue);
  color: #ffffff;
}

.page-numbers.dots {
  background: transparent;
  border: none;
  color: var(--hc-text-muted);
}

/* ==========================================================================
   9. Developer Newsletter Section
   ========================================================================== */

.hc-newsletter {
  background: var(--hc-bg-surface-1);
  border: 1px solid var(--hc-border-strong);
  border-radius: var(--hc-radius-xl);
  padding: var(--hc-space-8) var(--hc-space-6);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--hc-shadow-md);
}

@media (min-width: 768px) {
  .hc-newsletter {
    padding: var(--hc-space-12) var(--hc-space-10);
  }
}

.hc-newsletter__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  background-color: var(--hc-accent-cyan-soft);
  border: 1px solid rgba(2, 132, 199, 0.2);
  border-radius: var(--hc-radius-full);
  font-size: var(--hc-text-xs);
  font-family: var(--hc-font-mono);
  color: var(--hc-accent-cyan);
  margin-bottom: var(--hc-space-4);
  font-weight: 700;
}

.hc-newsletter__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--hc-text-primary);
  margin-bottom: var(--hc-space-3);
}

.hc-newsletter__lead {
  font-size: var(--hc-text-sm);
  color: var(--hc-text-secondary);
  max-width: 540px;
  margin: 0 auto var(--hc-space-6);
}

.hc-newsletter__form {
  display: flex;
  flex-direction: column;
  gap: var(--hc-space-3);
  max-width: 500px;
  margin: 0 auto;
}

@media (min-width: 540px) {
  .hc-newsletter__form {
    flex-direction: row;
  }

  .hc-newsletter__form input[type="email"] {
    flex-grow: 1;
  }
}

.hc-newsletter__disclaimer {
  font-size: var(--hc-text-xs);
  color: var(--hc-text-muted);
  margin-top: var(--hc-space-3);
}

/* ==========================================================================
   10. Developer Portfolio & Services Components
   ========================================================================== */

.hc-service-card {
  background-color: var(--hc-bg-surface-1);
  border: 1px solid var(--hc-border-subtle);
  border-radius: var(--hc-radius-lg);
  padding: var(--hc-space-6);
  transition: var(--hc-transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--hc-shadow-sm);
}

.hc-service-card:hover {
  transform: translateY(-4px);
  border-color: var(--hc-border-accent);
  box-shadow: var(--hc-shadow-md);
}

.hc-service-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--hc-radius-md);
  background-color: var(--hc-bg-surface-2);
  border: 1px solid var(--hc-border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hc-accent-cyan);
  margin-bottom: var(--hc-space-4);
}

.hc-service-card__title {
  font-size: var(--hc-text-lg);
  font-weight: 700;
  margin-bottom: var(--hc-space-2);
  color: var(--hc-text-primary);
}

.hc-service-card__desc {
  font-size: var(--hc-text-sm);
  color: var(--hc-text-secondary);
  margin-bottom: var(--hc-space-4);
  flex-grow: 1;
}

.hc-service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hc-space-2);
}

/* Portfolio Card */
.hc-portfolio-card {
  background-color: var(--hc-bg-surface-1);
  border: 1px solid var(--hc-border-subtle);
  border-radius: var(--hc-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--hc-transition);
  box-shadow: var(--hc-shadow-sm);
}

.hc-portfolio-card:hover {
  border-color: var(--hc-border-accent);
  transform: translateY(-4px);
  box-shadow: var(--hc-shadow-lg);
}

.hc-portfolio-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: var(--hc-bg-surface-2);
  overflow: hidden;
}

.hc-portfolio-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hc-portfolio-card__content {
  padding: var(--hc-space-5);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.hc-portfolio-card__title {
  font-size: var(--hc-text-lg);
  font-weight: 700;
  margin-bottom: var(--hc-space-2);
}

.hc-portfolio-card__title a {
  color: var(--hc-text-primary);
}

.hc-portfolio-card__desc {
  font-size: var(--hc-text-sm);
  color: var(--hc-text-secondary);
  margin-bottom: var(--hc-space-4);
}

/* ==========================================================================
   11. Widgets & Sidebar
   ========================================================================== */

.hc-widget {
  background-color: var(--hc-bg-surface-1);
  border: 1px solid var(--hc-border-subtle);
  border-radius: var(--hc-radius-lg);
  padding: var(--hc-space-6);
  margin-bottom: var(--hc-space-6);
  box-shadow: var(--hc-shadow-sm);
}

.hc-widget__title {
  font-size: var(--hc-text-base);
  font-weight: 700;
  color: var(--hc-text-primary);
  margin-bottom: var(--hc-space-4);
  padding-bottom: var(--hc-space-2);
  border-bottom: 1px solid var(--hc-border-subtle);
  letter-spacing: -0.01em;
}

.hc-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hc-widget li {
  margin-bottom: var(--hc-space-2);
  font-size: var(--hc-text-sm);
}

.hc-widget li a {
  color: var(--hc-text-secondary);
  display: block;
}

.hc-widget li a:hover {
  color: var(--hc-accent-cyan);
}

/* ==========================================================================
   12. 404 Interactive Developer Screen
   ========================================================================== */

.hc-404-terminal {
  max-width: 640px;
  margin: var(--hc-space-8) auto;
  background-color: var(--hc-bg-surface-1);
  border: 1px solid var(--hc-border-strong);
  border-radius: var(--hc-radius-lg);
  overflow: hidden;
  box-shadow: var(--hc-shadow-lg);
}

.hc-404-content {
  padding: var(--hc-space-8);
  text-align: center;
}

.hc-404-code {
  font-family: var(--hc-font-mono);
  font-size: 5rem;
  font-weight: 800;
  color: var(--hc-accent-cyan);
  line-height: 1;
  margin-bottom: var(--hc-space-2);
}

.hc-404-title {
  font-size: 1.5rem;
  margin-bottom: var(--hc-space-4);
  color: var(--hc-text-primary);
}

.hc-404-desc {
  font-size: var(--hc-text-sm);
  color: var(--hc-text-secondary);
  margin-bottom: var(--hc-space-6);
}

/* ==========================================================================
   13. Footer Layout
   ========================================================================== */

.hc-site-footer {
  background-color: var(--hc-footer-bg);
  color: var(--hc-footer-text);
  border-top: 1px solid var(--hc-border-subtle);
  padding-top: var(--hc-space-12);
  padding-bottom: var(--hc-space-8);
}

.hc-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--hc-space-8);
  margin-bottom: var(--hc-space-10);
}

@media (min-width: 640px) {
  .hc-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .hc-footer-grid {
    grid-template-columns: 1.5fr repeat(3, 1fr);
  }
}

.hc-footer-brand__logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--hc-space-3);
  text-decoration: none;
}

.hc-footer-brand__desc {
  font-size: var(--hc-text-sm);
  color: #94a3b8;
  max-width: 320px;
  line-height: 1.55;
}

.hc-footer-widget__title {
  font-size: var(--hc-text-sm);
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--hc-space-4);
}

.hc-footer-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hc-footer-widget li {
  margin-bottom: var(--hc-space-2);
}

.hc-footer-widget a {
  font-size: var(--hc-text-sm);
  color: #94a3b8;
}

.hc-footer-widget a:hover {
  color: var(--hc-accent-cyan);
}

.hc-footer-bottom {
  padding-top: var(--hc-space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: var(--hc-space-4);
  font-size: var(--hc-text-xs);
  color: #64748b;
}

@media (min-width: 768px) {
  .hc-footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.hc-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hc-space-4);
  list-style: none;
  padding: 0;
  margin: 0;
}

.hc-legal-links a {
  color: #94a3b8;
}

.hc-legal-links a:hover {
  color: var(--hc-accent-cyan);
}

/* Back to top button */
.hc-back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--hc-bg-surface-1);
  border: 1px solid var(--hc-border-strong);
  color: var(--hc-accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--hc-shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--hc-transition);
  z-index: 900;
}

.hc-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hc-back-to-top:hover {
  background-color: var(--hc-accent-cyan);
  color: #ffffff;
}

/* ==========================================================================
   14. Modern Software Agency Components
   ========================================================================== */

/* Agency Hero Section */
.hc-agency-hero {
  position: relative;
  padding: calc(var(--hc-space-16) + 1rem) 0 var(--hc-space-12);
  background: var(--hc-hero-radial);
  overflow: hidden;
}

.hc-agency-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background-color: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--hc-radius-full);
  font-size: var(--hc-text-xs);
  font-weight: 700;
  color: var(--hc-accent-blue);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--hc-space-4);
}

.hc-agency-hero__badge-dot {
  width: 8px;
  height: 8px;
  background-color: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10B981;
}

.hc-agency-hero__title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--hc-text-primary);
  margin-bottom: var(--hc-space-4);
  max-width: 860px;
}

.hc-agency-hero__lead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: var(--hc-text-secondary);
  max-width: 680px;
  margin-bottom: var(--hc-space-8);
}

.hc-agency-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--hc-space-4);
  margin-bottom: var(--hc-space-10);
}

/* Agency Process Steps */
.hc-process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--hc-space-6);
  position: relative;
}

@media (min-width: 640px) {
  .hc-process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .hc-process-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hc-process-card {
  background-color: var(--hc-bg-surface-1);
  border: 1px solid var(--hc-border-subtle);
  border-radius: var(--hc-radius-lg);
  padding: var(--hc-space-6);
  position: relative;
  transition: var(--hc-transition);
}

.hc-process-card:hover {
  transform: translateY(-4px);
  border-color: var(--hc-accent-blue);
  box-shadow: var(--hc-shadow-md);
}

.hc-process-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--hc-radius-md);
  background: linear-gradient(135deg, var(--hc-accent-blue) 0%, var(--hc-accent-purple) 100%);
  color: #ffffff;
  font-family: var(--hc-font-mono);
  font-weight: 800;
  font-size: var(--hc-text-sm);
  margin-bottom: var(--hc-space-4);
}

.hc-process-card__title {
  font-size: var(--hc-text-base);
  font-weight: 700;
  color: var(--hc-text-primary);
  margin-bottom: var(--hc-space-2);
}

.hc-process-card__desc {
  font-size: var(--hc-text-sm);
  color: var(--hc-text-secondary);
  line-height: 1.55;
}

/* Technologies Grid */
.hc-tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--hc-space-4);
}

@media (min-width: 480px) {
  .hc-tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .hc-tech-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .hc-tech-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.hc-tech-pill {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  background-color: var(--hc-bg-surface-1);
  border: 1px solid var(--hc-border-subtle);
  border-radius: var(--hc-radius-md);
  font-size: var(--hc-text-sm);
  font-weight: 600;
  color: var(--hc-text-primary);
  transition: var(--hc-transition-fast);
}

.hc-tech-pill:hover {
  border-color: var(--hc-accent-blue);
  background-color: var(--hc-bg-surface-2);
  transform: translateY(-2px);
  box-shadow: var(--hc-shadow-sm);
}

.hc-tech-pill svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--hc-accent-blue);
}

/* Agency CTA Banner */
.hc-agency-cta {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(99, 102, 241, 0.08) 100%);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--hc-radius-xl);
  padding: var(--hc-space-10) var(--hc-space-6);
  text-align: center;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hc-agency-cta {
    padding: var(--hc-space-16) var(--hc-space-12);
  }
}

.hc-agency-cta__title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--hc-text-primary);
  margin-bottom: var(--hc-space-3);
  letter-spacing: -0.02em;
}

.hc-agency-cta__desc {
  font-size: var(--hc-text-base);
  color: var(--hc-text-secondary);
  max-width: 600px;
  margin: 0 auto var(--hc-space-6);
  line-height: 1.6;
}

/* Pricing Grid */
.hc-pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--hc-space-6);
}

@media (min-width: 768px) {
  .hc-pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .hc-pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hc-pricing-card {
  background-color: var(--hc-bg-surface-1);
  border: 1px solid var(--hc-border-subtle);
  border-radius: var(--hc-radius-xl);
  padding: var(--hc-space-8);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--hc-transition);
}

.hc-pricing-card--featured {
  border-color: var(--hc-accent-blue);
  background-color: var(--hc-bg-surface-2);
  box-shadow: 0 0 30px -4px rgba(59, 130, 246, 0.25);
}

.hc-pricing-card__badge {
  position: absolute;
  top: -12px;
  right: 24px;
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, var(--hc-accent-blue) 0%, var(--hc-accent-purple) 100%);
  color: #ffffff;
  font-size: var(--hc-text-xs);
  font-weight: 700;
  border-radius: var(--hc-radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hc-pricing-card__name {
  font-size: var(--hc-text-xl);
  font-weight: 700;
  color: var(--hc-text-primary);
  margin-bottom: var(--hc-space-2);
}

.hc-pricing-card__desc {
  font-size: var(--hc-text-sm);
  color: var(--hc-text-secondary);
  margin-bottom: var(--hc-space-6);
  min-height: 42px;
}

.hc-pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: var(--hc-space-6);
  padding-bottom: var(--hc-space-6);
  border-bottom: 1px solid var(--hc-border-subtle);
}

.hc-pricing-card__amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--hc-text-primary);
  letter-spacing: -0.03em;
}

.hc-pricing-card__unit {
  font-size: var(--hc-text-sm);
  color: var(--hc-text-muted);
}

.hc-pricing-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--hc-space-8);
  flex-grow: 1;
}

.hc-pricing-card__feature {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: var(--hc-text-sm);
  color: var(--hc-text-secondary);
  margin-bottom: var(--hc-space-3);
  line-height: 1.45;
}

.hc-pricing-card__feature svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.hc-pricing-card__feature--yes svg {
  color: #10B981;
}

.hc-pricing-card__feature--no {
  opacity: 0.55;
  text-decoration: line-through;
}

.hc-pricing-card__feature--no svg {
  color: var(--hc-text-muted);
}

/* Contact / Project Inquiry Form */
.hc-form-container {
  background-color: var(--hc-bg-surface-1);
  border: 1px solid var(--hc-border-subtle);
  border-radius: var(--hc-radius-xl);
  padding: var(--hc-space-6);
  box-shadow: var(--hc-shadow-md);
}

@media (min-width: 768px) {
  .hc-form-container {
    padding: var(--hc-space-10);
  }
}

.hc-form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--hc-space-5);
  margin-bottom: var(--hc-space-5);
}

@media (min-width: 640px) {
  .hc-form-row--2col {
    grid-template-columns: repeat(2, 1fr);
  }
}

.hc-form-group {
  display: flex;
  flex-direction: column;
  gap: var(--hc-space-2);
}

.hc-form-label {
  font-size: var(--hc-text-sm);
  font-weight: 600;
  color: var(--hc-text-primary);
}

.hc-form-label span.required {
  color: var(--hc-accent-rose);
}

.hc-form-input,
.hc-form-select,
.hc-form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--hc-radius-md);
  border: 1px solid var(--hc-border-strong);
  background-color: var(--hc-bg-surface-2);
  color: var(--hc-text-primary);
  font-family: inherit;
  font-size: var(--hc-text-base);
  transition: var(--hc-transition-fast);
}

.hc-form-input:focus,
.hc-form-select:focus,
.hc-form-textarea:focus {
  outline: none;
  border-color: var(--hc-accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
  background-color: var(--hc-bg-surface-1);
}

.hc-form-textarea {
  min-height: 140px;
  resize: vertical;
}

/* Radio / Budget Pills */
.hc-radio-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hc-space-2);
}

.hc-radio-pill {
  position: relative;
}

.hc-radio-pill input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.hc-radio-pill label {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border-radius: var(--hc-radius-full);
  border: 1px solid var(--hc-border-subtle);
  background-color: var(--hc-bg-surface-2);
  color: var(--hc-text-secondary);
  font-size: var(--hc-text-xs);
  font-weight: 600;
  cursor: pointer;
  transition: var(--hc-transition-fast);
}

.hc-radio-pill input[type="radio"]:checked + label {
  background-color: var(--hc-accent-blue);
  border-color: var(--hc-accent-blue);
  color: #ffffff;
}

/* Alert Banners */
.hc-alert {
  padding: var(--hc-space-4) var(--hc-space-5);
  border-radius: var(--hc-radius-md);
  font-size: var(--hc-text-sm);
  margin-bottom: var(--hc-space-6);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hc-alert--success {
  background-color: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10B981;
}

.hc-alert--error {
  background-color: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #F43F5E;
}

/* FAQ Accordion */
.hc-faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--hc-space-4);
  max-width: 800px;
  margin: 0 auto;
}

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

.hc-faq-item:hover {
  border-color: var(--hc-border-strong);
}

.hc-faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--hc-space-5) var(--hc-space-6);
  background: transparent;
  border: none;
  color: var(--hc-text-primary);
  font-size: var(--hc-text-base);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  gap: var(--hc-space-4);
}

.hc-faq-question svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.hc-faq-item[open] .hc-faq-question svg,
.hc-faq-item.is-open .hc-faq-question svg {
  transform: rotate(180deg);
}

.hc-faq-answer {
  padding: 0 var(--hc-space-6) var(--hc-space-5);
  font-size: var(--hc-text-sm);
  color: var(--hc-text-secondary);
  line-height: 1.6;
}
