/* ══════════════════════════════════════════════════════════════════
   Home / Landing Page  —  Portal UT Tool  (Enterprise Light)
══════════════════════════════════════════════════════════════════ */

:root {
    --brand:        #1d4ed8;
    --brand-h:      #4338ca;
    --brand-lt:     #2563eb;
    --brand-pale:   #eef2ff;
    --brand-border: #bfdbfe;
    --surface:      #ffffff;
    --surface-2:    #f8fafc;
    --surface-3:    #f1f5f9;
    --border:       #e2e8f0;
    --border-s:     #cbd5e1;
    --text:         #0f172a;
    --text-2:       #1e293b;
    --text-3:       #475569;
    --text-4:       #94a3b8;
    --green:        #16a34a;
    --green-bg:     #dcfce7;
    --blue-bg:      #dbeafe;
    --blue:         #2563eb;
    --orange-bg:    #fef3c7;
    --orange:       #d97706;
    --pink-bg:      #fce7f3;
    --pink:         #db2777;
    --teal-bg:      #ccfbf1;
    --teal:         #0d9488;
    --radius-sm:    8px;
    --radius-md:    14px;
    --radius-lg:    20px;
    --radius-xl:    28px;
    --shadow-sm:    0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md:    0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg:    0 16px 40px rgba(0,0,0,0.10);
    --shadow-brand: 0 8px 28px rgba(79,70,229,0.28);
}

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

/* ── Base ─────────────────────────────────────────────────────────── */
body.home-body {
    min-height: 100vh;
    background: var(--surface-2);
    font-family: 'Inter', sans-serif;
    color: var(--text);
    overflow-x: hidden;
}

/* ── Container ────────────────────────────────────────────────────── */
.home-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
    width: 100%;
}

/* ── Announcement bar ─────────────────────────────────────────────── */
.home-announce {
    background: var(--brand);
    color: #fff;
    text-align: center;
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    z-index: 300;
}
.home-announce a {
    color: #bfdbfe;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px solid rgba(199,210,254,0.5);
    transition: color .2s;
}
.home-announce a:hover { color: #fff; }
.home-announce-badge {
    background: rgba(255,255,255,0.2);
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ── Navbar ───────────────────────────────────────────────────────── */
.home-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 48px;
    height: 68px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 1px 0 var(--border);
}

.home-nav-brand {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none;
}
.home-nav-brand-icon {
    width: 36px; height: 36px;
    background: var(--brand);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(79,70,229,0.3);
}
.home-nav-brand-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.2px;
}
.home-nav-brand-name span { color: var(--brand); }

.home-nav-links {
    display: flex; gap: 4px; list-style: none;
}
.home-nav-links a {
    text-decoration: none;
    color: var(--text-3);
    font-size: 14px;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    transition: all .15s;
}
.home-nav-links a:hover { color: var(--brand); background: var(--brand-pale); }

.home-nav-actions { display: flex; gap: 8px; align-items: center; }

/* ── Buttons ──────────────────────────────────────────────────────── */
.home-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 600;
    text-decoration: none;
    border: none; cursor: pointer;
    transition: all .18s;
    white-space: nowrap;
    line-height: 1;
}
.home-btn-ghost {
    background: transparent; color: var(--text-3);
}
.home-btn-ghost:hover { color: var(--brand); background: var(--brand-pale); }

.home-btn-outline {
    background: var(--surface);
    border: 1.5px solid var(--border-s);
    color: var(--text-2);
    box-shadow: var(--shadow-sm);
}
.home-btn-outline:hover { border-color: var(--brand-border); color: var(--brand); background: var(--brand-pale); }

.home-btn-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 2px 8px rgba(79,70,229,0.30);
}
.home-btn-primary:hover { background: var(--brand-h); transform: translateY(-1px); box-shadow: var(--shadow-brand); }

.home-btn-white {
    background: #fff; color: var(--brand);
    box-shadow: 0 4px 16px rgba(0,0,0,0.14);
    font-weight: 700;
}
.home-btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.20); }

.home-btn-xl { padding: 15px 36px; font-size: 16px; border-radius: var(--radius-md); }
.home-btn-lg { padding: 12px 28px; font-size: 15px; border-radius: var(--radius-md); }

/* ── Hero ─────────────────────────────────────────────────────────── */
.home-hero {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}
.home-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 48px 72px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

/* Hero text */
.home-hero-text { display: flex; flex-direction: column; }

.home-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--brand-pale);
    border: 1px solid var(--brand-border);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 12px; font-weight: 700;
    color: var(--brand);
    margin-bottom: 28px;
    letter-spacing: 0.3px;
    align-self: flex-start;
    text-transform: uppercase;
}
.home-badge i { color: var(--brand-lt); font-size: 11px; }

.home-hero-title {
    font-size: clamp(36px, 4.5vw, 58px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: var(--text);
    margin-bottom: 20px;
}
.home-hero-title .gradient-text {
    background: linear-gradient(135deg, var(--brand) 0%, #3a75ed 60%, #558bf7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-hero-sub {
    font-size: 17px;
    color: var(--text-3);
    line-height: 1.75;
    margin-bottom: 36px;
    max-width: 460px;
}

.home-hero-cta {
    display: flex; gap: 12px; flex-wrap: wrap;
    margin-bottom: 36px;
}

.home-hero-trust {
    display: flex; flex-wrap: wrap; gap: 20px;
}
.home-trust-item {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; color: var(--text-4); font-weight: 500;
}
.home-trust-item i { color: var(--green); font-size: 14px; }

/* ── Hero Visual (UI Mockup) ──────────────────────────────────────── */
.home-hero-visual {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.hw-mockup {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.06);
    overflow: hidden;
    width: 100%;
    max-width: 460px;
}
.hw-titlebar {
    background: var(--surface-3);
    border-bottom: 1px solid var(--border);
    padding: 10px 16px;
    display: flex; align-items: center; gap: 10px;
}
.hw-dots { display: flex; gap: 6px; }
.hw-dot { width: 10px; height: 10px; border-radius: 50%; }
.hw-dot.red    { background: #fc6058; }
.hw-dot.yellow { background: #fdbc40; }
.hw-dot.green  { background: #34c84a; }
.hw-titlebar-label {
    flex: 1; text-align: center;
    font-size: 12px; color: var(--text-4); font-weight: 500;
}

.hw-body {
    display: grid;
    grid-template-columns: 140px 1fr;
    min-height: 280px;
}
.hw-sidebar {
    background: var(--surface-3);
    border-right: 1px solid var(--border);
    padding: 16px 10px;
    display: flex; flex-direction: column; gap: 4px;
}
.hw-nav-item {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 12px; font-weight: 500;
    color: var(--text-3); cursor: pointer;
}
.hw-nav-item.active {
    background: var(--brand-pale);
    color: var(--brand);
    font-weight: 600;
}
.hw-nav-item i { font-size: 11px; width: 14px; text-align: center; }

.hw-content {
    padding: 16px;
    display: flex; flex-direction: column; gap: 12px;
}
.hw-widget-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.hw-widget {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
}
.hw-widget-num {
    font-size: 18px; font-weight: 800;
    color: var(--text); letter-spacing: -0.5px;
}
.hw-widget-label {
    font-size: 10px; color: var(--text-4);
    margin-top: 2px; font-weight: 500;
}
.hw-widget.accent { background: var(--brand); border-color: var(--brand); }
.hw-widget.accent .hw-widget-num { color: #fff; }
.hw-widget.accent .hw-widget-label { color: rgba(255,255,255,0.7); }

.hw-list-title { font-size: 11px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.5px; }
.hw-course-list { display: flex; flex-direction: column; gap: 6px; }
.hw-course-item {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 11px;
}
.hw-course-name { font-weight: 600; color: var(--text-2); }
.hw-course-badge {
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 10px; font-weight: 700;
}
.hw-badge-ok   { background: var(--green-bg);  color: var(--green); }
.hw-badge-wait { background: var(--orange-bg); color: var(--orange); }
.hw-badge-info { background: var(--blue-bg);   color: var(--blue); }

/* Floating card on mockup */
.hw-float {
    position: absolute;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    display: flex; align-items: center; gap: 10px;
    font-size: 13px; font-weight: 600;
    color: var(--text-2);
    white-space: nowrap;
}
.hw-float-icon {
    width: 34px; height: 34px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
}
.hw-float.success { bottom: -16px; left: -24px; }
.hw-float.success .hw-float-icon { background: var(--green-bg); color: var(--green); }
.hw-float.stat { top: -16px; right: -20px; }
.hw-float.stat .hw-float-icon { background: var(--brand-pale); color: var(--brand); }

/* ── Stats strip ──────────────────────────────────────────────────── */
.home-stats {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: center;
}
.home-stat {
    flex: 1; max-width: 240px;
    padding: 28px 24px;
    text-align: center;
    border-right: 1px solid var(--border);
    position: relative;
}
.home-stat:last-child { border-right: none; }
.home-stat-num {
    font-size: 30px; font-weight: 800; letter-spacing: -1px;
    color: var(--brand); display: block; margin-bottom: 4px;
}
.home-stat-label { font-size: 13px; color: var(--text-3); font-weight: 500; }

/* ── Section scaffold ─────────────────────────────────────────────── */
.home-section {
    padding: 96px 0;
}
.home-section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
}

.home-section-eyebrow {
    font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--brand); margin-bottom: 12px;
    display: flex; align-items: center; gap: 8px;
}
.home-section-eyebrow::before {
    content: '';
    display: inline-block;
    width: 20px; height: 2px;
    background: var(--brand); border-radius: 2px;
}
.home-section-title {
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 800; letter-spacing: -1px; line-height: 1.2;
    color: var(--text); margin-bottom: 12px;
}
.home-section-sub {
    font-size: 16px; color: var(--text-3); line-height: 1.7;
    max-width: 520px;
}

/* ── Features ─────────────────────────────────────────────────────── */
.home-features-section {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}
.home-features-header {
    display: flex; justify-content: space-between;
    align-items: flex-end; margin-bottom: 52px; gap: 24px;
}
.home-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.home-feature-card {
    background: var(--surface);
    padding: 32px 28px;
    transition: background .2s;
    position: relative;
}
.home-feature-card:hover { background: var(--brand-pale); }
.home-feature-card::after {
    content: '';
    position: absolute;
    left: 0; top: 28px; bottom: 28px;
    width: 3px; border-radius: 0 2px 2px 0;
    opacity: 0;
    transition: opacity .2s;
}
.home-feature-card:hover::after { opacity: 1; }
.home-feature-card:nth-child(1)::after, .home-feature-card:nth-child(4)::after { background: var(--brand); }
.home-feature-card:nth-child(2)::after { background: var(--green); }
.home-feature-card:nth-child(3)::after { background: var(--teal); }
.home-feature-card:nth-child(5)::after { background: var(--orange); }
.home-feature-card:nth-child(6)::after { background: var(--pink); }

.home-feature-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; margin-bottom: 18px;
}
.icon-purple { background: var(--brand-pale); }
.icon-purple i { color: var(--brand); }
.icon-green  { background: var(--green-bg); }
.icon-green  i { color: var(--green); }
.icon-blue   { background: var(--blue-bg); }
.icon-blue   i { color: var(--blue); }
.icon-orange { background: var(--orange-bg); }
.icon-orange i { color: var(--orange); }
.icon-pink   { background: var(--pink-bg); }
.icon-pink   i { color: var(--pink); }
.icon-teal   { background: var(--teal-bg); }
.icon-teal   i { color: var(--teal); }

.home-feature-title {
    font-size: 15px; font-weight: 700;
    color: var(--text); margin-bottom: 8px;
}
.home-feature-desc {
    font-size: 13.5px; color: var(--text-3); line-height: 1.65;
}

/* ── How it works (Timeline) ──────────────────────────────────────── */
.home-steps-section {
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}
.home-steps-header { margin-bottom: 56px; }
.home-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}
.home-steps-grid::before {
    content: '';
    position: absolute;
    top: 24px; left: calc(16.66% + 12px); right: calc(16.66% + 12px);
    height: 2px;
    background: linear-gradient(90deg, var(--brand-border), var(--brand-lt), var(--brand-border));
}
.home-step {
    display: flex; flex-direction: column; align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s, border-color .2s;
}
.home-step:hover { box-shadow: var(--shadow-md); border-color: var(--brand-border); }

.home-step-num {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--brand); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 800;
    margin-bottom: 20px;
    box-shadow: 0 4px 14px rgba(79,70,229,0.30);
    position: relative; z-index: 1;
    flex-shrink: 0;
}
.home-step-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.home-step-desc  { font-size: 14px; color: var(--text-3); line-height: 1.65; }

/* ── Trust / Security section ─────────────────────────────────────── */
.home-trust-section {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}
.home-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 52px;
}
.home-trust-card {
    display: flex; flex-direction: column; gap: 10px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-2);
}
.home-trust-card i {
    font-size: 22px; color: var(--brand);
}
.home-trust-card-title { font-size: 14px; font-weight: 700; color: var(--text); }
.home-trust-card-desc  { font-size: 13px; color: var(--text-3); line-height: 1.6; }

/* ── Bottom CTA ───────────────────────────────────────────────────── */
.home-cta-section {
    padding: 96px 48px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}
.home-cta-card {
    max-width: 820px;
    margin: 0 auto;
    background: var(--brand);
    border-radius: var(--radius-xl);
    padding: 64px 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(79,70,229,0.32);
}
.home-cta-card::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    top: -30%; left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(255,255,255,0.10), transparent 65%);
    pointer-events: none;
}
.home-cta-card::after {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    bottom: -100px; right: -60px;
    background: radial-gradient(circle, rgba(139,92,246,0.5), transparent 65%);
    pointer-events: none;
}
.home-cta-eyebrow {
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2px;
    color: rgba(255,255,255,0.6); margin-bottom: 16px;
}
.home-cta-title {
    font-size: clamp(24px, 3.5vw, 38px);
    font-weight: 800; letter-spacing: -1px; line-height: 1.2;
    color: #fff; margin-bottom: 14px;
    position: relative; z-index: 1;
}
.home-cta-sub {
    font-size: 16px; color: rgba(255,255,255,0.72);
    margin-bottom: 36px; line-height: 1.7;
    position: relative; z-index: 1;
}
.home-cta-actions {
    display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
    position: relative; z-index: 1;
}
.home-cta-note {
    font-size: 12px; color: rgba(255,255,255,0.5);
    margin-top: 16px; position: relative; z-index: 1;
}

/* ── Footer ───────────────────────────────────────────────────────── */
.home-footer {
    background: var(--text);
    padding: 56px 48px 36px;
    color: rgba(255,255,255,0.5);
}
.home-footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.home-footer-brand {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none;
    margin-bottom: 14px;
}
.home-footer-brand-icon {
    width: 34px; height: 34px; border-radius: 8px;
    background: var(--brand); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
}
.home-footer-brand-name { font-size: 15px; font-weight: 700; color: #fff; }
.home-footer-tagline { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.45); max-width: 260px; }
.home-footer-col-title { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 16px; letter-spacing: 0.2px; }
.home-footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.home-footer-col ul a { color: rgba(255,255,255,0.45); text-decoration: none; font-size: 13px; transition: color .2s; }
.home-footer-col ul a:hover { color: #fff; }
.home-footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12px; flex-wrap: wrap; gap: 12px;
}
.home-footer-copy { color: rgba(255,255,255,0.3); }
.home-footer-made { color: rgba(255,255,255,0.3); }
.home-footer-made span { color: var(--brand-lt); }

/* ── Entrance animations ──────────────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.anim-1 { animation: fadeUp .6s ease both; }
.anim-2 { animation: fadeUp .6s .08s ease both; }
.anim-3 { animation: fadeUp .6s .16s ease both; }
.anim-4 { animation: fadeUp .6s .24s ease both; }
.anim-5 { animation: fadeUp .6s .32s ease both; }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .home-features-grid { grid-template-columns: repeat(2, 1fr); }
    .home-trust-grid { grid-template-columns: repeat(2, 1fr); }
    .home-footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .home-container { padding: 0 20px; }
    .home-nav { padding: 0 20px; }
    .home-nav-links { display: none; }
    .home-announce { font-size: 12px; }
    .home-hero-inner { grid-template-columns: 1fr; gap: 48px; padding: 56px 20px 48px; }
    .home-hero-visual { order: -1; }
    .home-hero-text .home-badge { align-self: center; }
    .home-hero-text { align-items: center; text-align: center; }
    .home-hero-sub { max-width: 100%; }
    .home-hero-cta { justify-content: center; }
    .home-stats { flex-wrap: wrap; }
    .home-stat { min-width: 50%; border-right: none; border-bottom: 1px solid var(--border); }
    .home-section { padding: 64px 0; }
    .home-section-inner { padding: 0 20px; }
    .home-features-grid { grid-template-columns: 1fr; }
    .home-steps-grid { grid-template-columns: 1fr; }
    .home-steps-grid::before { display: none; }
    .home-trust-grid { grid-template-columns: 1fr 1fr; }
    .home-cta-section { padding: 56px 20px; }
    .home-cta-card { padding: 48px 28px; }
    .home-footer { padding: 40px 20px 28px; }
    .home-footer-top { grid-template-columns: 1fr; gap: 28px; }
    .home-footer-bottom { flex-direction: column; text-align: center; }
    .home-features-header { flex-direction: column; align-items: flex-start; }
}

