/* ========================================================
   RAHMATPAY - HOMEPAGE STYLES
   Uses frozen global brand tokens.
   ======================================================== */

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    width: 100%;
    border-bottom: 1px solid rgba(199, 206, 221, 0.38);
    background: rgba(248, 250, 255, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    min-height: var(--header-height);
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand-link {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
}

.brand-logo {
    width: 205px;
    max-height: 64px;
    object-fit: contain;
    object-position: left center;
}

.desktop-navigation {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.5vw, 36px);
}

.desktop-navigation a {
    color: var(--color-muted);
    font-size: 0.86rem;
    font-weight: var(--weight-medium);
    transition: color var(--transition-fast);
}

.desktop-navigation a:hover {
    color: var(--color-sapphire);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-cta {
    min-height: 44px;
    padding: 11px 20px;
    font-size: 0.8rem;
}

.mobile-navigation {
    display: none;
    position: relative;
}

.mobile-navigation summary {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-white);
    cursor: pointer;
    list-style: none;
}

.mobile-navigation summary::-webkit-details-marker {
    display: none;
}

.menu-icon {
    display: grid;
    gap: 5px;
}

.menu-icon span {
    display: block;
    width: 19px;
    height: 2px;
    border-radius: 2px;
    background: var(--color-navy);
}

.mobile-menu-panel {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    display: grid;
    width: min(280px, calc(100vw - 32px));
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-white);
    box-shadow: var(--shadow-elevated);
}

.mobile-menu-panel a {
    padding: 13px 14px;
    border-radius: 10px;
    color: var(--color-navy);
    font-size: 0.9rem;
    font-weight: var(--weight-medium);
}

.mobile-menu-panel a:hover {
    background: var(--color-sky-mist);
}

/* HERO */

.hero-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding-block: clamp(76px, 9vw, 132px);
    background:
        radial-gradient(ellipse at 83% 24%, rgba(58, 123, 255, 0.10), transparent 38%),
        radial-gradient(ellipse at 8% 90%, rgba(212, 175, 124, 0.10), transparent 32%),
        linear-gradient(135deg, #FFFFFF 0%, #F8FAFF 55%, #EEF4FF 100%);
}

.hero-background-pattern {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.28;
    background-image:
        linear-gradient(30deg, transparent 48%, rgba(58, 123, 255, 0.08) 49%, rgba(58, 123, 255, 0.08) 50%, transparent 51%),
        linear-gradient(150deg, transparent 48%, rgba(58, 123, 255, 0.06) 49%, rgba(58, 123, 255, 0.06) 50%, transparent 51%);
    background-size: 72px 72px;
    mask-image: linear-gradient(to right, transparent, black);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    gap: clamp(50px, 7vw, 100px);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 27px;
    color: var(--color-sapphire);
    font-size: 0.72rem;
    font-weight: var(--weight-bold);
    letter-spacing: 0.15em;
}

.eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-champagne);
    box-shadow: 0 0 0 5px rgba(212, 175, 124, 0.15);
}

.hero-content h1 {
    max-width: 700px;
    color: var(--color-navy);
    font-family: var(--font-display);
    font-size: clamp(3rem, 5.6vw, 5.4rem);
    font-weight: var(--weight-regular);
    letter-spacing: -0.055em;
    line-height: 1.04;
}

.hero-content h1 span {
    display: block;
    margin-top: 10px;
    color: var(--color-sapphire);
}

.hero-description {
    max-width: 560px;
    margin-top: 28px;
    color: var(--color-muted);
    font-size: clamp(1rem, 1.35vw, 1.15rem);
    line-height: 1.85;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 35px;
}

.hero-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    color: var(--color-muted);
    font-size: 0.82rem;
}

.hero-note-icon {
    color: var(--color-champagne);
    font-size: 1.2rem;
}

.hero-visual {
    position: relative;
    display: flex;
    min-height: 490px;
    align-items: center;
    justify-content: center;
}

.hero-visual-card {
    position: relative;
    z-index: 2;
    width: min(100%, 410px);
    padding: 35px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow:
        0 30px 90px rgba(15, 43, 91, 0.11),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(18px);
}

.visual-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.visual-label {
    color: var(--color-muted);
    font-size: 0.63rem;
    font-weight: var(--weight-bold);
    letter-spacing: 0.13em;
}

.visual-star {
    color: var(--color-champagne);
    font-size: 1.3rem;
}

.visual-emblem {
    display: flex;
    width: 100px;
    height: 100px;
    align-items: center;
    justify-content: center;
    margin: 32px auto 25px;
    padding: 15px;
    border: 1px solid var(--color-border);
    border-radius: 26px;
    background: linear-gradient(145deg, #FFFFFF, #F1F6FF);
    box-shadow: var(--shadow-soft);
}

.visual-emblem img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-visual-card h2 {
    color: var(--color-navy);
    font-family: var(--font-display);
    font-size: 2.1rem;
    font-weight: var(--weight-regular);
    letter-spacing: -0.04em;
    line-height: 1.18;
    text-align: center;
}

.hero-visual-card > p {
    max-width: 280px;
    margin: 13px auto 24px;
    color: var(--color-muted);
    font-size: 0.87rem;
    line-height: 1.75;
    text-align: center;
}

.visual-divider {
    height: 1px;
    background: var(--color-border);
}

.visual-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding-top: 22px;
}

.visual-values > div {
    display: grid;
    gap: 7px;
    text-align: center;
}

.value-symbol {
    color: var(--color-sapphire);
    font-size: 0.73rem;
    font-weight: var(--weight-bold);
}

.visual-values > div > span:last-child {
    color: var(--color-navy);
    font-size: 0.68rem;
    font-weight: var(--weight-semibold);
}

.hero-orbit {
    position: absolute;
    border: 1px solid rgba(58, 123, 255, 0.16);
    border-radius: 50%;
}

.orbit-one {
    width: 460px;
    height: 460px;
}

.orbit-two {
    width: 540px;
    height: 540px;
    border-style: dashed;
    opacity: 0.55;
}

.floating-decoration {
    position: absolute;
    z-index: 3;
    display: flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    background: var(--color-white);
    color: var(--color-champagne);
    box-shadow: var(--shadow-card);
    font-size: 1.4rem;
}

.decoration-one {
    top: 55px;
    right: 5px;
}

.decoration-two {
    bottom: 50px;
    left: 0;
    color: var(--color-sapphire);
}

.hero-bottom-line {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-platinum), transparent);
}

/* INTRODUCTION */

.introduction-section {
    background: var(--color-white);
}

.introduction-grid {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    align-items: start;
    gap: clamp(40px, 8vw, 120px);
}

.introduction-heading .section-title {
    max-width: 530px;
    margin-top: 22px;
}

.title-accent {
    color: var(--color-sapphire);
}

.introduction-copy {
    padding-top: 34px;
}

.introduction-copy p {
    margin-bottom: 20px;
    color: var(--color-muted);
    font-size: 1rem;
    line-height: 1.9;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 9px;
    color: var(--color-sapphire);
    font-size: 0.9rem;
    font-weight: var(--weight-semibold);
}

.text-link span {
    transition: transform var(--transition-fast);
}

.text-link:hover span {
    transform: translateX(5px);
}

/* VALUES */

.values-section {
    padding-block: var(--space-24);
    background:
        radial-gradient(ellipse at 50% 0%, rgba(58, 123, 255, 0.07), transparent 50%),
        var(--color-pearl);
}

.values-section .section-heading {
    margin-inline: auto;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.value-card {
    position: relative;
    min-height: 260px;
    padding: 32px;
    overflow: hidden;
    border: 1px solid rgba(199, 206, 221, 0.55);
    border-radius: var(--radius-lg);
    background: var(--color-white);
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.value-card-icon {
    display: flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    border-radius: 17px;
    background: var(--color-sky-mist);
    color: var(--color-sapphire);
    font-size: 1.6rem;
}

.value-card-number {
    position: absolute;
    top: 35px;
    right: 32px;
    color: var(--color-platinum);
    font-size: 0.75rem;
    font-weight: var(--weight-bold);
    letter-spacing: 0.12em;
}

.value-card h3 {
    margin-top: 28px;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.value-card p {
    color: var(--color-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

.featured-value {
    border-color: rgba(58, 123, 255, 0.35);
    background: linear-gradient(145deg, #FFFFFF, #F0F5FF);
}

/* PROCESS */

.process-section {
    background: var(--color-white);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.process-card {
    position: relative;
    padding-top: 20px;
}

.process-number {
    display: flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(58, 123, 255, 0.25);
    border-radius: 17px;
    background: var(--color-sky-mist);
    color: var(--color-sapphire);
    font-size: 0.9rem;
    font-weight: var(--weight-bold);
}

.process-line {
    width: 100%;
    height: 1px;
    margin-block: 27px 22px;
    background: linear-gradient(90deg, var(--color-platinum), transparent);
}

.process-card h3 {
    margin-bottom: 12px;
    font-size: 1.08rem;
}

.process-card p {
    color: var(--color-muted);
    font-size: 0.87rem;
    line-height: 1.8;
}

.process-disclaimer {
    margin-top: 40px;
    padding: 16px 20px;
    border-left: 3px solid var(--color-champagne);
    background: var(--color-pearl);
    color: var(--color-muted);
    font-size: 0.78rem;
    line-height: 1.7;
}

/* PRINCIPLES */

.principles-section {
    padding-block: var(--space-24);
    background: linear-gradient(135deg, #F2F6FD 0%, #E8F1FF 100%);
}

.principles-grid {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    align-items: center;
    gap: clamp(50px, 8vw, 110px);
}

.principles-content .section-title {
    max-width: 620px;
    margin-top: 22px;
}

.principles-description {
    max-width: 560px;
    margin-top: 22px;
    color: var(--color-muted);
    line-height: 1.85;
}

.principle-list {
    display: grid;
    gap: 24px;
    margin-block: 35px;
}

.principle-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.principle-check {
    display: flex;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-white);
    color: var(--color-sapphire);
    font-size: 0.8rem;
    font-weight: var(--weight-bold);
    box-shadow: var(--shadow-soft);
}

.principle-item h3 {
    margin-bottom: 7px;
    font-size: 1rem;
}

.principle-item p {
    color: var(--color-muted);
    font-size: 0.86rem;
    line-height: 1.7;
}

.principles-visual {
    position: relative;
}

.principles-panel {
    position: relative;
    padding: clamp(35px, 5vw, 55px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 30px;
    background: linear-gradient(145deg, #FFFFFF, #F8FAFF);
    box-shadow: var(--shadow-elevated);
}

.principles-panel::after {
    position: absolute;
    right: -90px;
    bottom: -110px;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(58, 123, 255, 0.12);
    border-radius: 50%;
    content: "";
}

.principles-panel-mark {
    margin-bottom: 30px;
    color: var(--color-champagne);
    font-size: 2rem;
}

.principles-panel-label {
    color: var(--color-sapphire);
    font-size: 0.7rem;
    font-weight: var(--weight-bold);
    letter-spacing: 0.15em;
}

.principles-panel blockquote {
    position: relative;
    z-index: 1;
    margin: 22px 0;
    color: var(--color-navy);
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    line-height: 1.3;
}

.principles-panel-rule {
    width: 60px;
    height: 2px;
    margin-block: 28px;
    background: var(--color-champagne);
}

.principles-panel > p {
    position: relative;
    z-index: 1;
    color: var(--color-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

/* APPLICATION CTA */

.application-section {
    background: var(--color-white);
}

.application-panel {
    position: relative;
    padding: clamp(45px, 7vw, 85px);
    overflow: hidden;
    border-radius: 30px;
    background:
        radial-gradient(ellipse at 90% 15%, rgba(58, 123, 255, 0.3), transparent 40%),
        linear-gradient(120deg, #0F2B5B, #173F7D);
    box-shadow: 0 24px 65px rgba(15, 43, 91, 0.17);
}

.application-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.application-eyebrow {
    color: #D8E6FF;
}

.application-content h2 {
    margin-top: 20px;
    color: var(--color-white);
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: var(--weight-regular);
    letter-spacing: -0.035em;
    line-height: 1.2;
}

.application-content p {
    max-width: 530px;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.8;
}

.application-button {
    margin-top: 30px;
    background: var(--color-white);
    color: var(--color-navy);
}

.application-button:hover {
    background: var(--color-sky-mist);
}

.application-decoration {
    position: absolute;
    top: -100px;
    right: 60px;
    color: rgba(255, 255, 255, 0.09);
    font-size: 350px;
    line-height: 1;
}

/* CONTACT */

.contact-section {
    padding-block: var(--space-20);
    background: var(--color-pearl);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 50px;
}

.contact-grid .section-title {
    max-width: 620px;
    margin-top: 20px;
}

.contact-description {
    max-width: 560px;
    margin-top: 17px;
    color: var(--color-muted);
    line-height: 1.8;
}

.contact-action {
    display: grid;
    justify-items: start;
    gap: 12px;
}

.contact-note {
    max-width: 260px;
    color: var(--color-muted);
    font-size: 0.7rem;
    line-height: 1.6;
}

/* FOOTER */

.site-footer {
    padding-top: 65px;
    background: #0D244A;
    color: var(--color-white);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 55px;
}

.footer-logo {
    width: 210px;
    max-height: 70px;
    object-fit: contain;
    object-position: left center;
}

.footer-brand p {
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.82rem;
}

.footer-column {
    display: grid;
    align-content: start;
    gap: 14px;
}

.footer-column h3 {
    margin-bottom: 5px;
    color: var(--color-white);
    font-size: 0.9rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.82rem;
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--color-white);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
    padding-block: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.72rem;
    line-height: 1.6;
}

.footer-disclaimer {
    max-width: 480px;
    text-align: right;
}

/* TABLET */

@media (max-width: 1024px) {
    .hero-grid {
        gap: 35px;
    }

    .hero-content h1 {
        font-size: clamp(2.8rem, 6vw, 4.3rem);
    }

    .hero-visual {
        min-height: 440px;
    }

    .hero-visual-card {
        padding: 28px;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 40px;
    }
}

/* MOBILE NAVIGATION AND LAYOUT */

@media (max-width: 768px) {
    .desktop-navigation {
        display: none;
    }

    .mobile-navigation {
        display: block;
    }

    .header-inner {
        gap: 12px;
    }

    .brand-logo {
        width: 175px;
        max-height: 55px;
    }

    .header-cta {
        min-height: 40px;
        padding: 9px 14px;
        font-size: 0.72rem;
    }

    .hero-section {
        padding-block: 65px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .hero-content h1 {
        max-width: 650px;
        font-size: clamp(2.8rem, 9vw, 4.4rem);
    }

    .hero-visual {
        min-height: 420px;
    }

    .hero-visual-card {
        width: min(100%, 390px);
    }

    .introduction-grid,
    .principles-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .introduction-copy {
        padding-top: 0;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .value-card {
        min-height: auto;
    }

    .principles-visual {
        max-width: 540px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 38px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* SMALL MOBILE */

@media (max-width: 480px) {
    .header-cta {
        display: none;
    }

    .brand-logo {
        width: 165px;
    }

    .hero-section {
        padding-block: 55px;
    }

    .hero-eyebrow {
        font-size: 0.62rem;
        letter-spacing: 0.1em;
    }

    .hero-content h1 {
        font-size: clamp(2.55rem, 11vw, 3.5rem);
    }

    .hero-description {
        font-size: 0.94rem;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 390px;
    }

    .hero-visual-card {
        padding: 25px 20px;
    }

    .hero-visual-card h2 {
        font-size: 1.85rem;
    }

    .orbit-one {
        width: 340px;
        height: 340px;
    }

    .orbit-two {
        width: 390px;
        height: 390px;
    }

    .decoration-one {
        right: -3px;
    }

    .decoration-two {
        left: -5px;
    }

    .process-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .process-card {
        padding-top: 5px;
    }

    .process-line {
        margin-block: 17px 16px;
    }

    .principles-panel {
        padding: 30px 25px;
    }

    .application-panel {
        padding: 38px 25px;
        border-radius: 22px;
    }

    .application-decoration {
        right: -40px;
        font-size: 240px;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 30px 20px;
    }

    .footer-logo {
        width: 185px;
    }

    .footer-bottom {
        display: grid;
    }

    .footer-disclaimer {
        text-align: left;
    }
}

/* MOBILE MENU APPLY NOW CTA */
.mobile-menu-panel a.mobile-menu-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px 4px 4px;
    padding: 13px 14px;
    border: 1px solid rgba(212,175,124,.65);
    border-radius: 999px;
    background: linear-gradient(
        115deg,
        #B98B50 0%,
        #E8CA91 35%,
        #D4AF7C 65%,
        #B98B50 100%
    );
    color: #07152F;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 9px 25px rgba(167,122,62,.22);
}

.mobile-menu-panel a.mobile-menu-cta:hover {
    background: linear-gradient(115deg,#D4AF7C,#F1D7A5,#C49A60);
    color: #07152F;
    box-shadow: 0 15px 35px rgba(167,122,62,.3);
}
