/* ═══════════════════════════════════════════════════════════════
   XYNEX GLOBAL GATEWAY — Ultra Premium Design System v2
   Navy #06091A · Gold #C9A84C · Cream #F0EDE6
   Glassmorphism · Animated Gradients · World-Class Polish
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --navy: #06091A;
    --navy-light: #0C1024;
    --navy-mid: #111530;
    --navy-card: #0E1228;
    --gold: #C9A84C;
    --gold-light: #E8D48B;
    --gold-bright: #F0D060;
    --gold-dim: rgba(201,168,76,0.12);
    --gold-glow: rgba(201,168,76,0.25);
    --cream: #F0EDE6;
    --cream-dark: #D4CFC5;
    --white: #FFFFFF;
    --text: #E2E8F0;
    --text-dim: #8492A6;
    --text-muted: #5A6577;
    --green: #10B981;
    --green-glow: rgba(16,185,129,0.2);
    --red: #EF4444;
    --yellow: #F59E0B;
    --blue: #3B82F6;
    --purple: #8B5CF6;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --glass: rgba(255,255,255,0.03);
    --glass-border: rgba(255,255,255,0.06);
    --glass-hover: rgba(255,255,255,0.06);
    --shadow: 0 8px 32px rgba(0,0,0,0.3);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.4);
    --shadow-gold: 0 8px 32px rgba(201,168,76,0.15);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--navy);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; line-height: 1.2; }
a { color: var(--gold); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: var(--gold-light); }

::selection { background: rgba(201,168,76,0.3); color: var(--white); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ── Navigation ─────────────────────────────────────────────── */
.nav-main {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(6,9,26,0.6);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(201,168,76,0.06);
    transition: var(--transition);
}
.nav-main.scrolled {
    background: rgba(6,9,26,0.92);
    border-bottom-color: rgba(201,168,76,0.12);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.nav-inner {
    max-width: 1320px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 32px; height: 76px;
}

/* Logo */
.nav-logo {
    display: flex; align-items: center; gap: 3px;
    font-family: 'DM Sans'; font-weight: 700; font-size: 22px;
    color: var(--white); position: relative;
}
.logo-x {
    color: var(--gold); font-size: 32px; font-weight: 800;
    text-shadow: 0 0 20px rgba(201,168,76,0.4);
    transition: var(--transition);
}
.nav-logo:hover .logo-x { text-shadow: 0 0 30px rgba(201,168,76,0.6); }
.logo-text { color: var(--white); letter-spacing: 3px; font-size: 20px; }
.logo-divider { width: 1px; height: 24px; background: linear-gradient(to bottom, transparent, var(--gold), transparent); margin: 0 10px; }
.logo-sub { color: var(--text-dim); font-size: 11px; font-weight: 500; letter-spacing: 4px; text-transform: uppercase; }

/* Nav Links */
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
    padding: 10px 18px; border-radius: var(--radius-sm);
    color: var(--text-dim); font-size: 14px; font-weight: 500;
    letter-spacing: 0.3px; transition: var(--transition-fast);
    position: relative;
}
.nav-link::after {
    content: ''; position: absolute; bottom: 4px; left: 50%; width: 0; height: 2px;
    background: var(--gold); border-radius: 1px; transform: translateX(-50%);
    transition: width 0.3s ease;
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { width: 20px; }
.nav-link--hub {
    color: var(--gold); border: 1px solid rgba(201,168,76,0.25);
    background: rgba(201,168,76,0.06); backdrop-filter: blur(10px);
}
.nav-link--hub:hover { background: rgba(201,168,76,0.12); color: var(--gold-light); border-color: rgba(201,168,76,0.4); }
.nav-link--hub::after { display: none; }
.nav-user { display: flex; align-items: center; gap: 12px; margin-left: 16px; padding-left: 16px; border-left: 1px solid rgba(255,255,255,0.08); }
.nav-user-name { color: var(--text-dim); font-size: 13px; font-weight: 500; }
.nav-link--logout { color: var(--red); font-size: 13px; opacity: 0.8; }
.nav-link--logout:hover { opacity: 1; }
.nav-link--logout::after { display: none; }

/* Sign In Button */
.nav-btn {
    padding: 11px 28px;
    background: linear-gradient(135deg, var(--gold), #B8972F);
    color: var(--navy); border-radius: 100px;
    font-weight: 700; font-size: 13px; letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: var(--transition);
    box-shadow: 0 2px 12px rgba(201,168,76,0.2);
}
.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(201,168,76,0.35);
    color: var(--navy);
}

.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 22px; cursor: pointer; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 36px; border-radius: 100px;
    font-family: 'DM Sans'; font-weight: 700; font-size: 14px;
    letter-spacing: 0.5px; cursor: pointer; border: none;
    transition: var(--transition); position: relative; overflow: hidden;
}
.btn::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0; transition: opacity 0.3s;
}
.btn:hover::before { opacity: 1; }

.btn-gold {
    background: linear-gradient(135deg, var(--gold), #B8972F, var(--gold-light));
    background-size: 200% 200%;
    animation: shimmer 3s ease-in-out infinite;
    color: var(--navy); box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(201,168,76,0.4);
    color: var(--navy);
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.btn-outline {
    background: transparent; color: var(--white);
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
}
.btn-outline:hover {
    border-color: var(--gold); color: var(--gold);
    background: rgba(201,168,76,0.06);
    transform: translateY(-2px);
}

.btn-sm { padding: 10px 20px; font-size: 13px; border-radius: 100px; }
.btn-lg { padding: 20px 48px; font-size: 16px; }
.btn-full { width: 100%; justify-content: center; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 120px 32px 80px;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 30%, rgba(201,168,76,0.07) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 70%, rgba(139,92,246,0.05) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(59,130,246,0.04) 0%, transparent 60%),
        var(--navy);
}

/* Animated mesh gradient overlay */
.hero-bg::before {
    content: ''; position: absolute; inset: -50%;
    background: conic-gradient(from 0deg at 50% 50%,
        rgba(201,168,76,0.04), rgba(139,92,246,0.03), rgba(59,130,246,0.03),
        rgba(201,168,76,0.04), rgba(16,185,129,0.03), rgba(201,168,76,0.04));
    animation: meshRotate 20s linear infinite;
}
@keyframes meshRotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.hero-bg::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 50%, transparent 30%, var(--navy) 70%);
}

.hero-particles { position: absolute; inset: 0; z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 880px; text-align: center; }

/* Grid Lines Background Effect */
.hero-grid {
    position: absolute; inset: 0; z-index: 0;
    background-image:
        linear-gradient(rgba(201,168,76,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201,168,76,0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 24px;
    background: rgba(201,168,76,0.08);
    border: 1px solid rgba(201,168,76,0.15);
    border-radius: 100px; color: var(--gold);
    font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
    animation: fadeInDown 0.8s ease-out;
}
.hero-badge i { font-size: 10px; animation: pulse 2s infinite; }

.hero-title {
    font-size: clamp(40px, 7vw, 72px); line-height: 1.08;
    margin-bottom: 24px; letter-spacing: -1px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}
.hero-line1 { display: block; color: var(--white); }
.hero-line2 {
    display: block;
    background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--gold));
    background-size: 200% auto;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out 0.3s both, gradientShift 4s ease-in-out infinite;
}
@keyframes gradientShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.hero-sub {
    font-size: 18px; color: var(--text-dim); max-width: 620px;
    margin: 0 auto 44px; line-height: 1.8; font-weight: 400;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-actions {
    display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
    margin-bottom: 72px;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

/* Stats Bar */
.hero-stats {
    display: flex; gap: 1px; justify-content: center;
    background: var(--glass-border); border-radius: var(--radius-lg);
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}
.stat {
    text-align: center; padding: 28px 48px;
    background: rgba(12,16,36,0.8);
    backdrop-filter: blur(20px);
    transition: var(--transition);
}
.stat:hover { background: rgba(201,168,76,0.06); }
.stat:first-child { border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.stat:last-child { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.stat-num {
    display: block; font-family: 'DM Mono', monospace;
    font-size: 40px; font-weight: 500; color: var(--gold);
    line-height: 1;
    text-shadow: 0 0 30px rgba(201,168,76,0.2);
}
.stat-label {
    font-size: 11px; color: var(--text-muted); text-transform: uppercase;
    letter-spacing: 2px; margin-top: 8px; font-weight: 600;
}

/* ── Animations ─────────────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(201,168,76,0.1); }
    50% { box-shadow: 0 0 40px rgba(201,168,76,0.2); }
}

/* Scroll-triggered animation class */
.reveal {
    opacity: 0; transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Trust Bar ──────────────────────────────────────────────── */
.section-trust {
    padding: 60px 32px;
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}
.trust-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.trust-label {
    font-size: 11px; color: var(--text-muted); text-transform: uppercase;
    letter-spacing: 3px; font-weight: 600; margin-bottom: 28px;
}
.trust-logos {
    display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap;
    opacity: 0.5;
}
.trust-logo {
    font-family: 'DM Sans'; font-weight: 700; font-size: 18px;
    color: var(--text-dim); letter-spacing: 1px;
    transition: var(--transition);
}
.trust-logo:hover { color: var(--gold); opacity: 1; }
.trust-logo i { margin-right: 8px; }

/* ── Sections ───────────────────────────────────────────────── */
.section { padding: 120px 32px; position: relative; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 72px; }
.section-tag {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 20px;
    background: var(--gold-dim); border: 1px solid rgba(201,168,76,0.15);
    border-radius: 100px; color: var(--gold);
    font-size: 11px; font-weight: 700;
    letter-spacing: 3px; text-transform: uppercase;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}
.section-header h2 {
    font-size: clamp(32px, 4vw, 48px); color: var(--white);
    margin-bottom: 16px; letter-spacing: -0.5px;
}
.section-header p { font-size: 18px; color: var(--text-dim); max-width: 560px; margin: 0 auto; line-height: 1.7; }

/* ── Services (Features) ─────────────────────────────────────── */
.section-services {
    background: linear-gradient(180deg, var(--navy-light) 0%, var(--navy) 50%, var(--navy-light) 100%);
}

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }

.service-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg); padding: 36px;
    transition: var(--transition); position: relative;
    overflow: hidden;
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0; transition: opacity 0.4s;
}
.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(201,168,76,0.15);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 40px rgba(201,168,76,0.05);
    background: rgba(255,255,255,0.04);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
    width: 60px; height: 60px; border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; margin-bottom: 24px;
    position: relative;
}
.service-icon::after {
    content: ''; position: absolute; inset: -4px;
    border-radius: var(--radius); opacity: 0.15;
    background: inherit; filter: blur(12px);
}
.service-card h3 { font-size: 22px; color: var(--white); margin-bottom: 12px; font-family: 'DM Sans'; font-weight: 700; }
.service-card p { font-size: 15px; color: var(--text-dim); margin-bottom: 20px; line-height: 1.7; }
.service-features { list-style: none; }
.service-features li {
    padding: 6px 0; font-size: 14px; color: var(--text-dim);
    display: flex; align-items: center; gap: 10px;
}
.service-features li::before {
    content: '';
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--gold); flex-shrink: 0;
    box-shadow: 0 0 8px rgba(201,168,76,0.4);
}

/* ── Highlights ──────────────────────────────────────────────── */
.highlights-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.highlight {
    text-align: center; padding: 48px 28px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    position: relative;
}
.highlight:hover {
    transform: translateY(-4px);
    border-color: rgba(201,168,76,0.15);
    background: rgba(255,255,255,0.04);
}
.highlight-icon-wrap {
    width: 72px; height: 72px; margin: 0 auto 20px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: var(--gold-dim); border: 1px solid rgba(201,168,76,0.15);
    position: relative;
}
.highlight-icon-wrap::before {
    content: ''; position: absolute; inset: -8px;
    border-radius: 50%; border: 1px solid rgba(201,168,76,0.06);
}
.highlight i { font-size: 28px; color: var(--gold); }
.highlight h3 { font-size: 19px; color: var(--white); margin-bottom: 10px; font-family: 'DM Sans'; font-weight: 700; }
.highlight p { font-size: 14px; color: var(--text-dim); line-height: 1.7; }

/* ── CTA ─────────────────────────────────────────────────────── */
.section-cta { background: var(--navy-light); }
.cta-box {
    text-align: center; padding: 80px 48px;
    background: linear-gradient(135deg, rgba(201,168,76,0.08), rgba(139,92,246,0.04), rgba(59,130,246,0.04));
    border: 1px solid rgba(201,168,76,0.1);
    border-radius: var(--radius-xl);
    position: relative; overflow: hidden;
}
.cta-box::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(201,168,76,0.04) 60deg, transparent 120deg);
    animation: meshRotate 15s linear infinite;
}
.cta-box h2 { font-size: 40px; color: var(--white); margin-bottom: 16px; position: relative; }
.cta-box p { font-size: 18px; color: var(--text-dim); margin-bottom: 40px; position: relative; }
.cta-box .btn { position: relative; }

/* ── Login Page ─────────────────────────────────────────────── */
.login-section {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 100px 32px 40px;
    position: relative; overflow: hidden;
}
.login-section::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(201,168,76,0.06), transparent 50%),
        radial-gradient(ellipse at 70% 30%, rgba(139,92,246,0.04), transparent 50%);
}
.login-container { display: flex; gap: 80px; align-items: center; max-width: 1060px; width: 100%; position: relative; z-index: 1; }

.login-card {
    flex: 0 0 440px;
    background: rgba(12,16,36,0.8);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-xl); padding: 52px 44px;
    box-shadow: var(--shadow-lg), 0 0 80px rgba(0,0,0,0.3);
    position: relative;
}
.login-card::before {
    content: ''; position: absolute; top: 0; left: 20%; right: 20%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,168,76,0.3), transparent);
}
.login-header { text-align: center; margin-bottom: 36px; }
.login-logo { margin-bottom: 28px; }
.login-logo .logo-x { font-size: 44px; text-shadow: 0 0 30px rgba(201,168,76,0.4); }
.login-logo .logo-text { font-size: 30px; }
.login-header h1 { font-size: 30px; color: var(--white); margin-bottom: 10px; }
.login-header p { color: var(--text-dim); font-size: 15px; }

.login-error {
    background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2);
    border-radius: var(--radius-sm); padding: 14px 18px;
    color: var(--red); font-size: 14px; margin-bottom: 24px;
    display: flex; align-items: center; gap: 10px;
}

.form-group { margin-bottom: 22px; }
.form-group label {
    display: block; margin-bottom: 8px;
    font-size: 12px; font-weight: 600; color: var(--text-dim);
    text-transform: uppercase; letter-spacing: 1px;
}
.form-group label i { width: 16px; color: var(--gold); }
.form-group input, .form-group select {
    width: 100%; padding: 15px 18px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-sm); color: var(--white);
    font-family: 'DM Sans'; font-size: 15px;
    transition: var(--transition);
}
.form-group input:focus, .form-group select:focus {
    outline: none; border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(201,168,76,0.08);
    background: rgba(201,168,76,0.03);
}
.form-group input::placeholder { color: var(--text-muted); }

.password-wrapper { position: relative; }
.password-wrapper input { padding-right: 48px; }
.password-toggle {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 16px;
    transition: color 0.2s;
}
.password-toggle:hover { color: var(--gold); }

.login-footer { margin-top: 28px; text-align: center; }
.login-secure { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; justify-content: center; gap: 6px; }
.login-secure i { color: var(--green); }

.login-bg-art { flex: 1; }
.login-app-preview { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.preview-card {
    padding: 22px; background: var(--glass);
    border: 1px solid var(--glass-border); border-radius: var(--radius);
    color: var(--text-dim); font-size: 14px; font-weight: 500;
    display: flex; align-items: center; gap: 12px;
    transition: var(--transition);
}
.preview-card:hover { border-color: rgba(201,168,76,0.2); background: rgba(255,255,255,0.04); transform: translateY(-2px); }
.preview-card i { color: var(--gold); font-size: 20px; width: 24px; text-align: center; }

/* ── App Hub ────────────────────────────────────────────────── */
.hub-section { padding: 100px 32px 60px; min-height: 100vh; }
.hub-inner { max-width: 1320px; margin: 0 auto; }

.hub-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 28px; flex-wrap: wrap; gap: 16px;
}
.hub-header h1 { font-size: 32px; color: var(--white); font-family: 'DM Sans'; font-weight: 700; }
.hub-header h1 i { color: var(--gold); }
.hub-header p { color: var(--text-dim); font-size: 15px; margin-top: 4px; }
.hub-header-right { display: flex; align-items: center; gap: 12px; }

.status-pill {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 20px; border-radius: 100px;
    font-size: 13px; font-weight: 600; font-family: 'DM Mono', monospace;
    backdrop-filter: blur(10px);
}
.status-pill.status-green { background: rgba(16,185,129,0.08); color: var(--green); border: 1px solid rgba(16,185,129,0.15); }
.status-pill.status-yellow { background: rgba(245,158,11,0.08); color: var(--yellow); border: 1px solid rgba(245,158,11,0.15); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; }

.hub-search { position: relative; margin-bottom: 36px; }
.hub-search i { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 16px; }
.hub-search input {
    width: 100%; padding: 16px 20px 16px 52px;
    background: var(--glass); border: 1px solid var(--glass-border);
    border-radius: var(--radius); color: var(--white);
    font-family: 'DM Sans'; font-size: 15px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}
.hub-search input:focus { outline: none; border-color: rgba(201,168,76,0.3); box-shadow: 0 0 0 4px rgba(201,168,76,0.06); }
.hub-search input::placeholder { color: var(--text-muted); }

.hub-category { margin-bottom: 44px; }
.category-title {
    font-size: 12px; color: var(--text-muted); margin-bottom: 18px;
    display: flex; align-items: center; gap: 10px;
    font-family: 'DM Sans'; font-weight: 700; text-transform: uppercase;
    letter-spacing: 2px;
}
.category-title::after {
    content: ''; flex: 1; height: 1px;
    background: linear-gradient(90deg, var(--glass-border), transparent);
}
.category-title i { color: var(--gold); font-size: 14px; }

.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }

.app-card {
    background: var(--glass); border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg); padding: 28px;
    transition: var(--transition); cursor: pointer;
    display: flex; flex-direction: column; position: relative;
    overflow: hidden;
}
.app-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0; transition: opacity 0.3s;
}
.app-card:hover {
    transform: translateY(-4px); border-color: rgba(201,168,76,0.15);
    box-shadow: var(--shadow-lg);
    background: rgba(255,255,255,0.04); color: var(--text);
}
.app-card:hover::before { opacity: 1; }
.app-card--down { opacity: 0.5; }
.app-card--down:hover { border-color: rgba(239,68,68,0.3); }
.app-card--down::before { background: linear-gradient(90deg, transparent, var(--red), transparent); }

.app-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.app-icon {
    width: 52px; height: 52px; border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; position: relative;
}
.app-icon::after {
    content: ''; position: absolute; inset: -3px;
    border-radius: var(--radius); opacity: 0.1;
    background: inherit; filter: blur(10px);
}

.status-badge {
    font-size: 11px; font-weight: 700; display: flex; align-items: center; gap: 5px;
    padding: 5px 12px; border-radius: 100px; letter-spacing: 0.5px;
}
.status-up { color: var(--green); background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.15); }
.status-up i { font-size: 5px; }
.status-down { color: var(--red); background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.15); }
.status-down i { font-size: 5px; }
.status-embedded { color: var(--blue); background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.15); }
.status-download { color: var(--text-dim); background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); }
.status-unknown { color: var(--yellow); background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.15); }

.app-name { font-family: 'DM Sans'; font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.app-desc { font-size: 14px; color: var(--text-dim); line-height: 1.6; flex: 1; margin-bottom: 14px; }

.app-failover {
    padding: 10px 14px; background: rgba(245,158,11,0.06);
    border: 1px solid rgba(245,158,11,0.12);
    border-radius: var(--radius-sm); color: var(--yellow);
    font-size: 12px; font-weight: 600; margin-bottom: 14px;
}

.app-card-footer { display: flex; align-items: center; justify-content: space-between; }
.app-latency { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--text-muted); }
.app-arrow { color: var(--gold); opacity: 0; transition: var(--transition); }
.app-card:hover .app-arrow { opacity: 1; transform: translateX(4px); }

/* ── System Status Bar ──────────────────────────────────────── */
.hub-system-bar {
    margin-top: 48px; padding: 20px 0;
    border-top: 1px solid var(--glass-border);
}
.system-bar-inner { display: flex; gap: 28px; flex-wrap: wrap; }
.system-item {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; color: var(--text-muted); font-weight: 500;
}
.system-item i { color: var(--gold); font-size: 13px; }
.system-item--link { color: var(--gold); cursor: pointer; padding: 6px 14px; border-radius: 100px; border: 1px solid rgba(201,168,76,0.15); }
.system-item--link:hover { background: rgba(201,168,76,0.08); color: var(--gold-light); }

/* ── About / Services / Contact Pages ─────────────────────── */
.page-section {
    padding: 140px 32px 80px;
    min-height: 60vh;
}
.page-section .section-inner { max-width: 900px; margin: 0 auto; }
.page-section h1 {
    font-size: 48px; color: var(--white); margin-bottom: 24px;
    text-align: center;
}
.page-section .lead {
    font-size: 18px; color: var(--text-dim); text-align: center;
    max-width: 600px; margin: 0 auto 48px; line-height: 1.8;
}
.content-card {
    background: var(--glass); border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg); padding: 40px;
    margin-bottom: 20px;
}
.content-card h3 { font-family: 'DM Sans'; font-size: 20px; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.content-card p { color: var(--text-dim); line-height: 1.7; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
    background: var(--navy-light);
    border-top: 1px solid var(--glass-border);
    padding: 72px 32px 28px;
    position: relative;
}
.footer::before {
    content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,168,76,0.2), transparent);
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo { margin-bottom: 20px; }
.footer-logo .logo-x { font-size: 28px; color: var(--gold); font-weight: 800; text-shadow: 0 0 20px rgba(201,168,76,0.3); }
.footer-logo .logo-text { font-size: 20px; color: var(--white); font-weight: 700; letter-spacing: 3px; }
.footer-logo .logo-sub { font-size: 10px; color: var(--text-muted); letter-spacing: 4px; margin-left: 10px; }
.footer-desc { font-size: 14px; color: var(--text-dim); line-height: 1.7; max-width: 300px; }
.footer-col h4 {
    font-family: 'DM Sans'; font-size: 12px; font-weight: 700;
    color: var(--gold); margin-bottom: 20px; text-transform: uppercase;
    letter-spacing: 2px;
}
.footer-col a {
    display: block; font-size: 14px; color: var(--text-dim); padding: 5px 0;
    transition: var(--transition-fast);
}
.footer-col a:hover { color: var(--white); transform: translateX(4px); }
.footer-col p { font-size: 13px; color: var(--text-dim); padding: 5px 0; }
.footer-col p i { color: var(--gold); width: 18px; margin-right: 8px; }

.footer-bottom {
    padding-top: 28px; border-top: 1px solid var(--glass-border);
    display: flex; align-items: center; justify-content: space-between;
}
.footer-bottom p { font-size: 12px; color: var(--text-muted); }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--glass); border: 1px solid var(--glass-border);
    color: var(--text-dim); font-size: 14px;
    transition: var(--transition);
}
.footer-social a:hover { color: var(--gold); border-color: rgba(201,168,76,0.3); transform: translateY(-2px); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .nav-links {
        display: none; position: absolute; top: 76px; left: 0; right: 0;
        background: rgba(6,9,26,0.95); backdrop-filter: blur(20px);
        padding: 20px; flex-direction: column; gap: 4px;
        border-bottom: 1px solid var(--glass-border);
    }
    .nav-links.open { display: flex; }
    .nav-toggle { display: block; }
    .nav-user { margin-left: 0; padding-left: 0; border-left: none; flex-direction: column; align-items: flex-start; }
    .hero { padding: 100px 20px 60px; }
    .hero-stats { flex-direction: column; border-radius: var(--radius); }
    .stat { border-radius: 0 !important; }
    .stat:first-child { border-radius: var(--radius) var(--radius) 0 0 !important; }
    .stat:last-child { border-radius: 0 0 var(--radius) var(--radius) !important; }
    .stat-num { font-size: 32px; }
    .section { padding: 80px 20px; }
    .login-container { flex-direction: column; gap: 40px; }
    .login-card { flex: none; width: 100%; max-width: 440px; padding: 36px 28px; }
    .login-bg-art { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .app-grid { grid-template-columns: 1fr; }
    .hub-header { flex-direction: column; align-items: flex-start; }
}
