:root {
    --theme-dark: #0a0f2c;
    --theme-blue: #335fff;

    --bg: var(--theme-dark);
    --header: color-mix(in srgb, var(--bg) 95%, white);
    --panel: color-mix(in srgb, var(--bg) 92%, white);
    --hover: color-mix(in srgb, var(--bg) 87%, white);
    --edge: color-mix(in srgb, var(--bg) 81%, white);
    --text: color-mix(in srgb, var(--bg) 4%, white);
    --muted: color-mix(in srgb, var(--bg) 28%, white);
    --accent: var(--theme-blue);
    --accent-hover: color-mix(in srgb, var(--accent) 80%, black);
    --accent-text: color-mix(in srgb, var(--accent) 42%, white);
    --accent-surface: color-mix(in srgb, var(--accent) 13%, var(--bg));
    --shadow: color-mix(in srgb, var(--bg) 60%, transparent);

    color-scheme: dark;
    font-family: system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 4px; }
.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.top { border-bottom: 1px solid var(--edge); background: var(--header); }
.top-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand, .demo-bar { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.mark { width: 16px; height: 16px; border: 4px solid var(--accent-text); transform: rotate(-13deg); display: inline-block; flex: none; }
nav, .bottom div, .actions { display: flex; gap: 10px; flex-wrap: wrap; }
nav a { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-size: .9rem; font-weight: 650; }
nav a:hover, nav a[aria-current] { background: var(--hover); color: var(--text); }
main { flex: 1; }
.hero { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(24px, 6vw, 80px); padding: clamp(48px, 9vw, 112px) 0 60px; }
h1 { margin: 0; font-size: clamp(3rem, 8vw, 7rem); font-weight: 900; letter-spacing: -.075em; line-height: .91; }
h1 em { font-style: normal; color: var(--accent-text); }
.intro { max-width: 47ch; color: var(--muted); font-size: clamp(1rem, 2vw, 1.2rem); line-height: 1.65; margin: 23px 0 28px; }
.button { display: inline-flex; min-height: 46px; align-items: center; border: 1px solid transparent; border-radius: 9px; padding: 10px 17px; font: inherit; font-weight: 750; }
.primary { background: var(--accent); color: var(--text); }
.primary:hover { background: var(--accent-hover); }
.secondary { border-color: var(--edge); background: var(--panel); }
.secondary:hover, .cards a:hover { border-color: var(--accent-text); }
.demo { margin: 0; border: 1px solid var(--edge); background: linear-gradient(145deg, var(--hover), var(--panel) 62%); border-radius: 16px; box-shadow: 0 24px 60px var(--shadow); overflow: hidden; }
.demo-bar { padding: 18px; border-bottom: 1px solid var(--edge); }
.conversation { padding: 16px; display: grid; gap: 10px; }
.conversation p { margin: 0; background: var(--accent-surface); border-radius: 8px; padding: 12px; color: var(--muted); }
.conversation strong { display: block; color: var(--text); margin-bottom: 3px; }
.conversation .private { border-left: 3px solid var(--accent-text); }
figcaption { color: var(--muted); padding: 0 16px 16px; font-size: .875rem; }
.platforms { padding: 0 0 60px; }
h2 { font-size: 1.5rem; margin: 0 0 16px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cards a { border: 1px solid var(--edge); background: var(--panel); border-radius: 12px; padding: 18px; display: grid; gap: 5px; }
.cards span, .article p:not(.guide-step), .rules { color: var(--muted); line-height: 1.65; }
.article { max-width: 720px; padding: clamp(46px, 8vw, 92px) 0 64px; }
.article h1 { font-size: clamp(2.6rem, 7vw, 5.25rem); overflow-wrap: anywhere; }
.article h2 { margin-top: 30px; }
.guide-step { color: var(--accent-text); font-size: .875rem; font-weight: 750; letter-spacing: .06em; margin: 0 0 14px; }
.rules { padding-left: 22px; }
.rules li + li { margin-top: 12px; }
.bottom { border-top: 1px solid var(--edge); padding: 22px 0; display: flex; gap: 14px; justify-content: space-between; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.bottom a:hover { text-decoration: underline; }

@media (max-width: 680px) {
    .wrap { width: calc(100% - 32px); }
    .top-inner { align-items: flex-start; flex-direction: column; padding: 16px 0; }
    .hero, .cards { grid-template-columns: 1fr; }
    .hero { gap: 30px; }
    nav { gap: 2px; }
    nav a { padding-inline: 9px; }
}
