/* ═══════════════════════════════════════════════════
   HOMEPAGE STYLES — TechStackToday
   Typography scale: 16px body base throughout
═══════════════════════════════════════════════════ */

/* ── HERO ── */
.tst-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #1a3a6e 100%);
  padding: 80px 0 68px; position: relative; overflow: hidden;
}
.tst-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 70% 50%, rgba(26,86,219,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.tst-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.tst-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);
  color: var(--sky-mid); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; padding: 6px 16px; border-radius: 100px; margin-bottom: 22px;
}
.tst-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; color: white;
  margin-bottom: 18px; line-height: 1.15;
}
.tst-hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #60a5fa, var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.tst-hero p {
  font-size: 1.1rem; color: rgba(255,255,255,0.75);
  max-width: 500px; margin-bottom: 34px; line-height: 1.75;
}
.tst-hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero stats card */
.tst-hero-card {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg); padding: 32px; backdrop-filter: blur(8px);
}
.tst-hero-card-title {
  color: rgba(255,255,255,0.5); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px;
}
.tst-hero-card-caveat { font-size: 0.78rem; color: rgba(255,255,255,0.4); margin-bottom: 16px; letter-spacing: 0.03em; }
.tst-stat-list { display: flex; flex-direction: column; gap: 12px; }
.tst-stat-item {
  display: flex; align-items: center; gap: 13px;
  background: rgba(255,255,255,0.05); border-radius: 10px; padding: 13px 15px;
  border: 1px solid rgba(255,255,255,0.08); transition: background 0.2s;
}
.tst-stat-item:hover { background: rgba(255,255,255,0.09); }
.tst-stat-icon { width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.tst-stat-info { flex: 1; }
.tst-stat-name { color: white; font-weight: 600; font-size: 0.95rem; }
.tst-stat-sub  { color: rgba(255,255,255,0.5); font-size: 0.8rem; margin-top: 1px; }
.tst-stat-score { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.1rem; color: var(--accent); }
@keyframes tst-fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
.tst-hero-content { animation: tst-fadeUp 0.6s ease both; }
.tst-hero-card    { animation: tst-fadeUp 0.6s 0.18s ease both; }

/* ── TRUST BAR ── */
.tst-trust-bar { background: var(--gray-50); border-bottom: 1px solid var(--gray-200); padding: 16px 0; }
/* Horizontal scroll row on all sizes — single line, no wrap */
.tst-trust-bar-inner {
  display: flex; align-items: center; gap: 0;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  padding: 0 4px;
}
.tst-trust-bar-inner::-webkit-scrollbar { display: none; }
.tst-trust-item {
  display: flex; align-items: center; gap: 7px;
  color: var(--gray-600); font-size: 0.875rem; font-weight: 500;
  white-space: nowrap; flex-shrink: 0;
  padding: 6px 16px; border-right: 1px solid var(--gray-200);
}
.tst-trust-item:last-child { border-right: none; }
.tst-trust-item svg { color: var(--blue); flex-shrink: 0; }
/* On wider screens: centred and spaced */
@media (min-width: 700px) {
  .tst-trust-bar-inner {
    justify-content: center; overflow-x: visible; flex-wrap: nowrap; padding: 0;
  }
  .tst-trust-item { padding: 4px 20px; }
}

/* ── SECTION SHARED ── */
.tst-section        { padding: 80px 0; }
.tst-section-label  {
  display: inline-block; background: var(--sky); color: var(--blue);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 100px; margin-bottom: 12px;
}
.tst-section-title  { font-size: clamp(1.65rem, 3vw, 2.4rem); font-weight: 800; color: var(--navy); margin-bottom: 14px; }
.tst-section-sub    { font-size: 1rem; color: var(--gray-600); max-width: 560px; line-height: 1.75; margin-bottom: 44px; }

/* ── CATEGORIES ── */
.tst-categories { background: var(--white); padding: 80px 0; }
.tst-cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tst-cat-card {
  background: var(--gray-50); border: 1.5px solid var(--gray-200); border-radius: var(--radius-lg);
  padding: 28px 24px; transition: all 0.24s; cursor: pointer; position: relative;
  overflow: hidden; display: block; text-decoration: none;
}
.tst-cat-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--blue); transform: scaleX(0); transition: transform 0.24s; transform-origin: left;
}
.tst-cat-card:hover { border-color: var(--blue-light); background: var(--white); box-shadow: var(--shadow); transform: translateY(-3px); }
.tst-cat-card:hover::after { transform: scaleX(1); }
.tst-cat-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 16px; }
.tst-cat-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.tst-cat-card p  { font-size: 0.9rem; color: var(--gray-600); line-height: 1.65; margin-bottom: 16px; }
.tst-cat-link    { font-size: 0.875rem; font-weight: 700; color: var(--blue); display: flex; align-items: center; gap: 4px; }

/* ── TOP PICKS ── */
.tst-top-picks { background: var(--gray-50); padding: 80px 0; }
.tst-picks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tst-pick-card {
  background: var(--white); border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 26px; transition: all 0.24s; position: relative;
}
.tst-pick-card:hover { box-shadow: var(--shadow-lg); border-color: var(--blue-light); transform: translateY(-3px); }
.tst-pick-badge {
  position: absolute; top: -11px; left: 18px; background: var(--blue); color: white;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 3px 12px; border-radius: 100px;
}
.tst-pick-badge.green { background: var(--accent); }
.tst-pick-logo {
  width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center;
  justify-content: center; font-family: 'Sora', sans-serif; font-weight: 800;
  font-size: 1.1rem; margin-bottom: 12px;
}
.tst-pick-name    { font-weight: 700; font-size: 1rem; color: var(--navy); margin-bottom: 3px; }
.tst-pick-type    { font-size: 0.8rem; color: var(--gray-400); margin-bottom: 12px; }
.tst-pick-rating  { display: flex; align-items: center; gap: 7px; margin-bottom: 13px; }
.tst-stars        { color: var(--amber); font-size: 0.9rem; }
.tst-rating-val   { font-weight: 700; font-size: 0.925rem; color: var(--navy); }
.tst-pick-desc    { font-size: 0.9rem; color: var(--gray-600); line-height: 1.65; margin-bottom: 16px; }
.tst-pick-cta {
  display: block; text-align: center; background: var(--sky); color: var(--blue);
  padding: 10px; border-radius: 8px; font-weight: 700; font-size: 0.875rem; transition: all 0.2s;
}
.tst-pick-cta:hover { background: var(--blue); color: white; }

/* ── HOW IT WORKS ── */
.tst-how-it-works { background: var(--white); padding: 80px 0; }
.tst-steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.tst-step { text-align: center; position: relative; }
.tst-step:not(:last-child)::after {
  content: '→'; position: absolute; top: 22px; right: -18px;
  color: var(--gray-200); font-size: 1.5rem;
}
.tst-step-num {
  width: 52px; height: 52px; background: var(--sky); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.1rem;
  color: var(--blue); margin: 0 auto 16px;
}
.tst-step h4 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.tst-step p  { font-size: 0.9rem; color: var(--gray-600); line-height: 1.65; }

/* ── WHY TRUST ── */
.tst-why-trust { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%); padding: 80px 0; }
.tst-why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.tst-why-text h2 { color: white; margin-bottom: 14px; }
.tst-why-text > p { color: rgba(255,255,255,0.72); font-size: 1rem; line-height: 1.75; margin-bottom: 26px; }
.tst-trust-points { display: flex; flex-direction: column; gap: 16px; }
.tst-trust-point  { display: flex; gap: 14px; align-items: flex-start; }
.tst-tp-icon { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.tst-tp-text strong { color: white; font-size: 0.95rem; display: block; margin-bottom: 2px; }
.tst-tp-text span   { color: rgba(255,255,255,0.55); font-size: 0.875rem; }
.tst-stats-box { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tst-stat-box {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); padding: 26px 22px; text-align: center;
}
.tst-stat-box .tst-num { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 2rem; color: var(--accent); display: block; margin-bottom: 5px; }
.tst-stat-box span:last-child { color: rgba(255,255,255,0.55); font-size: 0.875rem; }

/* ── LATEST GUIDES ── */
.tst-latest-reviews { background: var(--gray-50); padding: 80px 0; }
.tst-reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tst-review-card {
  background: var(--white); border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg); overflow: hidden; transition: all 0.24s; display: block; text-decoration: none;
}
.tst-review-card:hover { box-shadow: var(--shadow); border-color: var(--blue-light); transform: translateY(-3px); }
.tst-review-img   { height: 155px; display: flex; align-items: center; justify-content: center; font-size: 3.2rem; }
.tst-review-body  { padding: 20px; }
.tst-review-meta  { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.tst-review-tag   { background: var(--sky); color: var(--blue); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 3px 10px; border-radius: 100px; }
.tst-review-date  { font-size: 0.8rem; color: var(--gray-400); }
.tst-review-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; line-height: 1.4; }
.tst-review-card p  { font-size: 0.9rem; color: var(--gray-600); line-height: 1.65; margin-bottom: 12px; }
.tst-read-more    { font-size: 0.875rem; font-weight: 700; color: var(--blue); display: flex; align-items: center; gap: 4px; }

/* ── FAQ (homepage) ── */
.tst-faq-section { background: var(--white); padding: 80px 0; }
.tst-faq-grid    { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tst-faq-item {
  background: var(--gray-50); border: 1.5px solid var(--gray-200);
  border-radius: var(--radius); padding: 20px 22px; cursor: pointer; transition: all 0.2s;
}
.tst-faq-item:hover { border-color: var(--blue-light); background: var(--white); }
.tst-faq-q {
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; font-size: 0.9375rem; color: var(--navy); gap: 12px; line-height: 1.4;
}
.tst-faq-icon {
  width: 24px; height: 24px; border-radius: 50%; background: var(--sky); color: var(--blue);
  display: flex; align-items: center; justify-content: center; font-size: 0.9rem;
  flex-shrink: 0; transition: transform 0.2s;
}
.tst-faq-a  { font-size: 0.9375rem; color: var(--gray-600); line-height: 1.7; margin-top: 12px; display: none; }
.tst-faq-item.open .tst-faq-a    { display: block; }
.tst-faq-item.open .tst-faq-icon { transform: rotate(45deg); }

/* ── CTA BANNER ── */
.tst-cta-banner { background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%); padding: 70px 0; text-align: center; }
.tst-cta-banner h2 { color: white; font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 14px; }
.tst-cta-banner p  { color: rgba(255,255,255,0.75); font-size: 1rem; max-width: 520px; margin: 0 auto 28px; line-height: 1.75; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .tst-hero-grid, .tst-why-grid { grid-template-columns: 1fr; gap: 36px; }
  .tst-cat-grid, .tst-picks-grid, .tst-reviews-grid { grid-template-columns: 1fr 1fr; }
  .tst-steps-grid { grid-template-columns: 1fr 1fr; }
  .tst-faq-grid { grid-template-columns: 1fr; }
  .tst-step:not(:last-child)::after { display: none; }
  .tst-stats-box { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 580px) {
  .tst-hero { padding: 56px 0 44px; }
  .tst-hero p { font-size: 1rem; }
  .tst-cat-grid, .tst-picks-grid, .tst-reviews-grid, .tst-steps-grid { grid-template-columns: 1fr; }
  .tst-hero-buttons { flex-direction: column; align-items: flex-start; }
  /* Cat icon: show correctly on mobile */
  .tst-cat-icon { font-size: 1.6rem; }
}
