:root {
    --ink: #16223a;
    --ink-soft: #4a5876;
    --bg: #f4f8ff;
    --panel: #ffffff;
    --line: #d8e2f0;
    --accent: #ff7a18;
    --accent-deep: #d85f08;
    --teal: #1f9da0;
    --hero-a: #d9efff;
    --hero-b: #fff2dd;
    --hero-c: #dbf6ea;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(1200px 550px at -15% -10%, rgba(31, 157, 160, 0.18), transparent 60%),
        radial-gradient(1000px 500px at 110% 0%, rgba(255, 122, 24, 0.12), transparent 60%),
        linear-gradient(180deg, #f6fbff 0%, #f2f6ff 100%);
    font-family: 'Space Grotesk', sans-serif;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Fraunces', serif;
    letter-spacing: 0.2px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(8px);
    background: rgba(248, 252, 255, 0.8);
    border-bottom: 1px solid rgba(205, 220, 238, 0.8);
}

.brand {
    font-weight: 700;
    color: var(--ink);
    gap: 0.55rem;
}

.brand-dot {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 999px;
    background: linear-gradient(145deg, var(--teal), var(--accent));
    box-shadow: 0 0 0 6px rgba(31, 157, 160, 0.15);
}

.brand-text {
    font-size: 1.08rem;
}

.nav-pills .nav-link {
    color: var(--ink-soft);
    border: 1px solid transparent;
    border-radius: 0.8rem;
}

.nav-pills .nav-link:hover {
    border-color: var(--line);
    color: var(--ink);
    background: rgba(255, 255, 255, 0.75);
}

.hero-wrap {
    background:
        linear-gradient(125deg, var(--hero-a) 0%, var(--hero-b) 43%, var(--hero-c) 100%);
    border-bottom: 1px solid #d8e4f2;
}

.qr-landing-wrap {
    min-height: calc(100vh - 86px);
    display: flex;
    align-items: center;
}

.qr-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 1.2rem;
    padding: 1.5rem;
    box-shadow: 0 20px 45px rgba(24, 42, 73, 0.12);
}

.qr-kicker {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-weight: 700;
    color: #5f7091;
}

.qr-title {
    font-size: clamp(1.75rem, 4vw, 2.4rem);
}

.qr-copy {
    color: #475a7e;
}

.qr-frame {
    width: min(340px, 88vw);
    background: #fff;
    padding: 0.8rem;
    border-radius: 1rem;
    border: 1px solid #d3deee;
}

.py-lg-6 {
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
}

.pill-tag {
    display: inline-block;
    border-radius: 999px;
    background: rgba(16, 31, 53, 0.08);
    border: 1px solid rgba(16, 31, 53, 0.12);
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
}

.display-title {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
    max-width: 18ch;
}

.lead {
    color: #36476b;
    max-width: 56ch;
}

.glass-card,
.panel-card,
.step-card,
.gateway-card,
.mini-card {
    background: var(--panel);
    border-radius: 1rem;
    border: 1px solid var(--line);
    box-shadow: 0 12px 40px rgba(17, 39, 71, 0.09);
}

.panel-card,
.gateway-card,
.status-card {
    padding: 1.5rem;
}

.status-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px dashed #d9e3f1;
    padding: 0.55rem 0;
}

.status-list li:last-child {
    border-bottom: 0;
}

.step-card {
    padding: 1.2rem;
    height: 100%;
}

.step-index {
    font-size: 0.78rem;
    color: #6b7a98;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 0.6rem;
}

.step-card h3 {
    font-size: 1.15rem;
}

.step-card p {
    color: #4e5e7c;
    margin-bottom: 0;
}

.btn-accent {
    background: linear-gradient(145deg, #ff8a22, #ff6a00);
    color: #fff;
    border: 0;
    border-radius: 0.8rem;
    font-weight: 700;
    padding-inline: 1.15rem;
}

.btn-accent:hover,
.btn-accent:focus {
    color: #fff;
    background: linear-gradient(145deg, #ff7d13, #e45b00);
}

.btn-outline-strong {
    border: 1px solid #223456;
    color: #223456;
    border-radius: 0.8rem;
    font-weight: 600;
}

.btn-outline-strong:hover,
.btn-outline-strong:focus {
    color: #fff;
    background: #223456;
}

.summary-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.machine-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.log-scroll {
    max-height: 280px;
    overflow: auto;
}

.console-box {
    border-radius: 0.8rem;
    border: 1px solid #cbd8eb;
    background: #0d1728;
    color: #c6f0ff;
    padding: 1rem;
    min-height: 220px;
    max-height: 300px;
    overflow: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
    font-size: 0.9rem;
}

.payload-pre {
    background: #111a2d;
    color: #d2f0f8;
    border-radius: 0.7rem;
    padding: 0.9rem;
    font-size: 0.82rem;
    max-height: 320px;
    overflow: auto;
}

.reveal-up {
    opacity: 0;
    transform: translateY(14px);
    animation: riseIn 0.68s ease forwards;
}

.reveal-up:nth-child(2) {
    animation-delay: 0.08s;
}

.reveal-up:nth-child(3) {
    animation-delay: 0.16s;
}

.reveal-up:nth-child(4) {
    animation-delay: 0.24s;
}

@keyframes riseIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767.98px) {
    .summary-grid {
        grid-template-columns: 1fr;
    }

    .qr-card {
        padding: 1rem;
        border-radius: 1rem;
    }

    .panel-card,
    .gateway-card,
    .status-card {
        padding: 1.1rem;
    }
}
