/*
 * OBE Automation — temporary maintenance page.
 *
 * Mirrors the live site's look: navy gradient hero with a drifting gold grid,
 * gold pill buttons, glass cards, Inter 800 headings, navy stats + footer.
 * Bootstrap and Font Awesome are not needed here; icons are inline SVG.
 */

/* ------------------------------------------------------------------ Tokens */
:root {
    --primary: #2A3F54;
    --primary-light: #3a5470;
    --primary-dark: #1a2b3c;
    --accent: #F7C942;
    --accent-dark: #d4a82e;
    --accent-ink: #b58b1d;      /* gold that still reads on white */
    --text: #34495E;
    --text-light: #687778;      /* live #7F8C8D, deepened for contrast */
    --bg: #F9FAFB;
    --white: #ffffff;

    --glass-bg: rgba(255, 255, 255, .06);
    --glass-border: rgba(255, 255, 255, .12);
    --ok: #86efac;

    --nav-px: 2rem;
    --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* -------------------------------------------------------------------- Base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    background: var(--primary-dark);
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

svg {
    display: block;
    flex-shrink: 0;
}

::selection {
    background: var(--accent);
    color: var(--primary-dark);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.tabular {
    font-variant-numeric: tabular-nums;
}

.container {
    width: 100%;
    max-width: 1320px;
    margin-inline: auto;
    padding-inline: 1.25rem;
}

/* ------------------------------------------------------------------ Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .65rem var(--nav-px);
    background: var(--primary-dark);
    box-shadow: 0 4px 24px rgba(0, 0, 0, .3);
    transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
}

/* Transparent over the hero; main.js adds .scrolled past 60px. */
.js .navbar:not(.scrolled) {
    padding-block: 1rem;
    background: transparent;
    box-shadow: none;
}

.brand {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(247, 201, 66, .35);
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: var(--accent);
}

.brand-mark svg {
    width: 20px;
    height: 20px;
}

.brand-name {
    color: var(--white);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: .02em;
}

.brand-name span {
    color: var(--accent);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-link {
    display: none;
    color: rgba(255, 255, 255, .8);
    font-size: .9rem;
    font-weight: 500;
    transition: color .2s;
}

.nav-link:hover {
    color: var(--accent);
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem 1.4rem;
    border-radius: 50px;
    background: var(--accent);
    color: var(--primary-dark);
    font-size: .9rem;
    font-weight: 700;
    transition: transform .2s, box-shadow .2s, background .2s;
}

.btn-nav:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 201, 66, .4);
}

.btn-nav svg {
    width: .85rem;
    height: .85rem;
}

/* ----------------------------------------------------------------- Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .85rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .25s, box-shadow .25s, background .25s, border-color .25s, color .25s;
}

.btn svg {
    width: 1.05rem;
    height: 1.05rem;
    transition: transform .2s;
}

.btn:hover .arrow {
    transform: translateX(3px);
}

.btn-primary {
    border: 0;
    background: var(--accent);
    color: var(--primary-dark);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(247, 201, 66, .45);
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, .3);
    background: transparent;
    color: var(--white);
    font-weight: 600;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
}

.link-btn {
    padding: 0;
    border: 0;
    background: none;
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    cursor: pointer;
}

.link-btn:hover {
    text-decoration-thickness: 2px;
}

/* -------------------------------------------------------------------- Hero */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
    color: var(--white);
}

/* Gold grid overlay; starts one cell above so the drift never shows a gap. */
.hero::before {
    content: "";
    position: absolute;
    inset: -60px 0 0;
    background-image:
        linear-gradient(rgba(247, 201, 66, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(247, 201, 66, .04) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-shapes {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: var(--accent);
    opacity: .07;
}

.shape-1 { width: 400px; height: 400px; right: -100px; top: -80px; }
.shape-2 { width: 250px; height: 250px; right: 200px; bottom: 80px; }
.shape-3 { width: 150px; height: 150px; left: 60px; bottom: 120px; }

.hero-content {
    position: relative;
    z-index: 2;
    padding-block: 7rem 5rem;
}

.hero-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1.5rem;
    padding: .4rem 1rem;
    border: 1px solid rgba(247, 201, 66, .3);
    border-radius: 50px;
    background: rgba(247, 201, 66, .15);
    color: var(--accent);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.hero-title {
    margin-bottom: 1.25rem;
    color: var(--white);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
}

.hero-title .accent {
    color: var(--accent);
}

.hero-subtitle {
    max-width: 540px;
    color: rgba(255, 255, 255, .78);
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.7;
}

.hero-subtitle-sm {
    margin-top: .75rem;
    color: rgba(255, 255, 255, .66);
    font-size: 1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.5rem;
}

.hero-meta {
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, .62);
    font-size: .8rem;
    letter-spacing: .02em;
}

/* Auto-redirect countdown pill */
.redirect {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .55rem;
    max-width: 100%;
    margin-top: 1.5rem;
    padding: .45rem 1rem .45rem .6rem;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    background: var(--glass-bg);
    color: rgba(255, 255, 255, .78);
    font-size: .85rem;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.redirect[hidden] {
    display: none;
}

.redirect + .hero-meta {
    margin-top: 1.25rem;
}

.ring {
    width: 1.125rem;
    height: 1.125rem;
    transform: rotate(-90deg);
}

.ring circle {
    fill: none;
    stroke-width: 2.5;
}

.ring-track {
    stroke: rgba(255, 255, 255, .18);
}

.ring-fill {
    stroke: var(--accent);
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 0;
}

.redirect.is-cancelled {
    padding-left: 1rem;
}

.redirect.is-cancelled .ring,
.redirect.is-cancelled .link-btn {
    display: none;
}

/* Glass cards on the right of the hero */
.hero-visual {
    display: grid;
    gap: 1rem;
}

.glass-card {
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.card-title {
    margin-bottom: 1rem;
    color: var(--accent);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.sweep {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    overflow: hidden;
}

.status-list {
    display: grid;
    gap: .5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.status-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .6rem .85rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, .06);
    color: var(--white);
    font-size: .9rem;
    font-weight: 500;
}

.row-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--accent);
    font-weight: 600;
}

.row-link svg {
    width: .75rem;
    height: .75rem;
}

.row-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .25rem .7rem;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 50px;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .72);
    font-size: .75rem;
    font-weight: 600;
    white-space: nowrap;
}

.pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.pill-pending {
    border-color: rgba(247, 201, 66, .25);
    background: rgba(247, 201, 66, .12);
    color: var(--accent);
}

.pill-ok {
    border-color: rgba(134, 239, 172, .28);
    background: rgba(134, 239, 172, .1);
    color: var(--ok);
}

.card-note {
    margin-top: 1rem;
    color: rgba(255, 255, 255, .62);
    font-size: .8rem;
}

.flow-mini {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}

.flow-node {
    padding: .35rem .75rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, .1);
    color: var(--white);
    font-size: .8rem;
    font-weight: 500;
}

.flow-arrow {
    color: var(--accent);
    font-size: .9rem;
}

/* --------------------------------------------------------------- Stats bar */
.stats {
    padding-block: 2.5rem;
    background: var(--primary-dark);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.stat {
    padding: 1rem;
    border-right: 1px solid rgba(255, 255, 255, .08);
    text-align: center;
}

.stat:nth-child(2n) {
    border-right: 0;
}

.stat-number {
    color: var(--accent);
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    margin-top: .3rem;
    color: rgba(255, 255, 255, .62);
    font-size: .85rem;
}

/* ---------------------------------------------------------------- Sections */
.section {
    padding-block: 6rem;
    scroll-margin-top: 3.5rem;
}

.section-tag {
    display: inline-block;
    margin-bottom: 1rem;
    padding: .3rem .9rem;
    border-radius: 50px;
    background: rgba(42, 63, 84, .08);
    color: var(--primary);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.section-title {
    color: var(--primary-dark);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
}

.section-title .accent {
    color: var(--accent-ink);
}

.divider {
    width: 60px;
    height: 4px;
    margin: 1.25rem 0;
    border-radius: 4px;
    background: var(--accent);
}

.section-desc {
    max-width: 640px;
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.75;
}

.section-desc + .section-desc {
    margin-top: 1rem;
}

.about {
    background: var(--white);
}

.about-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

.about-list {
    display: grid;
    gap: 1rem;
}

.about-box {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    border: 1px solid rgba(42, 63, 84, .08);
    border-radius: 16px;
    background: var(--bg);
    transition: transform .3s, box-shadow .3s, border-color .3s;
}

.about-box:hover {
    border-color: var(--accent);
    box-shadow: 0 12px 32px rgba(42, 63, 84, .1);
    transform: translateY(-4px);
}

.about-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 14px;
    background: var(--primary);
    color: var(--accent);
}

.about-icon svg {
    width: 22px;
    height: 22px;
}

.about-box h3 {
    margin-bottom: .3rem;
    color: var(--primary-dark);
    font-size: 1rem;
    font-weight: 700;
}

.about-box p {
    color: var(--text-light);
    font-size: .88rem;
    line-height: 1.6;
}

/* --------------------------------------------------------------------- CTA */
.cta {
    position: relative;
    overflow: hidden;
    padding-block: 7rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    text-align: center;
}

.cta::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(247, 201, 66, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(247, 201, 66, .05) 1px, transparent 1px);
    background-size: 40px 40px;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    margin-bottom: 1rem;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
}

.cta-desc {
    max-width: 520px;
    margin: 0 auto 2.5rem;
    color: rgba(255, 255, 255, .75);
    font-size: 1.05rem;
    line-height: 1.7;
    text-wrap: balance;
}

/* ------------------------------------------------------------------ Footer */
.footer {
    padding-block: 3rem 2rem;
    background: var(--primary-dark);
    color: rgba(255, 255, 255, .62);
}

.footer-top {
    display: grid;
    gap: 2rem;
}

.footer-brand {
    margin-bottom: .5rem;
    color: var(--white);
    font-size: 1.15rem;
    font-weight: 700;
}

.footer-brand span {
    color: var(--accent);
}

.footer-desc {
    max-width: 340px;
    font-size: .85rem;
    line-height: 1.65;
}

.footer-links h2 {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, .9);
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.footer-links a {
    display: block;
    margin-bottom: .5rem;
    color: rgba(255, 255, 255, .62);
    font-size: .85rem;
    transition: color .2s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: .8rem;
}

.footer-bottom a {
    color: var(--white);
    font-weight: 600;
}

.footer-bottom a:hover {
    color: var(--accent);
}

/* -------------------------------------------------------------- Breakpoints */
@media (max-width: 575.98px) {
    :root {
        --nav-px: 1.25rem;
    }
}

@media (min-width: 768px) {
    .nav-link {
        display: inline;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .stat:nth-child(2n) {
        border-right: 1px solid rgba(255, 255, 255, .08);
    }

    .stat:last-child {
        border-right: 0;
    }

    .glass-card {
        padding: 2rem;
    }

    .footer-top {
        grid-template-columns: 2fr 1fr;
    }
}

@media (min-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-grid {
        grid-template-columns: 5fr 7fr;
    }
}

/* ------------------------------------------------------------------ Motion */
/* Scroll reveal is opt-in: main.js adds .reveal-ready only when motion is OK. */
.reveal-ready .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal-ready .reveal.visible {
    opacity: 1;
    transform: none;
}

.reveal-ready .reveal-delay-1 { transition-delay: .1s; }
.reveal-ready .reveal-delay-2 { transition-delay: .2s; }
.reveal-ready .reveal-delay-3 { transition-delay: .3s; }
.reveal-ready .reveal-delay-4 { transition-delay: .4s; }

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }

    .hero::before {
        animation: gridMove 20s linear infinite;
    }

    .shape-1 { animation: float1 8s ease-in-out infinite; }
    .shape-2 { animation: float2 10s ease-in-out infinite; }
    .shape-3 { animation: float1 7s ease-in-out infinite reverse; }

    .pulse-dot {
        animation: pulse 2s ease-in-out infinite;
    }

    .fade-down {
        animation: fadeInDown .8s ease both;
    }

    .fade-up {
        animation: fadeInUp .9s ease both;
        animation-delay: calc(var(--d, 0) * 150ms);
    }

    .fade-right {
        animation: fadeInRight 1s ease .5s both;
    }

    /* Indeterminate "working on it" sweep; omitted entirely for reduced motion. */
    .sweep::after {
        content: "";
        position: absolute;
        inset: 0 auto 0 0;
        width: 35%;
        background: linear-gradient(90deg, transparent, var(--accent), transparent);
        opacity: .7;
        animation: sweep 2.6s ease-in-out infinite;
    }

    .ring-fill {
        transition: stroke-dashoffset 1s linear;
    }
}

@keyframes gridMove {
    from { transform: translateY(0); }
    to { transform: translateY(60px); }
}

@keyframes float1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(8deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(20px) rotate(-5deg); }
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(247, 201, 66, .4); }
    50% { box-shadow: 0 0 0 8px rgba(247, 201, 66, 0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
}

@keyframes sweep {
    from { transform: translateX(-100%); }
    to { transform: translateX(300%); }
}
