:root {
    --cyan: #c5ffff;
    --purple: #794abc;
    --dark-purple: #5a3591;
    --white: #ffffff;
    --font: 'Space Mono', monospace;
    --container-width: 900px;
    font-size: 14px;
}

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

body {
    font-family: var(--font), monospace;
    background: var(--white);
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

ul {
    list-style-position: outside;
    padding-left: 1.5rem;
    margin: 1rem 0;
}

li {
    margin-bottom: 0.5rem;
}

.container h1 {
    font-size: 2.2rem;
    color: var(--purple);
    margin: 2rem 0 1.5rem;
    border-bottom: 2px solid var(--purple);
    padding-bottom: 0.5rem;
}

.container h2 {
    font-size: 1.8rem;
    color: var(--purple);
    margin: 2rem 0 1.2rem;
}

.container h3 {
    font-size: 1.5rem;
    color: var(--purple);
    margin: 1.8rem 0 1rem;
}

.container h4 {
    font-size: 1.3rem;
    color: var(--purple);
    margin: 1.5rem 0 1rem;
}

.container h5 {
    font-size: 1.1rem;
    color: var(--purple);
    margin: 1.2rem 0 0.8rem;
}

.container p {
    line-height: 1.6;
    margin: 1rem 0;
    font-size: 1rem;
}

.container a {
    color: var(--purple);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom-color 0.2s ease;
}

.container a:hover {
    border-bottom-color: var(--purple);
}

.container ul, .container ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.container li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

#benefits {
    padding: 4rem 0;
    text-align: center;
    background-color: #f9f9ff;
}

#getting-started {
    padding: 4rem 0;
    text-align: center;
    background-color: #f9f9ff;
}

#getting-started h2 {
    margin-bottom: 3rem;
    font-size: 2.2rem;
    color: var(--purple);
}

#benefits h2 {
    margin-bottom: 3rem;
    font-size: 2.2rem;
    color: var(--purple);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (min-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.benefit-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.125rem;
    height: 100%;
}

.benefit-icon {
    color: var(--purple);
    margin-bottom: 0;
    height: 4.5rem;
    width: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    margin-top: -0.5rem;
}

.benefit-icon .svg-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(24%) sepia(46%) saturate(2406%) hue-rotate(239deg) brightness(90%) contrast(90%);
}

.benefit-icon svg {
    fill: var(--dark-purple);
    width: 100%;
    height: 100%;
    color: var(--dark-purple);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.benefit-card h3 {
    color: var(--purple);
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.2;
}

.benefit-card p {
    color: #555;
    line-height: 1.5;
    margin: 0;
}

.container > *:first-child {
    margin-top: 0;
}

.container > *:last-child {
    margin-bottom: 0;
}

.container pre {
    background: #f8f8f8;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.container code {
    font-family: var(--font), monospace;
    font-size: 0.9rem;
    background: #f8f8f8;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    vertical-align: middle;
    display: inline;
    position: relative;
    transform: translateY(-0.1em);
    line-height: inherit;
}

.container blockquote {
    border-left: 4px solid var(--purple);
    margin: 1.5rem 0;
    padding-left: 1rem;
    color: #666;
}

header {
    background: var(--white);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header a {
    text-decoration: none;
}

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

header .logo .highlight {
    background-color: var(--purple);
    padding: 0 0.2rem;
    color: var(--cyan);
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 1.5rem;
}


header img {
    height: 50px;
    vertical-align: middle;
    margin-right: 8px;
}

nav {
    margin-top: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

nav a {
    color: var(--purple);
    margin: 0 1rem;
    text-decoration: none;
    font-weight: bold;
}

nav a:last-child {
    margin-right: 0;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        padding: 1rem 0.5rem;
    }

    nav {
        margin-top: 1rem;
        justify-content: center;
        gap: 0.5rem;
    }

    nav a {
        margin: 0.5rem;
        font-size: 0.9rem;
    }

    .social-buttons-wrapper {
        margin: 0.5rem;
    }
}

@media (max-width: 480px) {
    header .logo .highlight {
        font-size: 1.2rem;
    }

    header img {
        height: 40px;
    }

    nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    nav a {
        margin: 0.3rem;
        font-size: 0.85rem;
        text-align: center;
    }

    #tentris-github-link img, #tentris-linkedin-link img {
        height: 1.5rem;
    }

    .social-buttons-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0.3rem;
    }

    .github-button-wrapper {
        vertical-align: -7px;
        margin-right: 0.3rem;
    }
}

/* Style for GitHub and LinkedIn icons */
#tentris-github-link, #tentris-linkedin-link {
    height: 1.5rem;
}

#tentris-github-link img, #tentris-linkedin-link img {
    height: 2rem;
    /*filter: brightness(0) saturate(100%) invert(24%) sepia(46%) saturate(2406%) hue-rotate(239deg) brightness(90%) contrast(90%);*/
}

/* Wrapper for GitHub button to move it down 5px */
/*.github-button-wrapper {*/
/*    display: inline-block;*/
/*    !*vertical-align: -10.5px;*!*/
/*}*/

/* Wrapper for social media buttons */
.social-buttons-wrapper {
    display: flex;
    align-items: center;
    margin: 0 1rem;
}

/* Wrapper for GitHub button */
.github-button-wrapper {
    position: relative;
    top: .1rem;
    margin-right: 0.5rem;
}

/* LinkedIn button positioning */
#tentris-linkedin-link {
    position: relative;
    top: -0.29rem;
}

main {
    flex: 1;
}

.hero-background {
    background: var(--purple);
    width: 100%;
    padding: 4rem 0;
    position: relative;
}

#network-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero {
    color: var(--cyan);
    text-align: left;
    max-width: var(--container-width);
    margin: 3rem auto 15rem auto;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    color: var(--cyan);
    text-align: center;
    max-width: var(--container-width);
    margin: 0 auto;
}

.hero p {
    margin: 1rem 0;
    font-size: 1.7rem;
    text-align: center;
}

.container {
    max-width: var(--container-width);
    margin: 2rem auto;
    padding: 0 1rem;
}

.request-license {
    margin-bottom: 2rem;
}

.container form {
    background: var(--white);
    border: 1px solid #ddd;
    padding: 0 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

form h2, form h4, .container h2 {
    /*margin-bottom: 1rem;*/
    color: var(--purple);
}

.form-group {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--font), monospace;
}

button {
    background: var(--purple);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    font-family: var(--font), monospace;
}

button:hover {
    opacity: 0.9;
}

.tabs {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
}

.tab-button {
    flex: 1;
    padding: 0.75rem;
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 200px;
}

.tab-button.active {
    background: var(--cyan);
    border-color: var(--purple);
    font-weight: bold;
}

.tab-button.secondary {
    opacity: 0.8;
    background: #f0f0f0;
}

.tab-button .recommended {
    display: block;
    font-size: 0.7rem;
    line-height: 1;
    margin-top: 0.3rem;
    font-weight: normal;
}

fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

input[type="checkbox"] + label {
    display: inline-block;
    margin-bottom: 1rem;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.downloads {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin: 2rem 0;
}

.download-btn {
    background: var(--cyan);
    color: #333;
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--purple);
    border-radius: 4px;
    text-decoration: none;
    font-family: var(--font), monospace;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.documentation-btn {
    background: var(--purple);
    color: var(--white) !important;
    padding: 0.75rem 1.25rem;
    border-radius: 4px;
    text-decoration: none;
    font-family: var(--font), monospace;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem auto;
    width: fit-content;
}

footer {
    background: var(--purple);
    color: var(--cyan);
    padding: 1rem;
    text-align: center;
    font-size: 0.9rem;
}

footer a {
    color: var(--cyan);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: var(--container-width)) {
    .downloads {
        flex-direction: column;
    }
}


.get-started-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: calc(var(--container-width) * 1.4);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .get-started-grid {
        max-width: calc(var(--container-width) * 1.5);
    }
}

.step-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    height: 100%;
    position: relative;
    max-width: 100%;
    overflow: hidden;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.step-number {
    background: var(--purple);
    color: var(--white);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.step-card h3 {
    color: var(--purple);
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.2;
}

.step-card p {
    color: #555;
    line-height: 1.5;
    margin: 1.2rem 0;
}

.step-card .tab-content {
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.step-card .tab-content pre {
    text-align: left;
    white-space: pre;
    overflow-x: auto;
    max-width: 100%;
    width: auto;
    box-sizing: border-box;
    position: relative;
    display: block;
    margin: 1rem auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1rem;
    background: #f8f8f8;
    overflow-wrap: normal;
    word-break: normal;
}

.step-card .tab-content code {
    text-align: left;
    max-width: 100%;
    overflow-x: auto;
    white-space: pre;
    word-wrap: normal;
    display: inline-block;
    box-sizing: border-box;
}

.code-copy-button {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--purple);
    color: var(--white);
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.8rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.code-copy-button:hover {
    opacity: 1;
}

.highlight {
    background-color: var(--cyan);
    padding: 0 0.2rem;
    color: var(--purple);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

/* Class for visually hiding text while keeping it accessible for screen readers and SEO */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Supported By section */
#supported-by {
    padding: 3rem 0;
    text-align: center;
    background-color: #f9f9ff;
    margin-top: 2rem;
}

#supported-by h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--purple);
}

.supporters-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 0 auto;
    padding: 0 1rem;
    max-width: 900px;
    width: 100%;
}

.supporter-logo {
    height: auto;
    width: 200px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.supporter-logo.exist-logo {
    width: 450px;
}

.supporter-logo:hover {
    transform: scale(1.05);
}

.supporters-logos a {
    text-decoration: none;
    border-bottom: none;
    transition: filter 0.3s ease;
}

.supporters-logos a:hover {
    border-bottom: none;
    filter: drop-shadow(0 0 8px var(--cyan));
}

@media (min-width: 992px) {
    .supporters-logos {
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
    }

    .supporter-logo.exist-logo {
        align-self: center;
    }

    .other-logos {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .supporters-logos {
        flex-direction: column;
        gap: 1.5rem;
    }

    .supporter-logo {
        width: 180px;
    }

    .supporter-logo.exist-logo {
        width: 300px;
    }
}
