@media (prefers-color-scheme: dark) {
    :root {
        --bg-dark: #121212;
        --bg-items: #1e1e1e;
        --bg-card: #181819;
        --bg-nav: #0a0b0bb3;
        --primary: #0090ff;
        --secondary: #068989;
        --accent: #e57324;
        --text-main: #f0f3f8;
        --text-muted: #9ba3b0;
        --border: #ffffff14;
        --border-hover: #00000080;
        --bg-footer: #08080a;
        --text-good: #00ffe1;
        --text-alert: #ffbd4c;
        --header-gradient: linear-gradient(135deg, #fff 60%, #0090ff 100%);
        --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

@media (prefers-color-scheme: light) {
    :root {
        --bg-dark: #f0f2f4;
        --bg-items: #ffffff;
        --bg-card: #f8f8fa;
        --bg-nav: #ffffffb3;
        --primary: #0090ff;
        --secondary: #068989;
        --accent: #e57324;
        --text-main: #000000;
        --text-muted: #43464d;
        --border: #00000014;
        --border-hover: #ffffff80;
        --bg-footer: #e5e8ea;
        --text-good: #3e86b6;
        --text-alert: #d4a539;
        --header-gradient: linear-gradient(135deg, #000 60%, #0090ff 100%);
        --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

html {
    scroll-behavior: smooth;
    overflow-y: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar {
    display: none;
}

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

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
.font-outfit {
    font-family: 'Nunito', sans-serif;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8%;
    background-color: var(--bg-nav);
    backdrop-filter: blur(12px);
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-text {
    color: var(--text-main);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.btn-github {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-items);
    padding: 8px 16px;
    border-radius: 0.7em;
    color: var(--text-main) !important;
    font-size: 14px;
    transition: var(--transition);
    border: 1px solid var(--border);
}

/* Main Container */
main {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 6% 60px 6%;
    margin-inline: auto;
    height: 100%;
}

.hero h1 {
    font-weight: 300;
    line-height: 1.15;
    background: var(--header-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-badge {
    background: transparent;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    margin: 1em;
    display: flex;
    align-items: center;
}

.hero p {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-muted);
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 3em;
    flex-wrap: wrap;
    justify-content: center;
    margin: auto;
}

.btn-primary {
    background-color: var(--primary);
    color: #000000;
    text-decoration: none;
    padding: 10px 28px;
    border-radius: 0.8em;
    font-size: 16px;
}

.btn-secondary {
    background-color: var(--bg-items);
    border: 1px solid var(--border);
    color: var(--text-main);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 0.8em;
    font-size: 16px;
}

.main-frame {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-frame img {
    width: 100%;
    height: auto;
    object-fit: contain;
    margin: auto;
    box-shadow: 0 10px 20px var(--border-hover);
}

.features-section,
.install-section {
    text-align: center;
}

.features-section p.sub,
.install-section p.sub,
.citation-section p.sub {
    color: var(--text-muted);
}

.features-layout {
    display: flex;
    flex-direction: column;
    gap: 2em;
    width: 100%;
    margin-bottom: auto;
}

.features-block {
    display: grid;
    grid-template-columns: 1fr;
}

.features-views {
    display: grid;
    width: 100%;
}

.feature-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
}

.feature-view p {
    text-align: left;
    margin-bottom: 1em;
}

.feature-view picture {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: transform 0.4s ease;
    border-radius: 6px;
}

.feature-view img {
    width: auto;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 15px;
}

.install-layout {
    margin-bottom: auto;
    display: flex;
    flex-direction: column;
    gap: 2em;
    text-align: left;
}

.install-section a {
    color: var(--primary);
    text-decoration: none;
}

.install-section a:visited {
    color: var(--primary);
}

.recomended-system span {
    color: var(--text-main);
    font-weight: 600;
}

.install-layout p,
.install-layout li {
    color: var(--text-muted);
}


.install-layout ul {
    list-style: none;
}

.recomended-system li::before {
    content: "\f013";
    font-family: "Font Awesome 7 Free";
    font-weight: 600;
    color: var(--text-good);
    margin-right: 8px;
}

.install-notes li::before {
    content: "\f071";
    font-family: "Font Awesome 7 Free";
    font-weight: 600;
    color: var(--text-alert);
    margin-right: 8px;
}

.window-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 24px;
    height: 24px;
    border-radius: 18.75%;
    background-color: var(--bg-footer);
}

.window-title {
    color: var(--text-muted);
    font-size: 13px;
    font-family: 'Ubuntu Mono', monospace;
    width: 100%;
}

.terminal-window {
    background-color: #000000;
    border: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 5px 10px #00000045;
}

.terminal-header {
    height: 38px;
    background-color: var(--bg-items);
    display: flex;
    align-items: center;
    padding: 0 8px;
    gap: 8px;
    border-bottom: 1px solid var(--border);
}

.terminal-body {
    font-family: 'Ubuntu Mono', monospace;
    font-size: 15px;
    color: #a5b4fc;
}

.terminal-line {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.terminal-prompt {
    color: #27c93f;
    user-select: none;
}

.terminal-cmd {
    color: #fff;
    word-break: break-all;
}

.btn-copy {
    background-color: #333;
    border: 1px solid #ffffff00;
    color: #fff;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    transition: var(--transition);
}

.tex-window {
    margin-bottom: auto;
}

.tab-container {
    display: flex;
    flex-direction: row;
}

.tab {
    padding: 10px 20px;
    border: 1px solid #00000000;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 10px 10px 0 0;
}

.tab.active {
    background-color: var(--primary);
    color: #000;
}

.tex-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: var(--bg-items);
    border: 0;
    border-radius: 0 10px 10px 10px;
    overflow: hidden;
    box-shadow: 0px 5px 10px #00000045;
    padding: 24px;
    width: 100%;
    min-height: 21em;
}

.text-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.tex-content pre {
    text-align: left;
    white-space: pre-wrap;
    word-break: break-all;
    height: 100%;
    width: 100%;
}

footer {
    border-top: 1px solid var(--border);
    padding: 40px 6% 30px 6%;
    display: flex;
    flex-direction: column;
    gap: 40px;
    background-color: var(--bg-footer);
    position: relative;
    z-index: 10;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-desc {
    color: var(--text-muted);
}

.footer-space {
    flex: 1;
}

footer hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
}

.footer-group h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.footer-group ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    margin-top: 4px;
    gap: 12px;
}

footer a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 30px;
    color: var(--text-muted);
    font-size: 13px;
    flex-wrap: wrap;
    gap: 20px;
}
