:root {
    --background: #faf4ef;
    --foreground: #2b1e1c;
    --primary: #e62e1e;
    --primary-strong: #c32215;
    --primary-soft: #ffe1d8;
    --muted: #f0eae5;
    --muted-foreground: #60514f;
    --border: #e2d5cb;
    --card: #fff;
    --dark: #17100f;
    --light: #fef7f2;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--foreground);
    font-family: "DM Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

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

a {
    color: inherit;
}

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

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 20;
    border-bottom: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
    background: color-mix(in srgb, var(--background) 86%, transparent);
    backdrop-filter: blur(14px);
}

.header-inner {
    width: min(var(--max), calc(100% - 32px));
    height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    white-space: nowrap;
}

.logo {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    color: var(--muted-foreground);
    font-size: .96rem;
}

.nav-links a,
.footer a {
    text-decoration: none;
}

.nav-links a:hover,
.text-link:hover,
.footer a:hover {
    color: var(--primary);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border: 1px solid var(--primary);
    border-radius: 8px;
    background: var(--primary);
    color: var(--light);
    text-decoration: none;
    font-weight: 700;
    transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.button:hover {
    background: var(--primary-strong);
    border-color: var(--primary-strong);
    transform: translateY(-1px);
}

.button-small {
    min-height: 36px;
    padding: 0 16px;
    font-size: .9rem;
}

.button-outline {
    background: color-mix(in srgb, var(--background) 72%, transparent);
    color: var(--foreground);
    border-color: var(--border);
}

.button-outline:hover {
    background: var(--foreground);
    border-color: var(--foreground);
    color: var(--background);
}

.button-light {
    background: var(--light);
    border-color: var(--light);
    color: var(--primary);
}

.button-light:hover {
    background: var(--primary-soft);
    border-color: var(--primary-soft);
    color: var(--primary-strong);
}

.button-ghost-light {
    background: transparent;
    border-color: color-mix(in srgb, var(--light) 45%, transparent);
    color: var(--light);
}

.button-ghost-light:hover {
    background: var(--light);
    border-color: var(--light);
    color: var(--primary);
}

.hero {
    position: relative;
    min-height: 94vh;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 96px 0 64px;
}

.hero-image,
.hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-image {
    object-fit: cover;
}

.hero-overlay {
    background: linear-gradient(180deg, rgba(250, 244, 239, .82), rgba(250, 244, 239, .72) 46%, var(--background) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 56px 0 20px;
}

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

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

h1 {
    max-width: 960px;
    margin: 0 auto;
    font-size: clamp(3rem, 8vw, 6.8rem);
    line-height: .96;
    letter-spacing: 0;
}

h2 {
    font-size: clamp(2.1rem, 4.4vw, 4.4rem);
    line-height: 1.02;
    letter-spacing: 0;
    margin-bottom: 22px;
}

h3 {
    font-size: 1.28rem;
    line-height: 1.2;
    margin-bottom: 12px;
}

p {
    color: var(--muted-foreground);
    font-size: 1.08rem;
}

.hero-copy {
    max-width: 720px;
    margin: 24px auto 0;
    font-size: clamp(1.12rem, 2vw, 1.35rem);
    font-weight: 700;
}

.actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.section {
    padding: 104px 0;
}

.section-muted {
    background: var(--muted);
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
    gap: clamp(32px, 7vw, 86px);
    align-items: center;
}

.split.reverse {
    grid-template-columns: minmax(280px, .95fr) minmax(0, 1.05fr);
}

.portrait-panel {
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    border: 1px solid var(--border);
    border-radius: 8px;
    background:
        radial-gradient(circle at 20% 20%, var(--primary-soft), transparent 42%),
        linear-gradient(145deg, #fff, #f6e9df);
    padding: clamp(24px, 5vw, 48px);
}

.identity-mark {
    width: 144px;
    height: 144px;
    display: grid;
    place-items: center;
    margin-bottom: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--light);
    font-size: 3rem;
    font-weight: 900;
}

.avatar-large {
    width: 156px;
    height: 156px;
    margin-bottom: 48px;
    border: 6px solid var(--light);
    border-radius: 50%;
    box-shadow: 0 18px 44px rgba(43, 30, 28, .18);
    object-fit: cover;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 42px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.card {
    min-height: 280px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card);
}

.card-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin-bottom: 34px;
    border-radius: 8px;
    background: var(--primary);
    color: var(--light);
    font-weight: 900;
}

.discord-shell {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid #2b2d35;
    border-radius: 8px;
    background: #111214;
    box-shadow: 0 28px 72px rgba(43, 30, 28, .18);
}

.discord-sidebar {
    display: grid;
    align-content: start;
    justify-items: center;
    gap: 14px;
    padding: 18px 0;
    background: #1e1f22;
}

.discord-sidebar span {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #313338;
}

.discord-sidebar .active {
    border-radius: 14px;
    background: var(--primary);
}

.discord-main {
    min-width: 0;
}

.discord-topbar {
    min-height: 56px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 22px;
    border-bottom: 1px solid #2b2d35;
    color: #f2f3f5;
}

.discord-topbar span {
    color: #949ba4;
    font-size: .92rem;
}

.conversation-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
}

.chat-example {
    min-width: 0;
    padding: 22px;
    border-right: 1px solid #2b2d35;
}

.chat-example:last-child {
    border-right: 0;
}

.chat-channel {
    margin-bottom: 18px;
    color: #949ba4;
    font-size: .9rem;
    font-weight: 800;
    text-transform: uppercase;
}

.message {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    margin-top: 18px;
}

.chat-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-avatar.initials {
    display: grid;
    place-items: center;
    background: #5865f2;
    color: #fff;
    font-weight: 900;
}

.bubble {
    min-width: 0;
}

.meta {
    margin-bottom: 4px;
    color: #f2f3f5;
    font-size: .98rem;
    font-weight: 800;
}

.meta span {
    margin-left: 7px;
    color: #949ba4;
    font-size: .86rem;
    font-weight: 600;
}

.meta .app-tag {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    padding: 0 5px;
    border-radius: 4px;
    background: #5865f2;
    color: #fff;
    font-size: .68rem;
    font-weight: 900;
}

.bubble p {
    margin-bottom: 0;
    color: #dbdee1;
    font-size: .98rem;
}

.bubble a,
.bubble strong {
    color: #f0b232;
    text-decoration: none;
}

.image-band {
    position: relative;
    min-height: 560px;
    display: grid;
    align-items: end;
    overflow: hidden;
}

.image-band img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-band::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(23, 16, 15, .08), rgba(23, 16, 15, .78));
}

.image-band-copy {
    position: relative;
    z-index: 1;
    padding: 0 0 70px;
}

.image-band-copy h2,
.image-band-copy .eyebrow {
    max-width: 760px;
    color: var(--light);
}

.rule-list {
    display: grid;
    gap: 14px;
}

.rule-list div {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card);
}

.rule-list strong,
.rule-list span {
    display: block;
}

.rule-list strong {
    margin-bottom: 8px;
    font-size: 1.08rem;
}

.rule-list span {
    color: var(--muted-foreground);
}

.text-link {
    display: inline-flex;
    margin-top: 12px;
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
}

.cta {
    padding: 84px 0;
    background: var(--primary);
    color: var(--light);
}

.cta h2,
.cta p,
.cta .eyebrow {
    color: var(--light);
}

.cta p {
    opacity: .86;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.cta-inner > div:first-child {
    max-width: 720px;
}

.footer {
    padding: 56px 0;
    background: var(--dark);
    color: var(--background);
}

.footer p,
.footer a {
    color: color-mix(in srgb, var(--background) 72%, transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: start;
}

.footer-brand {
    color: var(--background);
    margin-bottom: 14px;
}

.footer nav {
    display: grid;
    gap: 10px;
}

.sources-main {
    padding-top: 64px;
}

.page-hero {
    padding: 112px 0 64px;
    background: var(--muted);
}

.page-hero h1 {
    max-width: 920px;
    margin: 0;
    text-align: left;
    font-size: clamp(3rem, 7vw, 5.9rem);
}

.page-hero p {
    max-width: 760px;
    margin-top: 24px;
    font-weight: 700;
    font-size: 1.25rem;
}

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

.source-card {
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card);
}

.source-card h2 {
    font-size: 1.4rem;
    line-height: 1.2;
    margin-bottom: 10px;
}

.source-card p {
    font-size: 1rem;
}

.source-card a {
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
}

.note {
    margin-top: 28px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--muted);
}

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

    .card-grid,
    .conversation-grid,
    .source-grid,
    .split,
    .split.reverse,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .chat-example {
        border-right: 0;
        border-bottom: 1px solid #2b2d35;
    }

    .chat-example:last-child {
        border-bottom: 0;
    }

    .cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .header-inner {
        height: 60px;
    }

    .button-small {
        display: none;
    }

    .hero {
        min-height: 86vh;
        padding-top: 86px;
    }

    .actions {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .section {
        padding: 72px 0;
    }

    .card {
        min-height: auto;
    }

    .discord-shell {
        grid-template-columns: 1fr;
    }

    .discord-sidebar {
        display: none;
    }

    .discord-topbar {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 2px;
        padding: 10px 16px;
    }

    .chat-example {
        padding: 18px 16px;
    }
}
