/* Keyreal brand refresh for the Muriq Business OS public portal. */
:root {
    --primary-gold: #dfbb52;
    --accent-bronze: #b8963e;
    --bg-deep-black: #080a0c;
    --bg-card-glass: #12161a;
    --border-glass: rgba(255, 255, 255, .12);
    --text-white: #edf0f2;
    --text-muted: #b3bac0;
    --text-gold-gradient: linear-gradient(135deg, #f2d77d 0%, #dfbb52 100%);
    --color-auto: #dfbb52;
    --color-invoicing: #dfbb52;
    --color-rental: #dfbb52;
    --color-pos: #dfbb52;
    color-scheme: dark;
}

html { scroll-behavior: smooth; }
body {
    background: #080a0c !important;
    color: #edf0f2 !important;
    font-family: Inter, Arial, sans-serif !important;
}
body > header {
    padding: 1rem 0 !important;
    background: rgba(8, 10, 12, .94) !important;
    border-bottom: 1px solid rgba(255,255,255,.12) !important;
    backdrop-filter: blur(16px);
}
body > header > div {
    max-width: 1320px !important;
    width: min(92%, 1320px) !important;
    min-height: 54px;
}
.portal-brand { min-width: 0; }
.portal-brand-logo { width: 38px !important; height: 38px !important; }
.portal-brand-name { font-size: .94rem !important; letter-spacing: .08em !important; }
.portal-nav { gap: 12px !important; }
.portal-nav a {
    min-height: 42px;
    border-radius: 9px !important;
    padding: 10px 18px !important;
    font-size: .82rem !important;
    text-decoration: none;
}
.portal-nav a:first-child { color: #dfbb52 !important; }
.portal-nav a:last-child { background: #dfbb52 !important; color: #111 !important; }
.portal-wrapper {
    width: min(92%, 1320px) !important;
    max-width: 1320px !important;
    padding: clamp(3.5rem, 7vw, 6rem) 0 !important;
    gap: clamp(2.5rem, 5vw, 4.5rem) !important;
}
.portal-header { margin: 0 !important; }
.company-logo {
    font-size: .82rem !important;
    letter-spacing: .24em !important;
    margin-bottom: 1rem !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 14px;
}
.company-logo img { display: block; width: 76px; height: 36px; object-fit: contain; flex: 0 0 auto; }
.portal-header h1 {
    background: none !important;
    -webkit-text-fill-color: #edf0f2 !important;
    color: #edf0f2 !important;
    font-size: clamp(2.35rem, 5vw, 3.8rem) !important;
    letter-spacing: -.045em !important;
    margin: 1.3rem 0 .8rem !important;
}
.portal-header p {
    max-width: 760px !important;
    color: #b3bac0 !important;
    font-size: clamp(1rem, 1.6vw, 1.14rem) !important;
}
.module-intro {
    /* Keep the label visually connected to the cards without letting it touch them. */
    margin: -1.2rem 0 -1rem !important;
    color: #dfbb52 !important;
    letter-spacing: .14em !important;
}
.portal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1.25rem !important;
}
.portal-card {
    min-width: 0;
    height: 100%;
    padding: 1.65rem !important;
    border-radius: 18px !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    background: linear-gradient(155deg, #15191d 0%, #101316 100%) !important;
    box-shadow: 0 16px 44px rgba(0,0,0,.16);
}
.portal-card::before { height: 2px !important; opacity: .72 !important; background: #dfbb52 !important; }
.portal-card:hover { border-color: rgba(223,187,82,.55) !important; background: #171a1d !important; transform: translateY(-3px) !important; }
.card-badge {
    margin-bottom: 1.25rem !important;
    color: #dfbb52 !important;
    background: rgba(223,187,82,.08) !important;
    border: 1px solid rgba(223,187,82,.2) !important;
    letter-spacing: .11em !important;
}
.card-icon { color: #dfbb52 !important; font-size: 1.8rem !important; margin: 0 0 .85rem !important; }
.portal-card h2 { font-size: 1.38rem !important; line-height: 1.25; }
.card-slogan { color: #dfbb52 !important; font-size: .78rem !important; margin-bottom: .8rem !important; }
.portal-card p { color: #b3bac0 !important; font-size: .92rem !important; line-height: 1.62 !important; margin-bottom: 1rem !important; }
.card-features {
    gap: .58rem !important;
    margin: 0 0 1.4rem !important;
    padding-top: 1rem !important;
    border-color: rgba(255,255,255,.1) !important;
}
.card-features li { color: #d4d8db !important; font-size: .85rem !important; line-height: 1.45; }
.card-features li i { color: #dfbb52 !important; flex: 0 0 auto; }
.portal-card .btn-launch {
    min-height: 46px;
    margin-top: auto !important;
    border: 1px solid #dfbb52 !important;
    background: #dfbb52 !important;
    color: #111 !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-size: .9rem !important;
}
.portal-card .btn-launch:hover { background: #f0d477 !important; }
.explore-link { color: #c7cdd1 !important; margin-top: 1rem !important; }
.explore-link:hover { color: #dfbb52 !important; }
.showcase-section {
    padding: clamp(1.5rem, 4vw, 3rem) !important;
    background: #101316 !important;
    border-color: rgba(255,255,255,.12) !important;
    border-radius: 20px !important;
}
.showcase-title-area { margin-bottom: 2rem !important; }
.showcase-title-area h2 { font-size: clamp(1.7rem, 3vw, 2.2rem) !important; }
.showcase-title-area p { color: #b3bac0 !important; }
.showcase-tabs { gap: .65rem !important; margin-bottom: 2rem !important; padding-bottom: 1rem !important; }
.showcase-section .tab-btn,
.showcase-section .tab-btn:hover,
.showcase-section .tab-btn.active[data-target] {
    color: #edf0f2 !important;
    background: #171b1f !important;
    border-color: rgba(255,255,255,.14) !important;
    box-shadow: none !important;
}
.showcase-section .tab-btn.active[data-target] { color: #dfbb52 !important; border-color: rgba(223,187,82,.55) !important; }
.workflow-step { background: #14181b !important; border-color: rgba(255,255,255,.1) !important; }
.workflow-step:hover { background: #191d20 !important; border-color: rgba(223,187,82,.35) !important; }
.step-number,
.showcase-panel .step-number { background: #dfbb52 !important; color: #111 !important; }
.step-icon { color: #dfbb52 !important; }
.workflow-step h3 { color: #edf0f2 !important; }
.workflow-step p { color: #b3bac0 !important; }
.portal-footer { background: #080a0c !important; border-color: rgba(255,255,255,.12) !important; }
.footer-brand { color: #edf0f2 !important; }
.footer-links a { color: #b3bac0 !important; }
.footer-links a:hover { color: #dfbb52 !important; }
.footer-legal { color: #8b9298 !important; }
a:focus-visible, button:focus-visible, .explore-link:focus-visible { outline: 3px solid #dfbb52 !important; outline-offset: 3px; }

@media (max-width: 900px) {
    .portal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .showcase-panel { grid-template-columns: repeat(2, minmax(0,1fr)) !important; gap: 1rem !important; }
    .workflow-step { text-align: left !important; padding: 2rem 1.3rem 1.3rem !important; }
    .step-number { top: -15px !important; left: 20px !important; transform: none !important; }
}
@media (max-width: 620px) {
    body > header { padding: .7rem 0 !important; }
    body > header > div { width: 92% !important; gap: .65rem; flex-wrap: wrap; }
    .portal-brand { gap: 7px !important; }
    .portal-brand-logo { width: 32px !important; height: 32px !important; }
    .portal-brand-name { font-size: .68rem !important; letter-spacing: .01em !important; }
    .portal-nav { width: 100%; justify-content: flex-end; gap: 8px !important; }
    .portal-nav a { flex: 1 1 0; text-align: center; padding: 8px 10px !important; min-height: 38px; font-size: .72rem !important; }
    .portal-wrapper { width: 92% !important; padding: 3rem 0 !important; gap: 2.5rem !important; }
    .company-logo { font-size: .68rem !important; letter-spacing: .12em !important; gap: 9px; }
    .company-logo img { width: 56px; height: 28px; }
    .portal-header h1 { font-size: clamp(2rem, 9vw, 2.8rem) !important; }
    .portal-header p { font-size: .98rem !important; }
    .module-intro { margin: -.5rem 0 -.35rem !important; font-size: .68rem !important; line-height: 1.5 !important; }
    .portal-grid { grid-template-columns: minmax(0,1fr) !important; gap: .9rem !important; }
    .portal-card { padding: 1.35rem !important; }
    .showcase-section { padding: 1.35rem 1rem !important; }
    .showcase-tabs { justify-content: flex-start !important; gap: .5rem !important; }
    .showcase-section .tab-btn { padding: 9px 12px !important; font-size: .82rem !important; }
    .showcase-panel,
    .showcase-panel.active { grid-template-columns: minmax(0,1fr) !important; gap: 1.5rem !important; }
    .workflow-step { text-align: left !important; }
    .footer-content { width: 92% !important; align-items: flex-start !important; text-align: left !important; }
    .footer-links { justify-content: flex-start !important; gap: .8rem 1.2rem !important; }
}
@media (max-width: 360px) {
    .portal-brand { flex: 1 1 100%; justify-content: center; }
    .portal-nav a { padding-inline: 7px !important; font-size: .67rem !important; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
