:root {
    --bg-color: #1a1a1a;
    --card-color: #1e1e1e;
    --text-color: #e0e0e0;
    --accent-color: #38bdf8;
    --secondary-color: #4ade80;
    --link-color: #a0a0a0;
    --border-radius: 20px;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    font-size: 16px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    box-sizing: border-box;
}

.page-header {
    text-align: center;
    margin-bottom: 4rem;
    margin-top: 5rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1rem;
    box-sizing: border-box;
}

.logo-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 60%;
}

h1, h2, p, .subtitle {
    white-space: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-weight: 700;
    text-align: center;
    width: 100%;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.subtitle {
    font-size: 1.2rem;
    color: #a0a0a0;
    font-weight: 400;
    text-align: center;
    width: 100%;
    line-height: 1.4;
    margin-top: 1rem;
}


.card, .main-header, .feature-card {
    background-color: var(--card-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
    padding: 0.5rem 2rem;
    min-height: 60px;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow-x: auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    height: 100%;
}

nav {
    display: flex;
    align-items: center;
    height: 100%;
    margin-left: auto;
}

nav ul {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    height: 100%;
}

nav ul li {
    margin-left: 20px;
    height: 100%;
    display: flex;
    align-items: center;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 400;
    white-space: nowrap;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    height: 100%;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

h2 {
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.3;
}

p {
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 400;
    margin: 0;
    line-height: 1.8;
    margin-bottom: 1rem;
}

p + p {
    margin-top: 1.5rem;
}

.card p:first-of-type {
    margin-top: 0;
}

.card p:last-of-type {
    margin-bottom: 0;
}

.card p a {
    color: var(--link-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.card p a:hover {
    color: var(--text-color);
}

.tag {
    display: inline-block;
    background-color: #2a2a2a;
    color: var(--text-color);
    padding: 0.2rem 0.5rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.feature-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    flex: 1 1 calc(33.333% - 16px);
    min-width: 250px;
}

.feature-icon {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--accent-color);
}

.feature-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #ffffff;
}

.feature-description {
    color: var(--text-color);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.6;
}

.feature-link {
    color: var(--link-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.feature-link:hover {
    color: var(--text-color);
    text-decoration: underline;
}

.buttons-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 0 auto 2rem;
    max-width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    min-width: 120px;
    max-width: 200px;
}

.btn-primary {
    background-color: var(--card-color);
    color: var(--text-color);
    border: 2px solid transparent;
    background-image: linear-gradient(var(--card-color), var(--card-color)), linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.btn-primary:hover {
    background-image: linear-gradient(#2a2a2a, #2a2a2a), linear-gradient(90deg, var(--accent-color), var(--secondary-color));
}

.btn-outline {
    background-color: var(--card-color);
    color: var(--text-color);
    border: 2px solid #808080;
}

.btn-outline:hover {
    background-color: #2a2a2a;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.show {
    opacity: 1;
    transform: translateY(0);
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 20px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

.image-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.image-row img {
    width: 48%;
    height: auto;
    border-radius: 20px;
}

footer {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
}

.footer-text {
    margin: 0;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.8rem;
}

footer a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--text-color);
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .container {
        padding: 1rem;
    }

    .main-header {
        padding: 0.8rem 1.5rem;
    }

    .logo {
        font-size: 1.4rem;
    }

    .logo-image {
        width: 70%;
    }

    nav ul li {
        margin-left: 15px;
    }

    nav ul li a {
        font-size: 0.95rem;
        padding: 0.45rem 0.9rem;
    }

    h1 {
        font-size: 1.9rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    h2 {
        font-size: 1.3rem;
        margin-bottom: 1.2rem;
    }

    p {
        font-size: 0.9rem;
    }

    p + p {
        margin-top: 1.2rem;
    }

    .tag {
        font-size: 0.8rem;
    }

    .page-header {
        margin-top: 3rem;
        margin-bottom: 3rem;
    }

    .feature-cards {
        flex-direction: column;
        align-items: stretch;
    }

    .feature-card {
        width: 100%;
        max-width: 100%;
        flex: none;
    }

    .btn {
        font-size: 0.95rem;
        padding: 0.7rem 1.3rem;
        min-width: 110px;
        max-width: 180px;
    }

    .footer-text {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 14px;
    }

    .container {
        padding: 0.5rem;
    }

    .main-header {
        padding: 0.6rem 1rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .logo-image {
        width: 80%;
    }

    nav ul li {
        margin-left: 10px;
    }

    nav ul li a {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    h1 {
        font-size: 1.7rem;
    }

    .subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }

    .btn {
        font-size: 0.9rem;
        padding: 0.65rem 1.2rem;
        min-width: 100px;
        max-width: 160px;
    }

    .footer-text {
        font-size: 0.7rem;
    }
}

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

    nav ul li {
        margin-left: 8px;
    }

    nav ul li a {
        font-size: 0.85rem;
        padding: 0.35rem 0.7rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .footer-text {
        font-size: 0.65rem;
    }
}

@media (max-width: 400px) {
    body {
        font-size: 13px;
    }

    .main-header {
        padding: 0.5rem 0.8rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .logo-image {
        width: 90%;
    }

    nav ul li {
        margin-left: 5px;
    }

    nav ul li a {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }

    h1 {
        font-size: 1.4rem;
    }

    .subtitle {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .btn {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
        min-width: 90px;
        max-width: 140px;
    }

    .footer-text {
        font-size: 0.6rem;
    }
}

@media screen and (max-device-width: 480px) {
    body {
        -webkit-text-size-adjust: 100%;
        font-size: 16px !important;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 0.3rem;
    }

    .main-header {
        padding: 0.4rem 0.6rem;
    }

    .logo {
        font-size: 1rem;
    }

    nav ul li {
        margin-left: 3px;
    }

    nav ul li a {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    h1 {
        font-size: 1.3rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.9rem;
        min-width: 80px;
        max-width: 130px;
    }

    .footer-text {
        font-size: 0.55rem;
    }
}
