/* ═══════════════════════════════════════════
   home.css — Fitcore Support: homepage
   ═══════════════════════════════════════════ */

/* ── HERO ── */
.hero {
  padding: 100px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139,93,66,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(212,149,111,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero__badges {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-strong);
  letter-spacing: 0.02em;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  background: #5A7D4A;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.15;
  max-width: 700px;
  margin: 0 auto 20px;
  letter-spacing: -0.02em;
}

.hero__title span {
  color: var(--accent);
}

.hero__subtitle {
  font-size: 17px;
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto 40px;
  opacity: 0.6;
}

.hero__search {
  max-width: 540px;
  margin: 0 auto;
  position: relative;
}

.hero__search-icon {
  position: absolute;
  left: 20px;
  top: 28px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  opacity: 0.35;
}

.hero__search input {
  width: 100%;
  height: 56px;
  padding: 0 24px 0 52px;
  font-family: var(--font-body);
  font-size: 15px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  outline: none;
  box-shadow: var(--shadow-md);
  transition: border-color var(--duration-base) var(--easing), box-shadow var(--duration-base) var(--easing);
}

.hero__search input::placeholder {
  color: var(--text);
  opacity: 0.35;
}

.hero__search input:focus {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg), 0 0 0 3px rgba(130,86,57,0.08);
}

.hero__search-hint {
  margin-top: 12px;
  font-size: 13px;
  opacity: 0.4;
}

/* ── CARDS GRID ── */
.cards {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.cards__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  text-decoration: none;
  color: var(--text);
  transition: transform var(--duration-base) var(--easing), box-shadow var(--duration-base) var(--easing), border-color var(--duration-base) var(--easing);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(139,93,66,0.2);
}

.card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.card__icon {
  width: 48px;
  height: 48px;
  background: var(--surface);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: background var(--duration-base) var(--easing);
}

.card:hover .card__icon {
  background: rgba(139,93,66,0.1);
}

.card__icon svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.card__title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 10px;
  line-height: 1.3;
}

.card__desc {
  font-size: 14.5px;
  line-height: 1.65;
  opacity: 0.55;
  flex: 1;
}

.card__arrow {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-strong);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--duration-base) var(--easing), transform var(--duration-base) var(--easing);
}

.card:hover .card__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ── TOPICS ── */
.topics {
  background: var(--bg-dark);
  padding: 80px 24px;
}

.topics__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.topics__header {
  margin-bottom: 48px;
}

.topics__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-warm);
  margin-bottom: 12px;
}

.topics__title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 400;
  color: var(--text-light);
  line-height: 1.2;
}

.topics__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.topic {
  background: var(--surface-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  text-decoration: none;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background var(--duration-base) var(--easing), border-color var(--duration-base) var(--easing);
}

.topic:hover {
  background: rgba(212,149,111,0.08);
  border-color: rgba(212,149,111,0.2);
}

.topic:focus-visible {
  outline: 2px solid var(--accent-warm);
  outline-offset: 2px;
}

.topic__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.topic__name {
  font-weight: 500;
  font-size: 15px;
}

.topic__count {
  font-size: 13px;
  opacity: 0.4;
}

.topic__chevron {
  width: 16px;
  height: 16px;
  opacity: 0.3;
  flex-shrink: 0;
  transition: opacity var(--duration-fast), transform var(--duration-fast);
}

.topic:hover .topic__chevron {
  opacity: 0.6;
  transform: translateX(2px);
}

/* ── QUICK HELP ── */
.quick-help {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.quick-help__header {
  text-align: center;
  margin-bottom: 48px;
}

.quick-help__title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 400;
  margin-bottom: 12px;
}

.quick-help__subtitle {
  font-size: 15px;
  opacity: 0.5;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-item__trigger {
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item__trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.faq-item__chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.3;
  transition: transform var(--duration-base) var(--easing);
}

.faq-item[open] .faq-item__chevron {
  transform: rotate(180deg);
}

.faq-item__content {
  padding: 0 0 20px;
  font-size: 14.5px;
  line-height: 1.7;
  opacity: 0.6;
  max-width: 640px;
}

/* ── WHY FITCORE ── */
.why {
  background: var(--surface);
  padding: 80px 24px;
}

.why__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.why__header {
  text-align: center;
  margin-bottom: 48px;
}

.why__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-strong);
  margin-bottom: 12px;
}

.why__title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 400;
  line-height: 1.2;
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}

.usp-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}

.usp-card__icon {
  width: 44px;
  height: 44px;
  background: rgba(139,93,66,0.06);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.usp-card__icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.usp-card__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}

.usp-card__desc {
  font-size: 14px;
  line-height: 1.65;
  opacity: 0.55;
}

.why__columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.why__column-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 16px;
}

.why__column-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.why__column-list li {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.6;
  padding-left: 16px;
  position: relative;
}

.why__column-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.why__column--muted {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.why__column-text {
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.55;
}

/* ── START HERE ── */
.start-here {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.start-here__header {
  text-align: center;
  margin-bottom: 48px;
}

.start-here__title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 400;
  margin-bottom: 12px;
}

.start-here__subtitle {
  font-size: 15px;
  opacity: 0.5;
}

.start-here__flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.start-step {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text);
  transition: transform var(--duration-base) var(--easing), box-shadow var(--duration-base) var(--easing), border-color var(--duration-base) var(--easing);
}

.start-step:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(139,93,66,0.18);
}

.start-step:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.start-step__number {
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}

.start-step__content {
  flex: 1;
  min-width: 0;
}

.start-step__title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
}

.start-step__desc {
  font-size: 13px;
  opacity: 0.5;
  line-height: 1.5;
}

.start-step__arrow {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-strong);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--duration-base) var(--easing), transform var(--duration-base) var(--easing);
}

.start-step:hover .start-step__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ── TOPIC CATEGORY LABEL ── */
.topic__category {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-warm);
  opacity: 0.35;
}

/* ── TROUBLESHOOTING ── */
.troubleshooting {
  background: var(--bg-dark);
  padding: 80px 24px;
}

.troubleshooting__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.troubleshooting__header {
  margin-bottom: 48px;
}

.troubleshooting__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-warm);
  margin-bottom: 12px;
}

.troubleshooting__title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 400;
  color: var(--text-light);
  line-height: 1.2;
}

.troubleshooting__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.trouble-item {
  background: var(--surface-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  text-decoration: none;
  display: block;
  transition: background var(--duration-base) var(--easing), border-color var(--duration-base) var(--easing), transform var(--duration-base) var(--easing);
}

.trouble-item:hover {
  background: rgba(212,149,111,0.08);
  border-color: rgba(212,149,111,0.2);
  transform: translateY(-1px);
}

.trouble-item:focus-visible {
  outline: 2px solid var(--accent-warm);
  outline-offset: 2px;
}

.trouble-item__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 6px;
}

.trouble-item__desc {
  font-size: 14px;
  color: var(--text-light);
  opacity: 0.45;
  line-height: 1.5;
}

/* ── CTA BANNER ── */
.cta {
  padding: 0 24px 80px;
}

.cta__inner {
  max-width: 820px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta__inner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139,93,66,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.cta__title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 400;
  margin-bottom: 12px;
  position: relative;
}

.cta__desc {
  font-size: 15px;
  opacity: 0.5;
  margin-bottom: 28px;
  position: relative;
}

.cta__buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.cta .btn--secondary {
  background: #fff;
}

.cta__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-strong);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity var(--duration-fast);
  position: relative;
}

.cta__link:hover {
  opacity: 1;
}

/* ── ANIMATIONS ── */
@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s var(--easing) forwards;
  }

  .fade-up:nth-child(1) { animation-delay: 0.05s; }
  .fade-up:nth-child(2) { animation-delay: 0.12s; }
  .fade-up:nth-child(3) { animation-delay: 0.19s; }

  .hero__badges { animation: fadeUp 0.5s var(--easing) 0.1s both; opacity: 0; }
  .hero__title { animation: fadeUp 0.6s var(--easing) 0.2s both; opacity: 0; }
  .hero__subtitle { animation: fadeUp 0.5s var(--easing) 0.3s both; opacity: 0; }
  .hero__search { animation: fadeUp 0.5s var(--easing) 0.4s both; opacity: 0; }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .cards__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .topics__grid {
    grid-template-columns: 1fr;
  }

  .card__arrow {
    opacity: 1;
    transform: translateX(0);
  }

  .hero {
    padding: 64px 24px 56px;
  }

  .footer__inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .cta__inner {
    padding: 40px 24px;
  }

  .why__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .why__columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .start-here__flow {
    grid-template-columns: 1fr;
  }

  .troubleshooting__grid {
    grid-template-columns: 1fr;
  }
}

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

  .topics__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .start-here__flow {
    grid-template-columns: repeat(2, 1fr);
  }
}
