*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #09090b;
    --surface: #111113;
    --surface-2: #19191d;
    --tx: #a1a1aa;
    --tx-2: #52525b;
    --tx-hi: #fafafa;
    --ac: #6d9fff;
    --border: #1c1c22;
    --radius: 28px;
    --gap: 14px;
    --font: 'Montserrat', system-ui, sans-serif;
    --mw: 1000px;
    --px: 40px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--tx);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    color: inherit;
}

.hdr {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.hdr-inner {
    max-width: var(--mw);
    margin: 0 auto;
    padding: 0 var(--px);
    height: 56px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.hdr-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 17px;
    color: var(--tx-hi);
    letter-spacing: -0.03em;
    flex-shrink: 0;
}

.hdr-logo-img {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    object-fit: cover;
}

.hdr-nav {
    display: flex;
    gap: 6px;
    flex: 1;
    justify-content: center;
}

.hdr-nav a {
    font-size: 13px;
    font-weight: 500;
    color: var(--tx-2);
    padding: 6px 10px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}

.hdr-nav a:hover {
    color: var(--tx);
    background: var(--surface);
}

.hdr-nav a.active {
    color: var(--tx-hi);
}

.hdr-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.lang-wrap {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: var(--tx-2);
    border: 1px solid transparent;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.lang-btn:hover,
.lang-btn.open {
    color: var(--tx);
    background: var(--surface);
    border-color: var(--border);
}

.lang-drop {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 6px;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.lang-drop.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-opt {
    display: block;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--tx);
    border-radius: 9px;
    transition: background 0.12s, color 0.12s;
}

.lang-opt:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--tx-hi);
}

.lang-opt.active {
    color: var(--ac);
}

.hdr-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 28px;
    height: 28px;
    padding: 0;
    flex-shrink: 0;
    position: relative;
    z-index: 110;
}

.hdr-burger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--tx-hi);
    border-radius: 3px;
    transition: transform 0.3s, opacity 0.2s;
    transform-origin: center;
}

.hdr-burger.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.hdr-burger.open span:nth-child(2) {
    opacity: 0;
}

.hdr-burger.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.mobile-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-panel {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 80vw;
    background: var(--surface);
    border-right: 1px solid var(--border);
    z-index: 95;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 80px 24px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mobile-panel.open {
    transform: translateX(0);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav a {
    font-size: 16px;
    font-weight: 500;
    color: var(--tx-2);
    padding: 12px 16px;
    border-radius: 14px;
    transition: color 0.15s, background 0.15s;
}

.mobile-nav a:hover {
    background: var(--surface-2);
    color: var(--tx);
}

.mobile-nav a.active {
    color: var(--tx-hi);
    background: var(--surface-2);
}

.mobile-lang-wrap {
    position: relative;
}

.mobile-lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: var(--tx-2);
    background: var(--surface-2);
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.15s;
}

.mobile-lang-btn:hover,
.mobile-lang-btn.open {
    color: var(--tx);
}

.mobile-lang-drop {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 6px;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
}

.mobile-lang-drop.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hero {
    max-width: var(--mw);
    margin: 0 auto;
    padding: 0 var(--px);
    padding-top: 160px;
    padding-bottom: 120px;
}

.hero-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ac);
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

.hero-h {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.12;
    color: var(--tx-hi);
    letter-spacing: -0.035em;
    margin-bottom: 24px;
    max-width: 650px;
    text-wrap: balance;
}

.hero-h em {
    font-style: normal;
    color: var(--ac);
}

.hero-sub {
    font-size: 17px;
    font-weight: 400;
    color: var(--tx);
    max-width: 540px;
    line-height: 1.7;
}

.values {
    max-width: var(--mw);
    margin: 0 auto;
    padding: 0 var(--px);
    padding-bottom: 120px;
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}

.val-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
}

.val-block {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 36px;
    display: flex;
    gap: 20px;
    transition: background 0.2s;
}

.val-block:hover {
    background: var(--surface-2);
}

.val-number {
    font-size: 13px;
    font-weight: 600;
    color: var(--tx-2);
    flex-shrink: 0;
    padding-top: 2px;
}

.val-body h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--tx-hi);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    line-height: 1.3;
}

.val-body p {
    font-size: 14px;
    color: var(--tx);
    line-height: 1.7;
}

.bottom {
    max-width: var(--mw);
    margin: 0 auto;
    padding: 0 var(--px);
    padding-bottom: 140px;
}

.bottom-heading {
    font-size: 20px;
    font-weight: 700;
    color: var(--tx-hi);
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.bottom-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

.bottom-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 32px;
    background: var(--surface);
    border-radius: var(--radius);
    transition: background 0.2s;
    min-height: 170px;
}

.bottom-card:hover {
    background: var(--surface-2);
}

.bottom-card-top {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bottom-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--tx-hi);
    letter-spacing: -0.01em;
}

.bottom-card-desc {
    font-size: 13px;
    color: var(--tx-2);
    line-height: 1.5;
}

.bottom-card-arrow {
    align-self: flex-end;
    color: var(--tx-2);
    transition: color 0.2s, transform 0.2s;
}

.bottom-card:hover .bottom-card-arrow {
    color: var(--ac);
    transform: translate(3px, -3px);
}

.page-header {
    max-width: var(--mw);
    margin: 0 auto;
    padding: 0 var(--px);
    padding-top: 130px;
    padding-bottom: 60px;
}

.page-header h1 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: var(--tx-hi);
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.page-header p {
    font-size: 16px;
    color: var(--tx);
    max-width: 500px;
    line-height: 1.65;
}

.page-content {
    max-width: var(--mw);
    margin: 0 auto;
    padding: 0 var(--px);
    padding-bottom: 120px;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
}

.project-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 32px;
    padding-right: 64px;
    display: flex;
    gap: 24px;
    align-items: center;
    transition: background 0.2s;
    position: relative;
}

.project-card:hover {
    background: var(--surface-2);
}

.project-card-body {
    flex: 1;
    min-width: 0;
}

.project-card-type {
    font-size: 12px;
    font-weight: 600;
    color: var(--ac);
    margin-bottom: 8px;
    letter-spacing: 0.04em;
}

.project-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--tx-hi);
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.project-card-desc {
    font-size: 14px;
    color: var(--tx);
    line-height: 1.6;
    margin-bottom: 8px;
}

.project-card-date {
    font-size: 12px;
    color: var(--tx-2);
}

.project-card-img {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    object-fit: cover;
    flex-shrink: 0;
}

.project-card-arrow {
    position: absolute;
    bottom: 24px;
    right: 24px;
    color: var(--tx-2);
    transition: color 0.2s, transform 0.2s;
}

.project-card:hover .project-card-arrow {
    color: var(--ac);
    transform: translate(3px, -3px);
}

.news-feed {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}

.news-post {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 36px;
}

.news-post-text {
    font-size: 15px;
    color: var(--tx-hi);
    line-height: 1.75;
}

.news-post-text a {
    color: var(--ac);
    transition: opacity 0.15s;
}

.news-post-text a:hover {
    opacity: 0.8;
}

.news-post-date {
    font-size: 13px;
    font-weight: 500;
    color: var(--tx-2);
    margin-top: 16px;
    text-align: right;
}

.social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
}

.social-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 28px 32px;
    transition: background 0.2s;
}

.social-card:hover {
    background: var(--surface-2);
}

.social-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--tx);
    transition: background 0.2s;
}

.social-card:hover .social-card-icon {
    background: rgba(109, 159, 255, 0.1);
    color: var(--ac);
}

.social-card-info {
    flex: 1;
    min-width: 0;
}

.social-card-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--tx-hi);
    letter-spacing: -0.01em;
}

.social-card-handle {
    font-size: 13px;
    color: var(--tx-2);
    margin-top: 2px;
}

.social-card-arrow {
    color: var(--tx-2);
    flex-shrink: 0;
    transition: color 0.2s, transform 0.2s;
}

.social-card:hover .social-card-arrow {
    color: var(--ac);
    transform: translate(3px, -3px);
}

.support-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
}

.support-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 36px;
    transition: background 0.2s;
    position: relative;
}

.support-card:hover {
    background: var(--surface-2);
}

.support-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 11px;
    font-weight: 600;
    color: var(--ac);
    padding: 4px 10px;
    background: rgba(109, 159, 255, 0.1);
    border-radius: 100px;
    letter-spacing: 0.03em;
}

.support-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--tx);
}

.support-card:hover .support-card-icon {
    background: rgba(109, 159, 255, 0.1);
    color: var(--ac);
}

.support-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--tx-hi);
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.support-card-desc {
    font-size: 14px;
    color: var(--tx);
    line-height: 1.6;
    flex: 1;
}

.support-card-arrow {
    align-self: flex-end;
    color: var(--tx-2);
    margin-top: 20px;
    transition: color 0.2s, transform 0.2s;
}

.support-card:hover .support-card-arrow {
    color: var(--ac);
    transform: translate(3px, -3px);
}

.donate-block {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 48px;
    max-width: 600px;
}

.donate-block p {
    font-size: 15px;
    color: var(--tx);
    line-height: 1.75;
    margin-bottom: 28px;
}

.donate-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--ac);
    color: var(--bg);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    text-decoration: none;
}

.donate-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.donate-btn:active {
    transform: translateY(0);
}

.proj-hero {
    max-width: var(--mw);
    margin: 0 auto;
    padding: 0 var(--px);
    padding-top: 130px;
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: calc(100vh - 80px);
    box-sizing: border-box;
}

.proj-hero-icon {
    width: 120px;
    height: 120px;
    border-radius: 28px;
    object-fit: cover;
    margin-bottom: 24px;
}

.proj-hero-title {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 800;
    color: var(--tx-hi);
    letter-spacing: -0.035em;
    margin-bottom: 28px;
}

.proj-hero-btns {
    display: flex;
    gap: 12px;
}

.proj-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    text-decoration: none;
}

.proj-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.proj-btn-primary {
    background: var(--ac);
    color: var(--bg);
}

.proj-btn-secondary {
    background: var(--surface);
    color: var(--tx-hi);
    border: 1px solid var(--border);
}

.download-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
}

.download-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 40px 32px;
    transition: background 0.2s;
    position: relative;
}

.download-card:hover {
    background: var(--surface-2);
}

.download-card-icon {
    width: 56px;
    height: 56px;
    color: var(--tx);
    transition: color 0.2s;
}

.download-card:hover .download-card-icon {
    color: var(--ac);
}

.download-card-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--tx-hi);
}

.download-badge-blue, .download-badge-gray {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
    letter-spacing: 0.03em;
}

.download-badge-blue {
    color: var(--ac);
    background: rgba(109, 159, 255, 0.1);
}

.download-badge-gray {
    color: var(--tx-2);
    background: rgba(255, 255, 255, 0.05);
}

.info-section {
    margin-bottom: 48px;
}

.info-section:last-child {
    margin-bottom: 0;
}

.info-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ac);
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.info-value {
    font-size: 15px;
    color: var(--tx-hi);
    line-height: 1.7;
}

.info-value a {
    color: var(--ac);
    transition: opacity 0.15s;
}

.info-value a:hover {
    opacity: 0.8;
}

.info-value ul {
    list-style: none;
    margin-top: 12px;
    margin-bottom: 12px;
}

.info-value ul li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 8px;
}

.info-value ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 7px;
    height: 7px;
    background-color: var(--tx-2);
    border-radius: 50%;
}

.video-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    max-width: 500px;
    aspect-ratio: 16 / 9;
}

.video-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.screenshots {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--surface-2) transparent;
}

.screenshots::-webkit-scrollbar {
    height: 6px;
}

.screenshots::-webkit-scrollbar-track {
    background: transparent;
}

.screenshots::-webkit-scrollbar-thumb {
    background: var(--surface-2);
    border-radius: 3px;
}

.screenshots img {
    flex-shrink: 0;
    width: auto;
    height: 280px;
    max-width: 90vw;
    border-radius: 16px;
    scroll-snap-align: start;
    object-fit: contain;
    background: var(--surface);
}

.info-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gap);
}

.info-meta-item {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
}

.legal-text {
    max-width: 760px;
}

.legal-text h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--tx-hi);
    margin-top: 36px;
    margin-bottom: 12px;
}

.legal-text h2:first-child {
    margin-top: 0;
}

.legal-text p {
    font-size: 14px;
    color: var(--tx);
    line-height: 1.75;
    margin-bottom: 14px;
}

.legal-text p:last-child {
    margin-bottom: 0;
}

.legal-text a {
    color: var(--ac);
    transition: opacity 0.15s;
}

.legal-text a:hover {
    opacity: 0.8;
}

.legal-text ul {
    list-style: none;
    margin-bottom: 14px;
}

.legal-text ul li {
    font-size: 14px;
    color: var(--tx);
    line-height: 1.75;
    padding-left: 16px;
    position: relative;
}

.legal-text ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 7px;
    height: 7px;
    background-color: var(--tx-2);
    border-radius: 50%;
}

.ftr {
    border-top: 1px solid var(--border);
}

.ftr-inner {
    max-width: var(--mw);
    margin: 0 auto;
    padding: 36px var(--px) 28px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.ftr-logo {
    font-weight: 700;
    font-size: 15px;
    color: var(--tx-hi);
    letter-spacing: -0.03em;
}

.ftr-left p {
    font-size: 12px;
    color: var(--tx-2);
    margin-top: 4px;
}

.ftr-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.ftr-nav a {
    font-size: 13px;
    color: var(--tx-2);
    transition: color 0.15s;
}

.ftr-nav a:hover { color: var(--tx); }

.ftr-bottom {
    max-width: var(--mw);
    margin: 0 auto;
    padding: 14px var(--px) 20px;
    border-top: 1px solid var(--border);
}

.ftr-bottom p {
    font-size: 12px;
    color: var(--tx-2);
}

@media (min-width: 821px) {
    .hdr-burger { display: none !important; }
    .mobile-overlay { display: none !important; }
    .mobile-panel { display: none !important; }
}

@media (max-width: 820px) {
    :root { --px: 36px; }

    .hdr-nav { display: none; }
    .hdr-burger { display: flex; }
    .hdr-right { display: none; }

    .val-row {
        grid-template-columns: 1fr;
    }

    .bottom-links {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .social-grid {
        grid-template-columns: 1fr;
    }

    .support-options {
        grid-template-columns: 1fr;
    }

    .download-grid {
        grid-template-columns: 1fr;
    }

    .info-meta {
        grid-template-columns: 1fr;
    }

    .screenshots img {
        height: 220px;
    }

    .hero {
        padding-top: 120px;
        padding-bottom: 80px;
    }

    .proj-hero {
        padding-top: 110px;
        padding-bottom: 60px;
    }

    .page-header {
        padding-top: 100px;
        padding-bottom: 48px;
    }

    .ftr-inner {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    :root { --px: 28px; }

    .hero-h { font-size: 28px; }
    .hero { padding-top: 100px; padding-bottom: 64px; }

    .val-block { padding: 24px; flex-direction: column; gap: 10px; }

    .bottom-card { padding: 24px; min-height: auto; }

    .news-post { padding: 24px; }

    .social-card { padding: 20px 24px; }

    .support-card { padding: 24px; }

    .donate-block { padding: 28px; }

    .screenshots img { height: 180px; }

    .download-card { padding: 28px 20px; }

    .proj-hero-icon { width: 90px; height: 90px; border-radius: 22px; }
}
