/* --- Hero Section --- */
.hero__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  padding: 5rem 8%;
  background: linear-gradient(135deg, #146b5b 5%, #062032 90%);
  color: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

/* Subtle moving light streak */
.hero__container::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.15), rgba(255,255,255,0));
  transform: skewX(-20deg);
  animation: heroLight 6s linear infinite;
}
@keyframes heroLight {
  0% { left: -100%; }
  50% { left: 120%; }
  100% { left: 120%; }
}

/* --- Left Content --- */
.hero__copy {
  flex: 1;
  z-index: 1;
}

.hero__copy .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #c6efe3;
  background: rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 6px 12px;
  backdrop-filter: blur(4px);
  margin-bottom: 1.5rem;
}

.hero__copy h1 {
  font-size: 2.5rem;
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #c6efe3, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__copy .lead {
  font-size: 1rem;
  color: #dbe9f6;
  margin-bottom: 2rem;
  max-width: 550px;
}

.hero__cta .btn.primary {
  background: linear-gradient(to right, #072E33, #083c71);
  color: #fff;
  padding: 0.9rem 1.8rem;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 12px rgba(76,175,80,0.3);
}
.hero__cta .btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(76,175,80,0.5);
}

/* --- Right Visual --- */
.hero__visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mock {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 1.8rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  transition: transform 0.4s ease;
}
.mock:hover {
  transform: translateY(-6px);
}

.mock__title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}
.mock__title .dot {
  width: 10px;
  height: 10px;
  background: #4CAF50;
  border-radius: 50%;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  color: #eaf4fb;
  font-size: 0.95rem;
}
.check svg {
  flex-shrink: 0;
  color: #4CAF50;
  margin-top: 4px;
}
.check strong {
  color: #fff;
  font-weight: 600;
}
.note {
  font-size: 0.85rem;
  color: #b9c9e3;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero__container {
    flex-direction: column;
    text-align: center;
    padding: 4rem 5%;
  }
  .hero__visual {
    margin-top: 2rem;
  }
  .hero__copy .lead {
    margin: 0 auto 2rem;
  }
}


.homepage-banner {
  width: 100%;
  color: #fff;
  /* Softer gradient that harmonizes with #083c71 brand */
  background: linear-gradient(135deg, #0e3a5f 0%, #145e6a 60%, #1fab89 120%);
  padding: 48px 8% 44px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 420px; /* slimmer than hero */
  position: relative;
  box-shadow: 0 10px 28px rgba(0,0,0,0.22);
  overflow: hidden;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
}

/* Subtle top divider wave to separate from hero */
.homepage-banner::before {
  content: "";
  position: absolute;
  top: -22px;
  left: 0;
  right: 0;
  height: 48px;
  background: radial-gradient(120% 60% at 50% 0%, rgba(255,255,255,0.18), rgba(255,255,255,0) 60%);
  pointer-events: none;
  z-index: 0;
}

/* Gentle moving sheen for depth */
.homepage-banner::after {
  content: "";
  position: absolute;
  inset: -20% -40%;
  background: radial-gradient(50% 40% at 80% 10%, rgba(255,255,255,0.08), rgba(255,255,255,0));
  transform: rotate(-8deg);
  animation: bannerSheen 9s ease-in-out infinite;
  z-index: 0;
}
@keyframes bannerSheen {
  0%, 100% { transform: translateX(-2%) rotate(-8deg); opacity: 0.9; }
  50%      { transform: translateX(2%)  rotate(-8deg); opacity: 0.6; }
}

/* Content */
.banner-content {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
}

/* Headline: slimmer than hero, with gentle glow */
.banner-content h2 {
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 10px;
  color: #eaf6ff;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 0 rgba(0,0,0,0.15);
}
.banner-content h2 span {
  font-size: 1.25rem; /* 20px default scale */
  opacity: 0.95;
}

/* Lead text: keep your font pairing but make it crisper */
.banner-content p {
  font-size: 1.05rem;
  margin-bottom: 18px;
  max-width: 760px;
  margin-inline: auto;
  font-style: italic;
  letter-spacing: 0.3px; /* reduce for readability */
  color: #d9ecf9;
  opacity: 0.95;
}

#stockProfileInput {
  width: 100%;
  padding: 30px 25px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1); /* translucent on dark bg */
  color: #fff; /* white text */
  font-size: 1rem;
  outline: none;
  transition: 0.3s;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#stockProfileInput::placeholder {
  color: rgba(255,255,255,0.6); /* faded placeholder */
}

#stockProfileInput:focus {
  border-color: #1fab89; /* green highlight */
  background: rgba(255,255,255,0.15);
  box-shadow: 0 0 8px rgba(31,171,137,0.6);
}

@media (max-width: 768px) {
  .homepage-banner {
    max-height: 500px;
  }
  .banner-content h1,
  .banner-content h1 span {
    font-size: 22px;
  }

  .banner-content p {
    font-size: 16px;
  }
}


.returns-box-wrapper {
  width: 100%; 
  background-color: #ffffff;
  padding: 40px 0 50px; 
  position: relative;
  z-index: 2;
  border-left: 5px solid #0F7075;
  border-right: 5px solid #0F969C;
  border-bottom: 5px solid #072E33;
  border-top: none;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
  margin-top: -10px;
  border-radius: 15px; 
}

.returns-search-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  border-radius: 15px; /* apply rounded look to the inner box */
  background: #fff;
}

.returns-wrapper {
  width: 100%;
  margin: 0 auto;
  padding: 40px 24px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.035);
  animation: fadeIn 0.6s ease;
}

.returns-wrapper h2 {
  font-size: 28px;
  color: #072E33;
  text-align: center;
  font-weight: 700;
  margin-bottom: 28px;
}

.returns-wrapper p {
    text-align: center; 
    font-size: 16px; 
    margin-bottom: 16px;
}

.returns-search-wrapper {
  width: 50%;
  margin: 0 auto 30px;
  position: relative;
}

.returns-search-wrapper .returns-search-input {
  width: 100%;
  font-size: 15px;
  padding: 12px 16px;
  border: none !important;
  border-bottom: 2px solid #0F7075 !important;
  background: #fff !important;
  outline: none !important;
  color: #072E33 !important;
  transition: border-color 0.3s ease;
  border-radius: 0 0 12px 12px !important;
}

.returns-search-wrapper .returns-search-input::placeholder {
  color: #666 !important;
}

.returns-search-wrapper .returns-search-input:focus {
  border-bottom-color: #0F969C !important;
}

.returns-search-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 999;
  background: linear-gradient(135deg, #072E33 0%, #0F7075 50%, #0F969C 100%);
  border: 2px solid #0F7075;
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  list-style: none;
  padding: 0;
  margin: 0;
  display: none;
}
.returns-search-item a {
  display: block;
  padding: 12px 18px;
  font-size: 16px;
  color: #fff;
  text-decoration: none !important;
  border-bottom: 1px solid #f1f1f1;
  transition: background 0.2s ease;
}

.returns-search-item a:hover,
.returns-search-item a.active {
  background: #f1fafa;
  color: #0F969C;
}

.returns-no-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: #fff3f3;
  color: #b33636;
  padding: 12px 18px;
  font-size: 13px;
  border: 1px solid #ffd5d5;
  border-radius: 8px;
  font-style: italic;
  text-align: center;
}

/* Main wrapper */
.stocksearch-box-wrapper {
  width: 700px;
  margin: 0 auto;
  justify-content: center;
}

/* Dropdown list */
.stocksearch-dropdown {
  top: calc(100% + 5px); /* add small gap below input */
  left: 0;
  right: 0;
  z-index: 999;
  background: #f9f9f9;
  border: 1px solid #444;
  border-radius: 0 0 15px 15px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  list-style: none;
  padding: 0;
  margin: 0;
  display: none;
  max-height: 300px;          /* limit height */
  overflow-y: auto;           /* scroll if too many results */
  scrollbar-width: thin;      /* Firefox */
  scrollbar-color: #0F7075 #001e2b;
  text-align: left;
}

.stocksearch-dropdown li {
  border-bottom: 1px solid #0F7075;
}

.stocksearch-dropdown li:last-child {
  border-bottom: none;
}

.stocksearch-dropdown li a {
  display: block;
  padding: 12px 20px;
  font-size: 15px;
  color: #072E33;
  text-decoration: none !important;
  transition: background 0.2s ease, padding-left 0.2s ease;
}

.stocksearch-dropdown li a:hover,
.stocksearch-dropdown li a.active {
  background: #1FAB89;
  color: #fff;
  padding-left: 25px; /* little slide effect */
}

/* No results */
.stocksearch-no-results {
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  background: #2a1a1a;
  color: #ff8a8a;
  padding: 14px 20px;
  font-size: 14px;
  border: 1px solid #ffb3b3;
  border-radius: 10px;
  font-style: italic;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}


.banner-chart {
  max-height: 200px;
  margin: 50px auto 0;
}

.returns-label {
  font-size: 16px;
  color: #0F7075;
  font-weight: 600;
  margin-bottom: 14px;
  text-align: center;
  border-top: 1px solid #eaeaea;
  padding-top: 24px;
}

.returns-random-list {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	padding: 0;
	list-style: none;
	margin: 0;
}

.returns-random-item a {
	display: block;
	padding: 12px 14px;
	border-left: 3px solid #0f7075;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	color: #072e33;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: .2s;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .03);
  max-width: 300px;
}

.returns-random-item a:hover {
	background: #eafcfc;
	color: #0f969c;
	border-left-color: #0f969c
}

/* 📱 RESPONSIVE */
@media (max-width: 768px) {
  .returns-search-wrapper,
  .stocksearch-box-wrapper,
  .returns-search-input,
  .stocksearch-input,
  .returns-search-list,
  .stocksearch-dropdown,
  .returns-no-results,
  .stocksearch-no-results {
    width: 100%;
  }

  .returns-search-input,
  .stocksearch-input {
    margin-bottom: 10px;
  }

  .returns-search-inner {
    padding: 0;
  }

  .returns-random-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .banner-chart {
    max-width: 100%;
  }

  .returns-random-item a {
    max-width: 150px;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.market-card-link {
  text-decoration: none;
  color: inherit; 
  display: block;
}

.market-card {
  text-align: center;
  background-color: #f6f6f6;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.market-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.market-card .icon {
  font-size: 30px;
  margin-bottom: 10px;
}

.market-card .text {
  font-size: 18px;
  line-height: 1.3;
  color: #0C7075; 
  font-weight: 600;
  text-decoration: none !important;
}

@media (max-width: 768px) {
  .market-card {
    padding: 14px;
    border-radius: 10px;
  }

  .market-card .icon {
    font-size: 22px;
    margin-bottom: 8px;
  }

  .market-card .text {
    font-size: 15px;
  }
}

.returns-calc-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 40px 0 0;
  padding: 10px 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.returns-calc-section p {
  font-size: 1rem;
  color: #fff; 
  margin: 0;
  flex: 1;
  text-align: left;
}

.returns-calc-section a {
  display: inline-block;
  padding: 8px 16px;
  color: #e8bd2e;
  font-weight: 600;
  text-decoration: underline;
  border-radius: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.returns-calc-section a:hover {
  background: #e68900;
  color: #fff;
  transform: translateY(-2px);
}

/* Mobile */
@media (max-width: 768px) {
  .returns-calc-section {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .returns-calc-section p {
    text-align: center;
  }
}

.products-section {
  background: #fff;
  padding: 60px 30px;
  text-align: center;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
  margin-top: 40px;
  align-items: stretch;
}

.product-card {
  background: #fff;
  border-radius: 12px;
  padding: 25px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.product-card .icon {
  font-size: 2rem;
  color: #1fab89; /* matches your gradient start */
  display: block;
  margin-bottom: 12px;
}

.product-card h3 {
  font-size: 1.2rem;
  color: #072E33;
  margin-bottom: 8px;
}

.product-card p {
  font-size: 0.95rem;
  color: #555;
}

@media (max-width: 480px) {
  .products-section {
    padding: 30px 15px;
  }

  .products-grid {
    grid-template-columns: 1fr; /* stack cards */
    gap: 16px;
    margin-top: 25px;
  }

  .product-card {
    padding: 18px 14px;
  }

  .product-card h3 {
    font-size: 1rem;
  }

  .product-card p {
    font-size: 0.85rem;
  }
}

.connect-section {
  background: linear-gradient(135deg, #0f7075, #0f969c);
  color: #fff;
  padding: 80px 20px;
  width: 100vw;
  text-align: center;
}

.connect-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.connect-heading {
  font-size: 36px;
  margin-bottom: 10px;
  color: #fff;
}

.connect-subtext {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto 30px;
  opacity: 0.9;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.social-icon {
  font-size: 22px;
  color: #fff;
  background: rgba(255,255,255,0.15);
  padding: 12px 16px;
  border-radius: 50px;
  transition: background 0.3s, transform 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-icon:hover {
  background: #f9f9f9;
  color: #0f7075;
  transform: scale(1.1);
}