:root {
    --navy-950: #081130;
    --navy-900: #0b1a3d;
    --navy-800: #122a5e;
    --navy-700: #1b3a78;
    --gold-500: #e2a53c;
    --gold-600: #c98a24;
    --cream-50: #f8f5ef;
    --cream-100: #f1ece1;
    --ink-900: #141c33;
    --slate-500: #5b6478;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--ink-900);
    background: var(--cream-50);
}

h1,
h2,
h3,
.font-display {
    font-family: 'Poppins', sans-serif;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: .75rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold-600);
}

.eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--gold-500);
    transform: rotate(45deg);
    display: inline-block;
    flex-shrink: 0;
}

.eyebrow.on-dark {
    color: var(--gold-500);
}

.capsule {
    position: relative;
    width: 34px;
    height: 16px;
    border-radius: 9999px;
    overflow: hidden;
    display: inline-flex;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(8, 17, 48, .25);
}

.capsule span {
    flex: 1;
}

.capsule .half-a {
    background: var(--gold-500);
}

.capsule .half-b {
    background: var(--navy-900);
}

.capsule-lg {
    width: 46px;
    height: 20px;
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.grain {
    background-image: radial-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 22px 22px;
}

.btn-gold {
    background: var(--gold-500);
    color: var(--navy-950);
    font-weight: 600;
    transition: transform .2s ease, background .2s ease;
}

.btn-gold:hover {
    background: var(--gold-600);
    transform: translateY(-2px);
}

.card-hover {
    transition: transform .3s ease, box-shadow .3s ease;
}

.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -20px rgba(11, 26, 61, .35);
}

/* live status badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 9999px;
    padding: .5rem 1rem;
    font-size: .78rem;
    color: rgba(255, 255, 255, .75);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: #3ecf7e;
    box-shadow: 0 0 0 0 rgba(62, 207, 126, .6);
    animation: pulse-dot 2s infinite;
}

.status-dot.offline {
    background: #e0724f;
    animation: none;
}

@keyframes pulse-dot {
    0% {
        box-shadow: 0 0 0 0 rgba(62, 207, 126, .55);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(62, 207, 126, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(62, 207, 126, 0);
    }
}

/* reason selector tiles */
.reason-tile {
    position: relative;
    border: 1px solid rgba(20, 28, 51, .12);
    border-radius: 1rem;
    padding: 1.5rem 1.25rem;
    background: #fff;
    cursor: pointer;
    transition: all .25s ease;
    text-align: left;
}

.reason-tile:hover {
    border-color: var(--gold-500);
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -18px rgba(11, 26, 61, .3);
}

.reason-tile[data-active="true"] {
    border-color: var(--gold-500);
    background: var(--navy-900);
}

.reason-tile[data-active="true"] .reason-title {
    color: #fff;
}

.reason-tile[data-active="true"] .reason-sub {
    color: rgba(255, 255, 255, .5);
}

.reason-tile[data-active="true"] .reason-icon {
    background: var(--gold-500);
}

.reason-icon {
    width: 40px;
    height: 40px;
    border-radius: .7rem;
    background: var(--cream-100);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .9rem;
    transition: background .25s ease;
}

.reason-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: .95rem;
    color: var(--ink-900);
    transition: color .25s ease;
}

.reason-sub {
    font-size: .78rem;
    color: var(--slate-500);
    margin-top: .3rem;
    transition: color .25s ease;
}

/* routing banner */
#routing-banner {
    transition: opacity .3s ease;
}

/* form fields on dark panel */
.field label {
    font-size: .78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .6);
    letter-spacing: .03em;
    text-transform: uppercase;
    margin-bottom: .4rem;
    display: block;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: .6rem;
    padding: .75rem .9rem;
    color: #fff;
    font-size: .9rem;
    transition: border-color .2s ease, background .2s ease;
    font-family: 'Inter', sans-serif;
}

.field input::placeholder,
.field textarea::placeholder {
    color: rgba(255, 255, 255, .35);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--gold-500);
    background: rgba(255, 255, 255, .1);
}

.field select option {
    background: var(--navy-900);
    color: #fff;
}

.status-msg {
    font-size: .85rem;
    margin-top: .9rem;
    color: var(--gold-500);
    display: none;
}

.status-msg.show {
    display: block;
}

.icon-tile {
    width: 52px;
    height: 52px;
    border-radius: .85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy-900);
    flex-shrink: 0;
}

/* FAQ accordion */
.faq-item {
    border-bottom: 1px solid rgba(20, 28, 51, .1);
}

.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 0;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--ink-900);
}

.faq-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    position: relative;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background: var(--navy-900);
    transition: transform .3s ease;
}

.faq-icon::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
}

.faq-icon::after {
    left: 50%;
    top: 0;
    height: 100%;
    width: 2px;
    transform: translateX(-50%);
}

.faq-item[data-open="true"] .faq-icon::after {
    transform: translateX(-50%) scaleY(0);
}

.faq-item[data-open="true"] .faq-icon::before {
    background: var(--gold-600);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
    color: var(--slate-500);
    font-size: .92rem;
    line-height: 1.6;
}

.faq-item[data-open="true"] .faq-a {
    max-height: 12rem;
    padding-bottom: 1.4rem;
}

/* floating capsule particles in hero */
.float-capsule {
    position: absolute;
    opacity: .5;
    animation: float-y 7s ease-in-out infinite;
}

@keyframes float-y {

    0%,
    100% {
        transform: translateY(0) rotate(-12deg);
    }

    50% {
        transform: translateY(-18px) rotate(-12deg);
    }
}