/* ═══════════════════════════════════════════════════════════════
   TECH SAVVY PK — home.css
   Workreap-17 inspired homepage sections
   ═══════════════════════════════════════════════════════════════ */

/* ───────────────────── PILL BUTTONS (shared) ───────────────────── */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.75rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-pill-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px -6px rgba(220, 38, 38, 0.4);
}
.btn-pill-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -6px rgba(220, 38, 38, 0.55);
}
.btn-pill-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-pill-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.btn-pill-white {
  background: #fff;
  color: var(--accent);
}
.btn-pill-white:hover {
  background: #fff;
  transform: translateY(-2px);
  color: var(--accent-dark);
}
.btn-pill-arrow {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: transform 0.2s;
}
.btn-pill-ghost .btn-pill-arrow { background: var(--accent-soft); color: var(--accent); }
.btn-pill-white .btn-pill-arrow { background: var(--accent-soft); color: var(--accent); }
.btn-pill:hover .btn-pill-arrow { transform: translateX(3px); }

/* ───────────────────── SECTION HELPERS ───────────────────── */
.h17-section { padding: 5.5rem 0; position: relative; }
.h17-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.h17-section-head.center {
  justify-content: center;
  text-align: center;
}
.h17-section-head.center > div { max-width: 620px; }

.h17-section-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
  position: relative;
  padding-left: 1.75rem;
}
.h17-section-kicker::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 1.25rem;
  height: 2px;
  background: var(--accent);
  transform: translateY(-50%);
}
.h17-section-kicker.white { color: #fff; }
.h17-section-kicker.white::before { background: #fff; }

.h17-h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 1rem;
}
.h17-h2 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 700;
}
.h17-h2.white { color: #fff; }

.h17-section-lead {
  font-size: 1.02rem;
  color: var(--text-dim);
  max-width: 560px;
  line-height: 1.6;
  margin: 0;
}
.h17-section-head.center .h17-section-lead { margin: 0 auto; }

.h17-view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.6rem 1.1rem;
  border: 1.5px solid var(--accent-border);
  border-radius: 999px;
  transition: all 0.2s;
  flex-shrink: 0;
}
.h17-view-all:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ───────────────────── HERO ───────────────────── */
.h17-hero {
  position: relative;
  padding: 6rem 0 7rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(220, 38, 38, 0.22) 0%, transparent 40%),
    radial-gradient(ellipse at 85% 90%, rgba(217, 119, 6, 0.12) 0%, transparent 45%),
    linear-gradient(180deg, #0a0a0b 0%, #131316 100%);
  color: #fff;
}
.h17-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 10%, transparent 75%);
  pointer-events: none;
}
.h17-hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  pointer-events: none;
}
.h17-hero-shape-1 {
  width: 480px; height: 480px;
  background: #DC2626;
  top: -180px; right: -120px;
}
.h17-hero-shape-2 {
  width: 380px; height: 380px;
  background: #F59E0B;
  bottom: -140px; left: -100px;
  opacity: 0.15;
}

.h17-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
  z-index: 2;
}
.h17-hero-left { animation: h17-rise 0.8s ease-out both; }
.h17-hero-right { animation: h17-rise 0.8s ease-out 0.15s both; }

@keyframes h17-rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.h17-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(220, 38, 38, 0.15);
  color: #FCA5A5;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(220, 38, 38, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.h17-dot {
  width: 7px; height: 7px;
  background: #EF4444;
  border-radius: 50%;
  box-shadow: 0 0 8px 2px rgba(239, 68, 68, 0.5);
  animation: h17-pulse 1.8s ease-in-out infinite;
}
@keyframes h17-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(1.4); }
}

.h17-display {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: #fff;
  margin: 0 0 1.5rem;
  text-shadow: 0 2px 40px rgba(0,0,0,0.3);
}
.h17-display em {
  font-style: italic;
  color: transparent;
  background: linear-gradient(135deg, #F87171 0%, #DC2626 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-weight: 700;
}

.h17-lead {
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  max-width: 540px;
  margin: 0 0 2rem;
}

.h17-cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Override pill buttons for dark hero */
.h17-hero .btn-pill-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.h17-hero .btn-pill-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.h17-hero .btn-pill-ghost .btn-pill-arrow {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.h17-hero .btn-pill-primary {
  box-shadow: 0 8px 24px -6px rgba(220, 38, 38, 0.55), 0 0 0 1px rgba(220, 38, 38, 0.3);
}

.h17-hero-right { display: flex; justify-content: center; align-items: center; }
.h17-hero-art {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1;
  position: relative;
}

@media (max-width: 960px) {
  .h17-hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .h17-hero-right { order: -1; }
  .h17-hero-art { max-width: 380px; }
  .h17-section { padding: 4rem 0; }
}

/* ───────────────────── CATEGORY / SERVICES GRID ───────────────────── */
.h17-cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
/* 3-up on mid screens, 2-up with 5th centered on tablet, 1-up on mobile */
@media (max-width: 1180px) {
  .h17-cat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 880px) {
  .h17-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .h17-cat-grid > *:nth-child(5) { grid-column: 1 / -1; max-width: 50%; justify-self: center; }
}
@media (max-width: 560px) {
  .h17-cat-grid { grid-template-columns: 1fr; }
  .h17-cat-grid > *:nth-child(5) { max-width: none; }
}

.h17-cat-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.3s ease;
  overflow: hidden;
  min-height: 340px;
}
.h17-cat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 20px 40px -20px rgba(220, 38, 38, 0.25);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.h17-cat-card:hover {
  border-color: var(--accent-border);
  background: #fff;
  transform: translateY(-4px);
}
.h17-cat-card:hover::after { opacity: 1; }

.h17-cat-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  line-height: 1;
}
.h17-cat-icon svg { width: 28px; height: 28px; }

.h17-cat-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.25rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.h17-cat-title a { color: inherit; text-decoration: none; transition: color 0.2s; }
.h17-cat-title a:hover { color: var(--accent); }

.h17-cat-sublist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}
.h17-cat-sublist li {
  display: flex;
  align-items: center;
  font-size: 0.83rem;
  color: var(--text-dim);
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--border);
  line-height: 1.4;
}
.h17-cat-sublist li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.55;
  margin-right: 0.6rem;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.h17-cat-card:hover .h17-cat-sublist li::before { opacity: 1; }
.h17-cat-sublist li:last-child { border-bottom: 0; }

.h17-cat-explore {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  margin-top: auto;
}
.h17-cat-explore::after {
  content: '→';
  transition: transform 0.2s;
}
.h17-cat-card:hover .h17-cat-explore::after { transform: translateX(4px); }

/* ───────────────────── STATS STRIP ───────────────────── */
.h17-stats-wrap {
  background: linear-gradient(180deg, #0a0a0b 0%, #131316 100%);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}
.h17-stats-wrap::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 10%, transparent 75%);
  pointer-events: none;
}
.h17-stats-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
@media (max-width: 900px) { .h17-stats-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .h17-stats-strip { grid-template-columns: 1fr; } }

.h17-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s;
}
.h17-stat:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(220, 38, 38, 0.4);
  box-shadow: 0 12px 32px -12px rgba(220, 38, 38, 0.35);
}

.h17-stat-ic {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(220, 38, 38, 0.15);
  color: #F87171;
  margin-bottom: 1rem;
  border: 1px solid rgba(220, 38, 38, 0.25);
}
.h17-stat-ic svg { width: 24px; height: 24px; }

.h17-stat-num {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
  color: #fff;
}
.h17-stat-lbl {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.4rem;
}

/* ───────────────────── SPLIT FEATURE ───────────────────── */
.h17-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 960px) {
  .h17-split { grid-template-columns: 1fr; gap: 2.5rem; }
}

.h17-split-art {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.h17-split-illus {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 30%, var(--accent-soft), transparent 60%),
    linear-gradient(135deg, var(--surface) 0%, #fff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.h17-feature-bullets {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.h17-feature-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.98rem;
  color: var(--text);
  line-height: 1.45;
}
.h17-fb-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  margin-top: 2px;
}
.h17-fb-check svg { width: 13px; height: 13px; }

/* ───────────────────── PROCESS / 3 STEPS ───────────────────── */
.h17-process-wrap {
  background: var(--surface);
  position: relative;
}
.h17-process-wrap::before, .h17-process-wrap::after {
  content: '';
  position: absolute;
  width: 180px; height: 180px;
  background-image: radial-gradient(circle, var(--border-strong) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
  opacity: 0.6;
  pointer-events: none;
}
.h17-process-wrap::before { top: 2rem; left: 2rem; }
.h17-process-wrap::after  { bottom: 2rem; right: 2rem; }

.h17-process-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 1.5rem;
  align-items: stretch;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) {
  .h17-process-grid { grid-template-columns: 1fr; }
  .h17-proc-arrow { display: none !important; }
}

.h17-proc-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  text-align: left;
  position: relative;
  transition: all 0.3s;
}
.h17-proc-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(220, 38, 38, 0.2);
}
.h17-proc-num {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-faint);
  letter-spacing: 0.15em;
}
.h17-proc-ic {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.h17-proc-ic svg { width: 26px; height: 26px; }
.h17-proc-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}
.h17-proc-card p {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.55;
  margin: 0;
}
.h17-proc-arrow {
  display: flex;
  align-items: center;
  color: var(--accent);
  font-size: 1.8rem;
  opacity: 0.6;
}
.h17-proc-arrow::before { content: '→'; }

/* ───────────────────── PRICING ───────────────────── */
.h17-pricing-toggle {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.h17-pricing-toggle button {
  background: #fff;
  border: 1.5px solid var(--border-strong);
  color: var(--text-dim);
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.h17-pricing-toggle button:hover {
  color: var(--text);
  border-color: var(--text-faint);
}
.h17-pricing-toggle button.active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.h17-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1080px;
  margin: 0 auto;
}
@media (max-width: 900px) { .h17-pricing-grid { grid-template-columns: 1fr; } }

.h17-plan {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
  position: relative;
}
.h17-plan:hover { border-color: var(--accent-border); transform: translateY(-4px); }
.h17-plan.popular {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
  transform: scale(1.03);
  z-index: 1;
}
.h17-plan.popular:hover { transform: scale(1.03) translateY(-4px); }

.h17-plan-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.h17-plan-tier {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: inherit;
  margin: 0 0 0.5rem;
}
.h17-plan-desc {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin: 0 0 1.5rem;
  min-height: 3.3em;
}
.h17-plan.popular .h17-plan-desc { color: rgba(255,255,255,0.7); }

.h17-plan-price {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  color: inherit;
  margin-bottom: 0.25rem;
}
.h17-plan-price small {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dim);
}
.h17-plan.popular .h17-plan-price small { color: rgba(255,255,255,0.5); }
.h17-plan-incl {
  font-size: 11px;
  font-style: italic;
  color: var(--text-faint);
  margin-bottom: 1.5rem;
}
.h17-plan.popular .h17-plan-incl { color: rgba(255,255,255,0.5); }

.h17-plan-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 600;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  margin-bottom: 1rem;
}
.h17-plan.popular .h17-plan-kicker {
  color: rgba(255,255,255,0.5);
  border-color: rgba(255,255,255,0.15);
}

.h17-plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}
.h17-plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  line-height: 1.45;
}
.h17-plan-features li svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}
.h17-plan.popular .h17-plan-features li svg { color: #fff; }

.h17-plan .btn-pill { justify-content: center; }

.h17-pricing-foot {
  text-align: center;
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.05em;
}

/* ───────────────────── TESTIMONIALS ───────────────────── */
.h17-testimonials-wrap { background: var(--surface); }
.h17-test-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 900px) { .h17-test-grid { grid-template-columns: 1fr; } }

.h17-test-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  position: relative;
  transition: all 0.3s;
}
.h17-test-card:hover { transform: translateY(-4px); border-color: var(--accent-border); }
.h17-test-card.featured { background: var(--text); color: #fff; border-color: var(--text); }

.h17-test-quote {
  color: var(--accent);
  opacity: 0.4;
  margin-bottom: 1rem;
}
.h17-test-card.featured .h17-test-quote { color: var(--accent); opacity: 0.8; }
.h17-test-quote svg { width: 36px; height: 36px; }

.h17-test-body {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 1.5rem;
}
.h17-test-card.featured .h17-test-body { color: rgba(255,255,255,0.92); }

.h17-test-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.h17-test-card.featured .h17-test-meta { border-color: rgba(255,255,255,0.15); }

.h17-test-ava {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.h17-test-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
}
.h17-test-card.featured .h17-test-name { color: #fff; }
.h17-test-role {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 2px;
}
.h17-test-card.featured .h17-test-role { color: rgba(255,255,255,0.55); }
.h17-test-stars {
  margin-left: auto;
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

/* ───────────────────── CTA BANNER ───────────────────── */
.h17-cta-banner {
  position: relative;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 5rem 3rem;
  text-align: center;
  overflow: hidden;
  color: #fff;
}
.h17-cta-shape {
  position: absolute;
  width: 260px; height: 260px;
  background-image: radial-gradient(circle, rgba(255,255,255,0.15) 2px, transparent 2px);
  background-size: 20px 20px;
  pointer-events: none;
}
.h17-cta-shape-1 { top: -50px; left: -50px; transform: rotate(-15deg); }
.h17-cta-shape-2 { bottom: -50px; right: -50px; transform: rotate(20deg); }

.h17-cta-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.h17-cta-sub {
  color: rgba(255,255,255,0.85);
  font-size: 1.02rem;
  line-height: 1.6;
  margin: 0 0 2rem;
}
.h17-cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }
.h17-cta-warranty {
  color: rgba(255,255,255,0.65);
  font-size: 0.82rem;
  margin: 1.5rem 0 0;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

@media (max-width: 640px) {
  .h17-cta-banner { padding: 3.5rem 1.5rem; }
}


/* ───────────────────── HERO ART (SVG illustration) ───────────────────── */
.h17-hero-art svg { width: 100%; height: 100%; }

/* Rating summary strip (on homepage testimonials head) */
.h17-rating-summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 4px 12px -6px rgba(0,0,0,0.06);
}
.h17-rating-summary .rs-stars {
  color: #F59E0B;
  font-size: 1rem;
  letter-spacing: 0.04em;
}
.h17-rating-summary .rs-text {
  font-size: 0.85rem;
  color: var(--text);
}
.h17-rating-summary .rs-text strong {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
}
.h17-reviews-empty {
  grid-column: 1 / -1;
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.9rem;
  background: #fff;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
}

/* ═══════════════════════════════════════════════════════════════
   Reviews slider (homepage)
   ═══════════════════════════════════════════════════════════════ */
.h17-reviews-slider {
  position: relative;
  padding: 0 3.5rem;     /* reserve space for the absolute arrows */
}
.h17-slider-viewport { overflow: hidden; width: 100%; }
.h17-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 300;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0 0 2px 0;
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.08);
  transition: all 0.2s;
  z-index: 3;
}
.h17-slider-arrow.prev { left: 0; }
.h17-slider-arrow.next { right: 0; }
.h17-slider-arrow:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.05);
}
@media (max-width: 720px) {
  .h17-reviews-slider { padding: 0; }
  .h17-slider-arrow { display: none; }
}

/* Card animation when page flips */
.h17-test-grid {
  animation: slideIn 0.45s ease-out;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Controls row */
.h17-reviews-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.h17-slider-dots { display: flex; gap: 0.4rem; }
.h17-slider-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
  border: 0;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}
.h17-slider-dot:hover { background: var(--text-faint); }
.h17-slider-dot.active {
  background: var(--accent);
  width: 26px;
  border-radius: 999px;
}

/* Extra card fields: project line + date */
.h17-test-project {
  display: inline-block;
  padding: 3px 10px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.h17-test-card.featured .h17-test-project {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.h17-test-date {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  margin-top: 3px;
}
.h17-test-card.featured .h17-test-date { color: rgba(255,255,255,0.55); }

/* ─── New review card hierarchy (project title prominent) ─── */
.h17-test-stars-top {
  color: #F59E0B;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}
.h17-test-card.featured .h17-test-stars-top { color: #FCD34D; }

.h17-test-project-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 0.85rem;
  /* gracefully clamp long titles to 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.h17-test-card.featured .h17-test-project-title { color: #fff; }

.h17-test-name-small {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
  line-height: 1.2;
}
.h17-test-card.featured .h17-test-name-small { color: rgba(255, 255, 255, 0.72); }

/* ═══════════════════════════════════════════════════════════════
   Hero art animations — zooming rings + floating cards
   ═══════════════════════════════════════════════════════════════ */
.h17-hero-art { position: relative; }
.h17-hero-art svg { width: 100%; height: 100%; display: block; }

/* Pulsing glow backdrop — scales + fades */
.hero-ring-glow {
  transform-origin: 260px 260px;
  transform-box: fill-box;
  animation: heroGlowPulse 5s ease-in-out infinite;
}
@keyframes heroGlowPulse {
  0%, 100% { transform: scale(0.85); opacity: 0.7; }
  50%      { transform: scale(1.05); opacity: 1; }
}

/* Three rings zooming out at staggered intervals */
.hero-ring {
  transform-origin: 260px 260px;
  transform-box: fill-box;
}
.hero-ring-1 { animation: heroRingPulse 4s ease-in-out infinite; }
.hero-ring-2 { animation: heroRingPulse 4s ease-in-out infinite 0.6s; }
.hero-ring-3 { animation: heroRingPulse 4s ease-in-out infinite 1.2s; }
.hero-ring-4 { animation: heroRingSpin 40s linear infinite; }

@keyframes heroRingPulse {
  0%, 100% { transform: scale(0.96); opacity: 0.6; }
  50%      { transform: scale(1.04); opacity: 1; }
}
@keyframes heroRingSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Floating cards gentle bob */
.hero-float { transform-origin: center; }
.hero-float-a { animation: heroFloatA 6s ease-in-out infinite; }
.hero-float-b { animation: heroFloatB 7s ease-in-out infinite 0.8s; }

@keyframes heroFloatA {
  0%, 100% { transform: translate(20px, 300px); }
  50%      { transform: translate(20px, 288px); }
}
@keyframes heroFloatB {
  0%, 100% { transform: translate(340px, 50px); }
  50%      { transform: translate(340px, 38px); }
}

/* Respect motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero-ring-glow, .hero-ring, .hero-float-a, .hero-float-b { animation: none; }
}

/* ═══════════════════════════════════════════════════════════════
   POPULAR PROJECTS — homepage showcase list
   ═══════════════════════════════════════════════════════════════ */
.projects-showcase {
  background: linear-gradient(180deg, #0a0a0b 0%, #141417 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.projects-showcase::before {
  content: '';
  position: absolute;
  top: -40%; left: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.15) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(30px);
}
.projects-showcase::after {
  content: '';
  position: absolute;
  bottom: -20%; right: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.08) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(30px);
}

.ps-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
}
.ps-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #F87171;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
.ps-dots {
  color: #F87171;
  letter-spacing: -0.05em;
  font-size: 1rem;
  text-decoration: none;
}
.ps-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.ps-view-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.ps-view-more:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.ps-arrow { font-size: 1rem; }

/* ─── Project list rows ─── */
.projects-list {
  position: relative;
  z-index: 2;
}
.proj-row {
  display: grid;
  grid-template-columns: 60px 1.2fr 1fr 1.3fr 32px;
  align-items: center;
  gap: 1.5rem;
  padding: 1.6rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  position: relative;
}
.proj-row:hover {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}
.proj-row.is-active {
  border-bottom-color: rgba(255, 255, 255, 0.35);
}
.proj-num {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.proj-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.015em;
  line-height: 1.2;
  transition: color 0.2s;
}
.proj-row.is-active .proj-title {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}
.proj-cats {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}
.proj-desc {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
}
.proj-arrow {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: right;
  transition: all 0.2s;
}
.proj-row:hover .proj-arrow {
  color: var(--accent);
  transform: translate(4px, -4px) rotate(-45deg);
}
.proj-row.is-active .proj-arrow {
  color: var(--accent);
  transform: translate(4px, -4px) rotate(-45deg);
}

/* Responsive — collapse columns gracefully */
@media (max-width: 960px) {
  .proj-row {
    grid-template-columns: 50px 1fr 24px;
    grid-template-rows: auto auto;
    row-gap: 0.4rem;
    padding: 1.25rem 0.5rem;
  }
  .proj-num { grid-row: 1 / 3; align-self: center; }
  .proj-title { grid-column: 2; }
  .proj-arrow { grid-row: 1 / 3; align-self: center; }
  .proj-cats { grid-column: 2; font-size: 0.8rem; order: 2; }
  .proj-desc { display: none; }
}

/* ─── Floating image preview that follows cursor ─── */
.project-preview {
  position: fixed;
  width: 260px;
  height: 180px;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 999;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7), 0 0 0 2px rgba(255, 255, 255, 0.1);
  background: #fff;
}
.project-preview.visible {
  opacity: 1;
  transform: scale(1);
}
.project-preview svg {
  width: 100%;
  height: 100%;
  display: block;
}
/* Hide preview on touch devices */
@media (hover: none) {
  .project-preview { display: none; }
}
