:root {
    --bg: #fff7ef;
    --surface: #fffdf8;
    --surface-strong: #ffe9dc;
    --text: #3b2732;
    --muted: #765f69;
    --line: rgba(177, 103, 84, 0.2);
    --accent: #e96f4c;
    --accent-strong: #c94f3c;
    --green: #b8dfc2;
    --pink: #f7bfd0;
    --sky: #b7ddf2;
    --cream: #fff4cf;
    --shadow: 0 22px 55px rgba(180, 91, 65, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 12%, rgba(233, 111, 76, 0.18), transparent 28%),
        radial-gradient(circle at 85% 18%, rgba(183, 221, 242, 0.46), transparent 30%),
        linear-gradient(135deg, #fff7ef 0%, #fff1d9 48%, #f5fbef 100%);
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px clamp(18px, 5vw, 72px);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 253, 248, 0.86);
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    text-decoration: none;
}

.brand-mark,
.avatar {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 8px;
    color: #fffdf8;
    background: var(--accent);
    font-weight: 900;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.site-nav a {
    min-width: 72px;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--muted);
    text-align: center;
    text-decoration: none;
    transition: 160ms ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--accent-strong);
    background: rgba(233, 111, 76, 0.12);
}

.site-nav a.bot-link {
    color: #fffdf8;
    background: var(--accent);
    font-weight: 800;
}

.site-nav a.bot-link:hover {
    color: #fffdf8;
    background: var(--accent-strong);
}

.site-nav a.discord-link {
    color: #fffdf8;
    background: #5865f2;
    font-weight: 800;
}

.site-nav a.discord-link:hover {
    color: #fffdf8;
    background: #4752c4;
}

main {
    width: min(1120px, calc(100% - 36px));
    margin: 0 auto;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
    gap: clamp(28px, 6vw, 72px);
    align-items: center;
    min-height: calc(100vh - 78px);
    padding: 54px 0;
}

.hero-copy,
.page-hero {
    max-width: 680px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

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

h1 {
    margin-bottom: 18px;
    font-size: clamp(2.5rem, 7vw, 5.4rem);
    line-height: 0.96;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

h3 {
    margin: 0 0 10px;
    font-size: 1rem;
}

.lead {
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.22rem);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
}

.hero-stats span {
    min-height: 82px;
    display: grid;
    align-content: center;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.72);
    color: var(--muted);
    line-height: 1.35;
}

.hero-stats strong {
    display: block;
    color: var(--accent-strong);
    font-size: 1.35rem;
    line-height: 1;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
}

.button.primary {
    border-color: transparent;
    color: #fffdf8;
    background: var(--accent);
}

.button.secondary {
    color: var(--accent-strong);
    background: rgba(255, 253, 248, 0.72);
}

.bot-preview,
.content-block,
.feature-card,
.wiki-nav {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.82);
    box-shadow: var(--shadow);
}

.bot-preview {
    overflow: hidden;
}

.hero-visual {
    position: relative;
    display: grid;
    gap: 18px;
}

.fox-mascot {
    position: relative;
    width: min(260px, 72vw);
    aspect-ratio: 1.45;
    justify-self: center;
    margin-bottom: -8px;
}

.fox-head {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 0;
    width: 156px;
    height: 132px;
    transform: translateX(-50%);
    border-radius: 44% 44% 48% 48%;
    background: linear-gradient(145deg, #f08a56, #df5f45);
    box-shadow: 0 18px 34px rgba(201, 79, 60, 0.2);
}

.fox-ear {
    position: absolute;
    z-index: 1;
    bottom: 94px;
    width: 74px;
    height: 86px;
    border-radius: 16px 72px 18px 72px;
    background: #e96f4c;
    transform: rotate(-18deg);
}

.fox-ear::after {
    content: "";
    position: absolute;
    inset: 17px 18px 18px;
    border-radius: inherit;
    background: #ffd6c8;
}

.fox-ear.left {
    left: 43px;
}

.fox-ear.right {
    right: 43px;
    transform: scaleX(-1) rotate(-18deg);
}

.fox-eye {
    position: absolute;
    top: 48px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #3b2732;
}

.fox-eye.left {
    left: 48px;
}

.fox-eye.right {
    right: 48px;
}

.fox-muzzle {
    position: absolute;
    left: 50%;
    bottom: 12px;
    width: 84px;
    height: 58px;
    transform: translateX(-50%);
    border-radius: 50% 50% 42% 42%;
    background: #fff8ed;
}

.fox-nose {
    position: absolute;
    left: 50%;
    bottom: 48px;
    width: 18px;
    height: 13px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: #3b2732;
}

.fox-tail {
    position: absolute;
    z-index: 0;
    right: 8px;
    bottom: 2px;
    width: 118px;
    height: 66px;
    border-radius: 72px 72px 72px 18px;
    background: linear-gradient(90deg, #e96f4c 0 68%, #fff8ed 68% 100%);
    transform: rotate(-22deg);
    transform-origin: left center;
    box-shadow: 0 16px 28px rgba(201, 79, 60, 0.14);
}

.preview-topbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(90deg, #ffe1d4, #fff1d3);
}

.preview-topbar span {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--accent-strong);
    background: rgba(247, 191, 208, 0.42);
    font-size: 0.88rem;
    font-weight: 800;
    white-space: nowrap;
}

.preview-topbar span:nth-child(2) {
    background: rgba(183, 221, 242, 0.48);
}

.preview-topbar span:nth-child(3) {
    background: rgba(184, 223, 194, 0.52);
}

.chat-row {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 12px;
    padding: 18px;
    border-bottom: 1px solid var(--line);
}

.chat-row p {
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.avatar.tiko {
    background: var(--green);
}

.stats-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
}

.stats-strip span {
    min-height: 72px;
    display: grid;
    place-items: center;
    padding: 12px;
    background: rgba(255, 253, 248, 0.72);
    color: var(--accent-strong);
    font-weight: 800;
    text-align: center;
}

.feature-grid,
.about-grid,
.about-overview,
.about-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 0 0 70px;
}

.about-overview {
    padding-bottom: 16px;
}

.about-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-bottom: 16px;
}

.about-credits {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
    gap: 22px;
    align-items: start;
}

.about-credits .eyebrow {
    margin-bottom: 10px;
}

.about-credit-grid {
    display: grid;
    gap: 12px;
}

.about-credit-grid article {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 12px;
    padding: 16px;
    border-radius: 8px;
    background: rgba(255, 244, 207, 0.52);
}

.about-credit-grid article:nth-child(2n) {
    background: rgba(183, 221, 242, 0.34);
}

.about-credit-grid h3 {
    margin-bottom: 6px;
}

.about-credit-grid p {
    color: var(--muted);
    line-height: 1.55;
}

.home-steps {
    display: grid;
    grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
    gap: 22px;
    align-items: start;
    margin-bottom: 70px;
}

.launch-offer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 22px;
    align-items: center;
    margin: -20px 0 24px;
    border-color: rgba(233, 111, 76, 0.34);
    background: rgba(255, 225, 212, 0.76);
}

.feature-card,
.content-block {
    padding: 24px;
}

.content-block > h3 {
    margin-top: 20px;
}

.feature-card p,
.content-block p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.65;
}

.page-shell {
    padding: 56px 0 76px;
}

.page-hero {
    margin-bottom: 34px;
}

.page-hero h1 {
    font-size: clamp(2.2rem, 5vw, 4.3rem);
}

.wiki-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 18px;
    align-items: start;
}

.wiki-nav {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 6px;
    padding: 10px;
}

.wiki-nav a {
    padding: 12px;
    border-radius: 8px;
    color: var(--muted);
    text-decoration: none;
}

.wiki-nav a:hover {
    color: var(--text);
    background: rgba(233, 111, 76, 0.1);
}

.wiki-content {
    display: grid;
    gap: 16px;
}

.command-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.command-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border-radius: 8px;
    background: rgba(255, 244, 207, 0.62);
}

code {
    color: var(--accent);
    font: 700 0.96rem "Courier New", monospace;
}

.command-list span {
    color: var(--muted);
    text-align: right;
}

.wiki-card-grid,
.wiki-section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.wiki-card-grid > div,
.wiki-section-grid > section,
.wiki-note,
.wiki-table > div {
    border-radius: 8px;
    background: rgba(255, 244, 207, 0.52);
}

.wiki-card-grid > div,
.wiki-section-grid > section,
.wiki-note {
    padding: 16px;
}

.wiki-section-grid > section:nth-child(2n),
.wiki-card-grid > div:nth-child(2n),
.wiki-table > div:nth-child(2n) {
    background: rgba(183, 221, 242, 0.34);
}

.wiki-section-grid p,
.wiki-note {
    color: var(--muted);
    line-height: 1.65;
}

.wiki-note {
    margin-top: 16px;
}

.step-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.55;
}

.step-list.columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.tag-list li {
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(184, 223, 194, 0.36);
    color: var(--muted);
    font-size: 0.92rem;
}

.wiki-table {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.wiki-table > div {
    display: grid;
    grid-template-columns: minmax(130px, 0.28fr) 1fr;
    gap: 14px;
    align-items: start;
    padding: 14px;
}

.wiki-table strong {
    color: var(--text);
}

.wiki-table span {
    color: var(--muted);
    line-height: 1.55;
}

.wiki-table.compact code {
    display: inline-block;
    margin: 0 4px 4px 0;
}

.highlight-block {
    border-color: rgba(233, 111, 76, 0.34);
    background: rgba(255, 225, 212, 0.72);
}

.site-footer {
    padding: 24px 18px 34px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    text-align: center;
}

.site-footer p {
    margin: 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 12px;
}

.footer-links a {
    color: var(--accent-strong);
    font-weight: 800;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.legal-layout {
    display: grid;
    gap: 16px;
}

.legal-button {
    margin-top: 16px;
}

.legal-date {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 800;
}

@media (max-width: 820px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav {
        width: 100%;
        justify-content: stretch;
    }

    .site-nav a {
        flex: 1;
    }

    .hero,
    .wiki-layout,
    .feature-grid,
    .about-grid,
    .about-overview,
    .about-detail-grid,
    .about-credits,
    .home-steps,
    .launch-offer {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-top: 42px;
    }

    .wiki-nav {
        position: static;
    }

    .wiki-card-grid,
    .wiki-section-grid {
        grid-template-columns: 1fr;
    }

    .step-list.columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    main {
        width: min(100% - 24px, 1120px);
    }

    h1 {
        font-size: 2.45rem;
    }

    .hero-actions,
    .command-list li {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .stats-strip {
        grid-template-columns: 1fr;
    }

    .command-list span {
        text-align: left;
    }

    .wiki-table > div {
        grid-template-columns: 1fr;
    }
}
