/* ============================================================================
 * Perdana University — UMS Public Homepage
 * Design system + component styles. Served directly from /public (no build step).
 * Style direction: "Soft UI Evolution" — soft depth, WCAG AA+, institutional SaaS.
 * ==========================================================================*/

/* ------------------------------------------------------------------ TOKENS */
:root {
    /* Brand */
    --navy:        #003366;
    --navy-deep:   #001F3F;
    --blue-mid:    #0A4F8C;
    --blue-light:  #EAF3FA;
    --orange:      #FD9800;
    --orange-soft: #FFF3E0;

    /* Neutrals */
    --bg:          #F5F7FA;
    --surface:     #FFFFFF;
    --text:        #172033;
    --muted:       #667085;
    --border:      #DCE4EC;
    --border-soft: #EAEFF5;

    /* Status */
    --info:        #0A4F8C;
    --info-bg:     #EAF3FA;
    --success:     #15803D;
    --success-bg:  #E9F7EF;
    --warning:     #B45309;
    --warning-bg:  #FEF4E6;
    --urgent:      #C0392B;
    --urgent-bg:   #FCECEA;

    /* Typography */
    --font-head: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

    /* Radius */
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 20px;
    --r-2xl: 28px;
    --r-pill: 999px;

    /* Shadows */
    --shadow-sm:  0 1px 2px rgba(16,24,40,.06);
    --shadow-md:  0 6px 20px rgba(16,24,40,.08);
    --shadow-lg:  0 18px 40px rgba(16,24,40,.12);
    --shadow-xl:  0 30px 60px rgba(16,24,40,.16);
    --shadow-navy: 0 20px 45px rgba(0,51,102,.28);

    /* Layout */
    --container: 1200px;
    --nav-h: 72px;
    --ease: cubic-bezier(.22,.61,.36,1);
}

/* ------------------------------------------------------------------- RESET */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; line-height: 1.14; letter-spacing: -.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 2px;
    border-radius: 4px;
}

.hp-skip {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 1200;
    background: var(--navy);
    color: #fff;
    padding: 10px 18px;
    border-radius: var(--r-md);
    font-weight: 600;
    transition: top .2s var(--ease);
}
.hp-skip:focus { top: 16px; }

.hp-container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* Shared section heading */
.hp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--blue-mid);
    margin-bottom: 14px;
}
.hp-eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    background: var(--orange);
    border-radius: 2px;
}
.hp-h2 {
    font-size: clamp(26px, 3.4vw, 38px);
    font-weight: 700;
    color: var(--navy);
}
.hp-lead {
    margin-top: 12px;
    font-size: 17px;
    color: var(--muted);
    max-width: 620px;
}
.hp-section { padding: 84px 0; }
.hp-section-head { margin-bottom: 44px; }

/* ------------------------------------------------------------------ BUTTONS */
.hp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    padding: 15px 26px;
    border-radius: var(--r-md);
    border: 1.5px solid transparent;
    cursor: pointer;
    min-height: 48px;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease),
                background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.hp-btn svg { width: 18px; height: 18px; }
.hp-btn-primary {
    background: var(--navy);
    color: #fff;
    box-shadow: var(--shadow-navy);
}
.hp-btn-primary:hover { transform: translateY(-2px); background: #00294f; box-shadow: 0 26px 55px rgba(0,51,102,.34); }
.hp-btn-primary .hp-btn-arrow { transition: transform .2s var(--ease); color: var(--orange); }
.hp-btn-primary:hover .hp-btn-arrow { transform: translateX(4px); }

.hp-btn-accent {
    background: var(--orange);
    color: var(--navy-deep);
    box-shadow: 0 16px 34px rgba(253,152,0,.32);
}
.hp-btn-accent:hover { transform: translateY(-2px); box-shadow: 0 22px 44px rgba(253,152,0,.4); }

.hp-btn-ghost {
    background: rgba(255,255,255,.06);
    color: #fff;
    border-color: rgba(255,255,255,.28);
}
.hp-btn-ghost:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }

.hp-btn-outline {
    background: var(--surface);
    color: var(--navy);
    border-color: var(--border);
}
.hp-btn-outline:hover { border-color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ================================================================= NAVBAR */
.hp-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    z-index: 1000;
    display: flex;
    align-items: center;
    background: rgba(0,31,63,.55);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid rgba(255,255,255,.08);
    transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease), height .3s var(--ease);
}
.hp-nav.is-scrolled {
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 6px 24px rgba(16,24,40,.08);
}
.hp-nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.hp-brand { display: flex; align-items: center; gap: 12px; }
.hp-brand-logo {
    height: 40px; width: auto;
    background: #fff;
    border-radius: 10px;
    padding: 5px 8px;
    box-shadow: var(--shadow-sm);
}
.hp-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.hp-brand-name {
    font-family: var(--font-head);
    font-size: 16px; font-weight: 700;
    color: #fff;
    transition: color .3s var(--ease);
}
.hp-brand-sub {
    font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
    color: rgba(255,255,255,.68);
    transition: color .3s var(--ease);
}
.hp-nav.is-scrolled .hp-brand-name { color: var(--navy); }
.hp-nav.is-scrolled .hp-brand-sub { color: var(--muted); }

.hp-nav-links { display: flex; align-items: center; gap: 4px; }
.hp-nav-link {
    font-size: 15px; font-weight: 500;
    color: rgba(255,255,255,.82);
    padding: 9px 14px;
    border-radius: var(--r-sm);
    transition: color .2s var(--ease), background .2s var(--ease);
}
.hp-nav-link:hover { color: #fff; background: rgba(255,255,255,.12); }
.hp-nav.is-scrolled .hp-nav-link { color: var(--text); }
.hp-nav.is-scrolled .hp-nav-link:hover { color: var(--navy); background: var(--blue-light); }

.hp-nav-actions { display: flex; align-items: center; gap: 10px; }
.hp-nav-login {
    font-family: var(--font-head);
    font-size: 15px; font-weight: 600;
    color: var(--navy-deep);
    background: var(--orange);
    padding: 11px 20px;
    border-radius: var(--r-md);
    box-shadow: 0 10px 24px rgba(253,152,0,.3);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.hp-nav-login:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(253,152,0,.4); }

.hp-burger {
    display: none;
    width: 46px; height: 46px;
    align-items: center; justify-content: center;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: var(--r-md);
    cursor: pointer;
    color: #fff;
}
.hp-nav.is-scrolled .hp-burger { background: var(--blue-light); border-color: var(--border); color: var(--navy); }
.hp-burger svg { width: 22px; height: 22px; }

/* Mobile menu panel */
.hp-mobile {
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    z-index: 999;
    background: rgba(0,31,63,.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .32s var(--ease), visibility .32s var(--ease);
    overflow-y: auto;
}
.hp-mobile.is-open { transform: translateX(0); visibility: visible; }
.hp-mobile a {
    font-family: var(--font-head);
    font-size: 18px; font-weight: 500;
    color: #fff;
    padding: 16px 14px;
    border-radius: var(--r-md);
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.hp-mobile a:hover, .hp-mobile a:focus-visible { background: rgba(255,255,255,.1); }
.hp-mobile .hp-mobile-cta {
    margin-top: 16px;
    background: var(--orange);
    color: var(--navy-deep);
    font-weight: 700;
    text-align: center;
    border-bottom: none;
}

/* =================================================================== HERO */
.hp-hero {
    position: relative;
    padding: calc(var(--nav-h) + 72px) 0 96px;
    background:
        radial-gradient(1100px 520px at 8% -5%, rgba(10,79,140,.9), transparent 60%),
        radial-gradient(900px 520px at 100% 0%, rgba(0,51,102,.95), transparent 55%),
        linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, #012a52 100%);
    overflow: hidden;
    isolation: isolate;
}
/* Animated gradient mesh glow */
.hp-hero-glow {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .55;
    pointer-events: none;
}
.hp-hero-glow.g1 { width: 460px; height: 460px; top: -120px; left: -60px; background: radial-gradient(circle, rgba(253,152,0,.5), transparent 70%); animation: hp-float-glow 14s var(--ease) infinite; }
.hp-hero-glow.g2 { width: 520px; height: 520px; bottom: -160px; right: -80px; background: radial-gradient(circle, rgba(10,79,140,.7), transparent 70%); animation: hp-float-glow 18s var(--ease) infinite reverse; }
/* Grid pattern overlay */
.hp-hero::before {
    content: "";
    position: absolute; inset: 0; z-index: -1;
    background-image:
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(1000px 600px at 30% 20%, #000 30%, transparent 80%);
            mask-image: radial-gradient(1000px 600px at 30% 20%, #000 30%, transparent 80%);
}

.hp-hero-grid {
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    gap: 56px;
    align-items: center;
}
.hp-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px; font-weight: 600;
    color: #fff;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    padding: 8px 14px;
    border-radius: var(--r-pill);
    backdrop-filter: blur(6px);
}
.hp-badge .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 0 4px rgba(253,152,0,.28);
    animation: hp-pulse 2.4s ease-in-out infinite;
}
.hp-hero-title {
    margin-top: 22px;
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 800;
    color: #fff;
    letter-spacing: -.03em;
}
.hp-hero-title .accent {
    background: linear-gradient(100deg, var(--orange), #ffc061);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hp-hero-sub {
    margin-top: 20px;
    font-size: 18px;
    color: rgba(255,255,255,.82);
    max-width: 520px;
}
.hp-hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.hp-hero-note {
    margin-top: 18px;
    display: flex; align-items: center; gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,.62);
}
.hp-hero-note svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Dashboard preview */
.hp-dash {
    position: relative;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: var(--r-2xl);
    padding: 18px;
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: hp-float-dash 7s ease-in-out infinite;
}
.hp-dash-bar { display: flex; align-items: center; gap: 7px; padding: 4px 4px 14px; }
.hp-dash-dot { width: 11px; height: 11px; border-radius: 50%; }
.hp-dash-dot.r { background: #ff5f57; }
.hp-dash-dot.y { background: #febc2e; }
.hp-dash-dot.g { background: #28c840; }
.hp-dash-bar span { margin-left: 8px; font-size: 12px; color: rgba(255,255,255,.6); font-weight: 500; }
.hp-dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hp-dash-card {
    background: rgba(255,255,255,.96);
    border-radius: var(--r-lg);
    padding: 15px;
    box-shadow: var(--shadow-md);
}
.hp-dash-card.wide { grid-column: 1 / -1; }
.hp-dash-ico {
    width: 34px; height: 34px;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 10px;
}
.hp-dash-ico svg { width: 18px; height: 18px; }
.hp-dash-ico.a { background: var(--blue-light); color: var(--blue-mid); }
.hp-dash-ico.b { background: var(--orange-soft); color: var(--warning); }
.hp-dash-ico.c { background: var(--success-bg); color: var(--success); }
.hp-dash-ico.d { background: #EEF0FB; color: #4046B0; }
.hp-dash-label { font-size: 12px; color: var(--muted); font-weight: 500; }
.hp-dash-value { font-family: var(--font-head); font-size: 24px; font-weight: 700; color: var(--navy); line-height: 1.1; margin-top: 2px; }
.hp-dash-trend { font-size: 11px; font-weight: 600; color: var(--success); display: inline-flex; align-items: center; gap: 3px; margin-top: 6px; }
/* mini progress rows for wide card */
.hp-dash-row { display: flex; align-items: center; justify-content: space-between; font-size: 12px; margin-bottom: 8px; color: var(--text); }
.hp-dash-row:last-child { margin-bottom: 0; }
.hp-dash-track { flex: 1; height: 6px; background: var(--border-soft); border-radius: var(--r-pill); margin: 0 12px; overflow: hidden; }
.hp-dash-fill { height: 100%; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--blue-mid), var(--orange)); }
/* floating badge chip */
.hp-dash-chip {
    position: absolute;
    bottom: -18px; left: -18px;
    background: #fff;
    border-radius: var(--r-md);
    padding: 10px 14px;
    box-shadow: var(--shadow-lg);
    display: flex; align-items: center; gap: 10px;
    animation: hp-float-dash 5.5s ease-in-out infinite reverse;
}
.hp-dash-chip .ico { width: 30px; height: 30px; border-radius: 8px; background: var(--success-bg); color: var(--success); display: flex; align-items: center; justify-content: center; }
.hp-dash-chip .ico svg { width: 16px; height: 16px; }
.hp-dash-chip small { display: block; font-size: 11px; color: var(--muted); }
.hp-dash-chip strong { font-family: var(--font-head); font-size: 14px; color: var(--navy); }

/* ============================================================ TRUST STRIP */
.hp-trust { background: var(--surface); border-bottom: 1px solid var(--border-soft); }
.hp-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    padding: 46px 0;
}
.hp-trust-item { display: flex; gap: 14px; align-items: flex-start; }
.hp-trust-ico {
    flex-shrink: 0;
    width: 46px; height: 46px;
    border-radius: var(--r-md);
    background: var(--blue-light);
    color: var(--navy);
    display: flex; align-items: center; justify-content: center;
}
.hp-trust-ico svg { width: 23px; height: 23px; }
.hp-trust-title { font-family: var(--font-head); font-size: 16px; font-weight: 600; color: var(--navy); }
.hp-trust-desc { font-size: 13.5px; color: var(--muted); margin-top: 3px; line-height: 1.5; }

/* ========================================================== QUICK ACCESS */
.hp-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.hp-qcard {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 26px;
    overflow: hidden;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.hp-qcard::after {
    content: "";
    position: absolute; inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(130deg, var(--orange), transparent 45%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity .25s var(--ease);
    pointer-events: none;
}
.hp-qcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.hp-qcard:hover::after { opacity: 1; }
.hp-qcard-ico {
    width: 52px; height: 52px;
    border-radius: var(--r-md);
    background: linear-gradient(140deg, var(--navy), var(--blue-mid));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 20px rgba(0,51,102,.22);
    margin-bottom: 18px;
    transition: transform .25s var(--ease);
}
.hp-qcard:hover .hp-qcard-ico { transform: scale(1.06) rotate(-3deg); }
.hp-qcard-ico svg { width: 26px; height: 26px; }
.hp-qcard-title { font-family: var(--font-head); font-size: 18px; font-weight: 600; color: var(--navy); }
.hp-qcard-desc { font-size: 14px; color: var(--muted); margin-top: 8px; line-height: 1.55; flex: 1; }
.hp-qcard-link {
    display: inline-flex; align-items: center; gap: 7px;
    margin-top: 18px;
    font-family: var(--font-head); font-size: 14px; font-weight: 600;
    color: var(--navy);
}
.hp-qcard-link svg { width: 16px; height: 16px; color: var(--orange); transition: transform .2s var(--ease); }
.hp-qcard:hover .hp-qcard-link svg { transform: translateX(4px); }

/* ============================================================ ANNOUNCE */
.hp-ann { background: var(--surface); }
.hp-ann-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; }
.hp-ann-col { display: flex; flex-direction: column; gap: 16px; }

.hp-ann-card {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 20px 22px;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
a.hp-ann-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue-mid); }

.hp-ann-featured {
    position: relative;
    background: linear-gradient(150deg, var(--navy) 0%, var(--blue-mid) 100%);
    border: none;
    color: #fff;
    padding: 30px;
    overflow: hidden;
    height: 100%;
}
.hp-ann-featured::before {
    content: ""; position: absolute; top: -40px; right: -40px;
    width: 200px; height: 200px; border-radius: 50%;
    background: radial-gradient(circle, rgba(253,152,0,.35), transparent 70%);
}
.hp-ann-featured .hp-ann-title { color: #fff; font-size: 22px; }
.hp-ann-featured .hp-ann-body { color: rgba(255,255,255,.82); }
.hp-ann-featured .hp-ann-meta { color: rgba(255,255,255,.7); }

.hp-ann-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.hp-badge-pill {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    padding: 4px 10px; border-radius: var(--r-pill);
}
.hp-badge-pill svg { width: 12px; height: 12px; }
.hp-badge-pinned { background: var(--orange); color: var(--navy-deep); }
.hp-badge-info    { background: var(--info-bg);    color: var(--info); }
.hp-badge-success { background: var(--success-bg); color: var(--success); }
.hp-badge-warning { background: var(--warning-bg); color: var(--warning); }
.hp-badge-urgent  { background: var(--urgent-bg);  color: var(--urgent); }
.hp-ann-featured .hp-badge-info,
.hp-ann-featured .hp-badge-success,
.hp-ann-featured .hp-badge-warning,
.hp-ann-featured .hp-badge-urgent { background: rgba(255,255,255,.18); color: #fff; }

.hp-ann-title { font-family: var(--font-head); font-size: 17px; font-weight: 600; color: var(--navy); line-height: 1.35; }
.hp-ann-body { font-size: 14px; color: var(--muted); margin-top: 8px; line-height: 1.6; }
.hp-ann-meta { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.hp-ann-meta svg { width: 14px; height: 14px; opacity: .7; }
.hp-ann-link {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 14px;
    font-family: var(--font-head); font-size: 13px; font-weight: 600;
}
.hp-ann-featured .hp-ann-link { color: var(--orange); }
.hp-ann-link { color: var(--navy); }
.hp-ann-link svg { width: 15px; height: 15px; }

.hp-ann-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 30px;
    background: var(--bg);
    border: 1px dashed var(--border);
    border-radius: var(--r-lg);
}
.hp-ann-empty svg { width: 44px; height: 44px; color: var(--blue-mid); margin-bottom: 14px; }
.hp-ann-empty p { color: var(--muted); font-size: 15px; }

/* ============================================================ ACCESS GUIDE */
.hp-guide { position: relative; background: linear-gradient(160deg, var(--navy-deep), var(--navy)); overflow: hidden; }
.hp-guide::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(700px 400px at 85% 10%, rgba(253,152,0,.14), transparent 60%);
}
.hp-guide .hp-container { position: relative; }
.hp-guide .hp-eyebrow { color: #ffc061; }
.hp-guide .hp-h2 { color: #fff; }
.hp-guide .hp-lead { color: rgba(255,255,255,.72); }
.hp-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    position: relative;
}
/* connecting line */
.hp-steps::before {
    content: "";
    position: absolute;
    top: 34px; left: 16%; right: 16%;
    height: 2px;
    background: repeating-linear-gradient(90deg, rgba(253,152,0,.55) 0 10px, transparent 10px 20px);
}
.hp-step { position: relative; text-align: center; }
.hp-step-num {
    width: 68px; height: 68px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(150deg, var(--orange), #ffb84d);
    color: var(--navy-deep);
    font-family: var(--font-head); font-size: 26px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 12px 30px rgba(253,152,0,.35);
    border: 4px solid var(--navy-deep);
    position: relative; z-index: 1;
}
.hp-step-title { font-family: var(--font-head); font-size: 18px; font-weight: 600; color: #fff; }
.hp-step-desc { font-size: 14px; color: rgba(255,255,255,.72); margin-top: 8px; line-height: 1.55; max-width: 280px; margin-left: auto; margin-right: auto; }

/* ============================================================ USER GUIDES */
.hp-ug-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hp-ug {
    display: flex; flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 24px;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.hp-ug:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.hp-ug-ico {
    width: 46px; height: 46px; border-radius: var(--r-md);
    background: var(--blue-light); color: var(--navy);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.hp-ug-ico svg { width: 23px; height: 23px; }
.hp-ug-title { font-family: var(--font-head); font-size: 16px; font-weight: 600; color: var(--navy); }
.hp-ug-desc { font-size: 13.5px; color: var(--muted); margin-top: 8px; line-height: 1.55; flex: 1; }
.hp-ug-foot { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; }
.hp-ug-tag {
    font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
    color: var(--blue-mid); background: var(--blue-light);
    padding: 4px 10px; border-radius: var(--r-pill);
}
.hp-ug-soon {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 11px; font-weight: 600; color: var(--muted);
}
.hp-ug-soon svg { width: 13px; height: 13px; }

/* ============================================================ CONTACTS */
.hp-contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.hp-contact {
    display: flex; gap: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 24px;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.hp-contact:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue-mid); }
.hp-contact-ico {
    flex-shrink: 0;
    width: 50px; height: 50px; border-radius: var(--r-md);
    background: linear-gradient(145deg, var(--navy), var(--blue-mid));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
}
.hp-contact-ico svg { width: 24px; height: 24px; }
.hp-contact-dept { font-family: var(--font-head); font-size: 16px; font-weight: 600; color: var(--navy); }
.hp-contact-cat { font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.hp-contact-mail {
    display: inline-flex; align-items: center; gap: 7px;
    margin-top: 12px;
    font-size: 14px; font-weight: 600; color: var(--blue-mid);
    word-break: break-all;
}
.hp-contact-mail svg { width: 15px; height: 15px; flex-shrink: 0; }
.hp-contact-mail:hover { color: var(--navy); text-decoration: underline; }
.hp-contact-note { font-size: 12px; color: var(--muted); margin-top: 8px; }

/* =================================================================== CTA */
.hp-cta { padding: 90px 0; }
.hp-cta-inner {
    position: relative;
    background: linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 100%);
    border-radius: var(--r-2xl);
    padding: 64px 48px;
    text-align: center;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}
.hp-cta-inner::before {
    content: ""; position: absolute; top: -80px; right: -60px;
    width: 340px; height: 340px; border-radius: 50%;
    background: radial-gradient(circle, rgba(253,152,0,.3), transparent 70%);
}
.hp-cta-inner::after {
    content: ""; position: absolute; bottom: -100px; left: -70px;
    width: 320px; height: 320px; border-radius: 50%;
    background: radial-gradient(circle, rgba(10,79,140,.6), transparent 70%);
}
.hp-cta-content { position: relative; z-index: 1; }
.hp-cta-title { font-size: clamp(28px, 4vw, 42px); font-weight: 800; color: #fff; }
.hp-cta-sub { margin: 16px auto 30px; font-size: 18px; color: rgba(255,255,255,.8); max-width: 560px; }
.hp-cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* =================================================================== FOOTER */
.hp-footer { background: var(--navy-deep); color: rgba(255,255,255,.72); padding: 64px 0 28px; }
.hp-footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 44px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.hp-footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.hp-footer-brand img { height: 42px; background: #fff; border-radius: 10px; padding: 6px 9px; }
.hp-footer-brand-name { font-family: var(--font-head); font-size: 17px; font-weight: 700; color: #fff; }
.hp-footer-brand-sub { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.hp-footer-about { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.62); max-width: 320px; }
.hp-footer-col h4 { font-family: var(--font-head); font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 16px; letter-spacing: .02em; }
.hp-footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.hp-footer-col a, .hp-footer-col span { font-size: 14px; color: rgba(255,255,255,.66); transition: color .2s var(--ease); }
.hp-footer-col a:hover { color: var(--orange); }
.hp-footer-contact-item { display: flex; align-items: center; gap: 9px; font-size: 14px; }
.hp-footer-contact-item svg { width: 16px; height: 16px; color: var(--orange); flex-shrink: 0; }
.hp-footer-bottom {
    padding-top: 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    flex-wrap: wrap;
    font-size: 13px; color: rgba(255,255,255,.5);
}

/* =============================================================== ANIMATION */
@keyframes hp-float-dash { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes hp-float-glow { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px,26px) scale(1.08); } }
@keyframes hp-pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(253,152,0,.28); } 50% { box-shadow: 0 0 0 8px rgba(253,152,0,.05); } }

/* Scroll-reveal base */
.hp-reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); will-change: opacity, transform; }
.hp-reveal.is-visible { opacity: 1; transform: none; }
.hp-reveal[data-delay="1"] { transition-delay: .08s; }
.hp-reveal[data-delay="2"] { transition-delay: .16s; }
.hp-reveal[data-delay="3"] { transition-delay: .24s; }
.hp-reveal[data-delay="4"] { transition-delay: .32s; }
.hp-reveal[data-delay="5"] { transition-delay: .4s; }

/* ============================================================== RESPONSIVE */
@media (max-width: 1024px) {
    .hp-hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .hp-hero-title { max-width: 640px; }
    .hp-dash { max-width: 520px; }
    .hp-trust-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .hp-quick-grid { grid-template-columns: repeat(2, 1fr); }
    .hp-ann-layout { grid-template-columns: 1fr; }
    .hp-ug-grid { grid-template-columns: repeat(2, 1fr); }
    .hp-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 860px) {
    .hp-nav-links { display: none; }
    .hp-nav-login { display: none; }
    .hp-burger { display: flex; }
    .hp-section { padding: 64px 0; }
    .hp-cta { padding: 64px 0; }
}
@media (max-width: 680px) {
    .hp-container { padding: 0 18px; }
    .hp-nav-inner { padding: 0 18px; }
    .hp-brand-sub { display: none; }
    .hp-hero { padding: calc(var(--nav-h) + 48px) 0 72px; }
    .hp-steps { grid-template-columns: 1fr; gap: 36px; }
    .hp-steps::before { display: none; }
    .hp-quick-grid { grid-template-columns: 1fr; }
    .hp-ug-grid { grid-template-columns: 1fr; }
    .hp-contact-grid { grid-template-columns: 1fr; }
    .hp-trust-grid { grid-template-columns: 1fr; }
    .hp-cta-inner { padding: 48px 24px; }
    .hp-footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .hp-dash-chip { left: 8px; bottom: -14px; }
    .hp-hero-cta .hp-btn { width: 100%; }
}
@media (max-width: 400px) {
    .hp-dash-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .hp-reveal { opacity: 1 !important; transform: none !important; }
    .hp-hero-glow, .hp-dash, .hp-dash-chip { animation: none !important; }
}
