:root {
    --bg: #111317;
    --bg-alt: #171a20;
    --panel: #1d222a;
    --line: #313948;
    --text: #f1f4f8;
    --text-dim: #b6bfcb;
    --accent: #d14a5e;
    --accent-2: #e26376;
    --ok: #90abc8;
    --danger: #ef8f9c;
    --radius: 10px;
    --container: 1060px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 16px;
}

.topbar {
    background: #0e1116;
    border-bottom: 1px solid var(--line);
}
.topbar-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 8px 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--text-dim);
    font-size: 0.76rem;
    letter-spacing: 0.01em;
}
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ok);
    display: inline-block;
    margin-right: 6px;
}
.sep { color: #5d6879; }

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(17, 19, 23, 0.95);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1rem;
}
.logo-block {
    width: 14px;
    height: 14px;
    border-radius: 2px;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
}
.nav-links {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 24px;
}
.nav-links a {
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--text); }

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 6px;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    margin: 4px 0;
    transition: 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.btn {
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-sm { padding: 7px 11px; font-size: 0.76rem; }
.btn-primary {
    background: var(--accent);
    color: #fff5f7;
}
.btn-primary:hover { background: var(--accent-2); }
.btn-secondary {
    background: #1f2530;
    color: var(--text);
    border-color: var(--line);
}
.btn-secondary:hover { border-color: #647084; }
.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: #606e82;
}
.btn-outline:hover {
    background: #2a3340;
}
.btn.full { width: 100%; }
.btn-ip-copy { display: none; }
.btn.copied .btn-ip-label { display: none; }
.btn.copied .btn-ip-copy { display: inline; }

.hero {
    padding: 28px 0 18px;
}
.hero-layout {
    display: grid;
    grid-template-columns: 1.35fr 0.95fr;
    gap: 14px;
    align-items: start;
}
.hero-panel,
.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.hero-panel {
    padding: 22px;
    border-top: 3px solid var(--accent);
}
.eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-2);
}
.hero-tagline {
    color: var(--text);
    font-weight: 600;
    margin-top: -4px;
}
.hero h1 {
    font-size: clamp(1.55rem, 4vw, 2.4rem);
    line-height: 1.1;
    margin-bottom: 14px;
}
.hero p {
    color: var(--text-dim);
    margin-bottom: 12px;
}
.hero-actions {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-aside {
    display: grid;
    gap: 12px;
}
.side-card {
    padding: 18px;
}
.side-card h3 {
    font-size: 0.98rem;
    margin-bottom: 10px;
}
.mini-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mini-list li {
    font-size: 0.9rem;
    color: var(--text-dim);
    padding-left: 12px;
    position: relative;
}
.mini-list li::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-2);
    position: absolute;
    left: 0;
    top: 9px;
}

.info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 9px 0;
    border-bottom: 1px solid #3a4352;
}
.info-row:last-of-type { margin-bottom: 14px; }
.label { color: var(--text-dim); }
.value { font-weight: 600; }

.section {
    padding: 26px 0;
}
.sec-kicker {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: var(--accent-2);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.section h2 {
    font-size: clamp(1.28rem, 2.5vw, 1.75rem);
    margin-bottom: 8px;
}
.section-intro {
    color: var(--text-dim);
    margin-bottom: 18px;
}

.rules-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.rules-main {
    padding: 24px;
}
.card {
    padding: 16px;
    border-radius: 8px;
}
.hero-aside .card,
.rules-layout .card,
.economy-grid .card,
.faq-item.card,
.join-box.card {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}
.card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--danger);
}
.card-head.good { color: var(--ok); }
.list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.list li {
    color: var(--text-dim);
    border-bottom: 1px dashed #3b4556;
    padding-bottom: 9px;
}
.list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.rules-note-box {
    background: rgba(209, 74, 94, 0.06);
    border: 1px solid rgba(209, 74, 94, 0.35);
}
.rules-note-box h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}
.rules-note-box p {
    color: var(--text-dim);
    font-size: 0.94rem;
}

.economy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.step h3 {
    margin-bottom: 7px;
    font-size: 1rem;
}
.step p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

.icon {
    width: 1em;
    height: 1em;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.faq-item {
    padding: 0;
}
.faq-q {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text);
    text-align: left;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}
.faq-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    color: var(--text-dim);
    transition: transform 0.2s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}
.faq-a p {
    padding: 0 16px 14px;
    color: var(--text-dim);
}

.join-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.join-box h2 { margin-bottom: 8px; }
.join-box p { color: var(--text-dim); }
.join-ip {
    margin-top: 10px;
    color: var(--accent-2);
    font-size: 1.03rem;
    font-weight: 700;
}

.footer {
    border-top: 1px solid var(--line);
    background: #141922;
    margin-top: 26px;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    color: var(--text-dim);
    font-size: 0.84rem;
}
.footer-inner span:first-child {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: 0.02em;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 22px;
    transform: translate(-50%, 130%);
    opacity: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #5f6f88;
    background: #232b37;
    color: var(--text);
    z-index: 200;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.toast.show {
    transform: translate(-50%, 0);
    opacity: 1;
}

@media (max-width: 980px) {
    .hero-layout { grid-template-columns: 1fr; }
    .rules-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .nav-copy { display: none; }
    .nav-toggle { display: inline-block; margin-left: auto; }
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(78vw, 290px);
        background: #161c26;
        border-left: 1px solid var(--line);
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 20px;
        transform: translateX(100%);
        transition: transform 0.25s ease;
    }
    .nav-links.open { transform: translateX(0); }
    .rules-layout { grid-template-columns: 1fr; }
    .join-box { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
    .economy-grid { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto; }
}
