/* =====================================================
   ROOT VARIABLES
===================================================== */

:root {

    /* Brand */
    --primary: #243E63;
    --primary-dark: #1b2f4a;
    --accent: #C79A2B;
    --accent-light: #e0b84d;

    /* Text */
    --text-dark: #0f172a;
    --text-muted: #9ca3af;

    /* Background */
    --bg-light: #F5F7FA;
    --bg-white: #ffffff;

    /* Border */
    --border-color: #e5e7eb;

    /* Typography */
    --text-hero: clamp(1.9rem, 4vw, 2.8rem);
    --text-section: clamp(1.6rem, 3vw, 2.2rem);
    --text-body: 1rem;
    --text-body-lg: 1.125rem;

    --leading-tight: 1.2;
    --leading-normal: 1.6;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    /* Shadow */
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 25px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);

}


/* =====================================================
   BASE
===================================================== */

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
                 "Noto Sans", "Liberation Sans", Arial, sans-serif,
                 "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";

    background: var(--bg-light);
    color: var(--text-dark);

    font-size: var(--text-body);
    line-height: var(--leading-normal);

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Wrapper for main content: clips horizontal overflow without breaking sticky nav */
.site-content-wrapper {
    overflow-x: hidden;
    max-width: 100%;
}

/* =====================================================
   TYPOGRAPHY
===================================================== */

h1 {
    font-size: var(--text-hero);
    font-weight: 700;
    line-height: var(--leading-tight);
}

h2 {
    font-size: var(--text-section);
    font-weight: 600;
}

h3 { font-weight: 600; }
h4, h5 { font-weight: 600; }

p {
    /* color: var(--text-muted); */
    margin-bottom: 0.75rem;
}

.section-heading {
    font-size: var(--text-section);
    font-weight: 600;

    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-heading::after {
    content: "";
    width: 60px;
    height: 3px;
    background: var(--accent);
    position: absolute;
    left: 0;
    bottom: 0;
    border-radius: 10px;
}

/* Center aligned headings */
.text-center .section-heading::after {
    left: 50%;
    transform: translateX(-50%);
}

.text-lead {
    font-size: var(--text-body-lg);
}


/* =====================================================
   SECTIONS
===================================================== */

.section-padding {
    padding: 90px 0;
}

.section-sm {
    padding: 60px 0;
}


/* =====================================================
   HERO
===================================================== */

.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, #0d1b2a 100%);
    padding: 140px 0;
    position: relative;
    overflow: hidden;
    color: white;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../images/hero-finance-bg.svg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.35;
    transform: scale(1.03);
    z-index: 0;
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 500px at 15% 25%, rgba(199,154,43,0.22), transparent 55%),
        radial-gradient(700px 420px at 85% 15%, rgba(56,189,248,0.16), transparent 55%),
        linear-gradient(135deg, rgba(13,27,42,0.25) 0%, rgba(13,27,42,0.55) 60%, rgba(13,27,42,0.75) 100%);
    z-index: 1;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.7) 1px, transparent 1px),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.7) 1px, transparent 1px),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.06), rgba(255,255,255,0.06) 1px, transparent 1px, transparent 26px),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.04) 1px, transparent 1px, transparent 26px);
    background-size: 70px 70px, 70px 70px, auto, auto;
    z-index: 2;
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 3;
}

.hero-title {
    text-shadow: 0 12px 32px rgba(0,0,0,0.35);
    letter-spacing: -0.02em;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.85rem;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-subtitle {
    opacity: 0.9;
    max-width: 560px;
    margin: auto;
}

.hero-section .text-muted {
    color: rgba(255,255,255,0.78) !important;
}

.btn-hero-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.6);
}

.btn-hero-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
}

.hero-divider {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100%;
    z-index: 3;
    pointer-events: none;
}

.hero-divider svg {
    display: block;
    width: 100%;
    height: 110px;
}

.hero-divider path {
    fill: var(--bg-light);
}

/* Hero right-side illustration */
.hero-visual {
    position: relative;
    max-width: 560px;
}

.hero-visual-card {
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 30px 80px rgba(0,0,0,0.25);
}

.hero-visual-title {
    font-weight: 700;
    letter-spacing: -0.01em;
}

.hero-visual-subtitle {
    margin-top: 2px;
}

.hero-visual-pill {
    font-size: 0.75rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
}

.hero-mini-chart {
    width: 100%;
    height: auto;
    border-radius: 14px;
    background: rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.12);
    overflow: hidden;
}

.hero-mini-grid path {
    stroke: rgba(255,255,255,0.20);
    stroke-width: 1;
    fill: none;
}

.hero-mini-candles line {
    stroke: rgba(255,255,255,0.40);
    stroke-width: 2;
}

.hero-mini-candles rect {
    fill: rgba(255,255,255,0.22);
    stroke: rgba(255,255,255,0.28);
    stroke-width: 1;
}

.hero-mini-line {
    filter: drop-shadow(0 12px 22px rgba(0,0,0,0.35));
    stroke-dasharray: 520;
    stroke-dashoffset: 520;
    animation: heroChartDraw 1.8s ease forwards;
}

.hero-mini-area {
    opacity: 0;
    animation: heroAreaFade 1.2s ease 0.6s forwards;
}

.hero-mini-dots circle {
    opacity: 0;
    transform-origin: center;
    animation: heroDotPop 0.7s ease forwards;
}
.hero-mini-dots circle:nth-child(1) { animation-delay: 0.9s; }
.hero-mini-dots circle:nth-child(2) { animation-delay: 1.05s; }
.hero-mini-dots circle:nth-child(3) { animation-delay: 1.2s; }
.hero-mini-dots circle:nth-child(4) { animation-delay: 1.35s; }

.hero-metric {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
}

.hero-metric-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.78);
}

.hero-metric-value {
    font-weight: 700;
    letter-spacing: -0.01em;
}

.hero-float {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 999px;
    filter: blur(2px);
    opacity: 0.7;
    pointer-events: none;
    animation: heroFloat 5.5s ease-in-out infinite;
}

.hero-float-1 {
    right: -20px;
    top: -20px;
    background: radial-gradient(circle at 30% 30%, rgba(199,154,43,0.45), transparent 62%);
}

.hero-float-2 {
    left: -22px;
    bottom: -26px;
    width: 170px;
    height: 170px;
    animation-duration: 7.25s;
    background: radial-gradient(circle at 30% 30%, rgba(56,189,248,0.32), transparent 64%);
}

@media (max-width: 991px) {
    .hero-float-1 { right: 0; }
    .hero-float-2 { left: 0; }
}

@keyframes heroChartDraw {
    to { stroke-dashoffset: 0; }
}

@keyframes heroAreaFade {
    to { opacity: 1; }
}

@keyframes heroDotPop {
    0% { opacity: 0; transform: scale(0.7); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes heroFloat {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, 12px, 0); }
}


/* =====================================================
   CARDS
===================================================== */

.card {
    border-radius: var(--radius-md);
    border: none;
    box-shadow: var(--shadow-sm);
    transition: 0.35s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.glass-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 20px;
}


/* =====================================================
   SERVICE
===================================================== */

.service-card {
    height: 390px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.service-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.service-card-media {
    position: relative;
    height: 50%;
    background: linear-gradient(135deg, rgba(36,62,99,0.9), rgba(13,27,42,0.9));
    overflow: hidden;
}

.service-card-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: translateZ(0) scale(1.04);
    transition: transform 0.55s ease;
}

.service-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13,27,42,0.10) 0%, rgba(13,27,42,0.62) 100%);
    z-index: 1;
}

.service-card:hover .service-card-media img {
    transform: scale(1.12);
}

.service-card-badge {
    position: absolute;
    left: 14px;
    top: 14px;
    z-index: 2;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255,255,255,0.14);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.20);
    font-size: 22px;
}

.service-card-body {
    height: 50%;
    padding: 18px 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-card-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-dark);
}

.service-card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
    flex: 1;
}

.service-card-cta {
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-card:hover .service-card-cta {
    color: var(--primary-dark);
    gap: 10px;
}

@media (max-width: 768px) {
    .service-card { height: 360px; }
}

/* Service details page */
.service-detail-hero {
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, #0d1b2a 100%);
    overflow: hidden;
}

.unlisted-filters {
    background: linear-gradient(135deg, rgba(36,62,99,0.03), rgba(199,154,43,0.03));
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.unlisted-pill {
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.7);
    background: #fff;
    color: var(--text-dark);
    padding-inline: 14px;
    font-size: 0.84rem;
}

.unlisted-pill.active {
    background: rgba(199,154,43,0.1);
    border-color: var(--accent);
    color: var(--primary);
}

.unlisted-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 18px 18px 16px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.unlisted-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(148,163,184,0.8);
}

.unlisted-title {
    font-size: 0.98rem;
    font-weight: 600;
}

.unlisted-status {
    font-size: 0.72rem;
    padding: 4px 9px;
    border-radius: 999px;
}

.unlisted-status-available {
    background: rgba(22,163,74,0.12);
    color: #15803d;
}

.unlisted-status-out-of-stock {
    background: rgba(148,163,184,0.14);
    color: #4b5563;
}

.unlisted-status-coming-soon {
    background: rgba(56,189,248,0.12);
    color: #0369a1;
}
.unlisted-status-others {
    background: rgba(148,163,184,0.14);
    color: #64748b;
}

/* IPO list */
.ipo-filters {
    background: linear-gradient(135deg, rgba(36,62,99,0.03), rgba(199,154,43,0.03));
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.ipo-pill {
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.7);
    background: #fff;
    color: var(--text-dark);
    padding-inline: 14px;
    font-size: 0.84rem;
}

.ipo-pill.active {
    background: rgba(199,154,43,0.1);
    border-color: var(--accent);
    color: var(--primary);
}

.ipo-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 18px 18px 16px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ipo-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(148,163,184,0.8);
}

.ipo-title {
    font-size: 1.02rem;
    font-weight: 600;
}

.ipo-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(36,62,99,0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
}

.ipo-status {
    font-size: 0.72rem;
    padding: 4px 9px;
    border-radius: 999px;
}

.ipo-status-live {
    background: rgba(22,163,74,0.12);
    color: #15803d;
}

.ipo-status-upcoming {
    background: rgba(56,189,248,0.12);
    color: #0369a1;
}

.ipo-status-listed {
    background: rgba(148,163,184,0.14);
    color: #4b5563;
}

.ipo-meta,
.ipo-dates {
    display: grid;
    gap: 2px;
}

/* Make IPO detail text slightly darker for readability */
.ipo-card .small.text-muted {
    color: #6b7280 !important; /* tailwind slate-500-ish */
}


.service-detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../images/hero-finance-bg.svg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.22;
    transform: scale(1.03);
    z-index: 0;
}

.service-detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 500px at 12% 28%, rgba(199,154,43,0.18), transparent 55%),
        radial-gradient(700px 420px at 88% 18%, rgba(56,189,248,0.14), transparent 55%),
        linear-gradient(135deg, rgba(13,27,42,0.35) 0%, rgba(13,27,42,0.60) 55%, rgba(13,27,42,0.80) 100%);
    z-index: 1;
}

.service-detail-hero .container {
    position: relative;
    z-index: 2;
}

.service-detail-lead {
    max-width: 56ch;
}

.service-detail-card {
    border: 1px solid rgba(255,255,255,0.18);
}

.service-detail-list {
    padding-left: 1.1rem;
}

.service-detail-list li {
    margin-bottom: 0.35rem;
}

.service-detail-ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.service-detail-ul li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}
.service-detail-ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* Mobile app showcase */
.app-showcase {
    background: linear-gradient(180deg, #ffffff 0%, rgba(245,247,250,0.75) 100%);
    overflow: hidden;
}

.app-badge {
    background: rgba(199,154,43,0.14);
    border: 1px solid rgba(199,154,43,0.25);
    backdrop-filter: blur(8px);
}

.app-feature {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 14px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.app-feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(36,62,99,0.08);
    color: var(--primary);
    font-size: 20px;
    flex: 0 0 auto;
}

.app-feature-title {
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.app-feature-desc {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.35;
}

.app-showcase-visual {
    position: relative;
    max-width: 520px;
}

.app-showcase-glow {
    position: absolute;
    inset: -20px;
    border-radius: 32px;
    background:
        radial-gradient(280px 220px at 30% 20%, rgba(199,154,43,0.26), transparent 60%),
        radial-gradient(260px 220px at 80% 30%, rgba(56,189,248,0.18), transparent 60%),
        radial-gradient(340px 280px at 50% 85%, rgba(36,62,99,0.14), transparent 65%);
    filter: blur(4px);
    z-index: 0;
}

.app-showcase-img {
    position: relative;
    z-index: 1;
    max-height: 560px;
    filter: drop-shadow(0 40px 70px rgba(15,23,42,0.18));
}

/* Make outline button readable on light app section */
.app-showcase .btn-hero-outline {
    color: var(--primary) !important;
    border-color: rgba(36,62,99,0.55);
    background: rgba(36,62,99,0.04);
}

.app-showcase .btn-hero-outline:hover {
    color: #fff !important;
    border-color: var(--primary);
    background: var(--primary);
}

.app-showcase .btn-hero-outline.disabled,
.app-showcase .btn-hero-outline:disabled {
    opacity: 0.6;
    pointer-events: none;
}

@media (max-width: 576px) {
    .app-showcase-img { max-height: 460px; }
    .app-showcase-glow { inset: -10px; }
}


/* =====================================================
   BUTTONS
===================================================== */

.btn {
    border-radius: var(--radius-sm);
    padding: 10px 18px;
    font-weight: 500;
}

.btn-gold {
    background: linear-gradient(45deg, var(--accent), var(--accent-light));
    color: white;
    border: none;
    transition: 0.3s ease;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(199,154,43,0.35);
    color: #fff;
}

.btn-primary-custom {
    background: var(--primary);
    color: white;
    border: none;
}

.btn-primary-custom:hover {
    background: var(--primary-dark);
    color: white;
}


/* =====================================================
   FORMS
===================================================== */

.form-control,
.form-select {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    padding: 10px 14px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: none;
}


/* =====================================================
   ABOUT
===================================================== */

.about-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}


/* =====================================================
   FOOTER
===================================================== */

.footer-section {
    background: #0b1220;
    color: #cbd5e1;
    padding: 70px 0 28px;
    position: relative;
    overflow: hidden;
}

.footer-section::before {
    content: "";
    position: absolute;
    inset: -2px;
    background:
        radial-gradient(700px 420px at 18% 18%, rgba(199,154,43,0.14), transparent 60%),
        radial-gradient(640px 400px at 86% 26%, rgba(56,189,248,0.12), transparent 60%),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.05), rgba(255,255,255,0.05) 1px, transparent 1px, transparent 30px),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0.03) 1px, transparent 1px, transparent 30px);
    opacity: 0.85;
    pointer-events: none;
}

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

.footer-text {
    color: rgba(203,213,225,0.85);
    max-width: 44ch;
}

.footer-title {
    color: #fff;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.footer-links {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.footer-links a {
    color: rgba(203,213,225,0.86);
    text-decoration: none;
    transition: 0.25s ease;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(2px);
}

.footer-muted {
    color: rgba(203,213,225,0.70);
}

.footer-credit {
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    font-weight: 600;
}

.footer-credit:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-divider {
    border-color: rgba(255,255,255,0.10);
}

.footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    transition: 0.25s ease;
    text-decoration: none;
}

.footer-social-link svg {
    width: 20px;
    height: 20px;
    fill: rgba(255,255,255,0.86);
}

.footer-social-link:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.18);
}

.footer-app {
    display: grid;
    gap: 12px;
}

.store-badge {
    display: inline-block;
    padding: 0;
    background: transparent;
    border: none;
    text-decoration: none;
}

.store-badge:hover {
    background: transparent;
}

.store-badge img {
    display: block;
    width: 100%;
    max-width: 210px;
    height: auto;
}

.store-badge.disabled {
    opacity: 0.55;
    pointer-events: none;
}


/* =====================================================
   STATS
===================================================== */

.stat-number {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Why choose section */
.why-choose {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, #0d1b2a 100%);
    overflow: hidden;
}

.why-choose-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 520px at 15% 20%, rgba(199,154,43,0.22), transparent 60%),
        radial-gradient(760px 460px at 85% 20%, rgba(56,189,248,0.16), transparent 60%),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.06), rgba(255,255,255,0.06) 1px, transparent 1px, transparent 28px),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.04) 1px, transparent 1px, transparent 28px);
    opacity: 0.9;
    pointer-events: none;
}

.stat-card {
    padding: 22px 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.10);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 22px 55px rgba(0,0,0,0.18);
    transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
    text-align: center;
}

.stat-card:hover {
    transform: translateY(-8px);
    background: rgba(255,255,255,0.14);
    box-shadow: 0 30px 70px rgba(0,0,0,0.22);
}

.stat-icon {
    width: 46px;
    height: 46px;
    margin: 0 auto 12px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.18);
    font-size: 22px;
}

.why-choose .stat-label {
    color: rgba(255,255,255,0.82);
}


/* =====================================================
   MODALS
===================================================== */

.advisor-card {
    transition: all 0.25s ease;
    background: #f8f9fa;
}

.advisor-card:hover {
    background: var(--primary);
    border-color: var(--primary) !important;
    transform: translateY(-2px);
}

.advisor-card:hover .text-dark {
    color: #fff !important;
}

.advisor-card:hover .text-muted {
    color: rgba(255,255,255,0.85) !important;
}

.advisor-card-icon {
    font-size: 1.75rem;
}

.modal-open {
    padding-right: 0 !important;
}


/* =====================================================
   APP DOWNLOAD
===================================================== */

.app-banner {
    background: linear-gradient(145deg, #f0f4f8 0%, #e2e8f0 100%);
    min-height: 180px;
}

.app-banner-img {
    filter: drop-shadow(0 10px 24px rgba(0,0,0,0.12));
}

.btn-app-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;

    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 12px;

    border: none;
    min-width: 160px;
}

.btn-app-download.btn-android,
.btn-app-download.btn-ios {
    background: #000;
    color: #fff;
}

.btn-app-download:hover {
    background: #333;
    color: #fff;
}


/* =====================================================
   NAVBAR
===================================================== */

/* ---------- NAV LINKS ---------- */

.navbar-nav .nav-link {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-weight: 600;
    font-size: 14.5px;
    letter-spacing: 0.4px;
    color: var(--primary);
    padding: 10px 14px;
    position: relative;
    transition: color 0.25s ease;
}

/* Hover / Active Color */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent);
}

/* Underline Animation */
.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 10px;
    transform: translateX(-50%);
    transition: width 0.3s ease;
    border: none;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 60%;
}


/* ---------- DROPDOWN ---------- */

.navbar .dropdown {
    position: relative;
}

.dropdown-menu {
    border-radius: 12px;
    padding: 10px 0;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
}

.dropdown-item {
    padding: 10px 18px;
    font-weight: 500;
    transition: all 0.25s ease;
}

.dropdown-item:hover {
    background: rgba(199,154,43,0.1);
    color: var(--primary);
}

/* Theme-based active state (matches navbar accent) */
.dropdown-menu .dropdown-item.active,
.dropdown-menu .dropdown-item:active {
    background: rgba(199,154,43,0.16);
    color: var(--primary);
    font-weight: 600;
}

.dropdown-menu .dropdown-item.active:hover {
    background: rgba(199,154,43,0.22);
}



/* ---------- DROPDOWN ARROW ---------- */

.dropdown-toggle::after {
    transition: transform 0.3s ease;
}

.show > .dropdown-toggle::after {
    transform: rotate(180deg);
}


/* =====================================================
   MOBILE NAVBAR
===================================================== */

@media (max-width: 991px) {

    .navbar-nav {
        padding: 15px 0;
    }

    .dropdown-menu {
        border: none;
        box-shadow: none;
        padding-left: 15px;
        background: transparent;
    }

    .dropdown-item {
        padding: 8px 0;
    }

    .dropdown-menu .dropdown-item.active,
    .dropdown-menu .dropdown-item:active {
        background: transparent;
        color: var(--accent);
        font-weight: 700;
    }

    /* Disable underline animation on mobile */
    .navbar-nav .nav-link::after {
        display: none;
    }

    .navbar-mobile {
        position: absolute;
        width: 100%;
        z-index: 11;
        top: 80px;
        background: var(--bg-white);
    }

}


/* =====================================================
   DESKTOP DROPDOWN HOVER
===================================================== */

@media (min-width: 992px) {

    .navbar .dropdown-menu {
        display: block;
        opacity: 0;
        transform: translateY(10px);
        visibility: hidden;
    }

    .navbar .dropdown:hover > .dropdown-menu {
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
    }

}





/* =====================================================
   UTILITIES
===================================================== */

.shadow-soft { box-shadow: var(--shadow-sm); }
.bg-light-custom { background: var(--bg-light); }
.text-muted { color: var(--text-muted) !important; }


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 576px) {

    .hero-section {
        padding: 100px 0;
    }

}

@media (max-width: 768px) {
    .hero-section {
        padding: 90px 0;
    }
}

/* =====================================================
   IPO DETAIL PAGE – typography & UI
===================================================== */

/* Hero: stat cards (avoid multiple h4; use display value) */
.ipo-stat-value {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 600;
    color: inherit;
    line-height: 1.3;
}

/* Main content: section titles (h2) – one level below page title */
.ipo-section-title {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 600;
}

/* Card body spacing */
.ipo-card-body {
    padding: 1.5rem 1.5rem;
}
@media (min-width: 768px) {
    .ipo-card-body { padding: 1.75rem 2rem; }
}

/* Body text in sections */
.ipo-body-text {
    font-size: 1rem;
    line-height: 1.65;
}

.ipo-meta-label {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

/* Dates table: readable label size */
.ipo-dates-table td {
    padding: 0.6rem 0.5rem;
    font-size: 0.9375rem;
}
.ipo-table-label {
    font-size: 0.9375rem;
}

/* Stack Important Dates nicely on mobile */
@media (max-width: 575.98px) {
    .ipo-dates-table tbody tr {
        display: block;
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--border-color);
    }
    .ipo-dates-table tbody tr:last-child {
        border-bottom: 0;
    }
    .ipo-dates-table td {
        display: block;
        width: 100%;
        padding: 0.1rem 0;
        text-align: left !important;
    }
    .ipo-dates-table td + td {
        font-weight: 600;
        margin-top: 0.15rem;
    }
}

/* Subscription section */
.ipo-subscription-meta {
    font-size: 0.8125rem;
    font-weight: 500;
}

.ipo-subscription-table th {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.75rem 0.5rem;
}
.ipo-subscription-table td {
    font-size: 0.9375rem;
    padding: 0.6rem 0.5rem;
}

/* Sidebar: card titles (h3) – smaller than main h2 */
.ipo-card-title {
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0;
}

/* GMP display value */
.ipo-gmp-value {
    font-size: clamp(1.5rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: var(--primary, #243E63);
}

.ipo-meta-text {
    font-size: 0.8125rem;
}

/* Sidebar list spacing */
.ipo-detail-list {
    /* padding-left: 1.25rem; */
    font-size: 0.9375rem;
    line-height: 1.5;
}
.ipo-detail-list li {
    margin-bottom: 0.4rem;
}
.ipo-detail-list--compact li {
    margin-bottom: 0.3rem;
}
.ipo-sidebar-item {
    font-size: 0.9375rem;
}

/* Modal title */
.ipo-modal-title {
    font-size: 1.35rem;
}

/* Sidebar website links: clean, on-brand styling */
.ipo-sidebar-item a {
    color: var(--primary);
    text-decoration: none;
}

.ipo-sidebar-item a:hover,
.ipo-sidebar-item a:focus {
    color: var(--accent);
    text-decoration: underline;
}

