@font-face {
    font-family: "Poppins";
    src: url("fonts/Poppins-Regular.ttf") format("truetype");
    font-weight: 400;
}

@font-face {
    font-family: "Poppins";
    src: url("fonts/Poppins-Bold.ttf") format("truetype");
    font-weight: 700;
}

@font-face {
    font-family: "SuperCorn";
    src: url("fonts/SuperCorn.ttf") format("truetype");
}

:root {
    color-scheme: dark;
    --bg: #040806;
    --surface: #07100a;
    --surface-2: #0b1810;
    --line: rgba(132, 255, 171, 0.18);
    --line-hot: rgba(49, 240, 113, 0.58);
    --ink: #f3fff2;
    --ink-soft: #bed0be;
    --ink-muted: #7b8979;
    --accent: #31f071;
    --accent-dark: #159743;
    --gold: #f5e66a;
    --danger: #ff6b6b;
    --radius: 8px;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background:
        radial-gradient(circle at 16% 0%, rgba(49, 240, 113, 0.14), transparent 32rem),
        linear-gradient(135deg, #030604, #07120b 48%, #020403);
    color: var(--ink);
    font-family: "Poppins", "Segoe UI", sans-serif;
    letter-spacing: 0;
}

body::selection {
    background: rgba(49, 240, 113, 0.35);
}

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    border-bottom: 1px solid var(--line);
    background: rgba(3, 8, 5, 0.92);
    backdrop-filter: blur(18px);
}

.topbar-inner {
    width: min(1440px, calc(100% - 40px));
    min-height: 72px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 26px;
}

.brand,
.main-nav,
.account-actions,
.hero-actions,
.aog-actions {
    display: flex;
    align-items: center;
}

.brand {
    gap: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
}

.brand img {
    width: 38px;
    height: 38px;
}

.brand strong {
    font-size: 15px;
}

.main-nav {
    justify-content: center;
    gap: 8px;
}

.nav-link,
.primary-button,
.ghost-button,
.download-button,
.account-chip,
.danger-button {
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    background: rgba(11, 24, 16, 0.72);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.nav-link {
    color: var(--ink-soft);
    background: transparent;
    border-color: transparent;
}

.nav-link:hover,
.nav-link.is-active,
.ghost-button:hover,
.account-chip:hover {
    color: var(--ink);
    border-color: var(--line-hot);
    background: rgba(49, 240, 113, 0.1);
}

.primary-button,
.download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #39f57b, #159944);
    color: #031006;
    border-color: rgba(98, 255, 151, 0.7);
    box-shadow: 0 18px 42px rgba(49, 240, 113, 0.18);
}

.primary-button:hover,
.download-button:hover,
.ghost-button:hover {
    transform: translateY(-2px);
}

.danger-button {
    border-color: rgba(255, 107, 107, 0.4);
    background: rgba(80, 20, 20, 0.5);
}

.danger-button:hover {
    border-color: rgba(255, 107, 107, 0.8);
}

.small {
    min-height: 38px;
    padding-inline: 14px;
}

.large {
    min-height: 54px;
}

.full {
    width: 100%;
}

.account-actions {
    justify-content: flex-end;
    gap: 10px;
}

.account-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-left: 6px;
    text-transform: none;
    white-space: nowrap;
}

.account-chip span {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(49, 240, 113, 0.14);
    color: var(--accent);
}

main {
    padding-top: 72px;
}

.page-view {
    display: none;
    width: min(1440px, calc(100% - 40px));
    margin: 0 auto;
}

.page-view.is-active {
    display: block;
}

.home-hero,
.aog-hero {
    min-height: calc(100vh - 72px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    align-items: center;
    gap: clamp(32px, 7vw, 96px);
    padding: clamp(46px, 8vw, 112px) 0;
}

.hero-art {
    order: 2;
    display: grid;
    place-items: center;
    min-height: 420px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(145deg, rgba(49, 240, 113, 0.12), transparent 42%),
        rgba(8, 18, 12, 0.72);
    box-shadow: var(--shadow);
}

.hero-art img {
    width: min(260px, 50vw);
    filter: drop-shadow(0 26px 52px rgba(49, 240, 113, 0.22));
}

.hero-copy {
    max-width: 720px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 18px currentColor;
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1 {
    margin-top: 18px;
    font-family: "SuperCorn", "Poppins", sans-serif;
    font-size: clamp(46px, 8vw, 96px);
    line-height: 0.92;
    letter-spacing: 0;
    text-transform: uppercase;
}

h2 {
    font-size: clamp(25px, 4vw, 42px);
    line-height: 1.1;
}

p {
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.82;
}

.hero-copy p,
.aog-copy p {
    margin-top: 22px;
    max-width: 700px;
}

.hero-actions,
.aog-actions {
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.download-button {
    min-height: 58px;
    padding-inline: 28px;
}

.download-note {
    margin-top: 16px !important;
    color: var(--ink-muted);
    font-size: 13px;
}

.benefit-row,
.aog-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    overflow: hidden;
    margin-bottom: 72px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--line);
}

.benefit-row article,
.aog-info-grid article {
    min-height: 170px;
    padding: 28px;
    background: rgba(7, 16, 10, 0.94);
}

.benefit-row strong {
    display: block;
    margin-bottom: 10px;
    font-size: 18px;
}

.aog-hero {
    position: relative;
    overflow: hidden;
    min-height: 680px;
    grid-template-columns: 1fr;
    margin-top: 28px;
    padding: clamp(42px, 8vw, 96px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.aog-backdrop,
.aog-backdrop img,
.aog-backdrop::after {
    position: absolute;
    inset: 0;
}

.aog-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.aog-backdrop::after {
    content: "";
    background:
        linear-gradient(90deg, rgba(3, 7, 5, 0.96), rgba(3, 7, 5, 0.74) 46%, rgba(3, 7, 5, 0.26)),
        linear-gradient(0deg, rgba(3, 7, 5, 0.86), transparent 54%);
}

.aog-copy {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.aog-icon {
    width: 86px;
    height: 86px;
    margin-bottom: 20px;
    border-radius: 18px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.48);
}

.aog-actions span {
    color: var(--ink-muted);
    font-size: 13px;
}

.aog-info-grid {
    margin-top: 24px;
}

.aog-info-grid h2 {
    margin-bottom: 12px;
    font-size: 26px;
}

.patch-section,
.account-page-card {
    margin: 24px 0 72px;
    padding: clamp(28px, 5vw, 54px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(7, 16, 10, 0.86);
    box-shadow: var(--shadow);
}

.section-heading {
    margin-bottom: 26px;
}

.section-heading h1,
.section-heading h2 {
    margin-top: 10px;
}

.patch-shell {
    max-height: 520px;
    overflow: auto;
    border: 1px solid rgba(132, 255, 171, 0.12);
    border-radius: var(--radius);
    background: rgba(1, 5, 3, 0.55);
}

.patch-shell pre {
    margin: 0;
    padding: 28px;
    white-space: pre-wrap;
    color: var(--ink-soft);
    font-family: "Poppins", "Segoe UI", sans-serif;
    line-height: 1.78;
}

.locked-account,
.account-settings {
    display: grid;
    gap: 20px;
}

.account-settings {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
}

.account-settings .danger-button {
    grid-column: 1 / -1;
    justify-self: start;
}

.account-form,
.auth-modal {
    display: grid;
    gap: 16px;
    padding: 26px;
    border: 1px solid rgba(132, 255, 171, 0.14);
    border-radius: var(--radius);
    background: rgba(2, 7, 4, 0.58);
}

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

label {
    display: grid;
    gap: 8px;
}

label span {
    color: var(--ink-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(132, 255, 171, 0.18);
    border-radius: var(--radius);
    outline: none;
    background: rgba(2, 8, 5, 0.78);
    color: var(--ink);
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input::placeholder {
    color: rgba(190, 208, 190, 0.42);
}

input:focus {
    border-color: var(--line-hot);
    box-shadow: 0 0 0 4px rgba(49, 240, 113, 0.1);
    background: rgba(4, 13, 8, 0.94);
}

input[readonly] {
    color: var(--ink-muted);
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(12px);
}

.auth-modal {
    position: relative;
    width: min(620px, 100%);
    background: rgba(6, 14, 9, 0.98);
    box-shadow: var(--shadow);
}

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

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
    color: var(--ink);
    font-weight: 700;
}

.text-switch {
    border: 0;
    background: transparent;
    color: var(--accent);
    font-weight: 700;
}

.site-footer {
    width: min(1440px, calc(100% - 40px));
    margin: 0 auto;
    padding: 34px 0 48px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid var(--line);
    color: var(--ink-muted);
    font-size: 13px;
}

.site-footer div {
    display: grid;
    gap: 6px;
}

.site-footer strong {
    color: var(--ink);
}

.toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 80;
    width: min(420px, calc(100vw - 48px));
    padding: 18px 20px;
    border: 1px solid var(--line-hot);
    border-radius: var(--radius);
    background: rgba(5, 14, 8, 0.96);
    color: var(--ink);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.toast.is-error {
    border-color: rgba(255, 107, 107, 0.7);
}

.is-hidden {
    display: none !important;
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.035);
}

::-webkit-scrollbar-thumb {
    border: 3px solid rgba(5, 12, 7, 0.98);
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent), var(--accent-dark));
}

@media (max-width: 1080px) {
    .topbar-inner {
        grid-template-columns: auto auto;
    }

    .main-nav {
        justify-content: flex-start;
        order: 3;
        grid-column: 1 / -1;
        padding-bottom: 10px;
    }

    main {
        padding-top: 126px;
    }

    .home-hero,
    .aog-hero,
    .account-settings {
        grid-template-columns: 1fr;
    }

    .hero-art {
        order: 0;
        min-height: 300px;
    }

    .benefit-row,
    .aog-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .topbar-inner,
    .page-view,
    .site-footer {
        width: min(100% - 24px, 1440px);
    }

    .account-actions {
        flex-wrap: wrap;
    }

    .home-hero,
    .aog-hero {
        min-height: auto;
        padding: 42px 0;
    }

    .aog-hero {
        padding: 30px 22px;
    }

    .hero-actions,
    .aog-actions,
    .site-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .download-button,
    .hero-actions .ghost-button,
    .aog-actions .primary-button {
        width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: clamp(40px, 15vw, 72px);
    }
}
