/* Phase 2 — calculator-first homepage */

/* Homepage sits below nav + banner slider */
.home-v2-hero {
  padding: 40px 0 48px;
  background: linear-gradient(165deg, #0f172a 0%, #1e293b 42%, #0f172a 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.home-v2-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(212, 175, 55, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 90% 80%, rgba(59, 130, 246, 0.12), transparent);
  pointer-events: none;
}

.home-v2-hero .container {
  position: relative;
  z-index: 1;
  max-width: 980px;
}

.home-v2-eyebrow {
  margin: 0 0 12px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.95);
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-v2-eyebrow i {
  font-size: 0.9rem;
}

.home-v2-hero h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 2.65rem);
  line-height: 1.12;
  color: #fff;
}

.home-v2-lead {
  margin: 0 0 22px;
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
  max-width: 640px;
}

.home-v2-search-card {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 20px;
  padding: 22px 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  color: #0f172a;
}

.home-v2-search-card .search-row {
  margin-top: 0;
}

.home-v2-search-card .section-subtitle {
  margin: 8px 0 0;
  text-align: left;
  color: #475569;
}

.home-v2-jeweller {
  margin: 18px 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.home-v2-jeweller a {
  color: #fde68a;
  font-weight: 800;
}

/* Live rates strip */
.home-v2-rates {
  background: #fff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding: 28px 0;
}

.home-v2-rates__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.home-v2-rates__head h2 {
  margin: 0;
  font-size: 1.2rem;
  color: #0f172a;
}

.home-v2-rates__updated {
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
}

.home-v2-rates__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.home-v2-rate-chip {
  background: #f8fafc;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 14px;
  padding: 14px 12px;
  text-align: center;
}

.home-v2-rate-chip__label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.home-v2-rate-chip__value {
  margin-top: 6px;
  font-size: 1.35rem;
  font-weight: 900;
  color: #0f172a;
}

.home-v2-rates__cta {
  margin-top: 16px;
  text-align: center;
}

.home-v2-rates__cta a {
  font-weight: 800;
  color: #1e3a8a;
  text-decoration: none;
}

.home-v2-rates__cta a:hover {
  text-decoration: underline;
}

/* Tool cards row */
.home-v2-tools {
  padding: 48px 0;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.home-v2-tools__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.home-v2-tool-card {
  display: block;
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 18px 16px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  color: inherit;
}

.home-v2-tool-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
}

.home-v2-tool-card i {
  font-size: 1.35rem;
  color: #b45309;
}

.home-v2-tool-card h3 {
  margin: 10px 0 6px;
  font-size: 1rem;
  color: #0f172a;
}

.home-v2-tool-card p {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.4;
}

/* Compact products */
.home-v2-products {
  padding: 56px 0;
  background: #0f172a;
  color: #fff;
}

.home-v2-products .section-title {
  color: #fff;
}

.home-v2-products .section-subtitle {
  color: rgba(255, 255, 255, 0.75);
}

.home-v2-pro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.home-v2-pro-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 16px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-v2-pro-card__tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.95);
}

.home-v2-pro-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.home-v2-pro-card p {
  margin: 0;
  flex: 1;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}

.home-v2-pro-card a {
  font-weight: 800;
  font-size: 0.88rem;
  color: #fde68a;
  text-decoration: none;
}

.home-v2-pro-card a:hover {
  text-decoration: underline;
}

.home-v2-pro-card--featured {
  border-color: rgba(212, 175, 55, 0.55);
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.12), rgba(255, 255, 255, 0.04));
}

/* Short about */
.home-v2-about {
  padding: 56px 0;
  background: #fff;
}

.home-v2-about__intro {
  max-width: 720px;
  margin: 0 auto 28px;
  text-align: center;
  color: #475569;
  font-weight: 600;
  line-height: 1.6;
}

.home-v2-trust {
  padding: 40px 0 56px;
  background: #f8fafc;
}

.home-v2-trust__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.home-v2-trust-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 22px 18px;
  text-align: center;
}

.home-v2-trust-card i {
  font-size: 1.5rem;
  color: #1e3a8a;
}

.home-v2-trust-card h3 {
  margin: 12px 0 8px;
  font-size: 1.05rem;
}

.home-v2-trust-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 600;
  line-height: 1.45;
}

/* Section headers with icons */
.home-v2-section-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.home-v2-section-head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.home-v2-section-head--light .section-title,
.home-v2-section-head--light .section-subtitle {
  text-align: left;
}

.home-v2-section-head--light {
  flex-wrap: wrap;
  align-items: center;
}

.home-v2-section-head--light .home-v2-rates__updated {
  margin-left: auto;
}

.home-v2-section-head--on-dark .section-title {
  color: #fff;
}

.home-v2-section-head--on-dark .section-subtitle {
  color: rgba(255, 255, 255, 0.72);
}

.home-v2-section-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(145deg, #1e3a8a 0%, #3b82f6 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 10px 28px rgba(30, 58, 138, 0.22);
}

.home-v2-section-icon--gold {
  background: linear-gradient(145deg, #b45309 0%, #d4af37 55%, #fde68a 100%);
  color: #0f172a;
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.35);
}

.home-v2-section-head .section-title {
  margin: 0 0 6px;
}

.home-v2-section-head .section-subtitle {
  margin: 0;
}

/* Premium rate chips */
.home-v2-rate-chip {
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.home-v2-rate-chip__value {
  background: linear-gradient(90deg, #0f172a, #334155);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Premium tool cards */
.home-v2-tool-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #fff 0%, #f8fafc 100%);
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.home-v2-tool-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #b45309, #d4af37, #fde68a);
  opacity: 0;
  transition: opacity 0.25s;
}

.home-v2-tool-card:hover::before {
  opacity: 1;
}

.home-v2-tool-card i {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Premium product cards */
.home-v2-pro-grid--premium {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.home-v2-pro-card-v2 {
  position: relative;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 20px;
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.home-v2-pro-card-v2:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.home-v2-pro-card-v2__shine {
  position: absolute;
  inset: -40% -20% auto;
  height: 120px;
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.25), transparent 70%);
  pointer-events: none;
}

.home-v2-pro-card-v2__visual {
  margin: -6px -6px 8px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.home-v2-pro-card-v2__visual img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.home-v2-pro-card-v2__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.home-v2-pro-card-v2__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.25), rgba(212, 175, 55, 0.08));
  border: 1px solid rgba(212, 175, 55, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fde68a;
  font-size: 1.1rem;
}

.home-v2-pro-card-v2__tag {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.95);
}

.home-v2-pro-card-v2 h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #fff;
}

.home-v2-pro-card-v2 p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
  flex: 1;
}

.home-v2-pro-card-v2__list {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.home-v2-pro-card-v2__list li {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-v2-pro-card-v2__list i {
  color: #4ade80;
  font-size: 0.75rem;
}

.home-v2-pro-card-v2__cta {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.88rem;
  color: #fde68a;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(0, 0, 0, 0.2);
  transition: background 0.2s, border-color 0.2s;
}

.home-v2-pro-card-v2__cta:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.6);
}

.home-v2-pro-card-v2__cta--primary {
  background: linear-gradient(135deg, #b45309, #d4af37);
  color: #0f172a;
  border-color: transparent;
}

.home-v2-pro-card-v2__cta--primary:hover {
  filter: brightness(1.08);
}

.home-v2-pro-card-v2--featured {
  border-color: rgba(212, 175, 55, 0.55);
  background: linear-gradient(155deg, rgba(212, 175, 55, 0.14) 0%, rgba(255, 255, 255, 0.05) 100%);
}

@media (min-width: 1024px) {
  .home-v2-pro-grid--premium {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-v2-pro-card-v2--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto auto;
    gap: 12px 24px;
    padding: 24px;
  }
  .home-v2-pro-card-v2--featured .home-v2-pro-card-v2__visual {
    grid-column: 2;
    grid-row: 1 / span 4;
    margin: 0;
    align-self: center;
  }
  .home-v2-pro-card-v2--featured .home-v2-pro-card-v2__top {
    grid-column: 1;
  }
  .home-v2-pro-card-v2--featured h3,
  .home-v2-pro-card-v2--featured p,
  .home-v2-pro-card-v2--featured .home-v2-pro-card-v2__list,
  .home-v2-pro-card-v2--featured .home-v2-pro-card-v2__cta {
    grid-column: 1;
  }
  .home-v2-pro-card-v2--featured .home-v2-pro-card-v2__shine {
    grid-column: 1 / -1;
  }
}

/* Live jewellers marquee */
.home-v2-customers {
  padding: 48px 0 56px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  overflow: hidden;
}

.customers-marquee {
  margin-top: 8px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.customers-marquee__track {
  display: flex;
  align-items: stretch;
  gap: 24px;
  width: max-content;
  animation: customers-marquee 48s linear infinite;
  padding: 12px 0;
}

.customers-marquee__track:hover {
  animation-play-state: paused;
}

@keyframes customers-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.customer-chip {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 30px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
  min-width: 320px;
}

.customer-chip > i {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(212, 175, 55, 0.12);
  font-size: 1.5rem;
  color: #b45309;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.customer-chip strong {
  display: block;
  font-size: 1.08rem;
  color: #0f172a;
  line-height: 1.3;
}

.customer-chip span {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #64748b;
  margin-top: 4px;
}

.customer-chip--live {
  border-color: rgba(34, 197, 94, 0.45);
  background: linear-gradient(135deg, #f0fdf4, #fff);
  min-width: 300px;
}

.customer-chip--live > i {
  color: #16a34a;
  background: rgba(34, 197, 94, 0.12);
}

/* Jeweller voices */
.home-v2-voices {
  padding: 56px 0;
  background: linear-gradient(165deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  color: #fff;
}

.home-v2-voices__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.voice-card {
  margin: 0;
  padding: 24px 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 18px;
  position: relative;
}

.voice-card__stars {
  color: #fde68a;
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.voice-card p {
  margin: 0 0 16px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}

.voice-card footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  color: rgba(212, 175, 55, 0.95);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Premium trust cards */
.home-v2-trust-card {
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border: 1px solid rgba(212, 175, 55, 0.22);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.home-v2-trust-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

.home-v2-trust-card i {
  width: 52px;
  height: 52px;
  margin: 0 auto;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(30, 58, 138, 0.1), rgba(59, 130, 246, 0.08));
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
  .customers-marquee__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
  }
}

@media (max-width: 768px) {
  .home-v2-hero {
    padding-top: 32px;
    padding-bottom: 36px;
  }
  .home-v2-search-card {
    padding: 16px;
  }
  .home-v2-section-head--light .home-v2-rates__updated {
    margin-left: 0;
    width: 100%;
  }
  .home-v2-pro-card-v2--featured {
    padding: 18px;
  }
}
