html, body {
    background-color: #0f1210 !important;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background-position: center;
    background: linear-gradient(0deg, #2d3c32 -250%, #000000 80%);
    background-attachment: fixed;
}

main {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

h1, h2, h3, h4, h5, h6, p, ul, li {
    font-family: 'Work Sans', sans-serif;
    color: #CCCCCC;
    letter-spacing: 0.02em;
}

h1 {
    font-size: clamp(1.8em, 4.5vw, 2.7em);
    color: #CCCCCC;
    text-align: left;
    position: relative;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

p {
    font-size: clamp(1.2em, 3vw, 1.2em);
    color: #CCCCCC;
    line-height: 1.4em;
    letter-spacing: 0.01em;
}

ul {
    text-align: center;
    padding: 0;
    margin: 0 auto;
    display: inline-block;
}

li {
    font-size: clamp(1.2em, 3vw, 1.2em);
    font-family: 'Work Sans', sans-serif;
    color: #CCCCCC;
    line-height: 1.3em;
    list-style-type: none;
    text-align: left;
}

hr {
    width: 50%;
    margin: 20px 0;
    border: 1px solid #CCCCCC;
    opacity: 0.5;
}

a:link {
    color: #4DD85E;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:visited {
    color: #4DD85E;
    text-decoration: none;
}

a:hover {
    color: #94F3A6;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

a:active {
    color: #EB21EE;
}

input[type=text], button[type=submit], input[type=email], textarea {
    display: block;
    padding: 0.8em 1em;
    background-color: rgba(61, 61, 61, 0.3);
    box-sizing: border-box;
    font-family: 'Work Sans', sans-serif;
    font-size: 1.2em;
    width: clamp(12em, 18vw, 18vw);
    border: none;
    border-bottom: 0.1em solid #3FBA50;
    color: #CCCCCC;
    transition: all 0.3s ease;
    border-radius: 4px;
}

input[type=text]:focus, input[type=email]:focus, textarea:focus {
    outline: none;
    background-color: rgba(61, 61, 61, 0.5);
    transform: translateY(-2px);
}

button[type=submit] {
    background-color: #2D8A3C;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
}

button[type=submit]:hover {
    background-color: #3FBA50;
    transform: translateY(-2px);
}

button[type=submit]:active {
    background-color: #EB21EE;
}

textarea, ::placeholder {
    color: #ffffff;
}

input:user-invalid, textarea:user-invalid {
    outline: 2px solid orange;
}

/* Miniti page */

.miniti-page {
    text-align: center;
    padding-top: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.miniti-page h1 {
    text-align: center;
}

.miniti-icon {
    width: 96px;
    height: 96px;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.miniti-gallery-wrap {
    position: relative;
    margin: 0 auto 2em;
    z-index: 2;
}

.miniti-gallery-wrap::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 3rem;
    height: 100%;
    background: linear-gradient(to right, transparent, #0f1210);
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.3s;
}

.miniti-gallery-wrap.scrolled-end::after {
    opacity: 0;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(63, 186, 80, 0.1);
    border: 1px solid rgba(63, 186, 80, 0.25);
    color: #3FBA50;
    font-size: 1.8rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s, background 0.2s;
    line-height: 1;
    padding-bottom: 2px;
}

.miniti-gallery-wrap:hover .gallery-arrow:not(.hidden) {
    opacity: 1;
}

.gallery-arrow:hover {
    background: rgba(63, 186, 80, 0.25);
}

.gallery-arrow:active {
    background: rgba(63, 186, 80, 0.4);
}

.gallery-arrow.hidden {
    opacity: 0 !important;
    pointer-events: none;
}

.gallery-arrow-left {
    left: 1rem;
}

.gallery-arrow-right {
    right: 1rem;
}

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.gallery-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(63, 186, 80, 0.2);
    transition: all 0.3s;
    cursor: pointer;
}

.gallery-dot.active {
    background: #3FBA50;
    transform: scale(1.3);
}

@media (max-width: 767px) {
    .gallery-arrow {
        display: none;
    }
}

.miniti-gallery {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.miniti-gallery::-webkit-scrollbar {
    display: none;
}

.miniti-gallery-track {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 max(1rem, calc((100vw - 900px) / 2 + 3rem));
}

.miniti-gallery-track img {
    flex-shrink: 0;
    max-width: calc(100vw - 6rem);
    max-height: 700px;
    width: auto;
    height: auto;
    border-radius: 8px;
    scroll-snap-align: center;
    background: #090D0A;
    position: relative;
    z-index: 2;
}

.miniti-subtitle {
    font-size: clamp(1.1em, 3vw, 1.35em);
    letter-spacing: 0.3em;
    background: linear-gradient(90deg, #1A5C28, #1A5C28, #A0FFB0, #1A5C28, #1A5C28, #1A5C28, #A0FFB0, #1A5C28, #1A5C28);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: subtitleGlow 2s linear infinite;
    margin: -0.7em auto 0.75em;
    max-width: 600px;
}

@keyframes subtitleGlow {
    0% { background-position: 200% 0; }
    100% { background-position: 0% 0; }
}

.miniti-tagline {
    font-size: clamp(1.1em, 3vw, 1.25em);
    font-weight: 400;
    color: #CCCCCC;
    max-width: 600px;
    margin: 0 auto 0.5em;
}

.miniti-features {
    list-style: none;
    padding: 0;
    margin: 0 auto 1em;
    max-width: 600px;
    text-align: left;
    font-size: clamp(0.9em, 2.5vw, 1em);
    color: #CCCCCC;
}

.miniti-features li {
    padding: 0.2em 0;
}

.miniti-features li::before {
    content: "- ";
    color: #888;
}

.miniti-meta {
    font-size: clamp(0.85em, 2vw, 0.95em);
    color: #888;
    max-width: 600px;
    margin: 0 auto 2em;
}

.miniti-form-heading {
    font-size: clamp(1.5em, 4vw, 2em);
    color: #CCCCCC;
    margin-bottom: 0.5em;
}

.miniti-form-section form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 4rem;
}

.miniti-form-section input[type="text"],
.miniti-form-section input[type="email"] {
    width: clamp(14em, 60vw, 20em);
    text-align: center;
}

.miniti-form-section button[type="submit"] {
    width: clamp(14em, 60vw, 20em);
    margin-top: 0.25rem;
}

.miniti-form-section button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.miniti-message p {
    font-size: 1.1em;
    color: #3FBA50;
}

.miniti-error p {
    color: #e85d5d;
}

.miniti-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.miniti-lightbox.active {
    display: flex;
}

.miniti-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 8px;
}

.miniti-roadmap {
    text-align: left;
    max-width: 38em;
    margin: 3rem auto 0;
}

.miniti-roadmap h2 {
    text-align: center;
    font-size: clamp(1.5em, 4vw, 2em);
    color: #CCCCCC;
    margin-bottom: 1.5rem;
}

.roadmap-item {
    font-family: 'Work Sans', sans-serif;
    color: #999;
    font-size: 0.9em;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.roadmap-item strong {
    color: #CCCCCC;
}

.roadmap-cta {
    margin-top: 1.5rem;
    color: #777;
}

.roadmap-cta a {
    color: #4ade80;
}

.miniti-changelog {
    text-align: left;
    max-width: 38em;
    margin: 3rem auto 0;
}

.miniti-changelog h2 {
    text-align: center;
    font-size: clamp(1.5em, 4vw, 2em);
    color: #CCCCCC;
    margin-bottom: 1.5rem;
}

details.changelog-entry {
    margin-bottom: 1.5rem;
}

details.changelog-entry > summary {
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
    font-size: 1em;
    color: #CCCCCC;
    margin-bottom: 0.4rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

details.changelog-entry > summary::-webkit-details-marker {
    display: none;
}

details.changelog-entry > summary::before {
    content: '▸';
    display: inline-block;
    transition: transform 0.15s ease;
    font-size: 0.8em;
    color: #777;
}

details.changelog-entry[open] > summary::before {
    transform: rotate(90deg);
}

details.changelog-entry > .changelog-items {
    padding-top: 0.4rem;
}

.changelog-items {
    font-family: 'Work Sans', sans-serif;
    color: #999;
    font-size: 0.9em;
    line-height: 1.6;
}

.miniti-privacy-link {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.85rem;
}

.miniti-privacy-link a {
    color: #888;
    text-decoration: none;
}

.miniti-privacy-link a:hover {
    color: #94F3A6;
}

/* Privacy page */

.privacy-page {
    max-width: 38em;
    margin: 2rem auto;
    text-align: left;
    padding-bottom: 3rem;
}

.privacy-page h1 {
    text-align: left;
    font-size: clamp(1.5em, 4vw, 2em);
    margin-bottom: 0.3rem;
}

.privacy-page h2 {
    font-size: 1.15em;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.privacy-page p {
    font-size: 0.95em;
    line-height: 1.6;
    color: #999;
}

.privacy-page ul {
    text-align: left;
    display: block;
    padding-left: 1.2em;
}

.privacy-page li {
    font-size: 0.95em;
    line-height: 1.6;
    color: #999;
    list-style-type: disc;
    margin-bottom: 0.3em;
}

.privacy-page hr {
    width: 100%;
    border-color: rgba(255, 255, 255, 0.1);
}

.privacy-page em {
    color: #888;
}

.privacy-back {
    display: inline-block;
    margin-bottom: 1.5rem;
    font-size: 0.9em;
    color: #888;
}
