*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }


:root {
    --bg: #f5f2ec;
    --bg2: #ece7dc;
    --bg3: #c4b9a8;
    --surface: #f7fbfa;
    --surface2: #edf5f3;
    --border: rgba(35, 45, 40, 0.10);
    --border-hover: rgba(35, 45, 40, 0.18);
    --text: #242e28;
    --muted: #687068;
    --primary: hsl(170, 42%, 38%);
    --primary-light: hsl(170, 100%, 75%);
    --primary-soft: hsla(170, 42%, 38%, 0.12);
    --on-primary: #FAF8F4;
    --accent: hsl(38, 68%, 48%);
    --accent-light: hsl(38, 72%, 62%);
    --accent-soft: hsla(38, 68%, 48%, 0.13);
    --warn: hsl(8, 65%, 48%);
    --warn-light: hsl(8, 72%, 62%);
    --warn-soft: hsla(8, 65%, 48%, 0.15);
    --radius: 12px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    --mono: 'DM Mono', monospace;
    --sans: 'DM Sans', sans-serif;
}
html {
    scrollbar-gutter: stable;
}
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

a {
    text-decoration: 0;
    color: var(--text)
}

h1 {
    font-size: 32px;
    font-weight: 300;
    color: var(--primary);
    width: 100%;
    padding-top: 12px;
    text-decoration: None;
}

.wordmark {
    color: var(--primary);
    text-transform: uppercase;
    font-family: var(--mono);
    letter-spacing: 0.08em;

}

main {
    flex: 1;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    padding: 1rem 0rem 4rem;
}

.subtitle {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 2.5rem;
}

.section-label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.75rem;
}

.card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s;
}

.card:hover { border-color: var(--border-hover); }

.card .top-section {
    display: flex;
    justify-content: space-between;
}

.card .top-section .release-link a {
    text-decoration: nonde;
    color: var(--on-primary);
}

.card .top-section .release-link a i {
    color: black;
    font-size: 24px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.card-meta { flex: 1; }

.version-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.25rem;
}

.version {
    font-family: var(--mono);
    font-size: 18px;
    font-weight: 500;
    color: var(--text);
}

.badge {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.06em;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-stable {
    color: var(--primary);
    border: 1px solid var(--primary-soft);
}

.badge-pre {
    color: var(--warn);
    border: 1px solid var(--warn-soft);
}

.release-date {
    font-size: 12px;
    color: var(--muted);
}

.platforms {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

.tab-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-family: var(--mono);
    font-size: 13px;
    cursor: pointer;
    background: transparent;
    border: 1px solid transparent;
    color: var(--muted);
    transition: 0.2s;
}

.tab-btn:hover {
    color: var(--text);
    background: var(--bg2);
}

.tab-btn.active {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary);
}

.repo-content {
    display: none;
}

.repo-content.active {
    display: block;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s ease;
    border: none;
    color: var(--on-primary);
}

.btn-primary {
    background: var(--primary);
    color: var(--on-primary);
}

.btn-lowkey {
    color: var(--primary);
    background: var(--bg);
}

.dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 6px;
    border: 1px solid var(--border-hover);
    background: transparent;
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.dl-btn:hover {
    background: var(--bg3);
    border-color: rgba(255,255,255,0.25);
}

.dl-btn svg {
    opacity: 0.6;
    flex-shrink: 0;
}

.changelog {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--muted);
    line-height: 1.7;
    white-space: pre-wrap;
}

.changelog-toggle {
    font-size: 12px;
    font-family: var(--mono);
    color: var(--muted);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-top: 0.75rem;
    letter-spacing: 0.04em;
    transition: color 0.15s;
}

.changelog-toggle:hover { color: var(--text); }

.empty-state {
    background: var(--bg2);
    border: 1px dashed var(--border-hover);
    border-radius: var(--radius);
    padding: 2.5rem;
    text-align: center;
}

.empty-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    opacity: 0.3;
}

.empty-state p {
    color: var(--muted);
    font-size: 14px;
}

.empty-state strong { color: var(--text); font-weight: 500; }

.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-hover);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading { color: var(--muted); font-size: 14px; }

.error-msg {
    background: var(--text);
    border: 1px solid var(--text);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    font-size: 14px;
    color: var(--warn);
}

.separator {
    height: 1px;
    background: var(--border);
    margin: 2rem 0;
}

.loader {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 999;
    transition: opacity 0.4s ease;
}


#loader img {
    width: 256px;
    height: 256px;
    animation: spin 4s linear infinite;
}

.loader.fade-out {
    opacity: 0;
    pointer-events: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


.main-title {
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 1em;
    margin: 32px 0;
   
}

.main-subtitle {
    font-size: 1.3rem;
    max-width: 480px;
    line-height: 1.4em;
}

.main-btn {
    font-size: 20px;
    padding: 12px 20px;
}

/* Index */

.main-button-section {
    margin-top: 48px;
}

.major-points-section {
    display: flex;
    height: 400px;
    margin-top: 64px;
    padding: 0 32px;
    gap: 128px;
    align-items: center;
}

.major-points {
    display: flex;
    flex-direction: column;
    width: 65%;
}

h2 {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 8px;
}

.major-points > div {
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.major-points > div:last-child {
    border-bottom: 0;
}

.logo {
    width: 35%;
}

.logo img {
    width: 100%;
}

.grid-section {
    margin-top: 128px;
}

.grid-section .header {
    margin: 0 180px;
}

.grid-section .main-subtitle {
    max-width: 100%;
}

.grid-section .grid {
    margin-top: 64px;
    display: grid;
    grid-template-columns: repeat(2, 500px);
    justify-content: center;
    align-items: start;
    gap: 24px;
}

.grid-section .grid > div:nth-child(1) { grid-column: 1; grid-row: 1; }
.grid-section .grid > div:nth-child(2) { grid-column: 2; grid-row: 1; margin-top: 48px; }
.grid-section .grid > div:nth-child(3) { grid-column: 1; grid-row: 2; }
.grid-section .grid > div:nth-child(4) { grid-column: 2; grid-row: 2; margin-top: 48px; }


.grid-section .grid > div:nth-child(even) {
    margin-top: 24px;
}

.grid-section .grid > div {
    width: 500px;
    height: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background-color: var(--bg2);
    padding: 16px;
}

.grid-section h2 {
    color: var(--primary)
}

.coming-soon {
    font-style: italic;
    color: var(--muted);
    cursor: default;
    position: relative;
}

.coming-soon::after {
    content: "Coming soon";
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--bg2);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.coming-soon:hover::after {
    opacity: 1;
}

.advantages-section {
    margin-left: calc(-50vw + 50%); /* Hacky, solution would be to give main full width et put content div inside each sections */
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
    padding-bottom: 64px;
    margin-top: 104px;
    background-color: var(--primary-soft);
    padding-top: 64px;
}

.advantages-section h1 {
    margin-top: 0;
    padding-top: 0;
    text-align: center;
    margin-bottom: 48px;
}

.advantages-section .advantages {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
}

.advantages-section .advantages .advantage {
    margin: 12px;
    padding: 12px;
}

h3 {
    font-size: 20px;
}

.advantages-section .advantages > div:nth-child(1) { grid-column: 1 / 3; }
.advantages-section .advantages > div:nth-child(2) { grid-column: 3 / 5; }
.advantages-section .advantages > div:nth-child(3) { grid-column: 5 / 7; }
.advantages-section .advantages > div:nth-child(4) { grid-column: 2 / 4; grid-row: 2; }
.advantages-section .advantages > div:nth-child(5) { grid-column: 4 / 6; grid-row: 2; }

.cta {
    margin-top: 96px;
}

.cta .cards {
    margin-top: 32px;
    display: flex;
    gap: 24px;
}

.cta .cards > div {
    flex: 1;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.cta .cards > div:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}

.cta .cards h2 {
    margin-bottom: 16px;
    font-size: 18px;
}

.cta .cards .links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cta .cards .links > a {
    padding: 6px 0;
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: opacity 0.2s ease;
}

.cta .cards .links > a:hover {
    opacity: 0.6;
}

/* Docs */

.hub-buttons {
    margin-top: 16px;
    display: flex;
    gap: 16px;
	     
}


/* Navbar */

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

site-navbar {
    z-index: 1000;
    top: 0;
    position: sticky;
    border-bottom: 1px solid var(--border);
}

.navbar {
    display: flex;
    justify-content: center;
    padding: 8px;
    gap: 16px;
    background-color: var(--bg);
    width: 100%;
}

.navbar .content {
    width: 1000px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .content .left a {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text)
}

.navbar .content .left span{
    font-size: 18px;
}

.navbar .content .left img {
    width: 48px;
    height: 48px;
}

.navbar .content .right {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 14px;
}

.navbar .content .right i{
    color: black;
    font-size: 24px;
}

.navbar.mobile-open .right {
    position: absolute;
    top: 48px;
    right: 0;
    left: 0;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    padding: 16px;
    gap: 12px;
}

.navbar.mobile-open .right a {
    display: block;
}

.fa-bars {
    color: var(--text);
}

@media (max-width: 1100px) {

    main {
	max-width: 720px;
    }
    
    .major-points-section {
	text-align: center;
	justify-content: center;
	align-items: center;
	height: auto;
    }
    
    .major-points-section .logo {
	display: none;
    }

    .grid-section .grid {
	display: flex;
	flex-direction: column;
    }

    .grid-section {
	margin-top: 80px;
    }

    .grid-section .grid > div {
	width: 100%;
	margin-top: 0 !important;
    }

    .grid-section .header {
	margin: 0;
    }

    .grid-section .main-subtitle {
	max-width: 700px;
    }

    .navbar {
	padding: 8px 16px;
    }

    .cta .cards {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 768px) {

    .main-title {
	font-size: 3rem;
	margin-top: 64px;
	margin-bottom: 64px;
    }

    main {
	max-width: 90%;
    }

    .main-button-section {
	text-align: center;
	display: flex;
	gap: 16px;
	flex-direction: column;
	margin-top: 80px;
    }

    .main-button-section button {
	padding: 16px;
	font-size: 20px;
    }

    .major-points-section {
	padding: 0px;
    }

    .major-points {
	width: 90%;
    }

    .advantages-section .advantages {
	display: flex;
	flex-direction: column;
    }

    .cta .cards {
        grid-template-columns: 1fr;
    }

    .navbar {
	padding: 8px 16px;
    }

    .navbar .content .left img {
	width: 40px;
	height: 40px;
    }

    .btn {
	padding: 6px 10px;
    }

    #loader img {
	width: 128px;
	height: 128px;
	animation: spin 4s linear infinite;
    }

    .main-title {
	text-align: center;
    }

    .navbar .right a {
        display: none;
    }

    .hamburger {
        display: block;
    }

}
