@font-face {
    font-family: "Sora";
    font-style: normal;
    font-weight: 100 800;
    font-display: swap;
    src: url("/assets/fonts/sora-variable.woff2") format("woff2");
}

:root {
    --navy-950: #001632;
    --navy-900: #031b3d;
    --navy-800: #173456;
    --blue-600: #1d72ed;
    --blue-500: #4a90e2;
    --teal-500: #2ac4c7;
    --cyan-100: #e6f6f7;
    --slate-600: #52637b;
    --slate-300: #cdd9e7;
    --page: #f7fbff;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    min-width: 320px;
    margin: 0;
    color: var(--navy-950);
    background: var(--page);
    font-family: "Sora", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

main {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0, rgba(241, 248, 255, 0.98) 540px, #f1f8ff 540px, #f1f8ff 100%),
        radial-gradient(circle 430px at 72% 120px, rgba(74, 144, 226, 0.13), transparent 100%);
}

main::before,
main::after {
    position: absolute;
    z-index: 0;
    content: "";
    pointer-events: none;
}

main::before {
    top: -260px;
    left: -260px;
    width: 470px;
    height: 470px;
    border: 68px solid rgba(230, 246, 247, 0.72);
    border-radius: 50%;
}

main::after {
    top: 260px;
    right: -140px;
    width: 510px;
    height: 510px;
    background: rgba(230, 246, 247, 0.72);
    border-radius: 50%;
}

button,
input {
    font: inherit;
}

button:disabled {
    color: inherit;
    cursor: default;
    opacity: 1;
}

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

a[aria-disabled="true"] {
    cursor: default;
    pointer-events: none;
}

img {
    display: block;
    max-width: 100%;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(42, 196, 199, 0.5);
    outline-offset: 3px;
}

.container {
    width: min(var(--container), calc(100% - 48px));
    margin: 0 auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 12px;
    left: 12px;
    padding: 12px 18px;
    color: #ffffff;
    background: var(--navy-950);
    border-radius: 12px;
    transform: translateY(-150%);
    transition: transform 160ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: relative;
    z-index: 20;
    background: rgba(255, 255, 255, 0.84);
    border-bottom: 1px solid rgba(174, 198, 226, 0.38);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    min-height: 84px;
    gap: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
    font-size: 1.72rem;
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1;
}

.brand-mark {
    display: block;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
}

.brand-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.primary-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    gap: clamp(20px, 2.8vw, 40px);
    color: var(--navy-800);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: -0.012em;
    line-height: 1.2;
}

.primary-nav a {
    transition: color 160ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
    color: var(--blue-600);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: -0.012em;
    line-height: 1;
}

.button-ghost {
    color: var(--navy-900);
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--slate-300);
}

.button-primary {
    color: #ffffff !important;
    background: linear-gradient(135deg, #145fc8, #084a9f);
    border-color: #0c55b2;
    box-shadow: 0 10px 22px rgba(29, 114, 237, 0.22);
}

.discord-login {
    gap: 9px;
    min-width: 112px;
    background: #5865f2;
    border-color: #4752c4;
    box-shadow: 0 10px 22px rgba(88, 101, 242, 0.25);
}

.discord-login img {
    width: 20px;
    height: 15px;
    flex: 0 0 auto;
}

.hero {
    position: relative;
    z-index: 1;
    min-height: 540px;
    overflow: hidden;
    background: transparent;
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    min-height: 540px;
    padding-top: 120px;
    padding-bottom: 126px;
}

.hero-copy {
    position: relative;
    z-index: 5;
    max-width: 650px;
}

.hero h1 {
    max-width: 680px;
    margin: 0;
    font-size: clamp(3rem, 4.5vw, 4.05rem);
    font-weight: 700;
    line-height: 1.03;
    letter-spacing: -0.045em;
}

.hero h1 > span {
    display: block;
    white-space: nowrap;
}

.hero h1 strong {
    display: block;
    color: var(--blue-600);
    font-weight: 800;
}

.hero-copy p {
    max-width: 590px;
    margin: 24px 0 0;
    color: var(--slate-600);
    font-size: clamp(1.05rem, 1.6vw, 1.22rem);
    font-weight: 400;
    letter-spacing: -0.008em;
    line-height: 1.62;
}

.hero-art {
    position: absolute;
    z-index: 1;
    right: 60px;
    bottom: 100%;
    width: min(500px, 52vw);
    height: auto;
    aspect-ratio: 3 / 2;
    pointer-events: none;
    transform: translateY(21.289%);
}

.hero-art img {
    position: absolute;
    z-index: 11;
    right: 0;
    bottom: 0;
    width: 100%;
    height: auto;
    max-width: none;
    filter: drop-shadow(0 22px 34px rgba(20, 89, 173, 0.14));
}

.owl-halo {
    position: absolute;
    right: 4%;
    bottom: 0;
    width: 80%;
    height: 83%;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.18), rgba(42, 196, 199, 0.07) 44%, transparent 70%);
    border-radius: 50%;
}

.spark {
    position: absolute;
    z-index: 2;
    width: 18px;
    height: 18px;
    background: var(--blue-500);
    clip-path: polygon(50% 0, 61% 38%, 100% 50%, 61% 62%, 50% 100%, 39% 62%, 0 50%, 39% 38%);
    opacity: 0.7;
}

.spark-one {
    top: 18px;
    right: 8px;
    width: 30px;
    height: 30px;
}

.spark-two {
    top: 112px;
    right: -18px;
    width: 13px;
    height: 13px;
    background: var(--teal-500);
}

.spark-three {
    top: 142px;
    left: 10px;
    width: 21px;
    height: 21px;
    opacity: 0.46;
}

.search-stage {
    position: absolute;
    z-index: 10;
    right: 0;
    bottom: 60px;
    left: 0;
    scroll-margin-top: 100px;
}

.community-search {
    position: relative;
    z-index: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: 82px;
    padding: 10px 11px 10px 28px;
    background: #ffffff;
    border: 1px solid rgba(152, 177, 207, 0.52);
    border-radius: 20px;
    box-shadow: 0 22px 65px rgba(34, 89, 151, 0.16);
}

.search-field {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    min-width: 0;
}

.search-icon {
    position: relative;
    width: 24px;
    height: 24px;
    margin-right: 18px;
}

.search-icon::before {
    position: absolute;
    top: 1px;
    left: 1px;
    width: 13px;
    height: 13px;
    content: "";
    border: 2.5px solid var(--navy-900);
    border-radius: 50%;
}

.search-icon::after {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 9px;
    height: 2.5px;
    content: "";
    background: var(--navy-900);
    border-radius: 99px;
    transform: rotate(45deg);
    transform-origin: left center;
}

.community-search input {
    width: 100%;
    min-width: 0;
    color: var(--navy-950);
    background: transparent;
    border: 0;
    outline: 0;
    font-size: clamp(1rem, 2vw, 1.18rem);
    font-weight: 400;
    letter-spacing: -0.008em;
    line-height: 1.4;
}

.community-search input::placeholder {
    color: #7789a3;
}

@media (min-width: 641px) {
    .community-search {
        column-gap: 14px;
    }
}

.community-search:focus-within {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.13), 0 22px 65px rgba(34, 89, 151, 0.16);
}

.community-search button {
    min-height: 58px;
    padding: 0 27px;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(135deg, #145fc8, #084a9f);
    border: 0;
    border-radius: 14px;
    font-weight: 700;
    letter-spacing: -0.012em;
    line-height: 1;
    box-shadow: 0 12px 22px rgba(29, 114, 237, 0.22);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.community-search button:hover {
    box-shadow: 0 14px 26px rgba(29, 114, 237, 0.28);
    transform: translateY(-1px);
}

.community-search button:active {
    transform: translateY(0);
}

.search-hint {
    margin: 14px 0 0;
    color: var(--slate-600);
    text-align: center;
    font-size: 0.9rem;
    font-weight: 400;
}

.site-footer {
    flex: 0 0 auto;
    margin-top: auto;
    background: #ffffff;
    border-top: 1px solid #e1eaf3;
}

.footer-inner {
    display: block;
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
    align-items: start;
    gap: 64px;
    padding: 40px 0 34px;
}

.footer-identity {
    min-width: 0;
}

.footer-brand {
    color: var(--navy-950);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.footer-identity > p {
    max-width: 280px;
    margin: 9px 0 0;
    color: var(--slate-600);
    font-size: 0.86rem;
    font-weight: 400;
    line-height: 1.55;
}

.footer-navigation {
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 32px;
}

.footer-group {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
}

.footer-group h2 {
    margin: 0 0 10px;
    color: var(--navy-950);
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-transform: uppercase;
}

.footer-group a,
.footer-group .footer-link {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    color: var(--slate-600);
    font-size: 0.86rem;
    font-weight: 400;
    line-height: 1.4;
    transition: color 160ms ease;
}

.footer-group a:hover {
    color: var(--blue-600);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    padding: 18px 0 20px;
    border-top: 1px solid #e8eef5;
}

.footer-bottom p {
    margin: 0;
    color: var(--slate-600);
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.45;
}

@media (min-width: 931px) and (max-width: 1100px) {
    .primary-nav {
        display: none;
    }

    .header-actions {
        margin-left: auto;
    }

    .hero-inner {
        padding-top: 145px;
    }

    .hero-art {
        right: 30px;
        width: 42vw;
    }
}

@media (max-width: 930px) {
    .primary-nav {
        display: none;
    }

    .header-actions {
        margin-left: auto;
    }

    .hero,
    .hero-inner {
        min-height: auto;
    }

    .hero {
        width: 100%;
        margin-block: auto;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        padding-top: 56px;
        padding-bottom: 40px;
    }

    .hero-copy {
        max-width: 55%;
    }

    .hero h1 {
        font-size: clamp(2.15rem, 4.8vw, 3rem);
    }

    .hero-art {
        right: clamp(0px, 2vw, 18px);
        bottom: 100%;
        width: clamp(230px, 38vw, 355px);
        height: auto;
        opacity: 1;
    }

    .hero-art img {
        bottom: 0;
        width: 100%;
    }

    .search-stage {
        position: relative;
        right: auto;
        bottom: auto;
        left: auto;
        margin-top: 30px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 28px 0 24px;
    }

    .footer-navigation {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
    }
}

@media (max-width: 640px) {
    main::after {
        top: 320px;
        right: -260px;
        width: 440px;
        height: 440px;
    }

    .container {
        width: min(100% - 28px, var(--container));
    }

    .header-inner {
        min-height: 72px;
    }

    .brand {
        font-size: 1.42rem;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .header-actions .button-primary {
        min-height: 44px;
        padding: 0 14px;
        font-size: 0.82rem;
    }

    .hero,
    .hero-inner {
        min-height: auto;
    }

    .hero-inner {
        padding-top: 44px;
        padding-bottom: 38px;
    }

    .hero-copy {
        max-width: none;
    }

    .hero h1 {
        font-size: clamp(2.85rem, 14vw, 4rem);
        line-height: 1.04;
    }

    .hero h1 > span {
        white-space: normal;
    }

    .hero-copy p {
        margin-top: 20px;
        font-size: 1rem;
        line-height: 1.55;
    }

    .hero-art {
        display: none;
    }

    .search-stage {
        position: relative;
        right: auto;
        bottom: auto;
        left: auto;
        margin-top: 32px;
    }

    .community-search {
        grid-template-columns: 1fr;
        gap: 10px;
        min-height: 0;
        padding: 0;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .community-search:focus-within {
        border-color: transparent;
        box-shadow: none;
    }

    .search-field {
        min-height: 56px;
        padding: 0 16px;
        background: #ffffff;
        border: 1px solid #9fb3c8;
        border-radius: 14px;
        box-shadow: 0 10px 26px rgba(34, 89, 151, 0.1);
        transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
    }

    .search-field:focus-within {
        background: #ffffff;
        border-color: var(--blue-600);
        box-shadow: 0 0 0 3px rgba(29, 114, 237, 0.16), 0 10px 26px rgba(34, 89, 151, 0.1);
    }

    .search-field .search-icon {
        margin-right: 12px;
    }

    .search-field input {
        min-height: 54px;
        font-size: 1rem;
    }

    .community-search button {
        grid-column: auto;
        justify-self: center;
        width: calc(100% - 24px);
        min-height: 46px;
        padding: 0 18px;
        margin-top: 0;
        border-radius: 12px;
        font-size: 0.9375rem;
        box-shadow: 0 6px 14px rgba(29, 114, 237, 0.18);
    }

    .search-hint {
        padding: 0 8px;
        margin-top: 12px;
        font-size: 0.8125rem;
        line-height: 1.45;
    }

    .footer-main {
        gap: 26px;
        padding: 26px 0 22px;
    }

    .footer-navigation {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: clamp(10px, 3vw, 20px);
    }

    .footer-group a,
    .footer-group .footer-link {
        min-height: 36px;
        font-size: clamp(0.78rem, 3.4vw, 0.86rem);
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
        padding: 15px 0 calc(18px + env(safe-area-inset-bottom));
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
