/* DhanElite – Home & About modern trading UI */

/* ---- Hero overlay ---- */
.fina-home #hero .carousel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(10, 22, 40, 0.88) 0%, rgba(29, 91, 153, 0.55) 45%, rgba(46, 136, 13, 0.35) 100%);
  z-index: 1;
}

.fina-home #hero .carousel-item .container {
  z-index: 2;
  position: relative;
}

.fina-home #hero h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.fina-home #hero .btn-get-started {
  background: var(--brand-gradient);
  border: none;
  border-radius: 50px;
  padding: 12px 28px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(46, 136, 13, 0.35);
}

/* ---- Platform intro (home) ---- */
.de-platform-intro {
  padding: 72px 0 56px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.de-intro-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 50px;
  background: rgba(46, 136, 13, 0.1);
  color: var(--accent-color);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.de-intro-badge i {
  color: var(--highlight-color);
}

.de-platform-intro h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--heading-color);
  margin-bottom: 12px;
}

.de-intro-lead {
  font-size: 1.05rem;
  color: #5a6474;
  max-width: 640px;
  line-height: 1.7;
}

.de-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.de-bento-card {
  grid-column: span 4;
  background: #fff;
  border: 1px solid rgba(29, 91, 153, 0.1);
  border-radius: 20px;
  padding: 28px 24px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.de-bento-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--brand-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.de-bento-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(29, 91, 153, 0.12);
  border-color: rgba(46, 136, 13, 0.25);
}

.de-bento-card:hover::before {
  opacity: 1;
}

.de-bento-card.de-bento-wide {
  grid-column: span 8;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, rgba(29, 91, 153, 0.06) 0%, rgba(46, 136, 13, 0.08) 100%);
}

.de-bento-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.35rem;
  margin-bottom: 16px;
}

.de-bento-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1a2b3c;
}

.de-bento-card p {
  font-size: 0.95rem;
  color: #5a6474;
  margin: 0;
  line-height: 1.6;
}

.de-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.de-tag {
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  background: #fff;
  border: 1px solid rgba(29, 91, 153, 0.15);
  color: var(--accent-secondary);
}

/* ---- Glass stats ---- */
.de-stats-glass {
  padding: 48px 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1a4d2e 100%);
}

.de-stats-glass .stats-item {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 24px 20px;
  color: #fff;
  transition: transform 0.3s ease, background 0.3s ease;
}

.de-stats-glass .stats-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.12);
}

.de-stats-glass .stats-item i {
  color: var(--highlight-color);
}

.de-stats-glass .stats-item span {
  color: #fff;
  font-weight: 800;
}

.de-stats-glass .stats-item p {
  color: rgba(255, 255, 255, 0.75);
}

/* ---- Market cards ---- */
.de-markets-section {
  padding: 72px 0;
  background: #fff;
}

.de-market-card {
  height: 100%;
  padding: 28px 24px;
  border-radius: 20px;
  border: 1px solid #e8eef4;
  background: #fff;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
}

.de-market-card:hover {
  transform: translateY(-8px);
  border-color: transparent;
  box-shadow: 0 24px 48px rgba(29, 91, 153, 0.14);
}

.de-market-card .de-market-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.de-market-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--accent-secondary);
}

.de-market-card p {
  font-size: 0.92rem;
  color: #5a6474;
  margin: 0;
  line-height: 1.65;
}

/* ---- Testimonials ---- */
.de-testimonials-section {
  padding: 72px 0;
  background: linear-gradient(180deg, #f0f4f8 0%, #fff 100%);
}

.de-testimonial-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(29, 91, 153, 0.08);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.de-testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(29, 91, 153, 0.12);
}

.de-testimonial-stars {
  color: var(--highlight-color);
  font-size: 14px;
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.de-testimonial-quote {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #444;
  font-style: italic;
  margin: 0 0 20px;
  border: none;
}

.de-testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid #eef2f6;
}

.de-testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.de-testimonial-author strong {
  display: block;
  font-size: 15px;
  color: #1a1a1a;
}

.de-testimonial-author span {
  font-size: 13px;
  color: #666;
}

/* ---- Modern FAQ ---- */
.de-faq-modern .faq-item {
  border-radius: 14px;
  margin-bottom: 12px;
  border: 1px solid rgba(29, 91, 153, 0.1);
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.de-faq-modern .faq-item:hover {
  border-color: rgba(46, 136, 13, 0.3);
  box-shadow: 0 8px 24px rgba(29, 91, 153, 0.08);
}

.de-faq-modern .faq-item h3 {
  font-size: 1rem;
  font-weight: 600;
}

/* ---- About page ---- */
.de-about-hero {
  padding: 48px 0 56px;
  background: linear-gradient(135deg, #0f172a 0%, #1D5B99 55%, #2E880D 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.de-about-hero::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(250, 178, 28, 0.12);
  top: -120px;
  right: -80px;
  pointer-events: none;
}

.de-about-hero .breadcrumb-custom .breadcrumb-item a,
.de-about-hero .breadcrumb-custom .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.85);
}

.de-about-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin: 16px 0 12px;
  letter-spacing: -0.03em;
}

.de-about-hero .de-hero-sub {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 560px;
  line-height: 1.7;
}

.de-mission-panel {
  margin-top: -40px;
  position: relative;
  z-index: 2;
  padding-bottom: 64px;
}

.de-mission-card {
  background: #fff;
  border-radius: 24px;
  padding: 40px 36px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
  border: 1px solid rgba(29, 91, 153, 0.08);
}

.de-mission-card h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-secondary);
  margin-bottom: 16px;
}

.de-mission-card > p {
  color: #5a6474;
  line-height: 1.75;
  font-size: 1.05rem;
}

.de-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.de-chip {
  text-align: center;
  padding: 16px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(46, 136, 13, 0.08) 0%, rgba(29, 91, 153, 0.08) 100%);
  border: 1px solid rgba(29, 91, 153, 0.1);
  transition: transform 0.3s ease;
}

.de-chip:hover {
  transform: scale(1.03);
}

.de-chip strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-color);
}

.de-chip span {
  font-size: 12px;
  color: #5a6474;
  font-weight: 500;
}

.de-security-section {
  padding: 56px 0;
  background: #f8fafc;
}

.de-section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-color);
  margin-bottom: 8px;
}

.de-security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.de-security-item {
  background: #fff;
  border-radius: 18px;
  padding: 26px 22px;
  border: 1px solid #e8eef4;
  transition: all 0.35s ease;
}

.de-security-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(29, 91, 153, 0.1);
  border-color: rgba(46, 136, 13, 0.25);
}

.de-security-item i {
  font-size: 1.75rem;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
  display: inline-block;
}

.de-security-item h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1a2b3c;
}

.de-security-item p {
  font-size: 0.9rem;
  color: #5a6474;
  margin: 0;
  line-height: 1.6;
}

.de-pillars-section {
  padding: 64px 0;
}

.de-pillar-card {
  height: 100%;
  padding: 32px 26px;
  border-radius: 20px;
  background: linear-gradient(160deg, #fff 0%, #f8fafc 100%);
  border: 1px solid #e8eef4;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.de-pillar-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 44px rgba(29, 91, 153, 0.12);
}

.de-pillar-num {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

.de-pillar-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.de-pillar-card p {
  font-size: 0.92rem;
  color: #5a6474;
  margin: 0;
  line-height: 1.65;
}

.de-about-cta-section {
  padding: 0 15px;
}

.de-about-cta-section .container {
  margin-left: auto;
  margin-right: auto;
}

.de-about-cta-section .de-about-cta {
  width: 100%;
  max-width: 100%;
}

.de-about-cta {
  margin: 0;
  padding: 48px 40px;
  border-radius: 24px;
  background: var(--brand-gradient);
  color: #fff;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 24px;
  box-shadow: 0 20px 50px rgba(46, 136, 13, 0.25);
}

.de-about-cta h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 800;
  margin: 0 0 8px;
  color: #fff;
  width: 100%;
}

.de-about-cta p {
  margin: 0;
  opacity: 0.92;
  max-width: 560px;
  width: 100%;
}

.de-about-cta .btn-de-cta {
  background: #fff;
  color: var(--accent-secondary);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  white-space: nowrap;
}

.de-about-cta .btn-de-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  color: var(--accent-color);
}

@media (max-width: 991px) {
  .de-bento-card,
  .de-bento-card.de-bento-wide {
    grid-column: span 12;
  }
}

@media (max-width: 767px) {
  .de-platform-intro,
  .de-markets-section,
  .de-testimonials-section {
    padding: 48px 0;
  }

  .de-mission-card {
    padding: 28px 22px;
  }

  .de-about-cta {
    padding: 32px 24px;
    text-align: center;
    justify-content: center;
  }
}
