:root {
    --black-color: #000000;
    --white-color: #ffffff;
    --text-color: #242A45;
    --red-color: #FA5959;
    --blue-color: #5267DF;
    --button-bg-color: #F7F7F7;
    --gray-color: #9194A1;
}

/* ===========================
   GLOBAL
   =========================== */
html {
    box-sizing: border-box;
    height: 100%;
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

*:focus {
    outline: 2px dashed var(--blue-color);
    outline-offset: 2px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: var(--text-color);
}

h1, h2, h3 {
    margin: 0;
}

p {
    margin: 0;
}

button {
    font-family: inherit;
    cursor: pointer;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 0;
    margin: 0;
    font-family: "Rubik", "Arial", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
    background-color: var(--white-color);
    color: var(--text-color);
    overflow-x: hidden;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    clip: rect(0 0 0 0);
    overflow: hidden;
}

/* ===========================
   CONTAINER
   =========================== */
.container {
    width: 100%;
    max-width: 1150px;
    padding-left: 20px;
    padding-right: 20px;
    margin-left: auto;
    margin-right: auto;
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border: 2px solid transparent;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    line-height: 28px;
    letter-spacing: 0.25px;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-shadow: 0px 8px 8px -4px rgba(73, 93, 207, 0.2);
}

.btn-primary {
    background-color: var(--blue-color);
    color: var(--white-color);
}

.btn-primary:hover {
    border-color: var(--blue-color);
    background-color: var(--white-color);
    color: var(--blue-color);
}

.btn-primary:active {
    opacity: 0.7;
}

.btn-secondary {
    background-color: var(--button-bg-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    border-color: var(--text-color);
    background-color: var(--white-color);
}

.btn-secondary:active {
    opacity: 0.7;
}

.btn-red {
    background-color: var(--red-color);
    color: var(--white-color);
    border: 2px solid transparent;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    line-height: 28px;
    letter-spacing: 0.25px;
    box-shadow: 0px 8px 8px -4px rgba(73, 93, 207, 0.2);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn-red:hover {
    border-color: var(--red-color);
    background-color: var(--white-color);
    color: var(--red-color);
}

.btn-red:active {
    opacity: 0.7;
}

.btn-full {
    width: 100%;
}

/* ===========================
   LOADER
   =========================== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    animation: loaderPulse 1.5s ease-in-out infinite;
}

.loader-text {
    font-size: 24px;
    font-weight: 500;
    color: var(--blue-color);
    letter-spacing: 2px;
}

@keyframes loaderPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ===========================
   HEADER
   =========================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--white-color);
}

.site-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 30px;
    padding-bottom: 30px;
}

.site-header-logo {
    transition: opacity 0.3s ease;
}

.site-header-logo:hover {
    opacity: 0.8;
}

.site-header-logo:active {
    opacity: 0.6;
}

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    z-index: 110;
    flex-direction: column;
    gap: 5px;
}

.hamburger-line {
    display: block;
    width: 26px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Nav */
.site-nav {
    display: flex;
    align-items: center;
}

.site-nav-list {
    display: flex;
    align-items: center;
}

.site-nav-link {
    text-transform: uppercase;
    font-size: 13px;
    line-height: 17px;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
}

.site-nav-link:hover {
    color: var(--red-color);
}

.site-nav-link:active {
    opacity: 0.6;
}

.site-nav-item:not(:last-child) {
    margin-right: 48px;
}

.site-nav-log-in-button {
    display: inline-block;
    padding: 10px 30px;
    border: 2px solid transparent;
    background-color: var(--red-color);
    border-radius: 5px;
    box-shadow: 0px 8px 8px -4px rgba(73, 93, 207, 0.2);
    color: var(--white-color);
    font-size: 13px;
    font-weight: 500;
    line-height: 17px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-left: 48px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.site-nav-log-in-button:hover {
    border-color: var(--red-color);
    background-color: var(--white-color);
    color: var(--red-color);
}

.site-nav-log-in-button:active {
    opacity: 0.6;
}

/* ===========================
   HERO SECTION
   =========================== */
.hero-section {
    position: relative;
    padding-top: 80px;
    padding-bottom: 120px;
    overflow: hidden;
}

.hero-section-bg-shape {
    position: absolute;
    width: 1000px;
    height: 352px;
    background-color: var(--blue-color);
    border-radius: 316px 0 0 316px;
    right: -130px;
    bottom: 0;
    z-index: -1;
}

.hero-section-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-section-info-wrapper {
    max-width: 538px;
    flex-shrink: 0;
}

.hero-section-title {
    font-size: 48px;
    font-weight: 500;
    line-height: 52px;
    letter-spacing: -0.15px;
    margin-bottom: 24px;
}

.hero-section-text {
    color: var(--gray-color);
    margin-bottom: 32px;
}

.hero-section-buttons-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-section-img-wrapper {
    flex-shrink: 0;
}

.hero-section-img {
    width: 574px;
    max-width: 100%;
}

/* ===========================
   FEATURES SECTION
   =========================== */
.features-section {
    padding-top: 80px;
    padding-bottom: 60px;
}

.feature-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-info-wrapper {
    max-width: 527px;
    text-align: center;
    margin-bottom: 72px;
}

.feature-title {
    font-size: 32px;
    font-weight: 500;
    line-height: 52px;
    letter-spacing: -0.1px;
    margin-bottom: 16px;
}

.feature-info {
    color: var(--gray-color);
}

/* ===========================
   TABS
   =========================== */
.tabs {
    width: 100%;
    margin-bottom: 80px;
}

.tabs-list {
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(73, 93, 207, 0.2);
}

.tabs-item {
    flex: 1;
    max-width: 243px;
}

.tabs-button {
    display: block;
    width: 100%;
    padding: 20px 10px 27px;
    background: none;
    border: none;
    border-bottom: 4px solid transparent;
    font-size: 16px;
    line-height: 17px;
    letter-spacing: 0.53px;
    color: var(--gray-color);
    text-align: center;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.tabs-button:hover {
    color: var(--red-color);
}

.tabs-button-active {
    color: var(--text-color);
    border-bottom-color: var(--red-color);
}

/* Tab Panels */
.tabs-panel {
    display: none;
    position: relative;
    padding-bottom: 80px;
    animation: fadeIn 0.4s ease;
}

.tabs-panel-active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tabs-panel-bg-shape {
    position: absolute;
    width: 1000px;
    height: 352px;
    background-color: var(--blue-color);
    border-radius: 0 316px 316px 0;
    left: -330px;
    top: 80px;
    z-index: -1;
}

.tabs-info-wrapper {
    display: flex;
    align-items: center;
}

.tabs-info-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 80px;
}

.tabs-img-wrapper {
    flex-shrink: 0;
    max-width: 536px;
}

.tabs-info {
    max-width: 445px;
}

.tabs-info h2 {
    font-size: 32px;
    font-weight: 500;
    line-height: 52px;
    letter-spacing: -0.1px;
    margin-bottom: 16px;
}

.tabs-info p {
    margin-bottom: 32px;
    color: var(--gray-color);
}

/* ===========================
   DOWNLOAD SECTION
   =========================== */
.download-section {
    padding-top: 60px;
    padding-bottom: 80px;
}

.download-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.download-info-wrapper {
    max-width: 519px;
    text-align: center;
    margin-bottom: 48px;
}

.download-title {
    font-size: 32px;
    font-weight: 500;
    line-height: 52px;
    letter-spacing: -0.1px;
    margin-bottom: 16px;
}

.download-info {
    color: var(--gray-color);
}

.download-cards-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.download-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 284px;
    border-radius: 15px;
    box-shadow: 0px 10px 20px -5px rgba(73, 93, 207, 0.2);
    padding: 49px 24px 24px;
    background-color: var(--white-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 15px 30px -5px rgba(73, 93, 207, 0.3);
}

.download-card:nth-child(2) {
    margin-top: 40px;
}

.download-card:nth-child(3) {
    margin-top: 80px;
}

.download-card-img {
    margin-bottom: 32px;
}

.download-card-title {
    font-size: 20px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: 0.25px;
    text-align: center;
    margin-bottom: 5px;
}

.download-card-version {
    font-size: 15px;
    text-align: center;
    color: var(--gray-color);
    margin-bottom: 33px;
}

.download-card-hr {
    margin-bottom: 24px;
}

/* ===========================
   FAQ SECTION
   =========================== */
.faq-section {
    padding-top: 60px;
    padding-bottom: 80px;
}

.faq-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.faq-info-wrapper {
    max-width: 530px;
    text-align: center;
    margin-bottom: 56px;
}

.faq-info-wrapper h2 {
    font-size: 32px;
    font-weight: 500;
    line-height: 52px;
    letter-spacing: -0.1px;
    margin-bottom: 16px;
}

.faq-info-wrapper p {
    color: var(--gray-color);
}

.faq-list {
    width: 100%;
    max-width: 540px;
    margin-bottom: 54px;
    border-top: 1px solid rgba(36, 42, 69, 0.15);
}

.faq-item {
    display: block;
    width: 100%;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(36, 42, 69, 0.15);
    padding: 20px 0;
    text-align: left;
    color: var(--text-color);
    outline: none;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 400;
    line-height: 32px;
    transition: color 0.3s ease;
}

.faq-item:hover .faq-question h3 {
    color: var(--red-color);
}

.faq-arrow {
    flex-shrink: 0;
    color: var(--blue-color);
    transition: transform 0.3s ease, color 0.3s ease;
}

.faq-item[aria-expanded="true"] .faq-arrow {
    transform: rotate(180deg);
    color: var(--red-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item[aria-expanded="true"] .faq-answer {
    max-height: 300px;
    padding-top: 20px;
}

.faq-answer p {
    font-size: 16px;
    line-height: 36px;
    color: var(--gray-color);
}

/* ===========================
   CTA SECTION
   =========================== */
.cta {
    background-color: var(--blue-color);
    padding-top: 58px;
    padding-bottom: 74px;
}

.cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-title-wrapper {
    text-align: center;
    margin-bottom: 36px;
}

.cta-members-count {
    color: var(--white-color);
    font-size: 13px;
    font-weight: 500;
    line-height: 40px;
    letter-spacing: 5px;
    margin-bottom: 24px;
}

.cta-title {
    color: var(--white-color);
    font-size: 32px;
    font-weight: 500;
    line-height: 40px;
    letter-spacing: -0.15px;
    max-width: 408px;
}

.cta-form {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    max-width: 450px;
}

.cta-input-wrapper {
    flex: 1;
    position: relative;
}

.cta-input-wrapper input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid transparent;
    border-radius: 5px;
    background-color: var(--white-color);
    font-size: 14px;
    line-height: 20px;
    color: var(--text-color);
    outline: none;
    transition: border-color 0.3s ease;
}

.cta-input-wrapper input:focus {
    outline: none;
    border-color: var(--blue-color);
}

.cta-input-wrapper.error input {
    border-color: var(--red-color);
}

.cta-error {
    display: none;
    background-color: var(--red-color);
    color: var(--white-color);
    font-size: 10px;
    font-style: italic;
    padding: 6px 12px;
    border-radius: 0 0 5px 5px;
    margin-top: -2px;
}

.cta-input-wrapper.error .cta-error {
    display: block;
}

.cta-form .btn-red {
    flex-shrink: 0;
    padding: 12px 24px;
    cursor: pointer;
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
    background-color: var(--text-color);
    padding-top: 36px;
    padding-bottom: 36px;
    margin-top: auto;
}

.site-footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-footer-nav-wrapper {
    display: flex;
    align-items: center;
}

.site-footer-logo-link {
    margin-right: 65px;
    transition: opacity 0.3s ease;
}

.site-footer-logo-link:hover {
    opacity: 0.8;
}

.site-footer-nav-list {
    display: flex;
    align-items: center;
    gap: 44px;
}

.site-footer-nav-link {
    color: var(--white-color);
    font-size: 13px;
    line-height: 17px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.site-footer-nav-link:hover {
    color: var(--red-color);
}

.site-footer-socials {
    display: flex;
    align-items: center;
    gap: 40px;
}

.site-footer-socials a {
    transition: opacity 0.3s ease;
}

.site-footer-socials a:hover {
    opacity: 0.7;
}

/* ===========================
   SCROLL ANIMATIONS
   =========================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   RESPONSIVE - TABLET (max-width: 900px)
   =========================== */
@media (max-width: 900px) {
    /* Hamburger visible */
    .hamburger {
        display: flex;
    }

    /* Mobile Nav */
    .site-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: var(--white-color);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 30px 30px;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 105;
    }

    .site-nav.active {
        right: 0;
    }

    .site-nav-list {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0;
    }

    .site-nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(73, 93, 207, 0.1);
    }

    .site-nav-item:not(:last-child) {
        margin-right: 0;
    }

    .site-nav-link {
        display: block;
        padding: 18px 0;
        font-size: 16px;
    }

    .site-nav-log-in-button {
        margin-left: 0;
        margin-top: 24px;
        width: 100%;
        text-align: center;
        display: block;
    }

    /* Overlay */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.4);
        z-index: 102;
    }

    .nav-overlay.active {
        display: block;
    }

    /* Hero */
    .hero-section {
        padding-top: 40px;
        padding-bottom: 80px;
    }

    .hero-section-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 40px;
    }

    .hero-section-info-wrapper {
        max-width: 100%;
    }

    .hero-section-title {
        font-size: 36px;
        line-height: 42px;
    }

    .hero-section-buttons-wrapper {
        justify-content: center;
    }

    .hero-section-img {
        width: 100%;
        max-width: 450px;
        margin: 0 auto;
    }

    .hero-section-bg-shape {
        width: 800px;
        height: 250px;
        right: -200px;
        bottom: 40px;
    }

    /* Tabs */
    .tabs-list {
        flex-direction: column;
    }

    .tabs-item {
        max-width: 100%;
        width: 100%;
    }

    .tabs-button {
        border-bottom: 1px solid rgba(73, 93, 207, 0.2);
    }

    .tabs-button-active {
        border-bottom-color: var(--red-color);
        border-bottom-width: 4px;
    }

    .tabs-info-inner {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }

    .tabs-info {
        max-width: 100%;
    }

    .tabs-panel-bg-shape {
        width: 700px;
        height: 250px;
        left: -280px;
        top: 50px;
    }

    /* Download cards */
    .download-cards-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .download-card:nth-child(2),
    .download-card:nth-child(3) {
        margin-top: 0;
    }

    /* Footer */
    .site-footer-container {
        flex-direction: column;
        gap: 30px;
    }

    .site-footer-nav-wrapper {
        flex-direction: column;
        gap: 24px;
    }

    .site-footer-logo-link {
        margin-right: 0;
    }

    /* CTA */
    .cta-form {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-title {
        font-size: 26px;
        line-height: 34px;
    }
}

/* ===========================
   RESPONSIVE - MOBILE (max-width: 576px)
   =========================== */
@media (max-width: 576px) {
    body {
        font-size: 16px;
        line-height: 24px;
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .site-header-container {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    /* Hero */
    .hero-section {
        padding-top: 20px;
        padding-bottom: 60px;
    }

    .hero-section-title {
        font-size: 28px;
        line-height: 36px;
    }

    .hero-section-text {
        font-size: 15px;
    }

    .hero-section-buttons-wrapper {
        flex-direction: column;
        width: 100%;
    }

    .hero-section-buttons-wrapper .btn {
        width: 100%;
    }

    .hero-section-bg-shape {
        width: 600px;
        height: 200px;
        right: -200px;
        bottom: 60px;
    }

    /* Features */
    .features-section {
        padding-top: 40px;
        padding-bottom: 30px;
    }

    .feature-info-wrapper {
        margin-bottom: 40px;
    }

    .feature-title {
        font-size: 26px;
        line-height: 40px;
    }

    .tabs {
        margin-bottom: 40px;
    }

    .tabs-panel {
        padding-bottom: 40px;
    }

    .tabs-info h2 {
        font-size: 26px;
        line-height: 36px;
    }

    .tabs-panel-bg-shape {
        width: 500px;
        height: 200px;
        left: -230px;
        top: 30px;
    }

    /* Download */
    .download-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .download-title {
        font-size: 26px;
        line-height: 36px;
    }

    .download-card {
        width: 100%;
        max-width: 300px;
    }

    /* FAQ */
    .faq-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .faq-info-wrapper h2 {
        font-size: 26px;
        line-height: 36px;
    }

    .faq-list {
        max-width: 100%;
    }

    .faq-question h3 {
        font-size: 16px;
        line-height: 28px;
    }

    /* CTA */
    .cta {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .cta-title {
        font-size: 22px;
        line-height: 30px;
    }

    .cta-members-count {
        font-size: 11px;
        letter-spacing: 3px;
    }

    /* Footer */
    .site-footer-nav-list {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}
