/**
 * Homepage — modern layered layout (home.blade.php).
 */

:root {
  --home-ink: #0b1220;
  --home-muted: #5b6477;
  --home-line: rgba(15, 23, 42, 0.09);
  --home-primary: #2563eb;
  --home-glass: rgba(255, 255, 255, 0.78);
  --home-glass-border: rgba(255, 255, 255, 0.55);
}

/* Hero uses theme classes only (bg-half-170, bg-soft-primary, alert-pills) — no overrides here. */

/* ---------- Ticker ---------- */
.home-ticker-wrap {
  background: linear-gradient(180deg, #0b1220 0%, #111827 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.35rem 0;
}

/* ---------- Investment universe (light — same structure as dark screenshot) ---------- */
.home-uni.home-uni--light {
  position: relative;
  padding-top: 3.75rem;
  padding-bottom: 3.5rem;
  overflow: hidden;
  background: linear-gradient(165deg, #f4f6fb 0%, #eef2ff 42%, #f8fafc 100%);
}
.home-uni.home-uni--light::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 55% at 18% 12%, rgba(47, 85, 212, 0.12), transparent 58%),
    radial-gradient(ellipse 55% 45% at 92% 88%, rgba(14, 165, 233, 0.1), transparent 52%);
  pointer-events: none;
}
.home-uni.home-uni--light .container {
  position: relative;
  z-index: 1;
}
.home-uni--light .home-uni-title {
  font-size: clamp(1.65rem, 3.2vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--home-ink);
  margin: 0;
}
.home-uni--light .home-uni-lead {
  font-size: 1.05rem;
  color: var(--home-muted) !important;
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}
.home-uni--light .home-uni-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 0.85rem;
  margin-top: 2rem;
}
.home-uni--light .home-uni-pills a {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--home-ink);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(15, 23, 42, 0.12);
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.home-uni--light .home-uni-pills a:hover {
  transform: translateY(-2px);
  background: #fff;
  border-color: rgba(47, 85, 212, 0.35);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  color: #2f55d4;
}

.home-uni--light .home-uni-features {
  margin-top: 2.75rem;
}
.home-uni--light .home-uni-feature {
  text-align: center;
  padding: 1.35rem 1rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 32px -8px rgba(47, 85, 212, 0.12);
  height: 100%;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.home-uni--light .home-uni-feature:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 85, 212, 0.22);
  box-shadow:
    0 4px 12px rgba(15, 23, 42, 0.06),
    0 20px 40px -12px rgba(47, 85, 212, 0.18);
}
.home-uni--light .home-uni-feature i {
  font-size: 2.1rem;
  line-height: 1;
  background: linear-gradient(135deg, #2563eb, #7c3aed, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 6px rgba(37, 99, 235, 0.2));
}
.home-uni--light .home-uni-feature h5 {
  margin-top: 1rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--home-ink);
  margin-bottom: 0.4rem;
}
.home-uni--light .home-uni-feature p {
  font-size: 0.8125rem;
  color: var(--home-muted);
  margin: 0;
  line-height: 1.45;
}

/* ---------- Market sections — themed bands ---------- */
.home-market-section {
  padding: 3.25rem 0;
  position: relative;
  overflow: hidden;
}
.home-market-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 1;
  pointer-events: none;
}
.home-market-section--stocks {
  background: linear-gradient(180deg, #e8f0fc 0%, #f0f6ff 40%, #ffffff 100%);
}
.home-market-section--stocks::before {
  background: radial-gradient(ellipse 70% 50% at 100% 0%, rgba(37, 99, 235, 0.12), transparent 55%);
}
.home-market-section--cryptocurrency {
  background: linear-gradient(180deg, #f3e8ff 0%, #faf5ff 45%, #fdf4ff 100%);
}
.home-market-section--cryptocurrency::before {
  background: radial-gradient(ellipse 65% 45% at 0% 100%, rgba(147, 51, 234, 0.14), transparent 50%);
}
.home-market-section--tech-digital {
  background: linear-gradient(180deg, #e0f7fa 0%, #ecfeff 42%, #f0fdfa 100%);
}
.home-market-section--tech-digital::before {
  background: radial-gradient(ellipse 70% 50% at 100% 100%, rgba(6, 182, 212, 0.16), transparent 52%);
}
.home-market-section--precious-metals {
  background: linear-gradient(180deg, #fff7e6 0%, #fffbeb 40%, #fefce8 100%);
}
.home-market-section--precious-metals::before {
  background: radial-gradient(ellipse 60% 45% at 0% 0%, rgba(245, 158, 11, 0.18), transparent 48%);
}

.home-market-section .container {
  position: relative;
  z-index: 1;
}

/* Glass card */
.home-market-card {
  border-radius: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: var(--home-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 4px 6px -1px rgba(15, 23, 42, 0.05),
    0 24px 48px -12px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  overflow: hidden;
  position: relative;
}
.home-market-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 2;
  border-radius: 1.35rem 1.35rem 0 0;
}
.home-market-card--stocks::before {
  background: linear-gradient(90deg, #2563eb, #0ea5e9);
}
.home-market-card--cryptocurrency::before {
  background: linear-gradient(90deg, #7c3aed, #d946ef);
}
.home-market-card--tech-digital::before {
  background: linear-gradient(90deg, #0891b2, #06b6d4);
}
.home-market-card--precious-metals::before {
  background: linear-gradient(90deg, #d97706, #eab308);
}

.home-market-card .row {
  min-height: 100%;
}

.home-market-card-inner {
  padding: 1.85rem 1.5rem 2.1rem;
}
@media (min-width: 992px) {
  .home-market-card-inner {
    padding: 2.35rem 2.25rem 2.65rem;
  }
}

/* Title accent */
.home-market-card-inner h3 {
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--home-ink);
  margin-bottom: 0.55rem;
  line-height: 1.2;
}
.home-market-card-inner h3::before {
  content: "";
  display: block;
  width: 2.75rem;
  height: 4px;
  border-radius: 4px;
  margin-bottom: 0.85rem;
}
.home-market-card-inner--stocks h3::before {
  background: linear-gradient(90deg, #2563eb, #38bdf8);
}
.home-market-card-inner--cryptocurrency h3::before {
  background: linear-gradient(90deg, #7c3aed, #c026d3);
}
.home-market-card-inner--tech-digital h3::before {
  background: linear-gradient(90deg, #0891b2, #22d3ee);
}
.home-market-card-inner--precious-metals h3::before {
  background: linear-gradient(90deg, #d97706, #facc15);
}

.home-market-card .home-market-lead {
  font-size: 1.02rem;
  color: var(--home-muted);
  line-height: 1.62;
  margin-bottom: 0;
}

.home-market-visual {
  margin: 0;
  height: 100%;
  min-height: 240px;
  overflow: hidden;
  position: relative;
  background: #0f172a;
}
.home-market-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(90deg, transparent 55%, rgba(255, 255, 255, 0.12) 100%);
  opacity: 0.85;
}
@media (max-width: 991.98px) {
  .home-market-visual::after {
    background: linear-gradient(180deg, transparent 60%, rgba(255, 255, 255, 0.08) 100%);
  }
}
.home-market-visual img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  object-position: center center;
  display: block;
  transform: scale(1.01);
  transition: transform 0.5s ease;
}
.home-market-card:hover .home-market-visual img {
  transform: scale(1.04);
}

.home-market-visual--stocks img {
  object-position: center 30%;
}
.home-market-visual--cryptocurrency img {
  object-position: center 45%;
}
.home-market-visual--tech-digital img {
  object-position: center 28%;
}
.home-market-visual--precious-metals img {
  object-position: center 35%;
}

.home-market-visual__placeholder {
  min-height: 260px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.home-market-visual__placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 1;
  z-index: 0;
}
.home-market-visual__placeholder.home-ph-stocks::before {
  background: linear-gradient(145deg, #1e3a5f 0%, #0c4a6e 40%, #172554 100%);
}
.home-market-visual__placeholder.home-ph-crypto::before {
  background: linear-gradient(145deg, #4c1d95 0%, #5b21b6 45%, #312e81 100%);
}
.home-market-visual__placeholder.home-ph-tech::before {
  background: linear-gradient(145deg, #0e7490 0%, #0369a1 50%, #0c4a6e 100%);
}
.home-market-visual__placeholder.home-ph-metals::before {
  background: linear-gradient(145deg, #78350f 0%, #92400e 40%, #451a03 100%);
}
.home-market-visual__placeholder i {
  font-size: 2.75rem;
  color: rgba(255, 255, 255, 0.92);
  position: relative;
  z-index: 1;
}
.home-market-visual__hint {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  position: relative;
  z-index: 1;
}
.home-market-visual__sub {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 15rem;
  line-height: 1.4;
  position: relative;
  z-index: 1;
}
.home-market-visual__sub code {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.2);
  padding: 0.1rem 0.25rem;
  border-radius: 4px;
  font-size: 0.7rem;
}

.home-market-group-title {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
  margin-top: 1.45rem;
  margin-bottom: 0.7rem;
}
.home-market-group-title:first-of-type {
  margin-top: 1.15rem;
}

.home-market-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.6rem;
}
.home-market-chip {
  display: inline-block;
  padding: 0.48rem 1rem;
  border-radius: 999px;
  font-size: 0.84375rem;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.home-market-chip:hover {
  transform: translateY(-2px);
}

/* Themed chips */
.home-market-card-inner--stocks .home-market-chip {
  color: #1e3a5f;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), #eff6ff);
  border: 1px solid rgba(37, 99, 235, 0.2);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.06);
}
.home-market-card-inner--stocks .home-market-chip:hover {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.12);
}

.home-market-card-inner--cryptocurrency .home-market-chip {
  color: #4c1d95;
  background: linear-gradient(180deg, #fff, #faf5ff);
  border: 1px solid rgba(147, 51, 234, 0.22);
  box-shadow: 0 2px 8px rgba(147, 51, 234, 0.07);
}
.home-market-card-inner--cryptocurrency .home-market-chip:hover {
  border-color: rgba(147, 51, 234, 0.45);
  box-shadow: 0 6px 16px rgba(147, 51, 234, 0.14);
}

.home-market-card-inner--tech-digital .home-market-chip {
  color: #0e7490;
  background: linear-gradient(180deg, #fff, #ecfeff);
  border: 1px solid rgba(6, 182, 212, 0.25);
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.08);
}
.home-market-card-inner--tech-digital .home-market-chip:hover {
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 6px 16px rgba(6, 182, 212, 0.14);
}

.home-market-card-inner--precious-metals .home-market-chip {
  color: #92400e;
  background: linear-gradient(180deg, #fff, #fffbeb);
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.08);
}
.home-market-card-inner--precious-metals .home-market-chip:hover {
  border-color: rgba(217, 119, 6, 0.55);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.15);
}

@media (min-width: 992px) {
  .home-market-visual,
  .home-market-visual img,
  .home-market-visual__placeholder {
    min-height: 300px;
  }
}

/* ---------- CTA ---------- */
.home-cta-strip {
  padding: 3.75rem 0;
  background: linear-gradient(115deg, #0f172a 0%, #312e81 38%, #4f46e5 72%, #6366f1 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.home-cta-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 0% 100%, rgba(56, 189, 248, 0.25), transparent 50%),
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(251, 191, 36, 0.12), transparent 45%);
  pointer-events: none;
}
.home-cta-strip .container {
  position: relative;
  z-index: 1;
}
.home-cta-strip h4.title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.home-cta-strip .text-muted {
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 1.05rem;
}
.home-cta-strip .btn-light {
  font-weight: 700;
  border-radius: 0.65rem;
  padding: 0.85rem 2rem;
  color: #312e81;
  border: none;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.home-cta-strip .btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.3);
  color: #1e1b4b;
}

/* ---------- Homepage: trust & clarity band ---------- */
.home-confidence.section {
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 55%, #f8fafc 100%);
}
.home-confidence .section-title .title {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--home-ink);
}
.home-confidence-lead {
  max-width: 36rem;
  font-size: 1.05rem;
  line-height: 1.65;
}
.home-confidence .card {
  border-radius: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.07);
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}
.home-confidence .card:hover {
  box-shadow: 0 20px 56px rgba(15, 23, 42, 0.1);
  transform: translateY(-4px);
}

/* ---------- Plans page (/plans) ---------- */
.plans-page-lead {
  max-width: 44rem;
  line-height: 1.7;
}
.plans-page-footnote {
  margin-top: 2rem !important;
  padding-top: 0.75rem;
}
.plans-page-grid-section {
  padding-top: 2.75rem;
  padding-bottom: 4rem;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

/* Bootstrap 4 has no gutter utilities — widen card spacing (horizontal + vertical) */
.plans-page-grid-section .plans-page-grid {
  margin-left: -18px;
  margin-right: -18px;
}
.plans-page-grid-section .plans-page-grid__col {
  padding-left: 18px;
  padding-right: 18px;
  margin-bottom: 2.25rem;
}
@media (min-width: 768px) {
  .plans-page-grid-section .plans-page-grid__col {
    margin-bottom: 2.5rem;
  }
}

.plans-page-card-body {
  padding: 1.75rem 1.65rem 1.65rem !important;
}

.plans-page-card-head {
  margin-bottom: 0.25rem;
}
.plans-page-card-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--home-ink);
  line-height: 1.3;
}
.plans-page-card-divider {
  margin: 1rem 0 1.35rem;
  border: 0;
  border-top: 1px solid rgba(15, 23, 42, 0.12);
  opacity: 1;
}

.plans-page-card {
  border-radius: 1rem !important;
  border: 1px solid var(--home-line) !important;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.plans-page-card:hover {
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.1) !important;
  transform: translateY(-3px);
}
.plans-page-meta {
  font-size: 0.95rem;
  line-height: 1.65;
}
.plans-page-meta li + li {
  margin-top: 0.35rem;
}
