/* Public marketing site - navbar, hero, sections, footer.
   Depends on the tokens and components in ui.css. */

/* ============================================================
   1. Navbar
   ============================================================ */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: .7rem 0;
}

.site-nav .navbar-brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--txt);
}

.site-nav .navbar-brand img {
    border-radius: var(--r-sm);
}

.site-nav .nav-link {
    color: var(--txt-muted);
    font-size: .9rem;
    font-weight: 500;
    padding: .45rem .85rem;
    border-radius: var(--r-sm);
    transition: color var(--fast), background var(--fast);
}

.site-nav .nav-link:hover {
    color: var(--txt);
    background: var(--field);
}

.site-nav .nav-link.active {
    color: var(--txt);
    background: var(--field);
}

.site-nav .navbar-toggler {
    border-color: var(--line);
    color: var(--txt);
    padding: .35rem .55rem;
}

.site-nav .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(87, 91, 235, .2);
}

/* ============================================================
   2. Hero
   ============================================================ */

.hero {
    position: relative;
    overflow: hidden;
    padding: 5rem 0 4.5rem;
    border-bottom: 1px solid var(--line);
}

/* Two slow-drifting colour pools behind the copy. */
.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    animation: glow-pulse 9s var(--ease) infinite;
}

.hero::before {
    width: 460px;
    height: 460px;
    top: -160px;
    left: -120px;
    background: rgba(87, 91, 235, .35);
}

.hero::after {
    width: 380px;
    height: 380px;
    right: -110px;
    bottom: -170px;
    background: rgba(236, 72, 153, .22);
    animation-delay: 2.5s;
}

.hero > .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.08;
    margin-bottom: 1rem;
}

.hero .lead {
    color: var(--txt-muted);
    font-size: 1.05rem;
    max-width: 34rem;
}

.hero-grad {
    background: linear-gradient(135deg, var(--accent), var(--accent-2) 50%, var(--accent-3));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-stat {
    text-align: center;
    padding: 1.25rem 1rem;
    border-radius: var(--r-lg);
    background: var(--panel);
    border: 1px solid var(--line);
    transition: transform var(--slow), border-color var(--slow);
}

.hero-stat:hover {
    transform: translateY(-4px);
    border-color: rgba(87, 91, 235, .35);
}

.hero-stat .n {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

.hero-stat .c {
    color: var(--txt-muted);
    font-size: .78rem;
}

/* ============================================================
   3. Sections
   ============================================================ */

.section {
    padding: 4rem 0;
}

.section-head {
    text-align: center;
    max-width: 42rem;
    margin: 0 auto 2.25rem;
}

.section-head h2 {
    font-size: clamp(1.7rem, 3.5vw, 2.2rem);
    margin-bottom: .5rem;
}

.section-head p {
    color: var(--txt-muted);
    margin: 0;
}

.step {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line-soft);
}

.step:last-child {
    border-bottom: 0;
}

.step .n {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .9rem;
}

.step .t {
    font-size: .88rem;
    color: var(--txt-muted);
}

.step .t strong {
    color: var(--txt);
}

/* ============================================================
   4. Notice cards and article body
   ============================================================ */

.notice-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.notice-card .cover {
    height: 170px;
    object-fit: cover;
    width: 100%;
}

.notice-body {
    line-height: 1.7;
    color: var(--txt-muted);
}

.notice-body h1, .notice-body h2, .notice-body h3,
.notice-body h4, .notice-body h5, .notice-body h6 {
    color: var(--txt);
    margin-top: 1.5rem;
}

.notice-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--r-md);
}

.notice-body a {
    color: var(--accent);
    text-decoration: underline;
}

body.ui .breadcrumb {
    font-size: .82rem;
    margin-bottom: 1rem;
}

body.ui .breadcrumb-item.active {
    color: var(--txt-muted);
}

body.ui .breadcrumb-item + .breadcrumb-item::before {
    color: var(--txt-dim);
}

body.ui dl dt {
    color: var(--txt);
    font-weight: 600;
}

body.ui dl dd {
    color: var(--txt-muted);
}

/* ============================================================
   5. Notice strip and footer
   ============================================================ */

.site-strip {
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    padding: .55rem 0;
    font-size: .84rem;
}

.site-strip .inner {
    display: flex;
    align-items: center;
    gap: .7rem;
}

.site-strip .tag {
    display: flex;
    align-items: center;
    gap: .35rem;
    color: var(--accent);
    font-weight: 600;
    flex: 0 0 auto;
}

.site-strip a {
    color: var(--txt-muted);
}

.site-strip a:hover {
    color: var(--txt);
}

.site-foot {
    border-top: 1px solid var(--line);
    background: var(--panel);
    padding: 2.5rem 0 2rem;
    margin-top: 3rem;
    color: var(--txt-muted);
    font-size: .85rem;
}

.site-foot a {
    color: var(--txt-muted);
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.site-foot a:hover {
    color: var(--txt);
}

@media (max-width: 991.98px) {
    .site-nav .navbar-collapse {
        padding-top: .75rem;
    }

    .hero {
        padding: 3.5rem 0 3rem;
    }

    .section {
        padding: 3rem 0;
    }
}
