:root {
    --bg: #fff;
    --text: #111;
    --card: #f5f5f5;
    --accent: #1b54ab;
    --accent2: #154389;
    --border: #eaeaea;
    --muted: #777;
    --muted2: #333;
}

html.dark {
    --bg: #0f0f10;
    --text: #f2f2f2;
    --card: #1a1a1d;
    --accent: #1b54ab;
    --accent2: #154389;
    --border: #2a2a2e;
    --muted: #999;
    --muted2: #444;
}

body {
    margin: 0;
    padding: 0;
    padding-top: 70px;
    font-family: "Oxanium", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.accent-line {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent);
}

.topnav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 40px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}

.logo-dark {
    display: none;
}

html.dark .logo-light {
    display: none;
}

html.dark .logo-dark {
    display: block;
}

.logo img {
    width: 128px;
    height: auto;
}

.links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 28px;
}

.links a {
    text-decoration: none;
    text-transform: uppercase;
    color: var(--text);
    font-size: 16px;
    transition: color 0.2s ease;
}

.links a:hover {
    color: var(--accent);
}

.theme-btn {
    background: none;
    border: 0px;
    padding: 0px;
    cursor: pointer;
}

.theme-btn img {
    height: 24px;
    width: 24px;
    filter: none;
}

.theme-btn img:hover {
    filter: invert(0.3);
}

html.dark .theme-btn img {
    filter: invert(1);
}

.footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 40px 40px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.footer-logo img,
.footer-text-logo img {
    height: auto;
    width: 240px;
}

.footer-logo .logo-dark,
.footer-text-logo .logotext-dark {
    display: none;
}

html.dark .footer-logo .logo-light {
    display: none;
}

html.dark .footer-logo .logo-dark {
    display: block;
}

html.dark .footer-text-logo .logotext-light {
    display: none;
}

html.dark .footer-text-logo .logotext-dark {
    display: block;
}

.footer-socials a {
    text-decoration: none;
}

.footer-socials img {
    height: auto;
    width: 24px;
    padding: 0px 12px;
    filter: invert(0.3);
    transition: filter 0.2s ease;
}

.footer-socials img:hover {
    filter: none;
}

html.dark .footer-socials img:hover {
    filter: invert(1);
}

.copyright {
    font-size: 13px;
    opacity: 0.6;
    margin-top: 5px;
}

.footer-column h4 {
    margin-bottom: 12px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--muted2);
}

.footer-column a {
    display: block;
    margin-bottom: 8px;
    text-decoration: none;
    text-transform: uppercase;
    color: var(--text);
    opacity: 0.75;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.footer-column a:hover {
    opacity: 1;
    color: var(--accent);
}

@media (max-width: 768px) {
    .links {
        display: none;
    }

    .footer-container {
        grid-template-columns: 1fr;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 500px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
}

.btn {
    text-decoration: none;
    border: 1px solid var(--accent);
    border-radius: 6px;
    color: #fff;
    padding: 10px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn.primary {
    background-color: var(--accent);
}

.btn.primary:hover {
    background-color: var(--accent2);
}

.btn {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-block;
    cursor: pointer;
    --wave-x: 50%;
    --wave-y: 50%;
}

.btn::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(
        circle at var(--wave-x) var(--wave-y),
        rgba(255, 255, 255, 0.38) 0%,
        rgba(255, 255, 255, 0.12) 24%,
        transparent 62%
    );
    opacity: 0;
    transform: scale(0.4);
    transition:
        opacity 0.35s ease,
        transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn:hover::before,
.btn:focus-visible::before {
    opacity: 1;
    transform: scale(1.8);
}

.btn:active::before {
    opacity: 1;
    transform: scale(2.4);
}

@media (prefers-reduced-motion: reduce) {
    .btn::before {
        transition: none;
    }
}