:root {
    --bg: #07111f;
    --bg-deep: #030814;
    --surface: rgba(11, 24, 43, 0.72);
    --surface-strong: rgba(8, 19, 36, 0.95);
    --surface-glow: rgba(18, 44, 81, 0.92);
    --ink: #edf7ff;
    --muted: #8ca3c2;
    --line: rgba(111, 202, 255, 0.14);
    --primary: #3df0ff;
    --primary-deep: #00b6ff;
    --secondary: #8f5bff;
    --success: #59ffa7;
    --warning: #ffb86b;
    --danger: #ff6b92;
    --glow: 0 0 0 1px rgba(61, 240, 255, 0.06), 0 22px 60px rgba(2, 8, 20, 0.48);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: "Avenir Next", "Trebuchet MS", sans-serif;
    background:
        radial-gradient(circle at 15% 15%, rgba(0, 182, 255, 0.22), transparent 28%),
        radial-gradient(circle at 85% 10%, rgba(143, 91, 255, 0.2), transparent 24%),
        radial-gradient(circle at 50% 80%, rgba(61, 240, 255, 0.12), transparent 30%),
        linear-gradient(180deg, var(--bg), var(--bg-deep));
}

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

.ambient {
    position: fixed;
    inset: auto;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(90px);
    opacity: 0.22;
    z-index: 0;
}

.ambient-one {
    top: 110px;
    left: -60px;
    width: 260px;
    height: 260px;
    background: #00b6ff;
}

.ambient-two {
    right: -80px;
    bottom: 80px;
    width: 280px;
    height: 280px;
    background: #7b61ff;
}

.page-shell {
    position: relative;
    z-index: 1;
    width: min(1220px, calc(100vw - 32px));
    margin: 0 auto;
    padding: 24px 0 48px;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(135deg, rgba(10, 26, 48, 0.92), rgba(5, 16, 31, 0.82));
    box-shadow: var(--glow);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.2em;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(61, 240, 255, 0.18), rgba(143, 91, 255, 0.22));
    border: 1px solid rgba(61, 240, 255, 0.24);
    color: var(--primary);
    box-shadow: inset 0 0 18px rgba(61, 240, 255, 0.12);
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.site-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--muted);
    transition: transform 180ms ease, color 180ms ease, background-color 180ms ease, border-color 180ms ease;
    border: 1px solid transparent;
}

.site-nav a:hover {
    color: var(--ink);
    border-color: rgba(61, 240, 255, 0.16);
    background: rgba(61, 240, 255, 0.08);
    transform: translateY(-1px);
}

.page-content {
    padding-top: 28px;
}

.hero,
.panel,
.report-card,
.stat-card,
.support-strip {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(9, 20, 38, 0.9), rgba(6, 15, 28, 0.86));
    box-shadow: var(--glow);
    backdrop-filter: blur(16px);
}

.support-strip {
    margin-bottom: 20px;
    padding: 22px 24px;
    border-radius: 24px;
}

.support-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: stretch;
    margin-bottom: 14px;
}

.support-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 108px;
    padding: 14px 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.support-logo-card-fasie {
    background: linear-gradient(180deg, rgba(243, 249, 255, 0.98), rgba(223, 235, 255, 0.94));
}

.support-logo-card-platform {
    background:
        radial-gradient(circle at 20% 20%, rgba(61, 240, 255, 0.12), transparent 40%),
        linear-gradient(180deg, rgba(11, 33, 67, 0.98), rgba(7, 21, 45, 0.98));
    border-color: rgba(61, 240, 255, 0.18);
}

.support-logo {
    display: block;
    max-width: 100%;
    height: auto;
}

.support-logo-fasie {
    width: min(420px, 100%);
}

.support-logo-platform {
    width: min(290px, 100%);
    filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.08));
}

.support-copy {
    margin: 0;
    max-width: 980px;
    font-size: 0.98rem;
    line-height: 1.7;
    color: #c3d8f0;
}

.hero {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 24px;
    padding: 36px;
    border-radius: 34px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(61, 240, 255, 0.06), transparent 35%),
        linear-gradient(310deg, rgba(143, 91, 255, 0.08), transparent 40%);
    pointer-events: none;
}

.eyebrow,
.panel-kicker,
.monitor-label {
    margin: 0 0 10px;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary);
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    max-width: 12ch;
    margin-bottom: 16px;
    font-size: clamp(2.4rem, 5vw, 5rem);
    line-height: 0.95;
}

h2 {
    margin-bottom: 12px;
    font-size: clamp(1.35rem, 3vw, 2rem);
}

.hero-copy,
.section-intro p,
.panel p,
.report-card p,
.error-item p,
.monitor-meta {
    color: var(--muted);
    line-height: 1.6;
}

.hero-actions,
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-content: start;
}

.compact-actions {
    margin-top: 12px;
}

.button-group form {
    margin: 0;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    color: #041019;
    box-shadow: 0 10px 30px rgba(0, 182, 255, 0.26);
}

.button.ghost {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(61, 240, 255, 0.18);
    color: var(--ink);
}

.button.ghost:hover {
    border-color: rgba(61, 240, 255, 0.34);
    background: rgba(61, 240, 255, 0.08);
}

.text-link {
    color: var(--primary);
    font-weight: 700;
}

.stats-grid,
.panel-grid,
.report-grid,
.manual-collection-grid,
.monitor-grid {
    display: grid;
    gap: 18px;
}

.stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 24px;
}

.panel-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.report-grid,
.manual-collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.manual-collection-grid {
    margin-bottom: 22px;
}

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

.stat-card,
.panel,
.report-card {
    padding: 24px;
    border-radius: var(--radius-lg);
}

.stat-card span,
.stat-card em {
    display: block;
}

.stat-card strong {
    display: block;
    margin: 10px 0 6px;
    font-size: 2.3rem;
    line-height: 1;
}

.accent-sand,
.accent-sky,
.accent-mint,
.accent-coral {
    position: relative;
    overflow: hidden;
}

.accent-sand::before,
.accent-sky::before,
.accent-mint::before,
.accent-coral::before {
    content: "";
    position: absolute;
    inset: -40px auto auto -40px;
    width: 140px;
    height: 140px;
    border-radius: 999px;
    filter: blur(12px);
    opacity: 0.22;
}

.accent-sand::before { background: #ffb86b; }
.accent-sky::before { background: #3df0ff; }
.accent-mint::before { background: #59ffa7; }
.accent-coral::before { background: #ff6b92; }

.section-intro {
    margin-bottom: 22px;
}

.form-stack {
    display: grid;
    gap: 16px;
}

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

label span {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #dcecff;
}

input,
select,
textarea {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(61, 240, 255, 0.12);
    border-radius: 14px;
    background: rgba(4, 16, 30, 0.92);
    color: var(--ink);
    font: inherit;
}

textarea {
    min-height: 140px;
    padding: 14px;
    resize: vertical;
}

.auth-error {
    color: var(--danger);
    font-weight: 700;
}

.toggle-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.toggle-row input {
    width: 18px;
    min-height: 18px;
}

.panel-wide {
    grid-column: span 2;
}

.panel-header,
.error-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(61, 240, 255, 0.08);
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
    border: 1px solid rgba(61, 240, 255, 0.14);
}

.badge.success {
    background: rgba(89, 255, 167, 0.12);
    color: var(--success);
    border-color: rgba(89, 255, 167, 0.2);
}

.error-list {
    display: grid;
    gap: 14px;
}

.error-item {
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 107, 146, 0.12);
}

.status-banner {
    margin-bottom: 18px;
}

.status-banner.warning {
    border-color: rgba(255, 184, 107, 0.18);
}

.status-banner.success {
    border-color: rgba(89, 255, 167, 0.18);
}

.parser-monitor {
    margin-bottom: 22px;
}

.progress-shell {
    width: 100%;
    height: 12px;
    margin: 18px 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
    border: 1px solid rgba(61, 240, 255, 0.1);
}

.progress-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    box-shadow: 0 0 18px rgba(61, 240, 255, 0.32);
    transition: width 300ms ease;
}

.monitor-meta {
    margin-bottom: 14px;
}

code {
    padding: 2px 6px;
    border-radius: 8px;
    background: rgba(61, 240, 255, 0.08);
    color: var(--primary);
    font-family: "SFMono-Regular", "Menlo", monospace;
    font-size: 0.92em;
}

@media (max-width: 960px) {
    .hero,
    .stats-grid,
    .panel-grid,
    .report-grid,
    .manual-collection-grid,
    .field-grid,
    .monitor-grid {
        grid-template-columns: 1fr;
    }

    .panel-wide {
        grid-column: auto;
    }
}

@media (max-width: 640px) {
    .page-shell {
        width: min(100vw - 20px, 1220px);
        padding-top: 14px;
    }

    .site-header,
    .hero,
    .stat-card,
    .panel,
    .report-card,
    .support-strip {
        padding: 18px;
    }

    .site-header {
        align-items: start;
        flex-direction: column;
    }

    .brand {
        letter-spacing: 0.12em;
    }
}
