@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600&display=swap');

/* ── Variables ── */
:root {
    --grad:   linear-gradient(135deg, #22D3EE 0%, #11a7d9 40%, #22419c 70%, #ed1c27 100%);
    --cyan:   #22D3EE;
    --bg:     #F8FAFE;
    --bg2:    #F1F5F9;
    --border: #E2E8F0;
    --text:   #0F172A;
    --text2:  #475569;
    --muted:  #94A3B8;
    --r:      12px;
    --r-sm:   8px;
    --r-pill: 100px;
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { text-decoration: none; }
[x-cloak] { display: none !important; }

/* ── Utility ── */
.grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Page layout: push footer to bottom ── */
.page-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.page-wrap .hero {
    flex: 1;
}

/* ════════════════════════════
   NAVBAR
════════════════════════════ */
.xh-navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    height: 64px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    /* background: linear-gradient(to bottom, rgba(15,23,42,0.55), transparent); */
    border-bottom: 1px solid transparent;
    transition: all 0.25s;
}
.xh-navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    border-bottom-color: var(--border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 12px rgba(0,0,0,0.05);
}
.nav-inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ── Logo: image on top, text below ── */
.xh-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    flex-shrink: 0;
}

.xh-logo-icon {
    width: 110px;
    height: auto;
    display: block;
}
.xh-logo-icon img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}
.xh-logo-icon svg {
    width: 100%;
    height: auto;
}

.xh-logo-icon--sm {
    width: 90px;
}

.xh-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.xh-logo-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.02em;
    color: var(--text);
    white-space: nowrap;
}
.xh-logo-x { color: var(--cyan); }
.xh-logo-tag {
    font-size: 8px;
    color: var(--muted);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 2px;
}

/* ── Nav Actions ── */
.nav-actions { display: flex; align-items: center; gap: 8px; }

.btn-nav-login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-pill);
    background: white;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text2);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.btn-nav-login i { font-size: 16px; flex-shrink: 0; }
.btn-nav-login:hover { background: var(--text); color: white; border-color: var(--text); }

/* ── User Dropdown ── */
.user-dropdown { position: relative; }

.user-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 6px;
    border-radius: var(--r-pill);
    border: 1.5px solid var(--border);
    background: white;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    transition: all 0.2s;
}
.user-trigger:hover { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34,211,238,0.08); }

.user-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--grad);
    color: white;
    font-size: 12px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    flex-shrink: 0;
}
.user-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.user-trigger .ri-arrow-down-s-line { font-size: 16px; color: var(--muted); transition: transform 0.2s; }
.user-trigger .ri-arrow-down-s-line.rotated { transform: rotate(180deg); }

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px); right: 0;
    min-width: 180px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    overflow: hidden;
    z-index: 300;
    padding: 4px;
}
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    border-radius: var(--r-sm);
    transition: background 0.15s;
}
.dropdown-item:hover { background: var(--bg); }
.dropdown-item--danger { color: #EF4444; }
.dropdown-item--danger:hover { background: #FEF2F2; }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* ════════════════════════════
   HERO
════════════════════════════ */
.hero {
    padding: 140px 24px 100px;
    min-height: 80vh;
    background: url('https://images.pexels.com/photos/7651555/pexels-photo-7651555.jpeg') center center / cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dark overlay on top of the background image */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,23,42,0.78) 0%, rgba(17,167,217,0.28) 100%);
    z-index: 0;
}

.hero-inner {
    max-width: 760px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    color: black;
}

.hero-sub {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.70);
    line-height: 1.5;
}
.hero-sub a {
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}
.hero-sub a:hover { opacity: 0.75; }

/* ════════════════════════════
   FOOTER
════════════════════════════ */
.xh-footer {
    background: #0F172A;
    padding: 56px 0 0;
    position: relative;
    flex-shrink: 0;
}
.xh-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: var(--grad);
    opacity: 0.4;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.xh-footer .xh-logo { flex-direction: column; align-items: flex-start; }
.xh-footer .xh-logo-name { color: white; }
.xh-footer .xh-logo-tag  { color: rgba(255,255,255,0.3); }

.footer-brand-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.35);
    line-height: 1.65;
    margin-top: 14px;
    max-width: 240px;
}

.footer-links-group { display: flex; flex-direction: column; gap: 12px; }

.footer-group-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
    margin-bottom: 2px;
}
.footer-links-group a { font-size: 13px; color: rgba(255,255,255,0.45); transition: color 0.2s; }
.footer-links-group a:hover { color: var(--cyan); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.2); }

.footer-socials { display: flex; gap: 8px; }
.footer-socials a {
    width: 32px; height: 32px;
    border-radius: var(--r-sm);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
    color: rgba(255,255,255,0.3);
    transition: all 0.2s;
}
.footer-socials a:hover { border-color: var(--cyan); color: var(--cyan); }

/* ════════════════════════════
   RESPONSIVE
════════════════════════════ */
@media (max-width: 1024px) {
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
    .hero { padding: 100px 20px 60px; }

    .btn-nav-login {
        padding: 9px 11px;
        font-size: 0;
        gap: 0;
    }
    .btn-nav-login i {
        font-size: 18px;
    }

    .user-name { display: none; }
    .user-trigger { padding: 6px; }

    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
    .footer-inner { grid-template-columns: 1fr; }
    .hero h1 { letter-spacing: -0.5px; }
}
