/* Homepage presentation adapted from v1/v1. Loaded only by index.php.
   Keep shared styles, dynamic content, forms and application scripts intact. */
.homepage { --accent-text: var(--navy-60); }
.homepage #scrollsmoother-container :is(h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6),
.homepage #scrollsmoother-container p.bold:is(.font-20, .font-24, .font-25, .font-27, .font-30, .font-35, .font-40, .font-50),
.homepage .number-box, .homepage .counter, .homepage .legacy_cunt .font-20 {
  font-family: var(--font-head) !important;
  font-weight: var(--head-weight) !important;
}
.homepage :is(h1, .h1, h2, .h2, .h4) { letter-spacing: -0.01em; }
.homepage p.medium, .homepage .list-arrow.medium li, .homepage .list-arrow.medium p { font-weight: 400; }
.homepage .services-info.box-ani .bg-white:hover img { filter: brightness(0) invert(1); }
.homepage .number-box { color: var(--navy); background-color: var(--cyan-20); }
.homepage .stock-info-sec .sec-text { color: var(--cyan-40); }
.homepage .banner-slide .floting-message .carsds:first-child { min-width: 270px; width: 270px; }
@media (min-width: 769px) {
  .homepage .banner-slide .grid-container {
    background-image: url('../images/Man_1.png');
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: auto 600px;
  }
}
@media (min-width: 769px) and (max-width: 1199px) {
  .homepage .banner-slide .grid-container { background-size: 40% auto; background-position: right 10px bottom; }
}
@media (min-width: 1200px) and (max-width: 1399px) {
  .homepage .banner-slide .grid-container { background-size: auto 540px; background-position: right 150px bottom; }
}
@media (max-width: 768px) {
  .homepage .banner-slide .grid-container { background-image: none; }
}

/* ---------- What's New ---------- */
.sec-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: none; color: var(--navy-60); margin-bottom: 12px; line-height: 1.4; }
.sec-eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--cyan); }
.sec-eyebrow--light { color: var(--cyan); }
.whats-new { position: relative; overflow: hidden; max-width: 1840px; margin: 0 auto; border-radius: 48px 48px 0 0; background: linear-gradient(180deg, #E3F7FC 0%, #EEFAFD 55%, #F3FCFE 100%); box-shadow: inset 0 1px 0 rgba(42, 204, 242, .25); }
.whats-new::before { content: ""; position: absolute; width: 560px; height: 560px; right: -180px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(42, 204, 242, .22) 0%, rgba(42, 204, 242, 0) 70%); pointer-events: none; }
.whats-new::after { content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 120px; height: 4px; border-radius: 0 0 4px 4px; background: var(--cyan); }
.whats-new > .grid-container { position: relative; z-index: 1; }
.wn-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; margin-bottom: 48px; }
.wn-head h2 { margin: 0; line-height: 1.3; text-wrap: balance; }
.wn-lead { font-size: 18px; font-weight: 600; color: var(--navy); line-height: 1.5; margin-bottom: 10px; }
.wn-sub { font-size: 16px; color: #5f5f5f; line-height: 1.7; margin: 0; }
.wn-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.wn-card { background: #fff; border: 1px solid #E6F4F8; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(0, 35, 69, .06); transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; }
.wn-card:hover { transform: translateY(-6px); box-shadow: 0 22px 45px rgba(0, 35, 69, .12); border-color: var(--cyan-40); }
.wn-card__media { aspect-ratio: 11 / 7; overflow: hidden; background: var(--cyan-20); }
.wn-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.wn-card:hover .wn-card__media img { transform: scale(1.04); }
.wn-card__body { padding: 26px 28px 30px; position: relative; flex: 1; }
.wn-num { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; height: 36px; padding: 0 12px; margin-top: -44px; margin-bottom: 16px; position: relative; border-radius: 10px; background: var(--cyan); color: var(--navy); font-family: var(--font-head); font-weight: 800; font-size: 16px; box-shadow: 0 8px 18px rgba(42, 204, 242, .35); }
.wn-title { font-size: 21px; line-height: 1.35; color: var(--navy); margin: 0 0 10px; text-wrap: balance; }
.wn-text { font-size: 15px; line-height: 1.7; color: #4a4a4a; margin: 0; }

/* ---------- Lifetime Free Demat Account ---------- */
.free-demat { padding: 20px 0 100px; background: #F3FCFE; max-width: 1840px; margin: 0 auto; }
.fd-card { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 64px; border-radius: 24px; background: radial-gradient(120% 140% at 0% 0%, var(--navy-80) 0%, var(--navy) 55%, var(--navy-deep) 100%); box-shadow: 0 30px 60px rgba(0, 35, 69, .22); }
.fd-card::after { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(42, 204, 242, .28) 0%, rgba(42, 204, 242, 0) 70%); pointer-events: none; }
.fd-mark { position: absolute; left: -40px; bottom: -70px; width: 320px; opacity: .06; filter: brightness(0) invert(1); pointer-events: none; }
.fd-left, .fd-right { position: relative; z-index: 1; }
.fd-left h2 { margin: 0 0 18px; line-height: 1.3; font-size: 40px; text-wrap: balance; }
.fd-accent { color: var(--cyan); }
.fd-highlight { display: inline-block; margin: 6px 0 0; padding: 12px 18px; border-radius: 12px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 20px; line-height: 1.4; }
.fd-panel { background: #fff; border-radius: 18px; padding: 34px 34px 32px; box-shadow: 0 20px 40px rgba(0, 0, 0, .18); border-top: 4px solid var(--cyan); }
.fd-icon { display: inline-flex; width: 52px; height: 52px; border-radius: 14px; align-items: center; justify-content: center; background: var(--cyan-20); color: var(--navy); margin-bottom: 18px; }
.fd-lead { font-size: 18px; font-weight: 600; line-height: 1.5; color: var(--navy); margin-bottom: 12px; }
.fd-text { font-size: 15px; line-height: 1.75; color: #4a4a4a; margin-bottom: 12px; }
.fd-text strong { color: var(--navy); }
.fd-text--last { margin: 0; padding-top: 14px; border-top: 1px dashed #D5E6EE; color: var(--navy-80); font-weight: 500; }

@media (max-width: 1024px) {
  .whats-new { border-radius: 32px 32px 0 0; }
  .wn-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; }
  .wn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .wn-grid .wn-card:last-child { grid-column: 1 / -1; flex-direction: row; }
  .wn-grid .wn-card:last-child .wn-card__media { flex: 0 0 46%; aspect-ratio: auto; }
  .wn-grid .wn-card:last-child .wn-num { margin-top: 0; }
  .fd-card { grid-template-columns: 1fr; gap: 32px; padding: 48px 40px; }
  .fd-left h2 { font-size: 34px; }
}
@media (max-width: 680px) {
  .whats-new { border-radius: 24px 24px 0 0; }
  .whats-new::before { width: 320px; height: 320px; right: -140px; top: -160px; }
  .wn-grid { grid-template-columns: 1fr; }
  .wn-grid .wn-card:last-child { flex-direction: column; }
  .wn-grid .wn-card:last-child .wn-card__media { aspect-ratio: 11 / 7; }
  .wn-grid .wn-card:last-child .wn-num { margin-top: -44px; }
  .wn-card__body { padding: 22px 22px 26px; }
  .wn-title { font-size: 19px; }
  .free-demat { padding: 10px 0 60px; }
  .fd-card { padding: 34px 22px; border-radius: 18px; gap: 26px; }
  .fd-left h2 { font-size: 27px; }
  .fd-highlight { font-size: 17px; }
  .fd-panel { padding: 26px 22px; }
  .fd-lead { font-size: 16px; }
  .fd-mark { width: 220px; }
}

/* ---------- Home: founder's message (Who We Are) ---------- */
.whwe-sec > .grid-container > .flex-prop { align-items: flex-start; }
.whwe-sec .founder-photo-col { flex: 0 0 44%; max-width: 44%; position: relative; }
.whwe-sec .founder-photo-col::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border-radius: 30px; background: var(--cyan-20); z-index: 0; }
.whwe-sec .founder-photo { position: relative; z-index: 1; width: 100%; height: auto; aspect-ratio: 1087 / 1447; object-fit: cover; object-position: center top; border-radius: 30px; display: block; box-shadow: 0 24px 50px rgba(0, 35, 69, .14); }
.whwe-sec .founder-letter { padding-left: 72px; }
.whwe-sec .founder-letter .sec-eyebrow { margin-bottom: 14px; }
.founder-title { margin: 0 0 26px; line-height: 1.3; text-wrap: balance; }
.founder-p { font-size: 16px; line-height: 1.8; color: #3d3d3d; margin: 0 0 18px; }
.founder-quote { margin: 30px 0 14px; padding: 4px 0 4px 20px; border-left: 3px solid var(--cyan); font-family: var(--font-head); font-weight: 800; font-size: 24px; line-height: 1.35; color: var(--navy); }
.founder-p--close { margin-bottom: 30px; }
.founder-sign { display: inline-block; padding-top: 18px; border-top: 2px solid var(--cyan-40); min-width: 260px; }
.founder-sign__name { margin: 0; font-family: var(--font-head); font-weight: 800; font-size: 20px; line-height: 1.3; color: var(--navy); }
.founder-sign__role { margin: 4px 0 0; font-size: 14px; font-weight: 500; color: #5f5f5f; }
.whwe-sec .founder-photo-col { margin-top: 6px; }
@media (max-width: 1024px) {
  .whwe-sec .founder-letter { padding-left: 52px; }
  .founder-quote { font-size: 21px; }
}
@media (min-width: 1025px) { .founder-title span { display: block; } }
@media (max-width: 900px) {
  .whwe-sec > .grid-container > .flex-prop { flex-wrap: wrap; }
  .whwe-sec .founder-photo-col { flex: 0 0 auto; width: calc(100% - 22px); max-width: 440px; margin: 0 auto; }
  .whwe-sec > .grid-container > .flex-prop > .small-12:not(.founder-photo-col) { width: 100%; }
  .whwe-sec .founder-letter { padding-left: 0; padding-top: 56px; max-width: 720px; margin: 0 auto; }
}
@media (max-width: 480px) {
  .whwe-sec .founder-photo-col { width: calc(100% - 14px); margin-left: 0; }
  .whwe-sec .founder-photo-col::before { inset: 14px -14px -14px 14px; border-radius: 24px; }
  .whwe-sec .founder-photo { border-radius: 24px; }
}
@media (max-width: 768px) {
  .whwe-sec .founder-letter { padding-left: 0; padding-top: 48px; }
  .founder-p { font-size: 15px; }
  .founder-sign { min-width: 0; width: 100%; }
}

/* ---------- Brand tagline: "Your Investments. Simplified." ---------- */
.brand-tagline { margin: 0; font-family: var(--font-head); font-weight: 800; text-transform: uppercase; letter-spacing: .14em; line-height: 1.25; font-size: 15px; }
.brand-tagline__a { color: #fff; }
.brand-tagline__b { color: var(--cyan); }
/* on the chairman's photo: frosted navy plate across the lower edge */
.founder-tagline { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 20px; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 16px 20px; border-radius: 18px; background: rgba(0, 35, 69, .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 14px 30px rgba(0, 0, 0, .22); text-align: center; }
.founder-tagline::before { content: ""; flex: 0 0 28px; height: 2px; border-radius: 2px; background: var(--cyan); }
.founder-tagline::after { content: ""; flex: 0 0 28px; height: 2px; border-radius: 2px; background: var(--cyan); }
/* about intro: compact navy pill under the title */
.about-tagline { display: inline-flex; align-items: center; gap: 12px; margin: 4px 0 26px; padding: 12px 22px; border-radius: 40px; background: var(--navy); box-shadow: 0 10px 24px rgba(0, 35, 69, .16); }
.about-tagline::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(42, 204, 242, .25); }
.about-tagline .brand-tagline { font-size: 14px; }
@media (max-width: 1024px) { .founder-tagline { left: 14px; right: 14px; bottom: 14px; padding: 13px 14px; } .founder-tagline .brand-tagline { font-size: 13px; letter-spacing: .1em; } }
@media (max-width: 480px) {
  .founder-tagline { gap: 8px; } .founder-tagline::before, .founder-tagline::after { flex-basis: 16px; }
  .founder-tagline .brand-tagline { font-size: 12px; letter-spacing: .08em; }
  .about-tagline { padding: 10px 16px; gap: 10px; } .about-tagline .brand-tagline { font-size: 12px; letter-spacing: .1em; }
}

.homepage .whwe-sec .founder-photo-col { padding: 0; min-width: 0; }
.homepage .whwe-sec .founder-photo-wrap { position: relative; }
.homepage .whwe-sec .founder-letter > p:first-child {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--navy-60); margin-bottom: 14px; letter-spacing: .06em;
}
.homepage .whwe-sec .founder-letter > p:first-child::before {
  content: ''; width: 28px; height: 2px; background: var(--cyan);
}
.homepage .whwe-sec .founder-letter > p.medium { line-height: 1.8; font-weight: 400; }
@media (max-width: 900px) {
  .homepage .whwe-sec > .grid-container > .flex-prop { gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .homepage .wn-card, .homepage .wn-card__media img { transition: none; }
  .homepage .wn-card:hover, .homepage .wn-card:hover .wn-card__media img { transform: none; }
}

/* ---------- Our Tech Tools: Mobile / Web tabs ---------- */
.tt-tabs { display: inline-flex; gap: 6px; padding: 6px; margin: 4px 0 22px; background: #fff; border: 1px solid var(--cyan-40); border-radius: 40px; box-shadow: 0 8px 24px rgba(0, 35, 69, .08); }
.tt-tab { font-family: var(--font-primary); font-size: 15px; font-weight: 600; color: var(--navy); padding: 11px 22px; border-radius: 30px; cursor: pointer; transition: background-color .25s ease, color .25s ease; line-height: 1.2; }
.tt-tab:hover { background: var(--cyan-20); }
.tt-tab.active { background: var(--cyan); color: var(--navy); }
.tt-intro[hidden], .tt-panel[hidden] { display: none !important; }
.tt-panel { animation: ttFade .45s ease; }
@keyframes ttFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* web panel: wider centre column for the laptop */
.tt-web-desktop .tt-side { flex: 1 1 0; min-width: 0; }
.tt-web-desktop .tt-web-center { flex: 0 0 44%; max-width: 44%; position: relative; min-height: 400px; }
.web-shot { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; }
.web-shot.active { opacity: 1; visibility: visible; transition-delay: .3s; }
.web-shot img { width: 100%; height: auto; filter: drop-shadow(0 20px 30px rgba(0, 35, 69, .12)); }
.web-shot-m img { width: 100%; height: auto; margin-bottom: 18px; }
/* phone panel: fade out, then in, so the floating cards never overlap mid-switch */
.vcpl-markerts, .aim-wealth, .trading-backoffice { transition: opacity .3s ease, visibility .3s ease; }
.vcpl-markerts.active, .aim-wealth.active, .trading-backoffice.active { transition-delay: .3s; }
.vcpl-tab.hidden-desktop .vc-item.active .number-cont p.black-txt { color: var(--navy-60); }
@media (max-width: 480px) { .tt-tab { padding: 10px 14px; font-size: 14px; } }

/* Chairman's message: collapsible body (height set by main.js to match the photo) */
.founder-body { position: relative; overflow: hidden; transition: max-height .6s ease; }
.founder-body.is-collapsed::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 110px; background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 92%); pointer-events: none; }
.founder-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 12px 22px; border-radius: 30px; background: var(--navy); color: #fff; font-family: var(--font-primary); font-size: 15px; font-weight: 600; line-height: 1; cursor: pointer; transition: background-color .25s ease, color .25s ease; }
.founder-more:hover, .founder-more:focus-visible { background: var(--cyan); color: var(--navy); }
.founder-more svg { transition: transform .3s ease; }
.founder-more[aria-expanded="true"] svg { transform: rotate(180deg); }
.founder-more[hidden] { display: none; }

/* Desktop app targets follow the reference and stay within their own panel. */
.homepage .vcpl-mobsection .number-cont.active p.black-txt { color: var(--navy-60); }
.homepage .vcpl-mobsection .tt-panel[hidden] { display: none !important; }
.homepage .tt-panel .tab-b-target:focus-visible, .homepage .tt-tab:focus-visible {
  outline: 3px solid var(--navy); outline-offset: 4px;
}
.homepage .vcpl-mobsection .intro-narrow { max-width: 800px; margin-left: auto; margin-right: auto; }
.homepage .whwe-sec .sec-eyebrow::before { flex: 0 0 28px; }
@media (prefers-reduced-motion: reduce) {
  .homepage .tt-panel { animation: none; }
  .homepage .web-shot, .homepage .founder-body, .homepage .founder-more svg { transition: none; }
}
