/* ===================================================
   ByteTrader Portal – Global Custom Styles
   =================================================== */

/* --- MudText Color.Secondary override ---
   The Secondary brand color (#FF4DA6 pink) is reserved for buttons, chips, and badges.
   MudText using Color.Secondary is typically descriptive/subtitle text and should
   render as muted TextSecondary instead of brand pink. Buttons/Chips have their own
   classes (mud-button-* / mud-chip-*) so they keep the pink. */
.mud-typography.mud-secondary-text,
p.mud-typography.mud-secondary-text,
span.mud-typography.mud-secondary-text,
h1.mud-typography.mud-secondary-text,
h2.mud-typography.mud-secondary-text,
h3.mud-typography.mud-secondary-text,
h4.mud-typography.mud-secondary-text,
h5.mud-typography.mud-secondary-text,
h6.mud-typography.mud-secondary-text {
    color: var(--mud-palette-text-secondary) !important;
}


/* --- Gradient text utility --- */
.gradient-text {
    background: linear-gradient(135deg, var(--mud-palette-primary), var(--mud-palette-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Hero section --- */
.hero-section {
    position: relative;
    overflow: hidden;
    padding: 80px 0 60px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(217, 65, 217, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.hero-section > * {
    position: relative;
    z-index: 1;
}

/* --- Screenshot crop: trim 1px from left, right, bottom --- */
.screenshot-crop {
    overflow: hidden;
    position: relative;
}

.screenshot-crop img {
    margin: 0 -1px -1px -1px;
    width: calc(100% + 2px);
    display: block;
}

/* --- Platform preview placeholder --- */
.platform-preview {
    border-radius: 12px;
    border: 1px solid var(--mud-palette-lines-default);
    background: var(--mud-palette-surface);
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.platform-preview:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.2);
}

.platform-preview-inner {
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 40px;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--mud-palette-primary) 5%, var(--mud-palette-surface)),
        color-mix(in srgb, var(--mud-palette-secondary) 5%, var(--mud-palette-surface)));
}

/* --- Feature cards --- */
.feature-card {
    height: 100%;
    border-radius: 12px !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    border: 1px solid var(--mud-palette-lines-default) !important;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.12) !important;
    border-color: var(--mud-palette-primary) !important;
}

.feature-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--mud-palette-primary) 12%, transparent);
    margin-bottom: 16px;
}

/* --- Section styling --- */
.section-alt {
    background: color-mix(in srgb, var(--mud-palette-surface) 60%, var(--mud-palette-background));
}

.section-divider {
    width: 60px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--mud-palette-primary), var(--mud-palette-secondary));
    margin: 0 auto 24px;
}

/* --- Step cards for "How it works" --- */
.step-card {
    text-align: center;
    padding: 32px 24px;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--mud-palette-primary), var(--mud-palette-secondary));
    color: #fff;
    margin-bottom: 20px;
}

/* --- Broker badge --- */
.broker-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: 10px;
    border: 1px solid var(--mud-palette-lines-default);
    background: var(--mud-palette-surface);
    font-weight: 600;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.broker-badge:hover {
    border-color: var(--mud-palette-primary);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.1);
}

/* --- Stats row --- */
.stat-item {
    text-align: center;
    padding: 24px 16px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.9rem;
    margin-top: 6px;
    opacity: 0.7;
}

/* --- CTA banner --- */
.cta-banner {
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--mud-palette-primary) 15%, var(--mud-palette-surface)),
        color-mix(in srgb, var(--mud-palette-secondary) 10%, var(--mud-palette-surface)));
    padding: 56px 24px;
    text-align: center;
}

/* --- Pricing card highlight --- */
.pricing-highlight {
    border: 2px solid var(--mud-palette-secondary) !important;
    position: relative;
}

/* --- Feature detail row (alternating layout) --- */
.feature-detail-section {
    padding: 64px 0;
}

.feature-detail-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--mud-palette-primary) 12%, transparent);
    margin-bottom: 20px;
}

/* --- Subtle animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out both;
}

.fade-in-up-delay-1 { animation-delay: 0.1s; }
.fade-in-up-delay-2 { animation-delay: 0.2s; }
.fade-in-up-delay-3 { animation-delay: 0.3s; }
.fade-in-up-delay-4 { animation-delay: 0.4s; }
.fade-in-up-delay-5 { animation-delay: 0.5s; }
.fade-in-up-delay-6 { animation-delay: 0.6s; }

/* --- Doc section cards --- */
.doc-step-list {
    padding-left: 24px;
    line-height: 2;
}

.doc-step-list li {
    padding-left: 4px;
}

/* --- Footer polish --- */
footer .footer-link {
    display: block;
    padding: 3px 0;
    cursor: pointer;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

footer .footer-link:hover {
    padding-left: 4px;
    color: var(--mud-palette-primary) !important;
    text-decoration: none;
}

/* --- Responsive tweaks --- */
@media (max-width: 960px) {
    .hero-section {
        padding: 48px 0 40px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .cta-banner {
        padding: 40px 16px;
    }
}
