:root {
    --text-dark: #1a1f36;
    --text-muted: #5a6178;
    --bg-light: #f8f9fc;
    --accent: #1a1f36;
}

* {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Plus Jakarta Sans", sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

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

#main {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Navbar */
#nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: #e2e8f9;
    color: var(--text-dark);
    position: absolute;
    left: 50%;
    z-index: 1000;
    border-radius: 20px;
    transform: translateX(-50%);
    width: 60%;
}

#nav .nav__logo {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

#nav .nav__menu {
    list-style: none;
    display: flex;
    gap: 50px;
    font-size: 16px;
    font-weight: 600;
}

/* Hamburger button - hidden on desktop */
#nav .nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

#nav .nav__toggle-bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#nav.nav--open .nav__toggle {
    display: none;
}

/* Subpage nav variant (policies & contact) */
#nav.nav--top {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    border-radius: 0;
    width: 100%;
    box-sizing: border-box;
    background-color: var(--bg-light);
    border-bottom: 1px solid rgba(26, 31, 54, 0.08);
    flex-wrap: wrap;
    padding: 20px 30%;
}

/* HOME PAGE */
#home {
    margin-top: 50px;
}

#home .home__container {
    display: flex;
    margin: 0 40px;
    background:
        linear-gradient(#f8f9fce6, #e1eeffe6),
        repeating-linear-gradient(0deg, transparent, transparent 39px, transparent 40px),
        repeating-linear-gradient(90deg, transparent, transparent 39px, #e5e7eb 40px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    background-position: 0 0, 0 0, 0 0;
    border-radius: 20px;
    padding: 100px;
    padding-top: 200px;
    box-sizing: border-box;
    height: 80vh;
    align-items: center;
    justify-content: space-between;
}

#home .container__header {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

#home .container__header h1 {
    font-size: 64px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

#home .container__header p {
    font-size: 24px;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 560px;
}

#home .container__header .link {
    display: flex;
    align-items: center;
    padding: 10px;
    /* background-color: var(--bg-light); */
    width: fit-content;
    border-radius: 12px;
    gap: 14px;
}

#home .container__header .link img {
    width: 160px;
}

#home .container__header .link span {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-dark);
}

#home .container__img {
    flex: 1 1 auto;
    max-width: 60%;
    min-width: 300px;
    max-height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#home .container__img img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(80vh - 300px);
    object-fit: contain;
}

/* FEATURES SECTION */
#feature {
    padding: 120px 80px;
    max-width: 1400px;
    margin: 0 auto;
}

#feature .feature__header {
    text-align: center;
    margin-bottom: 80px;
}

#feature .feature__header h2 {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

#feature .feature__header p {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
}

/* Hide radio inputs */
#feature .feature__radio {
    display: none;
}

#feature .feature__content {
    display: grid;
    grid-template-columns: 1fr .7fr;
    gap: 60px;
    align-items: center;
}

/* Feature list - left side */
#feature .feature__list-wrapper {
    position: relative;
    height: 460px;
    overflow: hidden;
}

#feature .feature__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    overflow-y: auto;
    padding: 20px 0;
    scrollbar-width: none;
    box-sizing: border-box;
}

#feature .feature__list::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

#feature .feature__list-gradient {
    position: absolute;
    left: 0;
    right: 0;
    height: 60px;
    pointer-events: none;
    z-index: 2;
}

#feature .feature__list-gradient--top {
    top: 0;
    background: linear-gradient(to bottom, var(--bg-light) 0%, transparent 100%);
}

#feature .feature__list-gradient--bottom {
    bottom: 0;
    background: linear-gradient(to top, var(--bg-light) 0%, transparent 100%);
}

#feature .feature__item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 28px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.25s ease;
    background: transparent;
    border: 2px solid transparent;
    flex-shrink: 0;
}

#feature .feature__item:hover {
    background: rgba(225, 238, 255, 0.3);
}

#feature .feature__icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: transparent;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.25s ease;
}

#feature .feature__text h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    transition: color 0.25s ease;
}

#feature .feature__text p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Selected state styling */
#feature-1:checked ~ .feature__list-wrapper .feature__list label[for="feature-1"],
#feature-2:checked ~ .feature__list-wrapper .feature__list label[for="feature-2"],
#feature-3:checked ~ .feature__list-wrapper .feature__list label[for="feature-3"],
#feature-4:checked ~ .feature__list-wrapper .feature__list label[for="feature-4"],
#feature-5:checked ~ .feature__list-wrapper .feature__list label[for="feature-5"] {
    background: white;
    border-color: rgba(26, 31, 54, 0.08);
    box-shadow: 0 4px 20px rgba(26, 31, 54, 0.08);
}

#feature-1:checked ~ .feature__list-wrapper .feature__list label[for="feature-1"] .feature__icon,
#feature-2:checked ~ .feature__list-wrapper .feature__list label[for="feature-2"] .feature__icon,
#feature-3:checked ~ .feature__list-wrapper .feature__list label[for="feature-3"] .feature__icon,
#feature-4:checked ~ .feature__list-wrapper .feature__list label[for="feature-4"] .feature__icon,
#feature-5:checked ~ .feature__list-wrapper .feature__list label[for="feature-5"] .feature__icon {
    background: linear-gradient(135deg, #e1eeff 0%, #c7dbff 100%);
    color: var(--text-dark);
}

/* Screenshot area - right side */
#feature .feature__screenshot {
    position: relative;
    height: 720px;
    background: linear-gradient(135deg, #e1eeff 0%, #f0f6ff 100%);
    border-radius: 24px;
    overflow: hidden;
}

#feature .screenshot {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

#feature .screenshot__placeholder {
    padding: 28px;
    border-radius: 16px;
    color: var(--text-muted);
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

#feature .screenshot__placeholder img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Show active screenshot */
#feature-1:checked ~ .feature__screenshot #screenshot-1,
#feature-2:checked ~ .feature__screenshot #screenshot-2,
#feature-3:checked ~ .feature__screenshot #screenshot-3,
#feature-4:checked ~ .feature__screenshot #screenshot-4,
#feature-5:checked ~ .feature__screenshot #screenshot-5 {
    opacity: 1;
}

/* REVIEWS SECTION */
#reviews {
    padding: 120px 0;
    overflow: hidden;
}

#reviews .reviews__header {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 40px;
}

#reviews .reviews__header h2 {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

#reviews .reviews__header p {
    font-size: 20px;
    color: var(--text-muted);
}

#reviews .reviews__carousel {
    display: flex;
    flex-direction: column;
}

#reviews .reviews__row {
    padding: 24px 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

#reviews .reviews__track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: scroll-left 40s linear infinite;
}

#reviews .reviews__row--right .reviews__track {
    animation: scroll-right 45s linear infinite;
}

#reviews .reviews__row--left-slow .reviews__track {
    animation: scroll-left 55s linear infinite;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

#reviews .review__card {
    background: white;
    border-radius: 20px;
    padding: 32px;
    min-width: 340px;
    max-width: 340px;
    box-shadow: 0 4px 20px rgba(26, 31, 54, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#reviews .review__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(26, 31, 54, 0.1);
}

#reviews .review__stars {
    color: #fbbf24;
    font-size: 18px;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

#reviews .review__card > p {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 24px;
}

#reviews .review__author {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#reviews .author__name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

#reviews .author__title {
    font-size: 14px;
    color: var(--text-muted);
}

/* PRICING SECTION */
#pricing {
    padding: 120px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

#pricing .pricing__header {
    text-align: center;
    margin-bottom: 60px;
}

#pricing .pricing__header h2 {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

#pricing .pricing__header p {
    font-size: 20px;
    color: var(--text-muted);
}

#pricing .pricing__container {
    border-radius: 24px;
    padding: 60px;
    min-height: 300px;
    display: flex;
    align-items: start;
    justify-content: center;
    gap: 40px;
}

#pricing .pricing__card {
    padding: 24px;
    box-sizing: border-box;
    width: 400px;
    border-radius: 20px;
    background: linear-gradient(180deg, #f0f6fd 0%, #f0f6ff 100%);
    box-shadow: 0 4px 20px rgba(26, 31, 54, 0.06);
}

#pricing .card__header h1 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
}

#pricing .card__header p {
    font-size: 16px;
    color: var(--text-muted);
    margin-top: 10px;
}

#pricing .card__header .header__price {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 30px;
}

#pricing .card__header .header__price h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
}

#pricing .card__header .header__price span {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 400;
}

#pricing .card__header .header__price h5 {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 400;
}

#pricing .card__content {
    margin-top: 24px;
    background-color: #f8fbff;
    border-radius: 20px;
    padding: 16px;
}

#pricing .card__content p {
    padding-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

#pricing .card__content ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 26px;
}

#pricing .card__content ul li {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

#pricing .card__content ul li svg {
    color: #0397ed;
}

#pricing .card__button {
    width: 100%;
    padding: 12px;
    background-image: linear-gradient(90deg, #63c0f6 0%, #0397ed 100%);
    color: #f8ffff;
    border: none;
    border-radius: 15px;
}

/* FOOTER */
#footer {
    background: #00314e;
    color: white;
    padding: 80px 80px 40px;
}

#footer .footer__content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto 60px;
}

#footer .footer__brand {
    max-width: 300px;
}

#footer .footer__logo {
    font-size: 24px;
    font-weight: 700;
    display: block;
    margin-bottom: 16px;
}

#footer .footer__brand p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

#footer .footer__links h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.5);
}

#footer .footer__links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#footer .footer__links a {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

#footer .footer__links a:hover {
    color: white;
}

#footer .footer__bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#footer .footer__bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
}

/* ==================== */
/* RESPONSIVE - TABLET */
/* ==================== */
@media (max-width: 1024px) {
    #nav .nav__menu {
        gap: 30px;
        font-size: 14px;
    }

    /* Home */
    #home .home__container {
        padding: 40px 60px;
        height: auto;
        min-height: 80vh;
    }

    #home .container__header h1 {
        font-size: 48px;
    }

    #home .container__header p {
        font-size: 20px;
    }

    #home .container__header .link img {
        width: 140px;
    }

    #home .container__img {
        max-width: 50%;
        min-width: 280px;
    }

    #home .container__img img {
        max-height: calc(80vh - 200px);
    }

    /* Features */
    #feature {
        padding: 80px 40px;
    }

    #feature .feature__header h2 {
        font-size: 40px;
    }

    #feature .feature__content {
        gap: 40px;
    }

    #feature .feature__screenshot {
        height: 400px;
    }

    #feature .screenshot__placeholder {
        padding: 20px;
    }

    /* Reviews */
    #reviews {
        padding: 80px 0;
    }

    #reviews .reviews__header h2 {
        font-size: 40px;
    }

    #reviews .review__card {
        min-width: 300px;
        max-width: 300px;
        padding: 24px;
    }

    /* Pricing */
    #pricing {
        padding: 80px 40px;
    }

    #pricing .pricing__header h2 {
        font-size: 40px;
    }

    #pricing .pricing__container {
        padding: 40px;
        gap: 24px;
    }

    #pricing .pricing__card {
        width: 340px;
    }

    /* Footer */
    #footer {
        padding: 60px 40px 30px;
    }
}

/* ==================== */
/* RESPONSIVE - MOBILE */
/* ==================== */
@media (max-width: 768px) {

    #nav .nav__logo {
        flex: 1;
    }

    #nav .nav__toggle {
        display: flex;
    }

    #nav .nav__menu {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding-top: 20px;
        margin-top: 16px;
        border-top: 1px solid rgba(26, 31, 54, 0.1);
    }

    #nav .nav__menu li {
        width: 100%;
        text-align: end;
    }

    #nav .nav__menu li a {
        display: block;
        padding: 12px 0;
        font-size: 16px;
        transition: all 0.2s ease;
    }

    #nav .nav__menu li a:hover {
        background-color: rgba(225, 238, 255, 0.5);
        border-radius: 8px;
    }

    #nav.nav--open .nav__menu {
        display: flex;
    }

    /* Policy/contact nav open state — menu wraps below the logo row */
    #nav.nav--policy.nav--open .nav__menu {
        width: 100%;
    }

    /* Home */
    #home .home__container {
        margin: 0 20px;
        padding: 100px 24px 40px;
        flex-direction: column;
        text-align: center;
        min-height: auto;
        height: auto;
    }

    #home .container__header {
        gap: 24px;
        align-items: center;
    }

    #home .container__header h1 {
        font-size: 36px;
    }

    #home .container__header h1 br {
        display: none;
    }

    #home .container__header p {
        font-size: 16px;
        max-width: 100%;
    }

    #home .container__header .link {
        flex-direction: column;
        gap: 12px;
    }

    #home .container__header .link img {
        width: 150px;
    }

    #home .container__header .link span {
        font-size: 14px;
    }

    #home .container__img {
        max-width: 100%;
        width: 100%;
        min-width: unset;
        margin-top: 40px;
    }

    #home .container__img img {
        max-width: 400px;
        max-height: 50vh;
        width: 100%;
    }

    /* Features */
    #feature {
        padding: 60px 20px;
    }

    #feature .feature__header {
        margin-bottom: 40px;
    }

    #feature .feature__header h2 {
        font-size: 32px;
    }

    #feature .feature__header h2 br {
        display: none;
    }

    #feature .feature__header p {
        font-size: 16px;
    }

    #feature .feature__content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    #feature .feature__list-wrapper {
        height: auto;
        max-height: none;
        order: 2;
    }

    #feature .feature__list {
        height: auto;
        overflow: visible;
        padding: 0;
    }

    #feature .feature__list-gradient {
        display: none;
    }

    #feature .feature__item {
        padding: 20px;
    }

    #feature .feature__icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    #feature .feature__text h3 {
        font-size: 18px;
    }

    #feature .feature__text p {
        font-size: 14px;
    }

    #feature .feature__screenshot {
        height: 300px;
        order: 1;
    }

    #feature .screenshot__placeholder {
        padding: 16px;
    }

    /* Reviews */
    #reviews {
        padding: 60px 0;
    }

    #reviews .reviews__header {
        margin-bottom: 40px;
        padding: 0 20px;
    }

    #reviews .reviews__header h2 {
        font-size: 32px;
    }

    #reviews .reviews__header h2 br {
        display: none;
    }

    #reviews .reviews__header p {
        font-size: 16px;
    }

    #reviews .reviews__carousel {
        gap: 16px;
    }

    #reviews .reviews__row--left-slow {
        display: none;
    }

    #reviews .review__card {
        min-width: 280px;
        max-width: 280px;
        padding: 24px;
    }

    #reviews .review__card > p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    #reviews .review__stars {
        font-size: 16px;
        margin-bottom: 12px;
    }

    #reviews .author__name {
        font-size: 14px;
    }

    #reviews .author__title {
        font-size: 13px;
    }

    /* Pricing */
    #pricing {
        padding: 60px 20px;
    }

    #pricing .pricing__header {
        margin-bottom: 40px;
    }

    #pricing .pricing__header h2 {
        font-size: 32px;
    }

    #pricing .pricing__header p {
        font-size: 16px;
    }

    #pricing .pricing__container {
        padding: 30px 20px;
        min-height: 200px;
        border-radius: 16px;
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    #pricing .pricing__card {
        width: 100%;
        max-width: 400px;
        padding: 20px;
    }

    #pricing .card__header h1 {
        font-size: 18px;
    }

    #pricing .card__header p {
        font-size: 14px;
    }

    #pricing .card__header .header__price {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        margin-top: 20px;
    }

    #pricing .card__header .header__price h2 {
        font-size: 22px;
    }

    #pricing .card__content {
        padding: 14px;
        margin-top: 20px;
    }

    #pricing .card__content ul {
        gap: 10px;
        margin-bottom: 20px;
    }

    #pricing .card__content ul li {
        font-size: 13px;
    }

    #pricing .card__button {
        padding: 10px;
        font-size: 14px;
    }

    /* Footer */
    #footer {
        padding: 50px 20px 30px;
    }

    #footer .footer__content {
        flex-direction: column;
        gap: 40px;
        margin-bottom: 40px;
        align-items: center;
    }

    #footer .footer__brand {
        max-width: 100%;
        text-align: center;
    }

    #footer .footer__links {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #footer .footer__links ul {
        align-items: center;
    }

    #footer .footer__bottom {
        text-align: center;
        padding-top: 30px;
    }
}

/* ==================== */
/* RESPONSIVE - SMALL MOBILE */
/* ==================== */
@media (max-width: 480px) {
    #home .container__header h1 {
        font-size: 28px;
    }

    #home .container__header p {
        font-size: 15px;
    }

    #home .container__img img {
        max-width: 300px;
        max-height: 40vh;
    }

    #feature .feature__header h2,
    #reviews .reviews__header h2,
    #pricing .pricing__header h2 {
        font-size: 26px;
    }

    #feature .feature__screenshot {
        height: 250px;
    }

    #feature .screenshot__placeholder {
        padding: 12px;
    }

    #reviews .review__card {
        min-width: 260px;
        max-width: 260px;
        padding: 20px;
    }

    /* Pricing */
    #pricing {
        padding: 50px 16px;
    }

    #pricing .pricing__container {
        padding: 20px 16px;
    }

    #pricing .pricing__card {
        padding: 16px;
    }

    #pricing .card__header .header__price h2 {
        font-size: 20px;
    }

    #pricing .card__content ul li {
        font-size: 12px;
        gap: 8px;
    }
}
