/* ==========================================================================
   AL PROMPT HUB - FRONT PAGE STYLES
   Pixel-perfect design matching reference layout
   ========================================================================== */

/* ========== Container & Base Sizing ========== */
.container {
  max-width: 1320px;
}

/* ========== Header Customization ========== */
.aph-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #E2E8F0;
  height: 70px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.aph-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

.aph-header__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.aph-header__logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: 9px;
  letter-spacing: -0.02em;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.aph-header__logo-text {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.02em;
}

.aph-header__menu-toggle {
  display: none;
}

@media (max-width: 1023px) {
  .aph-header__menu-toggle {
    display: flex;
  }
}

.aph-header__nav {
  display: none;
}

@media (min-width: 1024px) {
  .aph-header__nav {
    display: block;
  }
}

.aph-nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.aph-nav__item {
  position: relative;
}

.aph-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  font-size: 0.9125rem;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.aph-nav__caret {
  font-size: 0.75rem;
  opacity: 0.6;
  transition: transform 0.2s ease;
}

.aph-nav__link:hover {
  color: #2563EB;
  background: #F1F5F9;
}

/* Header Dropdowns */
.aph-nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  padding: 6px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 100;
}

.aph-nav__dropdown li a {
  display: block;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.aph-nav__dropdown li a:hover {
  background: #EFF6FF;
  color: #2563EB;
}

.aph-nav__item:hover .aph-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.aph-nav__item:hover .aph-nav__caret {
  transform: rotate(180deg);
}

/* Header Actions */
.aph-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.aph-header__search {
  display: none;
  position: relative;
  align-items: center;
}

@media (min-width: 1280px) {
  .aph-header__search {
    display: flex;
  }
}

.aph-header__search-icon {
  position: absolute;
  left: 12px;
  color: #94A3B8;
  pointer-events: none;
  display: flex;
  align-items: center;
}

.aph-header__search-input {
  width: 240px;
  padding: 7px 12px 7px 34px;
  font-size: 0.825rem;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 9999px;
  outline: none;
  transition: all 0.2s ease;
}

.aph-header__search-input:focus {
  background: #FFFFFF;
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  width: 280px;
}

.aph-header__theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.aph-header__theme-toggle:hover {
  background: #F1F5F9;
  color: #0F172A;
}

.aph-header__sign-in {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.aph-header__sign-in:hover {
  color: #2563EB;
  background: #EFF6FF;
}

.aph-header__get-started {
  background: #2563EB !important;
  color: #FFFFFF !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  padding: 8px 18px !important;
  border-radius: 9999px !important;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25) !important;
  transition: all 0.2s ease !important;
  border: none !important;
}

.aph-header__get-started:hover {
  background: #1D4ED8 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35) !important;
}


/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */
.aph-hero-section {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0 3rem 0;
  background: linear-gradient(180deg, #FAFCFF 0%, #FFFFFF 100%);
}

.aph-hero-glow-1 {
  position: absolute;
  top: -100px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(219, 234, 254, 0.6) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.aph-hero-glow-2 {
  position: absolute;
  top: 50px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(238, 242, 255, 0.7) 0%, rgba(243, 232, 255, 0.3) 40%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.aph-hero__container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .aph-hero__container {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
  }
}

/* Hero Content (Left) */
.aph-hero__content {
  text-align: left;
}

.aph-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #EFF6FF;
  border: 1px solid #DBEAFE;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #2563EB;
  letter-spacing: 0.04em;
  margin: 0 0 1.25rem 0;
}

.aph-hero__badge-icon {
  font-size: 0.85rem;
}

.aph-hero__title {
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  color: #0F172A;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem 0;
  text-align: left;
}

.aph-hero__title-highlight {
  display: block;
  color: #0F172A;
}

.aph-hero__subtitle {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #475569;
  max-width: 580px;
  margin: 0 0 1.75rem 0 !important;
  text-align: left;
}

/* Feature Check Tags */
.aph-hero__features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 2rem 0;
  justify-content: flex-start !important;
}

.aph-feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.aph-feature-tag--blue {
  background: #EFF6FF;
  color: #2563EB;
}

.aph-feature-tag--indigo {
  background: #EEF2FF;
  color: #4F46E5;
}

.aph-feature-tag--cyan {
  background: #ECFEFF;
  color: #0284C7;
}

.aph-feature-tag--purple {
  background: #FAF5FF;
  color: #9333EA;
}

/* Hero Action Buttons */
.aph-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start !important;
  gap: 12px;
  margin: 0 0 2rem 0;
}

.aph-btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #2563EB;
  color: #FFFFFF !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: all 0.2s ease;
}

.aph-btn-hero-primary:hover {
  background: #1D4ED8;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
}

.aph-btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  background: #FFFFFF;
  color: #0F172A !important;
  border: 1px solid #CBD5E1;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.aph-btn-hero-secondary:hover {
  background: #F8FAFC;
  border-color: #94A3B8;
  transform: translateY(-1px);
}

/* Stats Counter Row (3 Premium Cards) */
.aph-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 1.5rem;
  border-top: 1px solid #E2E8F0;
  margin-top: 0.5rem;
}

@media (max-width: 680px) {
  .aph-hero__stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.aph-stat-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 16px 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.aph-stat-card:hover {
  transform: translateY(-2px);
  border-color: #CBD5E1;
  box-shadow: 0 8px 18px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
}

.aph-stat-card__icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  margin-top: 2px;
}

.aph-stat-card__icon-wrap--tools {
  background: #EFF6FF;
  color: #2563EB;
  border: 1px solid #DBEAFE;
}

.aph-stat-card__icon-wrap--scaffold {
  background: #EEF2FF;
  color: #4F46E5;
  border: 1px solid #E0E7FF;
}

.aph-stat-card__icon-wrap--models {
  background: #ECFEFF;
  color: #0284C7;
  border: 1px solid #CFFAFE;
}

.aph-stat-card__content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.aph-stat-card__val-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.aph-stat-number {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.aph-stat-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1E293B;
  margin-top: 2px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aph-stat-desc {
  font-size: 0.735rem;
  color: #64748B;
  margin-top: 3px;
  line-height: 1.3;
}


/* ==========================================================================
   Hero Interactive Generator Card (Right)
   ========================================================================== */
.aph-hero__interactive {
  position: relative;
}

.aph-interactive-widget {
  display: block;
  position: relative;
  width: 100%;
}

.aph-generator-card {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.02);
  padding: 24px;
}

.aph-generator-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.aph-generator-card__icon-box {
  width: 42px;
  height: 42px;
  background: #2563EB;
  color: #FFFFFF;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.aph-generator-card__titles {
  flex: 1;
}

.aph-generator-card__title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.aph-generator-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
}

.aph-badge-pro {
  background: #FEF3C7;
  color: #D97706;
  font-size: 0.725rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
}

.aph-generator-card__subtitle {
  font-size: 0.8125rem;
  color: #64748B;
  margin: 2px 0 0 0;
}

/* Card Nav Tabs */
.aph-generator-card__tabs {
  display: flex;
  background: #F1F5F9;
  padding: 4px;
  border-radius: 10px;
  gap: 4px;
  margin-bottom: 18px;
}

.aph-card-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #64748B;
  background: transparent;
  border: none;
  border-radius: 7px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.aph-card-tab:hover {
  color: #0F172A;
}

.aph-card-tab--active {
  background: #FFFFFF;
  color: #2563EB !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Card Form */
.aph-form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1E293B;
  margin-bottom: 8px;
}

.aph-textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #0F172A;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  resize: vertical;
  outline: none;
  transition: all 0.2s ease;
}

.aph-textarea:focus {
  background: #FFFFFF;
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.aph-form-selectors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.aph-form-sublabel {
  display: block;
  font-size: 0.775rem;
  font-weight: 600;
  color: #64748B;
  margin-bottom: 4px;
}

.aph-select-wrap {
  position: relative;
}

.aph-select-wrap::after {
  content: '▾';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: #94A3B8;
  pointer-events: none;
}

.aph-select {
  width: 100%;
  padding: 8px 24px 8px 10px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #1E293B;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.aph-select:focus {
  border-color: #2563EB;
}

.aph-form-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 16px 0;
}

.aph-toggle-advanced {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.775rem;
  font-weight: 600;
  color: #64748B;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.aph-toggle-advanced:hover {
  color: #2563EB;
}

.aph-char-counter {
  font-size: 0.75rem;
  color: #94A3B8;
}

.aph-advanced-drawer {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 14px;
}

.aph-input-sm {
  width: 100%;
  padding: 8px 10px;
  font-size: 0.8125rem;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  outline: none;
}

.aph-input-sm:focus {
  border-color: #2563EB;
}

.aph-btn-generate {
  width: 100%;
  padding: 13px;
  background: #2563EB;
  color: #FFFFFF;
  font-size: 0.925rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  transition: all 0.2s ease;
}

.aph-btn-generate:hover {
  background: #1D4ED8;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Generated Result */
.aph-hero-result {
  margin-top: 18px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 14px;
}

.aph-hero-result__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
}

.aph-btn-copy-result {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #EFF6FF;
  color: #2563EB;
  border: 1px solid #BFDBFE;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.aph-btn-copy-result:hover {
  background: #2563EB;
  color: #FFFFFF;
}

.aph-hero-result__body {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #1E293B;
  white-space: pre-wrap;
  max-height: 180px;
  overflow-y: auto;
  padding: 8px;
  background: #FFFFFF;
  border-radius: 6px;
  border: 1px solid #E2E8F0;
}

/* Floating Badges Group (Right Side of Generator) */
.aph-floating-badge-group {
  display: none;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
  width: 170px;
  padding-top: 10px;
}

@media (min-width: 1280px) {
  .aph-floating-badge-group {
    display: flex;
  }
}

.aph-float-badge {
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.775rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.aph-float-badge--purple {
  background: #FAF5FF;
  border: 1px solid #E9D5FF;
  color: #7E22CE;
}

.aph-float-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 0.775rem;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.aph-float-pill--green {
  background: #F0FDF4;
  border: 1px solid #DCFCE7;
  color: #15803D;
}

.aph-float-pill--teal {
  background: #F0FDFA;
  border: 1px solid #CCFBF1;
  color: #0F766E;
}

.aph-float-pill--pink {
  background: #FDF2F8;
  border: 1px solid #FCE7F3;
  color: #BE185D;
}

.aph-float-pill--orange {
  background: #FFF7ED;
  border: 1px solid #FFEDD5;
  color: #C2410C;
}


/* ==========================================================================
   2. GLOBAL SEARCH & CATEGORIES BAR
   ========================================================================== */
.aph-search-strip-section {
  padding: 2.5rem 0 3rem 0;
  background: #FFFFFF;
}

.aph-search-strip__container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.aph-central-search {
  width: 100%;
  max-width: 680px;
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 6px 6px 6px 18px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.aph-central-search:focus-within {
  border-color: #2563EB;
  box-shadow: 0 6px 24px -2px rgba(37, 99, 235, 0.15);
}

.aph-central-search__icon {
  color: #94A3B8;
  display: flex;
  align-items: center;
  margin-right: 10px;
}

.aph-central-search__input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.95rem;
  color: #0F172A;
  background: transparent;
}

.aph-central-search__btn {
  background: #2563EB;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.925rem;
  padding: 10px 24px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.aph-central-search__btn:hover {
  background: #1D4ED8;
}

/* Category Filter Chips */
.aph-filter-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 1.25rem;
  max-width: 900px;
}

.aph-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  transition: all 0.15s ease;
}

.aph-chip:hover {
  border-color: #2563EB;
  color: #2563EB;
  background: #EFF6FF;
  transform: translateY(-1px);
}


/* ==========================================================================
   3. POPULAR AI TOOLS SECTION
   ========================================================================== */
.aph-section {
  padding: 3.5rem 0;
}

.aph-tools-section {
  background: #FAFCFF;
}

.aph-section__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
}

.aph-section__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.65rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.02em;
  margin: 0 0 6px 0;
}

.aph-title-icon {
  font-size: 1.4rem;
}

.aph-section__subtitle {
  font-size: 0.95rem;
  color: #64748B;
  margin: 0;
}

.aph-section__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2563EB;
  text-decoration: none;
  transition: all 0.15s ease;
}

.aph-section__link:hover {
  color: #1D4ED8;
  gap: 9px;
}

/* 8 Tools Grid */
.aph-tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

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

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

.aph-tool-box {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.aph-tool-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.08);
  border-color: #CBD5E1;
}

.aph-tool-box__header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.aph-tool-box__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.aph-icon--purple { background: #FAF5FF; color: #9333EA; }
.aph-icon--blue { background: #EFF6FF; color: #2563EB; }
.aph-icon--pink { background: #FDF2F8; color: #EC4899; }
.aph-icon--orange { background: #FFF7ED; color: #EA580C; }
.aph-icon--green { background: #F0FDF4; color: #16A34A; }
.aph-icon--indigo { background: #EEF2FF; color: #4F46E5; }
.aph-icon--cyan { background: #ECFEFF; color: #0284C7; }
.aph-icon--rose { background: #FFF1F2; color: #F43F5E; }

.aph-tool-box__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 4px 0;
}

.aph-tool-box__desc {
  font-size: 0.825rem;
  line-height: 1.5;
  color: #64748B;
  margin: 0;
}

.aph-tool-box__features {
  list-style: none;
  padding: 0;
  margin: 12px 0 16px 0;
}

.aph-tool-box__features li {
  font-size: 0.8125rem;
  color: #475569;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.aph-tool-box__features .dot {
  color: #2563EB;
  font-weight: 800;
}

.aph-btn-tool {
  display: block;
  text-align: center;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
  margin-top: auto;
}

.aph-btn-tool--purple { background: #FAF5FF; color: #9333EA; border: 1px solid #E9D5FF; }
.aph-btn-tool--purple:hover { background: #9333EA; color: #FFFFFF; }

.aph-btn-tool--blue { background: #EFF6FF; color: #2563EB; border: 1px solid #DBEAFE; }
.aph-btn-tool--blue:hover { background: #2563EB; color: #FFFFFF; }

.aph-btn-tool--pink { background: #FDF2F8; color: #EC4899; border: 1px solid #FCE7F3; }
.aph-btn-tool--pink:hover { background: #EC4899; color: #FFFFFF; }

.aph-btn-tool--orange { background: #FFF7ED; color: #EA580C; border: 1px solid #FFEDD5; }
.aph-btn-tool--orange:hover { background: #EA580C; color: #FFFFFF; }

.aph-btn-tool--green { background: #F0FDF4; color: #16A34A; border: 1px solid #DCFCE7; }
.aph-btn-tool--green:hover { background: #16A34A; color: #FFFFFF; }

.aph-btn-tool--indigo { background: #EEF2FF; color: #4F46E5; border: 1px solid #E0E7FF; }
.aph-btn-tool--indigo:hover { background: #4F46E5; color: #FFFFFF; }

.aph-btn-tool--cyan { background: #ECFEFF; color: #0284C7; border: 1px solid #CFFAFE; }
.aph-btn-tool--cyan:hover { background: #0284C7; color: #FFFFFF; }

.aph-btn-tool--rose { background: #FFF1F2; color: #F43F5E; border: 1px solid #FFE4E6; }
.aph-btn-tool--rose:hover { background: #F43F5E; color: #FFFFFF; }


/* ==========================================================================
   4. AUTOMATED PROMPT TEMPLATES SECTION
   ========================================================================== */
.aph-templates-section {
  background: #FFFFFF;
}

.aph-template-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2rem;
}

.aph-tab-btn {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 9999px;
  padding: 7px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.aph-tab-btn:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
}

.aph-tab-btn--active {
  background: #2563EB !important;
  border-color: #2563EB !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

/* 6 Templates Grid */
.aph-templates-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

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

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

@media (min-width: 1280px) {
  .aph-templates-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.aph-template-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.aph-template-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.08);
  border-color: #CBD5E1;
}

.aph-template-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.aph-template-icon--blue { background: #EFF6FF; color: #2563EB; }
.aph-template-icon--pink { background: #FDF2F8; color: #DB2777; }
.aph-template-icon--orange { background: #FFF7ED; color: #EA580C; }
.aph-template-icon--red { background: #FEF2F2; color: #DC2626; }
.aph-template-icon--green { background: #F0FDF4; color: #16A34A; }
.aph-template-icon--purple { background: #FAF5FF; color: #9333EA; }

.aph-template-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 6px 0;
}

.aph-template-card__desc {
  font-size: 0.8rem;
  line-height: 1.45;
  color: #64748B;
  margin: 0 0 14px 0;
  min-height: 36px;
}

.aph-template-card__tag-wrap {
  margin-top: auto;
  margin-bottom: 14px;
}

.aph-tag-pill {
  display: inline-block;
  font-size: 0.725rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}

.aph-tag-pill--orange { background: #FEF3C7; color: #B45309; }
.aph-tag-pill--blue { background: #EFF6FF; color: #2563EB; }
.aph-tag-pill--green { background: #DCFCE7; color: #15803D; }
.aph-tag-pill--red { background: #FEE2E2; color: #B91C1C; }
.aph-tag-pill--purple { background: #F3E8FF; color: #7E22CE; }
.aph-tag-pill--magenta { background: #FCE7F3; color: #BE185D; }

.aph-btn-use-template {
  width: 100%;
  padding: 8px 12px;
  background: #EFF6FF;
  color: #2563EB;
  border: 1px solid #DBEAFE;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.aph-btn-use-template:hover {
  background: #2563EB;
  color: #FFFFFF;
}


/* ==========================================================================
   5. LATEST BLOG ARTICLES SECTION
   ========================================================================== */
.aph-blog-section {
  background: #FAFCFF;
}

.aph-blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

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

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

.aph-blog-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.aph-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.08);
}

.aph-blog-card__thumb-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
  background: #E2E8F0;
}

.aph-blog-card__thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.aph-blog-card:hover .aph-blog-card__thumb {
  transform: scale(1.05);
}

.aph-badge-featured {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #F97316;
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.aph-blog-card__content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.aph-blog-card__cat {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.aph-cat--guides { color: #2563EB; }
.aph-cat--tools { color: #EA580C; }
.aph-cat--seo { color: #0284C7; }
.aph-cat--productivity { color: #4F46E5; }

.aph-blog-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  color: #0F172A;
  margin: 0 0 8px 0;
}

.aph-blog-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.aph-blog-card__title a:hover {
  color: #2563EB;
}

.aph-blog-card__excerpt {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #64748B;
  margin: 0 0 14px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.aph-blog-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  color: #94A3B8;
  margin-top: auto;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}


/* ==========================================================================
   6. CALL TO ACTION (CTA) BANNER
   ========================================================================== */
.aph-cta-section {
  padding: 2rem 0 4rem 0;
  background: #FAFCFF;
}

.aph-cta-banner {
  background: linear-gradient(135deg, #1E1B4B 0%, #1E3A8A 55%, #0F172A 100%);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(30, 27, 75, 0.4);
}

@media (min-width: 900px) {
  .aph-cta-banner {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
    padding: 36px 48px;
    gap: 32px;
  }
}

.aph-cta-banner__robot {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: floatBot 4s ease-in-out infinite alternate;
}

@keyframes floatBot {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}

.aph-cta-banner__content {
  flex: 1;
}

.aph-cta-banner__title {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
}

.aph-cta-banner__subtitle {
  font-size: 0.95rem;
  color: #CBD5E1;
  margin: 0;
  max-width: 500px;
}

.aph-cta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.aph-btn--cta-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  color: #1E3A8A !important;
  font-weight: 700;
  font-size: 0.925rem;
  padding: 13px 24px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.aph-btn--cta-white:hover {
  background: #F8FAFC;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.aph-btn--cta-outline {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF !important;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  font-weight: 600;
  font-size: 0.925rem;
  padding: 13px 24px;
  border-radius: 12px;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.aph-btn--cta-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}

/* ==========================================================================
   Prompt Architecture & Engineering Framework Section
   ========================================================================== */
.aph-framework-section {
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
  padding: 5rem 0;
}

.aph-framework-header {
  max-width: 820px;
  margin: 0 auto 3.5rem auto;
  text-align: center;
}

.aph-framework-header .aph-hero__badge {
  display: inline-flex;
  margin: 0 auto 1rem auto;
}

.aph-framework-header .aph-section__title {
  display: block;
  font-size: clamp(1.85rem, 3.2vw, 2.35rem);
  font-weight: 800;
  line-height: 1.25;
  color: #0F172A;
  letter-spacing: -0.025em;
  margin: 0 auto 1rem auto;
  text-align: center;
}

.aph-framework-header .aph-section__subtitle {
  font-size: 1.0625rem;
  color: #475569;
  line-height: 1.65;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.aph-framework-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 991px) {
  .aph-framework-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.aph-framework-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 1.125rem;
  padding: 2.25rem 2rem;
  box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.05), 0 2px 4px -1px rgba(15, 23, 42, 0.02);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.aph-framework-card:hover {
  transform: translateY(-3px);
  border-color: #CBD5E1;
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.03);
}

.aph-editorial-standards-banner {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 1.125rem;
  padding: 2.5rem;
  box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.04);
}

