/* =============================================
   AURUM — Redesign components
   Loaded after style.css. Premium editorial
   layouts: ecosystem diagram, membership tiers,
   process steps, legal pages and inquiry notes.
   ============================================= */

/* ---------- Navigation refinements ---------- */
.navbar-custom .nav-link {
    padding: 0.5rem 0.7rem !important;
    font-size: 0.8rem;
    white-space: nowrap;
}

@media (min-width: 992px) and (max-width: 1399.98px) {
    .navbar-custom .nav-link {
        padding: 0.5rem 0.45rem !important;
        font-size: 0.74rem;
    }
}

@media (max-width: 991.98px) {
    .navbar-custom .navbar-nav {
        padding: 1rem 0 0.5rem;
    }

    .navbar-custom .nav-link {
        padding: 0.65rem 0.25rem !important;
        font-size: 0.95rem;
    }
}

/* ---------- Shared label pill ---------- */
.aurum-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    border-radius: 100px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: var(--primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

/* ---------- Editorial page hero ---------- */
.aurum-hero {
    position: relative;
    padding: 11rem 0 4.5rem;
    overflow: visible;
}

.aurum-hero .lead {
    color: var(--on-surface-variant);
    font-weight: 300;
    line-height: 1.8;
    max-width: 720px;
}

@media (max-width: 768px) {
    .aurum-hero {
        padding: 7.5rem 0 3rem;
    }
}

/* ---------- Ecosystem diagram ---------- */
.eco-diagram-wrap {
    max-width: 760px;
    margin: 0 auto;
}

.eco-svg {
    width: 100%;
    height: auto;
    display: block;
}

/* ---------- Value / layer cards ---------- */
.layer-card {
    height: 100%;
    padding: 1.75rem;
    border-radius: 1.25rem;
    background: rgba(38, 22, 8, 0.4);
    border: 1px solid rgba(245, 158, 11, 0.12);
    transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.layer-card:hover {
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
}

.layer-card .material-symbols-outlined {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

/* ---------- Membership tiers ---------- */
.tier-card {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 2.25rem 2rem;
    border-radius: 1.5rem;
    background: linear-gradient(180deg, rgba(38, 22, 8, 0.55) 0%, rgba(23, 13, 5, 0.8) 100%);
    border: 1px solid rgba(245, 158, 11, 0.14);
    transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.tier-card:hover {
    border-color: rgba(245, 158, 11, 0.45);
    box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.8), 0 0 40px rgba(245, 158, 11, 0.06);
    transform: translateY(-4px);
}

.tier-card--featured {
    border-color: rgba(245, 158, 11, 0.4);
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.1) 0%, rgba(23, 13, 5, 0.85) 70%);
}

.tier-card__name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.35rem;
}

.tier-card__positioning {
    color: var(--primary);
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.tier-card__price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    color: #fff;
    padding: 0.9rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1.5rem;
}

.tier-card__scope {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    flex-grow: 1;
}

.tier-card__scope li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    color: var(--on-surface-variant);
    font-size: 0.92rem;
    line-height: 1.6;
}

.tier-card__scope .material-symbols-outlined {
    font-size: 1.1rem;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

/* ---------- Process steps ---------- */
.step-card {
    position: relative;
    height: 100%;
    padding: 1.75rem 1.5rem 1.5rem;
    border-radius: 1.25rem;
    background: rgba(38, 22, 8, 0.35);
    border: 1px solid rgba(245, 158, 11, 0.12);
}

.step-card__num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: rgba(245, 158, 11, 0.65);
    line-height: 1;
    display: block;
    margin-bottom: 0.75rem;
}

.step-card h3 {
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 0.6rem;
}

.step-card p {
    color: var(--on-surface-variant);
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 0;
}

/* ---------- Inline notes ---------- */
.aurum-note {
    border-left: 3px solid var(--primary);
    background: rgba(245, 158, 11, 0.05);
    border-radius: 0 0.9rem 0.9rem 0;
    padding: 1.1rem 1.4rem;
    color: var(--on-surface-variant);
    font-size: 0.9rem;
    line-height: 1.7;
}

.aurum-note strong {
    color: #fff;
}

/* ---------- Legal / long-form pages ---------- */
.legal-content {
    color: var(--on-surface-variant);
    line-height: 1.9;
    font-size: 1.02rem;
}

.legal-content h2 {
    color: #fff;
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
}

.legal-content h3 {
    color: #fff;
    font-size: 1.1rem;
    margin: 1.75rem 0 0.75rem;
}

.legal-content ul {
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.legal-content a {
    color: var(--primary);
    text-decoration: none;
}

.legal-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ---------- Inquiry form ---------- */
.glass-input.is-invalid,
.glass-input:invalid:not(:placeholder-shown) {
    border-color: rgba(220, 53, 69, 0.6) !important;
}

.form-check-input {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(245, 158, 11, 0.35);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* ---------- Divider ---------- */
.aurum-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.35), transparent);
    border: 0;
    opacity: 1;
    margin: 3.5rem 0;
}

/* ---------- Ecosystem diagram (premium) ---------- */
.eco-line {
    fill: none;
    stroke: url(#ecoGold);
    stroke-width: 1.6;
    stroke-linecap: round;
}

.eco-line-flow {
    fill: none;
    stroke: url(#ecoGold);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-dasharray: 5 10;
    animation: eco-dash 2.8s linear infinite;
}

@keyframes eco-dash {
    to { stroke-dashoffset: -60; }
}

.eco-card {
    fill: url(#ecoCard);
    stroke: rgba(245, 158, 11, 0.3);
    stroke-width: 1.2;
}

.eco-card--core {
    fill: url(#ecoCardCore);
    stroke: rgba(245, 158, 11, 0.65);
    stroke-width: 1.6;
    filter: url(#ecoGlow);
}

.eco-title {
    fill: #fdfaf6;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 17px;
    font-weight: 700;
}

.eco-sub {
    fill: #d4cec4;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
}

.eco-icon-ring {
    fill: rgba(245, 158, 11, 0.1);
    stroke: rgba(245, 158, 11, 0.4);
    stroke-width: 1;
}

.eco-icon {
    fill: none;
    stroke: #f59e0b;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.eco-join {
    fill: #f59e0b;
    opacity: 0.85;
}

.eco-caption {
    fill: rgba(245, 158, 11, 0.8);
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-anchor: middle;
}

/* ---------- Associated partners ---------- */
.partner-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    padding: 2.25rem;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, rgba(38, 22, 8, 0.7) 0%, rgba(23, 13, 5, 0.9) 100%);
    border: 1px solid rgba(245, 158, 11, 0.22);
    overflow: hidden;
    transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.partner-card::before {
    content: '';
    position: absolute;
    top: -140px;
    right: -100px;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.partner-card:hover {
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.85), 0 0 45px rgba(245, 158, 11, 0.07);
}

.partner-card__logo {
    flex-shrink: 0;
    width: 190px;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    border-radius: 1.25rem;
    background: radial-gradient(circle at 50% 40%, rgba(245, 158, 11, 0.12) 0%, rgba(10, 6, 2, 0.4) 70%);
    border: 1px solid rgba(245, 158, 11, 0.18);
}

.partner-card__logo img {
    width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: contain;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.55));
}

.partner-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.85rem;
    border-radius: 100px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--primary);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.partner-card__chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.9rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(245, 158, 11, 0.18);
    color: var(--on-surface-variant);
    font-size: 0.75rem;
}

.partner-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: gap 0.3s ease;
}

.partner-card__link:hover {
    gap: 0.8rem;
    color: #fcd34d;
}

@media (min-width: 992px) {
    .partner-card {
        flex-direction: row;
        align-items: center;
        padding: 2.5rem 3rem;
    }
}

/* ---------- App capability cards ---------- */
.app-cap-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: left;
    font-family: inherit;
    color: inherit;
    cursor: pointer;
    appearance: none;
}

.app-cap-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1.25rem;
}

.app-cap-card .app-cap-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.app-cap-card:hover .app-cap-more,
.app-cap-card:focus-visible .app-cap-more {
    opacity: 1;
}

.app-cap-card:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.app-cap-card .app-cap-arrow {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    font-size: 1rem;
    color: rgba(245, 158, 11, 0.55);
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 50%;
    transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.app-cap-card:hover .app-cap-arrow,
.app-cap-card:focus-visible .app-cap-arrow {
    color: var(--background);
    background: var(--primary);
    border-color: var(--primary);
    transform: translate(2px, -2px);
}

/* ---------- App capability modal ---------- */
.modal-backdrop.show {
    opacity: 0.82;
    background: rgba(5, 3, 1, 0.85);
}

@media (min-width: 768px) {
    .modal-backdrop.show {
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }
}

.app-modal .modal-dialog {
    max-width: 640px;
}

.app-modal .modal-content {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(32, 18, 7, 0.99) 0%, rgba(10, 6, 2, 0.99) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 1.5rem;
    color: var(--on-surface);
    box-shadow: 0 50px 110px -35px rgba(0, 0, 0, 0.95), 0 0 60px rgba(245, 158, 11, 0.08);
}

.app-modal .modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.9), transparent);
}

.app-modal__glow {
    position: absolute;
    top: -170px;
    right: -130px;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.16) 0%, transparent 70%);
    pointer-events: none;
}

.app-modal__close {
    position: absolute;
    top: 1.15rem;
    right: 1.15rem;
    z-index: 5;
    filter: invert(1) grayscale(1) brightness(1.6);
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.app-modal__close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.app-modal .modal-body {
    padding: 2.75rem 2.75rem 1.75rem;
    text-align: center;
}

.app-modal__icon {
    width: 78px;
    height: 78px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    color: var(--primary);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.04) 100%);
    border: 1px solid rgba(245, 158, 11, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 20px 40px -18px rgba(245, 158, 11, 0.45);
}

.app-modal__icon .material-symbols-outlined {
    font-size: 2.3rem;
}

.app-modal__eyebrow {
    margin: 0 0 0.6rem;
    color: var(--primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.app-modal__title {
    margin: 0 0 0.9rem;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.4rem, 3vw, 1.7rem);
    font-weight: 700;
    line-height: 1.2;
}

.app-modal__lead {
    max-width: 480px;
    margin: 0 auto 1.75rem;
    color: var(--on-surface-variant);
    font-size: 1rem;
    line-height: 1.7;
}

.app-modal__divider {
    max-width: 70%;
    height: 1px;
    margin: 0 auto 1.5rem;
    border: 0;
    opacity: 1;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.45), transparent);
}

.app-modal__detail {
    max-width: 520px;
    margin: 0 auto;
    color: var(--on-surface-variant);
    font-size: 0.95rem;
    line-height: 1.9;
    text-align: left;
}

.app-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 2.75rem 1.6rem;
    border-top: 1px solid rgba(245, 158, 11, 0.12);
}

.app-modal__note {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    color: var(--on-surface-variant);
    font-size: 0.75rem;
}

.app-modal__note .material-symbols-outlined {
    font-size: 1rem;
    color: var(--primary);
}

/* Modal entrance choreography */
.app-modal.show .app-modal__icon {
    animation: appModalPop 0.5s cubic-bezier(0.2, 0.8, 0.3, 1.2) both;
}

.app-modal.show .app-modal__eyebrow,
.app-modal.show .app-modal__title,
.app-modal.show .app-modal__lead,
.app-modal.show .app-modal__divider,
.app-modal.show .app-modal__detail {
    animation: appModalIn 0.55s ease both;
}

.app-modal.show .app-modal__eyebrow { animation-delay: 0.05s; }
.app-modal.show .app-modal__title   { animation-delay: 0.1s; }
.app-modal.show .app-modal__lead    { animation-delay: 0.16s; }
.app-modal.show .app-modal__divider { animation-delay: 0.22s; }
.app-modal.show .app-modal__detail  { animation-delay: 0.26s; }

@keyframes appModalPop {
    from { transform: scale(0.7); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

@keyframes appModalIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 575.98px) {
    .app-modal .modal-body {
        padding: 2.25rem 1.5rem 1.25rem;
    }

    .app-modal__footer {
        flex-direction: column-reverse;
        align-items: stretch;
        padding: 1.1rem 1.5rem 1.4rem;
        text-align: center;
    }

    .app-modal__footer .btn {
        width: 100%;
    }

    .app-modal__note {
        justify-content: center;
    }
}

/* ---------- Reduce motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .tier-card,
    .layer-card {
        transition: none;
    }

    .eco-line-flow {
        animation: none;
    }
}
