@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@100..900&family=Onest:wght@100..900&display=swap');

/* General Styles */
:root {
    --primary-color: #6D4AFF;
    --dark-bg: #191A1E;
    --dark-hover-bg: #2A2A33;
    --light-bg: #F7F5FF;
    --lavander: #D5C5FF;
    --dark-lavender: #7665A2;
    --light-lavender: #E6E0FF;
    --white-color: #FFFFFF;
    --dark-text: var(--dark-bg);
    --light-text: #F1F1F1;
    --card-bg: #2A2A33;
    --border-color: #444;

    --tariff-base-bg: #DFFFE3;
    --tariff-premium-bg: #FFF9E0;
    --tariff-business-bg: #E0F5FF;

    --font-family: 'Onest', sans-serif;
    --font-size: clamp(1.2rem, 1.3vw, 1.7rem);
}

body {
    font-family: var(--font-family);
    background-color: var(--dark-bg);
    color: var(--light-text);
    margin: 0;
    font-size: var(--font-size);
    padding: 1.6rem;
    overflow-x: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
    min-height: 640px;
}

a {
    color: inherit;
    text-decoration: none;
}

p {
    margin: 0;
}

ul {
    list-style: none;
    padding: 0;
}

.section__tag {
    color: var(--white-color);
    font-weight: 200;
    font-size: 1rem;
}

.section__title {
    width: 32rem;
    font-size: 1.8rem;
    font-weight: 600;
    text-align: start;
    word-break: break-word;
    line-break: strict;
    /* hyphens: auto; */
}

.section__subtitle {
    width: 20rem;
    font-size: 1rem;
    font-weight: 400;
    text-align: start;
}

.btn {
    display: inline-block;
    padding: 1.3rem 3.1rem;
    border-radius: 0.2rem;
    border: 1px solid transparent;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;

    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0%;
    text-align: center;
    text-transform: uppercase;

}

.btn--primary {
    background-color: var(--dark-bg);
    color: var(--white-color);
    transition: transform 0.15s ease-in-out;
}

.btn--primary:hover {
    background-color: var(--dark-hover-bg);
    transform: translateY(1px);
}

.text-light {
    color: var(--white-color);
}

.text-dark {
    color: var(--dark-text);
}

/* Helper Classes */
.section--full-bleed {
    position: relative;
    left: -1.6rem;
    width: 100%;
    padding: 8rem 1.6rem;
}

/* Hero Section */
.hero {
    background-color: var(--lavander);
    color: var(--dark-text);
    padding: 2rem;
    padding-bottom: 6rem;
    margin-bottom: 2rem;
    border-radius: 1rem;
    background-image: url('../img/index/header_bg.svg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero--simple {
    padding-bottom: 2rem;
    margin-bottom: 0;
}

.hero--simple .logo-link {
    display: flex;
    align-items: baseline;
    text-decoration: none;
}

.hero--simple .huge-text {
    font-size: clamp(2rem, 5vw, 4rem);
}

.huge-text {
    font-family: 'League Spartan', sans-serif;
    text-transform: uppercase;
    font-weight: 600;
    white-space: nowrap;
    transform: scaleX(1); 
    font-size: clamp(6rem, 18.5vw, 20vw);
    line-height: 0.8;
}

.hero__content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

.hero__text {
    display: flex;
    flex-direction: column;
    width: 46vw;
}

.hero__text .btn {
    margin-bottom: 2rem;
    width: fit-content;
}

.hero__subtitle a {
    position: relative;
    transition: color 0.3s ease-in-out;
}

.hero__subtitle a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background-color: var(--border-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.hero__subtitle a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero__tag {
    color: var(--dark-lavender);
    font-weight: 400;
}

.hero__title {
    font-size: clamp(1.2rem,  2.8vw, 2.8rem);
    font-weight: 600;
    line-height: 1.1;
    width: 43vw;
}

.hero__subtitle {
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    max-width: 26vw;
    margin-bottom: 40px;
}

/* About Section */
.about {
    background-image: url('../img/index/about_bg.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.about__content {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
}

.about__text {
    width: calc(41vw + 1rem);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    will-change: transform;
}

.about__subtitle {
    width: 20rem;
    font-size: 1rem;
    font-weight: 400;
}

.about__image {
    width: calc(47vw + 1rem);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about__image img {
    width: 100%;
    border-radius: 16px;
}

/* Features Section */
.features {
    background-color: var(--white-color);
    background-image: url('../img/index/features_bg.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--dark-text);
}

.features__content {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
}

.features__text {
    width: calc(41vw + 1rem);
}

.features__accordion {
    width: calc(47vw + 1rem);
    height: 62vh;
}

.accordion__item {
    border-bottom: 1px solid #E0E0E0;
    padding: 24px 0;
}

.accordion__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    cursor: pointer;
    position: relative;
}

.accordion__title::after {
    content: '+';
    position: absolute;
    right: 0;
    font-size: 2rem;
    font-weight: 400;
    transition: transform 0.3s ease-in-out;
}

.accordion__item.active .accordion__title::after {
    transform: rotate(45deg);
}

.accordion__content {
    margin-top: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
    padding: 0 0;
}

.accordion__item.active .accordion__content {
    max-height: 500px; /* Adjust as needed */
    padding: 16px 0;
    margin-top: 16px;
}

/* Cabinet Section */
.cabinet {
    background-image: url('../img/index/cabinet_bg.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.cabinet__content {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
}

.cabinet__text {
    width: calc(41vw + 1rem);
    will-change: transform;
}

.cabinet__image {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: calc(47vw + 1rem);
}

.cabinet__image img {
    width: 100%;
    border-radius: 16px;
}

/* Mobile Section */
.mobile {
    background-image: url('../img/index/mobile_bg.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--white-color);
    color: var(--dark-text);
}

.mobile__content {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
}

.mobile__images {
    display: flex;
    gap: 20px;
    justify-content: start;
    width: calc(47vw + 1rem);
}

.mobile__images img {
    max-height: 500px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Tariffs Section */
.tariffs {
    background-image: url('../img/index/tariffs_bg.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.tariff__header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.tariffs__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 40px;
    text-align: left;
}

.tariff-card {
    width: calc(33vw - 2.36rem);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    background-color: var(--light-bg);
    color: var(--dark-text);
}

.tariff-card__header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 5px;
    padding: 20px;
    border-radius: 15px;
}

.tariff-card .btn {
    width: -webkit-fill-available;
    margin-bottom: 5px;
}

.tariff-card--base { background-color: var(--tariff-base-bg); color: var(--dark-text); }
.tariff-card--premium { background-color: var(--tariff-premium-bg); color: var(--dark-text); }
.tariff-card--business { background-color: var(--tariff-business-bg); color: var(--dark-text); }

.tariff-card__title {
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 8px;
}

.tariff-card__price {
    font-weight: 600;
    margin: 0 0 24px;
}

.tariff-card__features {
    margin: 25px 20px 0;
    margin-bottom: 32px;
    flex-grow: 1;
}

.tariff-card__features li {
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
}

.tariff-card__features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='10' cy='10' r='10' fill='%23191A1E'/%3E%3Cpath d='M6 10.5L8.66667 13L14 8' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
    background-repeat: no-repeat;
    background-position: center;
}

.tariff-card__note {
    margin: 0 0px 20px 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Contact Section */
.contact {
    position: relative;
    background-image: url('../img/index/features_bg.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--lavander);
    color: var(--dark-text);
    padding: 50px 1.6rem 60px 1.6rem;
    border-radius: 20px;
}

.contact .section__tag {
    color: var(--dark-lavender);
}

.contact__content {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
}

.contact__form {
    width: 47vw;
}

.contact__subtitle {
    font-size: 1.2rem;
    margin-top: 1rem;
}

.form__input {
    width: 100%;
    font-family: var(--font-family);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background-color: transparent;
    box-sizing: border-box;
}

.form__input:focus {
    outline: none;
}

.form__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.form__checkbox label {
    cursor: pointer;
}

.form__checkbox input {
    margin-top: 4px;
}

button[type="submit"] {
    width: 100%;
    font-family: var(--font-family);
}

/* Alert Messages */
.alert {
    position: absolute;
    top: 0;
    left: 33%;
    width: 33%;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    z-index: 10;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    pointer-events: none;
}

.alert.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.alert-info {
    background-color: #cce5ff;
    color: #004085;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}


/* Footer */
.footer {
    padding: 40px 0 20px 0;
    font-size: 0.8rem;
    font-weight: 200;
    opacity: 0.8;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-direction: row;
}

.footer__links {
    width: calc(47vw + 1.6rem);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer__links a {
    text-decoration: underline;
}

/* Animation Styles */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.6, 0.2, 0.4, 1), transform 0.8s cubic-bezier(0.6, 0.2, 0.4, 1);
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.transition-delay-1 { transition-delay: 0.1s; }
.transition-delay-2 { transition-delay: 0.2s; }
.transition-delay-3 { transition-delay: 0.3s; }
.transition-delay-4 { transition-delay: 0.4s; }
.transition-delay-5 { transition-delay: 0.5s; }

/* Responsive Styles */
@media (max-width: 990px) {
    .section__title { font-size: 2rem; }
    .hero__title { font-size: 2.8rem; }
    .about__content, .features__content, .cabinet__content, .mobile__content, .contact__content {
        flex-direction: column;
        gap: 2rem;
    }
    .about__image, .cabinet__image { margin-bottom: 30px; }
    .tariffs__grid { grid-template-columns: 1fr; }

    .about__text, .about__image,
    .features__text, .features__accordion,
    .cabinet__text, .cabinet__image,
    .mobile__text, .mobile__img,
    .contact__text, .contact__form {
        width: 100%;
    }

    .tariffs__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .tariff-card {
        width: 100%;
    }
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .section__title, .section__subtitle, .hero__title, .hero__subtitle {
        width: auto;
        max-width: 100%;
    }

    .mobile__content {
        align-items: center;
    }

    .hero {
        padding: 4rem 1rem 5rem 1rem;
    }
    .huge-text {
        font-size: 17.3vw;
    }
    .hero__tag {
        margin-top: 20px;
    }
    .hero__content {
        flex-direction: column;
    }
    .hero__text {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    .hero__title {
        width: 100%;
        font-size: 1.4rem;
    }
    .hero__subtitle {
        max-width: 100%;
        margin-bottom: 6rem;
    }

    .section--full-bleed {
        padding: 4rem 1rem;
        left: -1rem;
    }

    .features__accordion {
        height: auto;
    }

    .mobile__images {
        flex-direction: column;
        align-items: center;
    }

    .mobile__images img {
        height: auto;
    }

    .contact {
        padding: 2rem 1rem;
        border-radius: 1rem;
    }

    .contact__content {
        flex-direction: column;
    }

    .footer {
        padding: 2rem 1rem;
        margin: 0 -1rem -1rem -1rem;
        border-radius: 0;
    }

    .footer .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer__links {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        align-items: center;
    }

    .footer__links a {
        margin-left: 0;
    }
}


@media (max-width: 576px) {
    .section__title { font-size: 1.8rem; }
    .hero__title { font-size: 2rem; }
    .btn { padding: 12px 24px; }
    .hero__text .btn { width: auto; }
}

/* Policy Page */
.policy-content {
    background-color: var(--light-bg);
    color: var(--dark-text);
    padding: 4rem 1.6rem;
    border-radius: 1rem;
    margin-top: 2rem;
    margin-bottom: 2rem; /* Added for spacing */
}

.policy-content .container {
    width: 100%;
    text-align: start;
    word-break: break-word;
    line-break: strict;
    hyphens: auto;
}

.policy-content h1, .policy-content h2 {
    margin-bottom: 1rem;
}

.policy-content h1 {
    font-size: 2.5rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 1rem;
}

.policy-content h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
}

.policy-content p, .policy-content li {
    line-height: 1.7;
    margin-bottom: 1rem;
}

.policy-content ul {
    list-style: disc;
    padding-left: 25px;
}

.policy-content ul ul {
    list-style: circle;
    margin-top: 0.5rem;
}


.policy-content a {
    text-decoration: underline;
    color: var(--primary-color);
    font-weight: 500;
}