:root {
    --scout-bg: #f4fbfa;
    --scout-surface: #ffffff;
    --scout-surface-soft: rgba(255, 255, 255, 0.72);
    --scout-ink: #0f172a;
    --scout-muted: #526071;
    --scout-line: rgba(15, 23, 42, 0.08);
    --scout-primary: #0f766e;
    --scout-primary-deep: #164e63;
    --scout-accent: #f97316;
    --scout-highlight: #14b8a6;
    --scout-warning: #f59e0b;
    --scout-success: #10b981;
    --scout-danger: #ef4444;
    --shadow-lg: 0 30px 80px rgba(15, 23, 42, 0.14);
    --shadow-md: 0 20px 40px rgba(15, 23, 42, 0.08);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
}

html {
    scroll-behavior: smooth;
}

body.app-body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, rgba(20, 184, 166, 0.16), transparent 24%), linear-gradient(180deg, #f7fffd 0%, #eef6ff 100%);
    color: var(--scout-ink);
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.brand-name {
    font-family: "Manrope", "Inter", sans-serif;
    letter-spacing: -0.03em;
}

a {
    color: var(--scout-primary-deep);
    text-decoration: none;
}

a:hover {
    color: var(--scout-primary);
}

.site-header {
    backdrop-filter: blur(18px);
    background: rgba(247, 255, 253, 0.82);
    border-bottom: 1px solid rgba(15, 118, 110, 0.1);
}

.navbar-brand {
    color: var(--scout-ink);
}

.navbar-toggler {
    border: 1px solid rgba(15, 118, 110, 0.18);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(20, 184, 166, 0.18);
}

.brand-mark {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--scout-primary) 0%, var(--scout-primary-deep) 100%);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(15, 118, 110, 0.3);
}

.brand-name,
.brand-tag {
    display: block;
}

.brand-name {
    font-size: 1.05rem;
    font-weight: 800;
}

.brand-tag {
    font-size: 0.77rem;
    color: var(--scout-muted);
}

.nav-link {
    color: var(--scout-muted);
    font-weight: 600;
    padding: 0.65rem 1rem !important;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--scout-primary);
}

.hero-section,
.subpage-hero {
    padding: 5.5rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.hero-title,
.subpage-title {
    font-size: clamp(2.8rem, 4vw, 4.7rem);
    line-height: 0.96;
    margin-bottom: 1.25rem;
    max-width: 12ch;
}

.hero-copy,
.subpage-copy {
    max-width: 62ch;
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--scout-muted);
}

.eyebrow-pill,
.section-kicker,
.panel-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--scout-primary);
}

.eyebrow-pill {
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.1);
    margin-bottom: 1.35rem;
}

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

.btn {
    border-radius: 999px;
    font-weight: 700;
    padding: 0.85rem 1.35rem;
}

.btn-scout-primary {
    background: linear-gradient(135deg, var(--scout-primary) 0%, var(--scout-primary-deep) 100%);
    border: 0;
    color: #fff;
    box-shadow: 0 18px 30px rgba(15, 118, 110, 0.22);
}

.btn-scout-primary:hover,
.btn-scout-primary:focus {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 20px 34px rgba(15, 118, 110, 0.28);
}

.btn-scout-outline {
    border: 1px solid rgba(15, 118, 110, 0.18);
    background: rgba(255, 255, 255, 0.62);
    color: var(--scout-primary-deep);
}

.btn-scout-outline:hover,
.btn-scout-outline:focus {
    background: rgba(15, 118, 110, 0.08);
    color: var(--scout-primary);
}

.hero-metrics {
    margin-top: 0.5rem;
}

.metric-card,
.content-card,
.glass-panel {
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: var(--scout-surface-soft);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
}

.metric-card {
    padding: 1.2rem 1.25rem;
    min-height: 100%;
}

.metric-card strong {
    display: block;
    font-size: 1.9rem;
    margin-top: 0.5rem;
}

.metric-label {
    color: var(--scout-muted);
    font-size: 0.92rem;
}

.glass-panel {
    padding: 2rem;
    position: relative;
}

.sourcing-panel::after {
    content: "";
    position: absolute;
    width: 8rem;
    height: 8rem;
    border-radius: 2rem;
    right: -1.2rem;
    bottom: -1.2rem;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(20, 184, 166, 0.28));
    filter: blur(8px);
}

.panel-header,
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.35rem;
}

.panel-header h2,
.section-header h2 {
    margin: 0.35rem 0 0;
    font-size: 1.65rem;
}

.status-badge,
.soft-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.5rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 700;
}

.status-badge {
    background: rgba(15, 118, 110, 0.1);
    color: var(--scout-primary);
}

.form-label {
    font-weight: 700;
    margin-bottom: 0.55rem;
}

.form-control,
.form-select {
    border-radius: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.9);
}

.form-control:focus,
.form-select:focus,
.btn:focus,
.nav-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(20, 184, 166, 0.2);
    border-color: rgba(20, 184, 166, 0.7);
}

.panel-footnote {
    color: var(--scout-muted);
    margin: 1rem 0 0;
    font-size: 0.94rem;
}

.dashboard-strip {
    padding: 0 0 2.5rem;
}

.dashboard-strip.alt {
    padding-bottom: 4rem;
}

.content-card {
    background: rgba(255, 255, 255, 0.84);
    padding: 1.6rem;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.compact {
    margin-bottom: 0.75rem;
}

.scout-table {
    margin-bottom: 0;
}

.scout-table thead th {
    color: var(--scout-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom-color: rgba(15, 23, 42, 0.08);
}

.scout-table td,
.scout-table th {
    padding: 1rem 0.8rem;
    background: transparent;
}

.table-link {
    font-weight: 700;
    color: var(--scout-ink);
}

.table-subcopy,
.table-url {
    color: var(--scout-muted);
    font-size: 0.9rem;
    word-break: break-word;
}

.soft-badge-queued,
.soft-badge-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
}

.soft-badge-review,
.soft-badge-purchasing,
.soft-badge-packing,
.soft-badge-low_stock {
    background: rgba(249, 115, 22, 0.13);
    color: #c2410c;
}

.soft-badge-ready,
.soft-badge-published,
.soft-badge-shipped,
.soft-badge-delivered,
.soft-badge-in_stock {
    background: rgba(16, 185, 129, 0.14);
    color: #047857;
}

.soft-badge-out_of_stock {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

.soft-badge-unknown {
    background: rgba(100, 116, 139, 0.12);
    color: #475569;
}

.empty-state {
    border: 1px dashed rgba(15, 118, 110, 0.25);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 253, 250, 0.9));
}

.empty-state h3,
.empty-state h2 {
    margin-bottom: 0.6rem;
}

.empty-state-small {
    padding: 1.5rem;
}

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

.integration-item {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1.2rem;
    padding: 1rem 1.1rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.8);
}

.integration-item h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.integration-item p {
    color: var(--scout-muted);
    margin: 0;
}

.integration-dot {
    width: 0.9rem;
    height: 0.9rem;
    margin-top: 0.3rem;
    border-radius: 999px;
    flex-shrink: 0;
}

.integration-dot.is-ready {
    background: var(--scout-success);
    box-shadow: 0 0 0 0.3rem rgba(16, 185, 129, 0.12);
}

.integration-dot.is-waiting {
    background: var(--scout-warning);
    box-shadow: 0 0 0 0.3rem rgba(245, 158, 11, 0.14);
}

.runtime-panel,
.mini-card {
    margin-top: 1.3rem;
    padding: 1.2rem;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(22, 78, 99, 0.08));
}

.runtime-panel span,
.runtime-panel small {
    display: block;
    color: var(--scout-muted);
}

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

.order-card {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.order-card h3 {
    font-size: 1rem;
    margin: 0 0 0.2rem;
}

.order-card p {
    margin: 0;
    color: var(--scout-muted);
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 1.4rem 0 0;
    display: grid;
    gap: 0.95rem;
}

.check-list li {
    position: relative;
    padding-left: 1.9rem;
    color: var(--scout-muted);
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.42rem;
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--scout-accent), var(--scout-highlight));
    box-shadow: 0 0 0 0.3rem rgba(249, 115, 22, 0.11);
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(12px);
    pointer-events: none;
}

.hero-orb-one {
    width: 14rem;
    height: 14rem;
    background: rgba(20, 184, 166, 0.18);
    top: -2rem;
    right: 6%;
}

.hero-orb-two {
    width: 10rem;
    height: 10rem;
    background: rgba(249, 115, 22, 0.16);
    bottom: 2rem;
    left: 44%;
}

.alt-card {
    background: rgba(255, 255, 255, 0.78);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.detail-stat {
    padding: 1.1rem 1.2rem;
    border-radius: 1.3rem;
    background: rgba(240, 253, 250, 0.85);
    border: 1px solid rgba(15, 118, 110, 0.1);
}

.detail-stat span {
    display: block;
    color: var(--scout-muted);
    margin-bottom: 0.3rem;
}

.detail-stat strong {
    font-size: 1.4rem;
}

.detail-section {
    margin-top: 1.6rem;
}

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

.detail-list div {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.detail-list dt {
    color: var(--scout-muted);
    margin-bottom: 0.3rem;
}

.detail-list dd {
    margin: 0;
    font-weight: 600;
}

.detail-copy {
    color: var(--scout-muted);
    line-height: 1.8;
}

.site-footer {
    padding: 1.4rem 0 2.4rem;
    color: var(--scout-muted);
}

.site-footer a {
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .hero-title,
    .subpage-title {
        max-width: none;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .hero-section,
    .subpage-hero {
        padding-top: 4.4rem;
    }

    .glass-panel,
    .content-card {
        padding: 1.3rem;
        border-radius: 1.5rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .order-card,
    .panel-header,
    .section-header {
        flex-direction: column;
    }
}
