/* ============================================================
   AUREUM POS — Demo Portal  |  Dark Gold Theme
   ============================================================ */

:root {
    --bg:          #111111;
    --bg-nav:      #0d0d0d;
    --bg-card:     #1a1a1a;
    --bg-ele:      #242424;
    --bg-input:    #1e1e1e;
    --gold:        #e8b84b;
    --gold-light:  #f0c55a;
    --gold-dim:    rgba(232, 184, 75, 0.12);
    --text:        #f0ede8;
    --text-muted:  #777777;
    --text-dim:    #444444;
    --border:      rgba(255, 255, 255, 0.07);
    --border-card: rgba(255, 255, 255, 0.06);
    --max-w:       900px;
}

/* === RESET === */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a  { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font: inherit; }
ul { list-style: none; }

/* ============================================================
   PRIMARY NAV
   ============================================================ */

.primary-nav {
    display: flex;
    align-items: center;
    gap: 48px;
    padding: 0 48px;
    height: 64px;
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    font-family: "Rajdhani", "Inter", sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.1em;
    color: var(--gold);
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    flex: 1;
}

.nav-link {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: color 180ms;
}

.nav-link--active {
    color: var(--text);
    border-bottom-color: var(--gold);
}

.nav-link:hover {
    color: var(--text);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.nav-action-btn {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text-muted);
    transition: background 180ms, color 180ms;
}

.nav-action-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text);
}

.nav-avatar {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gold-dim);
    border: 1.5px solid rgba(232, 184, 75, 0.3);
    color: var(--gold);
    cursor: default;
    margin-left: 4px;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
    padding: 72px 48px 60px;
    text-align: center;
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(232, 184, 75, 0.05) 0%, transparent 70%),
        var(--bg);
}

.hero__badge {
    display: inline-block;
    padding: 7px 18px;
    border-radius: 999px;
    border: 1px solid rgba(232, 184, 75, 0.35);
    background: rgba(232, 184, 75, 0.08);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 28px;
}

.hero__title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 18px;
}

.hero__subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 54ch;
    margin: 0 auto 40px;
}

.br-desk {
    display: none;
}

@media (min-width: 640px) {
    .br-desk { display: block; }
}

.search-wrap {
    max-width: 540px;
    margin: 0 auto;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 6px 0 20px;
    height: 54px;
    background: var(--bg-input);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    transition: border-color 200ms, box-shadow 200ms;
    cursor: text;
}

.search-bar:focus-within {
    border-color: rgba(232, 184, 75, 0.4);
    box-shadow: 0 0 0 3px rgba(232, 184, 75, 0.07);
}

.search-bar__icon {
    color: var(--text-dim);
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.search-bar input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 0.93rem;
    min-width: 0;
}

.search-bar input::placeholder {
    color: var(--text-dim);
}

.search-bar__btn {
    height: 40px;
    padding: 0 22px;
    border: none;
    border-radius: 999px;
    background: var(--gold);
    color: #0d0d0d;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: background 160ms, transform 120ms;
    flex-shrink: 0;
}

.search-bar__btn:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
}

/* ============================================================
   SYSTEMS SECTION
   ============================================================ */

.systems-section {
    padding: 8px 48px 72px;
}

.systems-wrap {
    max-width: var(--max-w);
    margin: 0 auto;
}

.system-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

/* ============================================================
   SYSTEM CARD
   ============================================================ */

.system-card {
    display: flex;
    flex-direction: row;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 14px;
    transition: border-color 220ms, transform 220ms, box-shadow 220ms;
    animation: fadeUp 420ms ease both;
    animation-delay: calc(var(--card-index, 0) * 65ms);
}

.system-card:hover {
    border-color: rgba(232, 184, 75, 0.22);
    transform: translateY(-5px);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.5);
}

.system-card__image-wrap {
    position: relative;
    flex-shrink: 0;
    width: 145px;
}

.system-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(1) brightness(0.88);
}

.system-card__category {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.72);
    color: #e0e0e0;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(4px);
}

.system-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 22px 22px 20px;
    gap: 8px;
    min-width: 0;
}

.system-card__title {
    font-size: 1.18rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

.system-card__description {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.65;
    flex: 1;
}

.credentials {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 10px;
    margin-top: 8px;
}

.credentials__item {
    padding: 10px 14px;
    background: var(--bg-ele);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.credentials__item dt {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 5px;
}

.credentials__item dd {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    word-break: break-all;
    overflow-wrap: anywhere;
}

.demo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: transparent;
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: border-color 180ms, color 180ms, background 180ms, transform 140ms;
    margin-top: 4px;
}

.demo-link:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(232, 184, 75, 0.05);
    transform: translateY(-1px);
}

.demo-link:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */

.empty-state {
    padding: 64px 24px;
    text-align: center;
    background: var(--bg-card);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: var(--text-muted);
}

.empty-state h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text);
}

/* ============================================================
   INFRASTRUCTURE SECTION
   ============================================================ */

.infra-section {
    padding: 0 48px 72px;
}

.infra-wrap {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 48px;
    padding: 40px 48px;
    background: #191919;
    border: 1px solid var(--border-card);
    border-radius: 16px;
}

.infra__copy {
    flex: 1;
}

.infra__copy h2 {
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 12px;
    color: var(--text);
}

.infra__copy p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 40ch;
}

.infra__stats {
    display: flex;
    gap: 48px;
    flex-shrink: 0;
}

.infra__stat {
    text-align: center;
}

.infra__stat strong {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: -0.02em;
    margin-bottom: 5px;
    font-family: "Rajdhani", "Inter", sans-serif;
}

.infra__stat span {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
    background: #0d0d0d;
    border-top: 1px solid var(--border);
    padding: 28px 48px;
}

.footer-wrap {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer__copy {
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    color: var(--text-dim);
}

.footer__nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.footer__nav a {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 160ms;
}

.footer__nav a:hover {
    color: var(--text);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

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

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 940px) {
    .primary-nav     { padding: 0 28px; gap: 24px; }
    .hero            { padding: 56px 28px 48px; }
    .systems-section { padding: 8px 28px 56px; }
    .infra-section   { padding: 0 28px 56px; }
    .site-footer     { padding: 24px 28px; }
    .infra-wrap      { flex-direction: column; gap: 28px; padding: 32px 32px; }
    .infra__stats    { gap: 36px; }
    .system-grid     { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .nav-links                   { display: none; }
    .primary-nav                 { padding: 0 20px; gap: 12px; }
    .hero                        { padding: 40px 20px 36px; }
    .systems-section,
    .infra-section               { padding-left: 20px; padding-right: 20px; }
    .site-footer                 { padding: 20px; }
    .footer-wrap                 { flex-direction: column; align-items: flex-start; gap: 16px; }
    .footer__nav                 { flex-wrap: wrap; gap: 16px; }
    .system-card__image-wrap     { width: 110px; }
    .credentials                 { grid-template-columns: 1fr; }
    .infra__stats                { flex-wrap: wrap; justify-content: center; gap: 24px; }
    .infra-wrap                  { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
