:root {
    --bg: #15202b;
    --txt: #cecece;
    --punk: #405c6a;
    --bg-light: #2f3f52;
    --card-bg: #2c3b4d;
    --border: #3d4f63;
    --accent: #6a8395;
    --accent-dark: #3d4b54;
    --success: #4caf82;
}

.lexend-regular {
  font-family: "Lexend", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.henny-penny-regular {
  font-family: "Henny Penny", system-ui;
  font-weight: 400;
  font-style: normal;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Lexend", sans-serif;
    color: var(--txt);
    background-color: var(--bg);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: "Henny Penny", system-ui; 
    font-weight: 400;
    color: var(--txt);
    line-height: 1.3;
}

p, a, li, span, small {
    font-family: "Lexend", sans-serif;
}

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

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

section {
    padding: 6rem 1.5rem;
}

.section-heading {
    max-width: 700px;
    margin: 0 auto 3rem;
    text-align: center;
}

.section-heading h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.section-heading p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--txt);
    opacity: 0.9;
}

/* -------------------- Buttons -------------------- */

.button {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: 999px;
    font-weight: 600;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.button--accent {
    background-color: var(--accent);
    color: #fff;
    box-shadow: 0 8px 20px rgba(255, 159, 90, 0.3);
}

.button--accent:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
}

/* -------------------- Navbar -------------------- */

.nav-toggle {
    display: none;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    /* background-color: rgba(37, 50, 67, 0.85); */
    background-color: #15202b;
    opacity: 0.95;
    backdrop-filter: blur(2px);
    border-bottom: 1px solid var(--border);
}

.navbar__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.5rem;
}

.navbar__logo {
    font-size: 1.6rem;
    margin: 0;
    color: #fff;
}

.navbar__nav {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.navbar__nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--txt);
    transition: color 0.2s ease;
}

.navbar__nav a:hover {
    color: #fff;
}

.navbar__cta {
    background-color: var(--accent-dark);
    color: #fff;
    padding: 0.55rem 1.3rem;
    border-radius: 999px;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.navbar__cta:hover {
    color: #fff;
    background-color: var(--accent);
    transform: translateY(-1px);
}

.navbar__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 22px;
    cursor: pointer;
    z-index: 1100;
}

.navbar__burger span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #fff;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* -------------------- Hero -------------------- */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    padding-top: 8rem;
    background:
    /*
        radial-gradient(circle at 15% 20%, rgba(255, 159, 90, 0.12), transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(64, 92, 106, 0.4), transparent 50%),
    */
        var(--bg);
}

.hero__content {
    max-width: 540px;
}

.hero__content h1 {
    font-size: 3.2rem;
    margin: 0 0 0.5rem;
}

.hero__content h2 {
    font-size: 1.4rem;
    font-family: "Lexend", sans-serif;
    font-weight: 500;
    color: #fff;
    margin: 0 0 1.2rem;
}

.hero__content p {
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 2.2rem;
}

.store-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.store-button {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background-color: #12181f;
    border: 1px solid var(--border);
    color: #fff;
    padding: 0.7rem 1.4rem;
    border-radius: 14px;
    font-weight: 600;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.store-button:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

.store-button svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.store-button span {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    font-size: 1.05rem;
}

.store-button small {
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.75;
}

/* -------------------- Phone mockup -------------------- */

.hero__mockup {
    display: flex;
    justify-content: center;
}

.phone {
    width: 260px;
    height: 530px;
    background-color: #12181f;
    border-radius: 40px;
    border: 8px solid #12181f;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
    position: relative;
    overflow: hidden;
}

.phone__notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 22px;
    background-color: #12181f;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    z-index: 2;
}

.phone__screen {
    background: linear-gradient(160deg, var(--bg-light), var(--bg));
    width: 100%;
    height: 100%;
    padding: 2.5rem 1.1rem 1.5rem;
}

.mock-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.2rem 1rem;
}

.mock-card__question {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin: 0 0 0.6rem;
    font-weight: 600;
}

.mock-card__sentence {
    font-size: 0.95rem;
    color: #fff;
    margin: 0 0 1rem;
    line-height: 1.4;
}

.mock-card__options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.mock-option {
    display: block;
    padding: 0.5rem 0.8rem;
    border-radius: 10px;
    font-size: 0.85rem;
    border: 1px solid var(--border);
}

.mock-option--wrong {
    opacity: 0.5;
    text-decoration: line-through;
}

.mock-option--right {
    background-color: rgba(76, 175, 130, 0.18);
    border-color: var(--success);
    color: var(--success);
    font-weight: 600;
}

.mock-card__progress {
    width: 100%;
    height: 6px;
    background-color: var(--border);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.8rem;
}

.mock-card__bar {
    width: 65%;
    height: 100%;
    background-color: var(--accent);
    border-radius: 999px;
}

.mock-card__score {
    font-size: 0.8rem;
    margin: 0;
    opacity: 0.85;
}

/* -------------------- Presentation / Features -------------------- */

.presentation {
    max-width: 1200px;
    margin: 0 auto;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.feature-card__icon {
    display: inline-block;
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin: 0 0 0.6rem;
}

.feature-card p {
    font-size: 0.92rem;
    line-height: 1.55;
    opacity: 0.85;
    margin: 0;
}

/* -------------------- Premium -------------------- */

.premium {
    background: linear-gradient(180deg, transparent, rgba(64, 92, 106, 0.25));
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section_card_premium {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 24px;

}


.premium .card {
    background: linear-gradient(160deg, var(--card-bg), var(--bg-light));
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem 2.5rem 2.2rem;
    max-width: 380px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
}

.premium .card.populaire {
    position: relative;
    border: 2px solid transparent;
    background-image:
        linear-gradient(160deg, var(--card-bg), var(--bg-light)),
        linear-gradient(135deg, var(--accent), #fff, var(--accent-dark));
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.populaire__badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    white-space: nowrap;
}

.card__badge {
    display: inline-block;
    background-color: var(--accent);
    color: #1c1c1c;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 1.2rem;
}

.card__price {
    font-size: 1rem;
    margin: 0 0 1.6rem;
    opacity: 0.9;
}

.card__price strong {
    font-size: 2.4rem;
    color: #fff;
    font-family: "Henny Penny", system-ui;
    font-weight: 400;
}

.card__features {
    text-align: left;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.card__features li {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* -------------------- Footer -------------------- */

.footer {
    background-color: #182029;
    border-top: 1px solid var(--border);
    padding: 4rem 1.5rem 1.5rem;
}

.footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
}

.footer__brand p.lexend-regular {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.6;
    max-width: 320px;
}

.footer__logo {
    font-size: 1.6rem;
    margin: 0 0 0.8rem;
}

.footer__col h4 {
    font-family: "Lexend", sans-serif;
    font-weight: 600;
    color: #fff;
    font-size: 0.95rem;
    margin: 0 0 1rem;
}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.footer__col a {
    font-size: 0.88rem;
    opacity: 0.8;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.footer__col a:hover {
    opacity: 1;
    color: var(--accent);
}

.footer__copy {
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.6;
    margin: 3rem 0 0;
}

/* -------------------- Scroll reveal -------------------- */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.features .feature-card.reveal:nth-child(2) {
    transition-delay: 0.1s;
}

.features .feature-card.reveal:nth-child(3) {
    transition-delay: 0.2s;
}

.features .feature-card.reveal:nth-child(4) {
    transition-delay: 0.3s;
}

/* -------------------- Logo letter reveal -------------------- */

.letter-reveal {
    display: inline-block;
    font-family: inherit;
    opacity: 0;
    transform: translateY(20px);
    animation: letterReveal 0.5s ease forwards;
}

@keyframes letterReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        transition: none;
        opacity: 1;
        transform: none;
    }

    .letter-reveal {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* -------------------- Responsive -------------------- */

@media (max-width: 900px) {
    .footer__inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 860px) {
    .navbar__burger {
        display: flex;
    }

    .navbar__nav {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(75vw, 320px);
        background-color: #12181f;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 2rem;
        padding: 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        border-left: 1px solid var(--border);
    }

    .navbar__nav a {
        font-size: 1.1rem;
    }

    .nav-toggle:checked ~ .navbar .navbar__nav {
        transform: translateX(0);
    }

    .nav-toggle:checked ~ .navbar .navbar__burger span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle:checked ~ .navbar .navbar__burger span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle:checked ~ .navbar .navbar__burger span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero {
        text-align: center;
        justify-content: center;
    }

    .hero__content {
        text-align: center;
    }

    .store-buttons {
        justify-content: center;
    }

    .section_card_premium {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;

}
}

@media (max-width: 600px) {
    section {
        padding: 4rem 1.2rem;
    }

    .hero__content h1 {
        font-size: 2.4rem;
    }

    .hero__content h2 {
        font-size: 1.15rem;
    }

    .phone {
        width: 220px;
        height: 450px;
    }

    .footer__inner {
        grid-template-columns: 1fr;
    }
}
