/* STONE TRUST FINANCE Homepage */

.el-hero {
    background: #0b1324;
    position: relative;
    overflow: hidden;
    min-height: 560px;
}

.el-hero--viewport {
    min-height: calc(100vh - var(--el-header-total, 6.6rem));
    min-height: calc(100dvh - var(--el-header-total, 6.6rem));
    display: flex;
    align-items: center;
    padding-top: 2.5rem;
    padding-bottom: 6rem;
}

.el-hero-grid {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: inherit;
}

.el-hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
}

/* Hero background character */
.el-hero-character {
    position: absolute;
    inset: 0;
    background-image: url('../images/hero-character.png');
    background-size: cover;
    background-position: 78% 18%;
    background-repeat: no-repeat;
    filter: brightness(0.88) contrast(1.04) saturate(0.92);
    transform: scale(1.03);
    pointer-events: none;
    z-index: 0;
}

@media (min-width: 1024px) {
    .el-hero-character {
        background-position: 88% center;
        background-size: min(48vw, 680px) auto;
        background-repeat: no-repeat;
        filter: brightness(0.92) contrast(1.05) saturate(0.92);
        transform: none;
    }

    .el-hero-overlay {
        background:
            linear-gradient(105deg,
                rgba(11, 19, 36, 0.9) 0%,
                rgba(11, 19, 36, 0.72) 38%,
                rgba(11, 19, 36, 0.28) 62%,
                rgba(11, 19, 36, 0.1) 100%),
            linear-gradient(to top, rgba(11, 19, 36, 0.5) 0%, transparent 40%);
    }
}

@media (max-width: 1023px) {
    .el-hero-character {
        background-position: 70% center;
        opacity: 0.42;
        filter: brightness(0.75) contrast(1.05) saturate(0.85);
    }
}

@media (max-width: 640px) {
    .el-hero-character {
        background-position: 85% center;
        background-size: cover;
        opacity: 0.28;
    }
}

/* Hero background tint */
.el-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 50% at 82% 30%, rgba(59, 122, 184, 0.22) 0%, transparent 58%),
        radial-gradient(ellipse 45% 60% at 12% 85%, rgba(30, 74, 122, 0.32) 0%, transparent 55%),
        linear-gradient(155deg, rgba(6, 13, 24, 0.55) 0%, rgba(11, 19, 36, 0.35) 42%, rgba(20, 31, 51, 0.2) 100%);
    pointer-events: none;
    z-index: 0;
}

.el-hero-mesh {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 70% at 78% 35%, rgba(30, 74, 122, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse 40% 50% at 20% 80%, rgba(11, 19, 36, 0.5) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.el-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg,
            rgba(11, 19, 36, 0.94) 0%,
            rgba(11, 19, 36, 0.82) 30%,
            rgba(11, 19, 36, 0.48) 52%,
            rgba(11, 19, 36, 0.18) 72%,
            rgba(11, 19, 36, 0.08) 100%),
        linear-gradient(to top, rgba(11, 19, 36, 0.55) 0%, transparent 40%);
    pointer-events: none;
    z-index: 1;
}

.el-hero-pattern {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}

.el-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #7eb8e8;
    margin-bottom: 1.25rem;
    padding: 0.45rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(126, 184, 232, 0.28);
    background: rgba(255, 255, 255, 0.04);
}

.el-hero-accent {
    color: #7eb8e8;
    font-weight: 800;
}

/* Product mockup — banking dashboard preview */
.el-hero-visual {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

@media (min-width: 1024px) {
    .el-hero-visual {
        min-height: 420px;
        justify-content: flex-end;
    }
}

.el-hero-visual-glow {
    position: absolute;
    top: 50%;
    left: 55%;
    width: 320px;
    height: 320px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(30, 74, 122, 0.35) 0%, transparent 70%);
    filter: blur(8px);
    pointer-events: none;
}

.el-hero-device {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 400px;
    padding: 1.75rem 1.5rem 1.5rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(165deg, rgba(38, 40, 48, 0.95) 0%, rgba(26, 28, 34, 0.98) 100%);
    box-shadow:
        0 32px 64px -16px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
}

.el-hero-device-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.el-hero-device-brand {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.el-hero-device-chip {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 74, 122, 0.35);
    color: #7eb8e8;
    font-size: 0.85rem;
}

.el-hero-device-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
}

.el-hero-device-balance {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 1.25rem;
}

.el-hero-device-cents {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
}

.el-hero-device-chart {
    height: 72px;
    margin-bottom: 1.25rem;
    border-radius: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem 0.75rem;
}

.el-hero-device-chart svg {
    width: 100%;
    height: 100%;
    display: block;
}

.el-hero-device-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.el-hero-device-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.55);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.el-hero-device-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.el-hero-device-list strong {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
}

.el-hero-device-list strong.is-credit {
    color: #8fbc8f;
}

.el-hero-float {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    border-radius: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(26, 28, 34, 0.92);
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.85);
    animation: elHeroFloat 6s ease-in-out infinite;
}

.el-hero-float i {
    color: #7eb8e8;
}

.el-hero-float small {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.45);
}

.el-hero-float strong {
    font-weight: 700;
    letter-spacing: 0.08em;
}

.el-hero-float--card {
    top: 4%;
    right: 0;
    animation-delay: 0s;
}

.el-hero-float--shield {
    bottom: 8%;
    left: 0;
    animation-delay: 1.5s;
}

@media (min-width: 1024px) {
    .el-hero-float--card { right: -4%; }
    .el-hero-float--shield { left: -6%; }
}

@media (max-width: 1023px) {
    .el-hero-float {
        display: none;
    }
}

@keyframes elHeroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.el-service-strip {
    margin-top: 0;
    position: relative;
    z-index: 10;
    padding-top: 0;
    padding-bottom: 0;
}

.el-service-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 20px 50px -15px rgba(15, 23, 42, 0.2);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.el-service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 60px -15px rgba(15, 23, 42, 0.25);
}

.el-service-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.el-about-visual {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    min-height: 320px;
    border: 1px solid #e5e2de;
    background: linear-gradient(165deg, #0b1324 0%, #0f1a2e 100%);
    box-shadow: 0 25px 50px -12px rgba(11, 19, 36, 0.25);
}

.el-about-visual-skyline {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(11, 19, 36, 0.92) 0%, rgba(11, 19, 36, 0.2) 55%, transparent 100%),
        repeating-linear-gradient(90deg, rgba(126, 184, 232, 0.08) 0, rgba(126, 184, 232, 0.08) 1px, transparent 1px, transparent 48px),
        linear-gradient(180deg, transparent 40%, rgba(30, 74, 122, 0.25) 100%);
}

.el-about-visual-skyline::before,
.el-about-visual-skyline::after {
    content: '';
    position: absolute;
    bottom: 28%;
    background: rgba(126, 184, 232, 0.12);
    border: 1px solid rgba(126, 184, 232, 0.18);
}

.el-about-visual-skyline::before {
    left: 12%;
    width: 22%;
    height: 42%;
}

.el-about-visual-skyline::after {
    right: 18%;
    width: 28%;
    height: 55%;
}

.el-about-visual-panel {
    position: absolute;
    left: 1.5rem;
    right: 1.5rem;
    bottom: 1.5rem;
    padding: 1.25rem 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(26, 28, 34, 0.88);
    backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    line-height: 1.6;
}

.el-about-visual-stat {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: #7eb8e8;
    margin-bottom: 0.35rem;
}

.el-hero-image {
    aspect-ratio: 4/5;
    max-height: 520px;
    border-radius: 1.25rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
    border: 3px solid rgba(255, 255, 255, 0.12);
}

.el-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.5s ease;
}

.el-hero-image:hover img {
    transform: scale(1.03);
}

.el-hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 20, 40, 0.25) 0%, transparent 40%);
    pointer-events: none;
}

.el-hero-image--wide {
    aspect-ratio: 16/10;
    max-height: none;
}

.el-feature-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.25s ease;
}

.el-feature-card:hover {
    border-color: #5b9fd4;
    box-shadow: 0 12px 30px -10px rgba(30, 74, 122, 0.15);
    transform: translateY(-3px);
}

.el-feature-icon {
    width: 3.75rem;
    height: 3.75rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #1e4a7a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.el-rate-card {
    background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    padding: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.el-rate-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(91, 159, 212, 0.15), transparent 70%);
    pointer-events: none;
}

.el-rate-card.featured {
    border-color: rgba(91, 159, 212, 0.35);
    box-shadow: 0 0 0 1px rgba(30, 74, 122, 0.15), 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.el-stat-box {
    text-align: center;
    padding: 2rem 1rem;
}

.el-stat-number {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #5b9fd4;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.el-stat-label {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 600;
}

.el-process-step {
    text-align: center;
    position: relative;
}

.el-process-num {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e4a7a, #3b7ab8);
    color: white;
    font-weight: 800;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 8px 20px -6px rgba(30, 74, 122, 0.35);
}

.el-testimonial-card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px -8px rgba(15, 23, 42, 0.1);
    height: 100%;
}

.el-testimonial-quote {
    font-size: 2.5rem;
    line-height: 1;
    color: #5b9fd4;
    opacity: 0.3;
    margin-bottom: -0.5rem;
}

.el-client-avatar {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #0f2847;
    font-size: 1rem;
}

.el-faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #fff;
}

.el-faq-q {
    width: 100%;
    text-align: left;
    padding: 1.1rem 1.25rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.el-faq-q:hover { background: #f8fafc; }

.el-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 1.25rem;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
}

.el-faq-item.open .el-faq-a {
    max-height: 200px;
    padding: 0 1.25rem 1.1rem;
}

.el-faq-item.open .el-faq-chevron {
    transform: rotate(180deg);
}

.el-faq-chevron {
    transition: transform 0.3s ease;
    color: #5b9fd4;
}

.el-captcha-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.el-captcha-code {
    font-family: ui-monospace, monospace;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    background: #f1f5f9;
    border: 2px dashed #cbd5e1;
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    color: #0f172a;
    user-select: none;
}

.el-cta-banner {
    background: #0b1324;
    position: relative;
    overflow: hidden;
}

.el-cta-banner-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 80% at 80% 50%, rgba(30, 74, 122, 0.35) 0%, transparent 55%),
        linear-gradient(135deg, #0b1324 0%, #0f1a2e 50%, #141f33 100%);
    pointer-events: none;
    z-index: 0;
}

.el-cta-banner-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(11, 19, 36, 0.92) 0%, rgba(15, 26, 46, 0.88) 55%, rgba(22, 58, 95, 0.82) 100%),
        radial-gradient(circle at 70% 50%, rgba(91, 159, 212, 0.14), transparent 55%);
    pointer-events: none;
    z-index: 1;
}

.el-nav-top {
    background: rgba(11, 19, 36, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.el-nav-top .el-nav-link {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.el-nav-top .el-nav-link:hover,
.el-nav-top .el-nav-link.active {
    color: #7eb8e8;
}

.el-nav-top.scrolled {
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: #e2e8f0;
    box-shadow: 0 4px 20px -8px rgba(15, 23, 42, 0.15);
}

.el-nav-top.scrolled .el-nav-link {
    color: #64748b;
}

.el-nav-top.scrolled .el-nav-link:hover,
.el-nav-top.scrolled .el-nav-link.active {
    color: #1e4a7a;
}

.el-nav-top.scrolled .el-brand-text {
    color: #0f172a !important;
}

.el-section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #5b9fd4;
    margin-bottom: 0.75rem;
}

.el-section-title {
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.el-mission-card {
    background: linear-gradient(135deg, #eff6ff, #f8fafc);
    border-left: 4px solid #1e4a7a;
    border-radius: 0 1rem 1rem 0;
    padding: 1.5rem;
}

.el-vision-card {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-left: 4px solid #5b9fd4;
    border-radius: 0 1rem 1rem 0;
    padding: 1.5rem;
}

.el-footer {
    background: #0b1324;
    color: rgba(255, 255, 255, 0.65);
}

.el-footer h4 {
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.el-footer a:hover {
    color: #7eb8e8;
}

.el-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.el-home {
    background: #fff;
}

[data-theme="dark"] body.el-home {
    background: #0b1220;
}
