/* MiConnect – maintenance page. Brand tokens mirror DSA.PublicPortal/wwwroot/css/style.css */
:root {
    --text: #282A3A;
    --muted: rgba(40, 42, 58, .6);
    --primary: #6D3187;
    --primary-dark: #3f1a54;
    --primary-btn: #6D3286;
    --accent: #F2AA4C;
    --bg: #f3f2f5;
    --card: #fff;
    --border: #e6e1ea;
    --shadow: 0 5px 18px rgba(40, 20, 60, .10);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; }
p { margin: 0; }

/* ---------- header ---------- */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 12px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 50px; height: auto; display: block; }
.brand span { font-size: 20px; font-weight: 700; color: var(--primary); letter-spacing: .3px; }

.status-pill {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .6px;
    padding: 6px 14px; border-radius: 20px;
    background: rgba(242, 170, 76, .15); color: #8a5a10;
}
.status-pill i {
    width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
    animation: pulse 1.6s infinite;
}

/* ---------- hero banner ---------- */
.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(120deg, var(--primary-dark) 0%, var(--primary) 60%, #8d4aa8 100%);
    padding: 70px 25px 110px;
}
.hero::before, .hero::after {
    content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.hero::before { width: 420px; height: 420px; right: -120px; top: -160px; background: rgba(242, 170, 76, .22); }
.hero::after  { width: 300px; height: 300px; left: -100px; bottom: -150px; background: rgba(255, 255, 255, .08); }

.hero-inner {
    position: relative; z-index: 1;
    max-width: 1100px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.hero-text { max-width: 560px; }
.hero-text .eyebrow {
    color: var(--accent); font-size: 13px; font-weight: 500;
    text-transform: uppercase; letter-spacing: 2px; margin-bottom: 14px; display: block;
}
.hero-text h1 {
    font-family: 'Abril Fatface', cursive;
    font-weight: 400;
    font-size: 52px; line-height: 1.15; color: #fff;
}
.hero-text p { margin-top: 18px; font-size: 16px; line-height: 26px; color: rgba(255, 255, 255, .88); }

.hero-art { flex: 0 0 auto; width: 260px; height: 260px; position: relative; }
.gear { position: absolute; fill: none; }
.gear-lg { width: 180px; height: 180px; left: 0; top: 40px; animation: spin 14s linear infinite; }
.gear-sm { width: 110px; height: 110px; right: 0; top: 0; animation: spin-rev 9s linear infinite; }
.gear-lg path, .gear-lg circle { fill: rgba(255, 255, 255, .95); }
.gear-sm path, .gear-sm circle { fill: var(--accent); }
.gear-lg circle.hole, .gear-sm circle.hole { fill: var(--primary); }

/* ---------- content wrapper ---------- */
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 25px; }
.content { flex: 1; margin-top: -70px; position: relative; z-index: 2; padding-bottom: 40px; }

.card {
    background: var(--card);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 22px 24px;
}

.card-head {
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px; margin-bottom: 16px;
}
.card-head p { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.card-head a { font-size: 12px; font-weight: 500; color: var(--primary); text-decoration: none; }

/* ---------- countdown ---------- */
.countdown-wrap { text-align: center; }
.countdown { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin: 6px 0 18px; }
.time-box {
    min-width: 96px; padding: 14px 10px; border-radius: 8px;
    background: rgba(109, 49, 135, .07); border: 1px solid var(--border);
}
.time-box strong { display: block; font-family: 'Abril Fatface', cursive; font-weight: 400; font-size: 40px; line-height: 1; color: var(--primary); }
.time-box span { display: block; margin-top: 6px; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.eta-note { font-size: 14px; color: var(--muted); }
.eta-note b { color: var(--text); }
.eta-fallback { display: none; font-family: 'Abril Fatface', cursive; font-size: 28px; color: var(--primary); margin: 10px 0 14px; }
.no-eta .countdown { display: none; }
.no-eta .eta-fallback { display: block; }

.progress { height: 6px; border-radius: 6px; background: var(--border); overflow: hidden; max-width: 520px; margin: 0 auto 12px; }
.progress span {
    display: block; height: 100%; width: 40%; border-radius: 6px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    animation: slide 2.2s ease-in-out infinite;
}

/* ---------- info grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.info-item .ico {
    width: 46px; height: 46px; border-radius: 50%;
    background: rgba(109, 49, 135, .1);
    display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.info-item .ico svg { width: 24px; height: 24px; stroke: var(--primary); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.info-item h3 { font-size: 16px; margin-bottom: 8px; }
.info-item p { font-size: 14px; line-height: 21px; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { text-align: center; padding: 18px 25px; background: #fff; border-top: 1px solid var(--border); }
.copyright { font-size: 12px; line-height: 16px; }

/* ---------- animations ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-rev { to { transform: rotate(-360deg); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(242, 170, 76, .6); } 50% { box-shadow: 0 0 0 7px rgba(242, 170, 76, 0); } }
@keyframes slide { 0% { margin-left: -40%; } 100% { margin-left: 100%; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 992px) {
    .hero-text h1 { font-size: 42px; }
    .hero-art { width: 200px; height: 200px; }
    .gear-lg { width: 140px; height: 140px; top: 30px; }
    .gear-sm { width: 86px; height: 86px; }
}
@media (max-width: 768px) {
    .hero { padding: 50px 20px 100px; }
    .hero-inner { flex-direction: column-reverse; text-align: center; gap: 24px; }
    .hero-text h1 { font-size: 36px; }
    .grid-3 { grid-template-columns: 1fr; }
    .container { padding: 0 16px; }
}
@media (max-width: 480px) {
    .site-header { padding: 10px 16px; }
    .brand span { font-size: 17px; }
    .status-pill { font-size: 10px; padding: 5px 10px; }
    .hero-text h1 { font-size: 30px; }
    .countdown { gap: 8px; }
    .time-box { min-width: 70px; padding: 10px 6px; }
    .time-box strong { font-size: 28px; }
}
