:root {
    color-scheme: dark;
    font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background: radial-gradient(circle at 10% 20%, #0f172a 0%, transparent 55%),
                radial-gradient(circle at 88% 15%, rgba(16, 185, 129, 0.35) 0%, transparent 58%),
                linear-gradient(160deg, #020817 0%, #04121a 48%, #012318 100%);
    color: #e2e8f0;
    position: relative;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
}

body::before {
    background: radial-gradient(ellipse at top left, rgba(34, 197, 94, 0.12), transparent 65%),
                radial-gradient(ellipse at 70% 65%, rgba(45, 212, 191, 0.18), transparent 70%),
                radial-gradient(ellipse at bottom right, rgba(56, 189, 248, 0.12), transparent 70%);
    opacity: 0.9;
    filter: blur(0px);
}

body::after {
    z-index: -3;
    background-image: linear-gradient(90deg, rgba(148, 255, 216, 0.04) 1px, transparent 1px),
                      linear-gradient(0deg, rgba(148, 255, 216, 0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.85), transparent 70%);
}

a {
    color: inherit;
}

a:hover {
    color: #34d399;
}

.skip-link {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    background: rgba(16, 185, 129, 0.9);
    color: #0f172a;
    font-weight: 600;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 50;
}

.skip-link:focus {
    opacity: 1;
    pointer-events: auto;
}

.site-header {
    position: relative;
    z-index: 20;
    border-bottom: 1px solid rgba(148, 255, 216, 0.12);
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(18px);
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% -60%, rgba(16, 185, 129, 0.3), transparent 65%),
                radial-gradient(circle at 85% 120%, rgba(59, 130, 246, 0.25), transparent 65%);
    opacity: 0.8;
    z-index: -1;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    color: #bbf7d0;
}

.site-logo-emblem {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: rgba(45, 212, 191, 0.16);
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.3);
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #34d399;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: rgba(226, 232, 240, 0.75);
}

.nav-links a {
    position: relative;
    padding-bottom: 0.4rem;
    text-decoration: none;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(45, 212, 191, 0), rgba(16, 185, 129, 0.9), rgba(45, 212, 191, 0));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
    transform: scaleX(1);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.85), rgba(49, 196, 141, 0.45));
    color: #021311;
    box-shadow: 0 18px 35px rgba(16, 185, 129, 0.25);
}

.nav-cta:hover {
    color: #012c22;
}

.mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 255, 216, 0.25);
    color: rgba(226, 232, 240, 0.85);
    background: rgba(15, 23, 42, 0.6);
}

.mobile-drawer {
    display: none;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.75rem;
    padding: 1.75rem;
    border-radius: 1.5rem;
    background: rgba(2, 8, 17, 0.85);
    border: 1px solid rgba(148, 255, 216, 0.12);
}

.mobile-drawer a,
.mobile-drawer button {
    text-align: left;
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.78);
}

.badge,
.badge-soft,
.badge-outline {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.badge-soft {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #a7f3d0;
}

.badge-outline {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 255, 216, 0.35);
    color: #a7f3d0;
}

.btn-primary,
.btn-secondary,
.btn-tertiary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.9rem;
    border-radius: 9999px;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #34d399, #047857);
    color: #02130d;
    box-shadow: 0 22px 40px rgba(16, 185, 129, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 30px 55px rgba(16, 185, 129, 0.45);
}

.btn-secondary {
    background: rgba(34, 197, 94, 0.1);
    color: #bbf7d0;
    border: 1px solid rgba(45, 212, 191, 0.35);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: rgba(34, 197, 94, 0.2);
}

.btn-tertiary {
    padding: 0;
    background: none;
    color: #34d399;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.btn-tertiary:hover {
    color: #6ee7b7;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.7);
    margin-bottom: 0.55rem;
}

.form-input,
textarea.form-input {
    width: 100%;
    border-radius: 1rem;
    border: 1px solid rgba(148, 255, 216, 0.2);
    padding: 0.85rem 1.1rem;
    background: rgba(10, 17, 28, 0.85);
    color: #e2e8f0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
textarea.form-input:focus {
    outline: none;
    border-color: rgba(45, 212, 191, 0.65);
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.2);
}

.form-checkbox {
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 0.35rem;
    border: 1px solid rgba(148, 255, 216, 0.35);
    background: rgba(10, 17, 28, 0.9);
}

.alert-error {
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.4);
    color: #fecaca;
    border-radius: 1rem;
    padding: 0.85rem 1.1rem;
    font-size: 0.9rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.status-open {
    background: rgba(251, 146, 60, 0.18);
    color: #fb923c;
}

.status-paid {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.metric-card {
    border-radius: 1.5rem;
    border: 1px solid rgba(148, 255, 216, 0.15);
    background: linear-gradient(160deg, rgba(8, 47, 73, 0.6), rgba(2, 12, 20, 0.7));
    padding: 1.5rem;
    box-shadow: inset 0 1px 0 rgba(148, 255, 216, 0.08);
}

.metric-card dt {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(148, 255, 216, 0.7);
}

.metric-card dd {
    margin-top: 0.75rem;
    font-size: 1.9rem;
    font-weight: 700;
    color: #f8fafc;
}

.table-shell {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.table-shell thead {
    color: rgba(148, 255, 216, 0.85);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.7rem;
}

.table-shell th,
.table-shell td {
    padding: 0.95rem 1rem;
    border-bottom: 1px solid rgba(148, 255, 216, 0.08);
}

.table-shell tbody tr:hover {
    background: rgba(15, 23, 42, 0.45);
}

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

.form-invalid .form-input:invalid,
.form-invalid textarea.form-input:invalid {
    border-color: rgba(248, 113, 113, 0.6);
}
