/* Explain: App-specific component classes for buttons, header, typography, cards, and forms. */
/* ---------------- Buttons ---------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .85rem 1.55rem;
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .03em;
    line-height: 1.25;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: center;
    transition: transform .3s ease, background .3s ease, color .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; }

.btn-gold { background: var(--gold-500); color: #fff; box-shadow: 0 10px 26px rgba(201, 162, 39, .26); }
.btn-gold:hover { background: var(--gold-600); box-shadow: 0 14px 32px rgba(201, 162, 39, .34); }

.btn-navy { background: var(--navy-700); color: #fff; box-shadow: 0 10px 24px rgba(11, 37, 69, .22); }
.btn-navy:hover { background: var(--navy-600); }

.btn-ghost-light {
    background: rgba(255, 255, 255, .07);
    color: #fff;
    border-color: rgba(255, 255, 255, .45);
    backdrop-filter: blur(4px);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, .17); border-color: #fff; }

.btn-outline { background: transparent; color: var(--navy-700); border-color: var(--platinum-300); }
.btn-outline:hover { border-color: var(--gold-500); color: var(--gold-600); box-shadow: var(--shadow-sm); }

.btn-block { width: 100%; }
.btn-sm { padding: .65rem 1.1rem; font-size: .8rem; }
.btn:disabled { opacity: .65; cursor: not-allowed; transform: none; }

/* ---------------- Header ---------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: box-shadow .35s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.brand { display: flex; align-items: center; gap: .7rem; }
.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 6px;
    flex-shrink: 0;
    background: linear-gradient(140deg, var(--navy-700), var(--navy-900));
    color: var(--gold-400);
    font-size: 1.05rem;
    box-shadow: var(--shadow-xs);
}
.brand-name {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.06rem;
    line-height: 1;
    letter-spacing: .1em;
    color: var(--navy-800);
}
.brand-sub {
    display: block;
    font-size: .57rem;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 4px;
}

.nav-link {
    position: relative;
    font-size: .84rem;
    font-weight: 500;
    color: var(--navy-700);
    padding: .3rem 0;
    white-space: nowrap;
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    height: 2px;
    width: 0;
    background: var(--gold-500);
    transition: width .3s ease;
}
.nav-link:hover::after, .nav-link.is-active::after { width: 100%; }
.nav-link.is-active { color: var(--navy-900); font-weight: 600; }

.nav-burger {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--navy-700);
    font-size: 1rem;
    cursor: pointer;
    transition: border-color .25s ease, color .25s ease;
}
.nav-burger:hover { border-color: var(--gold-500); color: var(--gold-600); }

.mobile-menu {
    display: none;
    border-top: 1px solid var(--border-color);
    background: #fff;
}
.mobile-menu.is-open { display: block; }
.mobile-menu-inner { padding: .5rem 0 1.5rem; }
.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .9rem .25rem;
    font-size: .95rem;
    font-weight: 500;
    color: var(--navy-700);
    border-bottom: 1px solid var(--border-color);
}
.mobile-nav-link:hover { color: var(--gold-600); }
.mobile-nav-link.is-active { color: var(--navy-900); font-weight: 600; }

@media (min-width: 1280px) {
    .mobile-menu { display: none !important; }
}

/* ---------------- Typography helpers ---------------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--gold-600);
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--gold-500); }
.eyebrow-light { color: var(--gold-400); }

.section-title { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.18; color: var(--navy-800); }
.section-lead { font-size: 1rem; color: var(--text-muted); line-height: 1.85; max-width: 64ch; }
.text-gold { color: var(--gold-600); }
.hero-eyebrow {
    display: inline-block;
    font-size: .72rem;
    letter-spacing: .34em;
    text-transform: uppercase;
    color: var(--gold-400);
    border-left: 2px solid var(--gold-500);
    padding-left: .85rem;
}

/* ---------------- Cards ---------------- */
.card-premium {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    padding: 1.85rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--gold-500), var(--gold-400));
    transition: width .45s ease;
}
.card-premium:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--platinum-300); }
.card-premium:hover::before { width: 100%; }

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    margin-bottom: 1.15rem;
    background: var(--platinum-100);
    border: 1px solid var(--border-color);
    color: var(--navy-700);
    font-size: 1.1rem;
    transition: background .35s ease, color .35s ease, border-color .35s ease;
}
.card-premium:hover .card-icon { background: var(--navy-700); color: var(--gold-400); border-color: var(--navy-700); }
.card-title { font-size: 1.12rem; margin-bottom: .6rem; }
.card-text { font-size: .9rem; color: var(--text-muted); line-height: 1.75; }

.tick-list li {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    font-size: .85rem;
    color: var(--text-muted);
    line-height: 1.65;
    padding-top: .55rem;
}
.tick-list i { color: var(--gold-500); font-size: .68rem; margin-top: .5rem; }
.tick-list-light li { color: rgba(255, 255, 255, .76); }

/* ---------------- Pillars / stats ---------------- */
.pillar {
    padding: 1.4rem 1.5rem;
    border-left: 2px solid var(--platinum-300);
    transition: border-color .35s ease, background .35s ease;
}
.pillar:hover { border-color: var(--gold-500); background: rgba(201, 162, 39, .04); }
.pillar-label { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-600); font-weight: 600; }
.pillar-value { font-family: var(--font-heading); font-size: 1.15rem; color: var(--navy-800); margin-top: .35rem; }
.pillar-text { font-size: .86rem; color: var(--text-muted); margin-top: .35rem; }

/* ---------------- Process timeline ---------------- */
.step { position: relative; padding-left: 3.75rem; padding-bottom: 2.25rem; }
.step:last-child { padding-bottom: 0; }
.step-num {
    position: absolute;
    left: 0;
    top: 0;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy-700);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
}
.step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 1.2rem;
    top: 2.6rem;
    bottom: .4rem;
    width: 1px;
    background: linear-gradient(var(--platinum-300), rgba(211, 216, 224, 0));
}
.step-title { font-size: 1.1rem; margin-bottom: .5rem; }
.step-text { font-size: .9rem; color: var(--text-muted); line-height: 1.75; }

/* ---------------- Markets explorer ---------------- */
.market-list { display: flex; flex-direction: column; gap: .5rem; }
.market-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    text-align: left;
    padding: .9rem 1.05rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--navy-700);
    font-size: .9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .3s ease, border-color .3s ease, color .3s ease, transform .3s ease;
}
.market-btn:hover { border-color: var(--gold-400); transform: translateX(3px); }
.market-btn.is-active { background: var(--navy-700); border-color: var(--navy-700); color: #fff; transform: none; }
.market-code {
    display: inline-block;
    min-width: 2.6rem;
    font-size: .72rem;
    letter-spacing: .16em;
    font-weight: 700;
    color: var(--gold-600);
}
.market-btn.is-active .market-code { color: var(--gold-400); }

.market-detail { position: relative; }
.market-panel { display: none; }
.market-panel.is-active { display: block; animation: fadeIn .45s ease; }

/* ---------------- Forms ---------------- */
.form-shell {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.form-block { padding: 1.9rem 1.6rem; border-bottom: 1px solid var(--border-color); }
.form-block:last-of-type { border-bottom: none; }
.form-block-title {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: 1.02rem;
    margin-bottom: 1.4rem;
}
.form-block-title span {
    font-family: var(--font-heading);
    font-size: .78rem;
    font-weight: 700;
    color: var(--gold-600);
    border: 1px solid var(--platinum-300);
    border-radius: 50%;
    width: 1.9rem;
    height: 1.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.field-label {
    display: block;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--navy-700);
    margin-bottom: .45rem;
}
.field-input {
    width: 100%;
    padding: .8rem .95rem;
    font-size: .92rem;
    font-family: var(--font-body);
    color: var(--text-color);
    background: #fff;
    border: 1px solid var(--platinum-300);
    border-radius: var(--radius-sm);
    transition: border-color .25s ease, box-shadow .25s ease;
}
.field-input:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(19, 56, 95, .12); }
.field-input::placeholder { color: var(--platinum-400); }
.field-hint { font-size: .76rem; color: var(--text-muted); margin-top: .4rem; }
textarea.field-input { resize: vertical; min-height: 150px; }
select.field-input {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%235b6675'%3E%3Cpath d='M4.2 6.1 8 9.9l3.8-3.8.9.9L8 11.7 3.3 7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .85rem center;
    background-size: 16px;
    padding-right: 2.4rem;
}
.check-row {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    font-size: .85rem;
    color: var(--text-muted);
    line-height: 1.65;
}
.check-row input { margin-top: .35rem; width: 1.05rem; height: 1.05rem; accent-color: var(--navy-700); flex-shrink: 0; }

.form-status { font-size: .85rem; font-weight: 500; margin-top: 1rem; min-height: 1.2rem; }
.form-status.is-error { color: #b3261e; }
.form-status.is-info { color: var(--navy-600); }

.form-success {
    background: #fff;
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--gold-500);
    border-radius: var(--radius-md);
    padding: 2.4rem 1.9rem;
    box-shadow: var(--shadow-md);
    text-align: center;
}
.form-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: rgba(201, 162, 39, .12);
    color: var(--gold-600);
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
}

/* Upload */
.upload-zone {
    border: 1.5px dashed var(--platinum-300);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.25rem;
    text-align: center;
    background: var(--platinum-100);
    cursor: pointer;
    transition: border-color .25s ease, background .25s ease;
}
.upload-zone:hover, .upload-zone.is-dragover { border-color: var(--gold-500); background: #fffdf6; }
.upload-zone i { font-size: 1.3rem; color: var(--navy-600); }
.upload-zone p { font-size: .87rem; color: var(--navy-700); margin-top: .55rem; font-weight: 500; }
.upload-zone span { font-size: .76rem; color: var(--text-muted); }
.file-list { display: flex; flex-direction: column; gap: .5rem; margin-top: .9rem; }
.file-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    font-size: .82rem;
    color: var(--navy-700);
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: .55rem .75rem;
}
.file-chip .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-remove {
    border: none;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: .85rem;
    padding: .15rem .3rem;
    transition: color .25s ease;
}
.file-remove:hover { color: #b3261e; }

/* Assurance card */
.assurance-card {
    background: linear-gradient(158deg, var(--navy-900), var(--navy-700));
    color: #fff;
    border-radius: var(--radius-md);
    padding: 1.85rem;
    box-shadow: var(--shadow-md);
}
.assurance-card h3 { color: #fff; font-size: 1.12rem; }
.assurance-card p { font-size: .87rem; color: rgba(255, 255, 255, .76); line-height: 1.75; }

/* Contact */
.contact-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    box-shadow: var(--shadow-xs);
}
.contact-row { display: flex; align-items: flex-start; gap: .9rem; padding: .85rem 0; border-bottom: 1px solid var(--border-color); }
.contact-row:last-child { border-bottom: none; }
.contact-row i { color: var(--gold-600); font-size: .95rem; margin-top: .3rem; }

/* Notice band */
.notice-band {
    border-left: 3px solid var(--gold-500);
    background: rgba(201, 162, 39, .06);
    padding: 1.15rem 1.35rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.notice-band p { font-size: .85rem; color: var(--text-muted); line-height: 1.75; }

/* ---------------- Footer ---------------- */
.site-footer {
    background: linear-gradient(160deg, var(--navy-900), var(--navy-800) 55%, var(--navy-700));
    color: rgba(255, 255, 255, .72);
}
.site-footer h4 {
    font-family: var(--font-body);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 1.1rem;
}
.footer-link {
    display: block;
    font-size: .86rem;
    color: rgba(255, 255, 255, .7);
    padding: .28rem 0;
    transition: color .25s ease, transform .25s ease;
}
.footer-link:hover { color: var(--gold-400); transform: translateX(3px); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-note { font-size: .78rem; color: rgba(255, 255, 255, .55); line-height: 1.7; }