@font-face {
    font-family: "Feather Bold";
    src: url("../fonts/feather-bold.woff2") format("woff2"),
         url("https://db.onlinewebfonts.com/t/14936bb7a4b6575fd2eee80a3ab52cc2.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --yellow-light: #FDD541;
    --yellow-dark: #FCBF18;
    --text: #3d2915;
    --text-muted: rgba(30, 30, 47, 0.5);
    --text-subtle: rgba(30, 30, 30, 0.4);
    --card-cream: #FFF8E0;
    --card-yellow: #FEF5D0;
    --card-peach: #FFF3C8;
    --footer-bg: #FFF8E0;
    --border: #EDEDF2;
    --white: #fff;
    --font: "Feather Bold", "Nunito", sans-serif;
    --max-width: 1200px;
    --header-height: 88px;
    --radius-pill: 41px;
    --radius-card: 64px;
    --radius-lg: 70px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    font-weight: 700;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 100;
    padding: 12px 20px;
    border-radius: 24px;
    background: var(--yellow-dark);
    color: var(--text);
    text-transform: lowercase;
}

.skip-link:focus {
    top: 16px;
}

img {
    display: block;
    max-width: 100%;
}

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

button,
input {
    font: inherit;
}

.page {
    display: flex;
    justify-content: center;
    padding: 24px 16px;
}

@media (min-width: 640px) {
    .page {
        padding: 24px 40px;
    }
}

.main {
    display: flex;
    flex-direction: column;
    gap: 64px;
    width: 100%;
    max-width: var(--max-width);
}

/* Header */
.header-wrap {
    position: fixed;
    top: 13px;
    left: 24px;
    right: 24px;
    z-index: 10;
    display: flex;
    justify-content: center;
}

@media (min-width: 640px) {
    .header-wrap {
        left: 54px;
        right: 54px;
    }
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1172px;
    height: var(--header-height);
    padding: 16px 16px 16px 24px;
    background: var(--white);
    border-radius: var(--radius-pill);
}

.header .coming-soon {
    margin-left: 20px;
    border: none;
    padding: 0;
    background: none;
    cursor: pointer;
    font: inherit;
    transition: transform 0.15s ease;
}

.header .coming-soon:hover {
    transform: scale(1.03);
}

.header .coming-soon:active {
    transform: scale(0.98);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand__logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
}

.brand__name {
    font-size: clamp(22px, 4vw, 26px);
    text-transform: lowercase;
}

.btn {
    border: none;
    outline: none;
    cursor: pointer;
    font-family: var(--font);
    font-weight: 700;
    text-transform: lowercase;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
    transform: scale(0.98);
}

.btn--nav {
    padding: 16px 24px;
    border-radius: 32px;
    background: var(--yellow-dark);
    color: var(--text);
    font-size: 16px;
    line-height: 24px;
}

.btn--nav:hover,
.btn--submit:hover {
    box-shadow: 0 6px 20px rgba(38, 38, 38, 0.18);
}

.btn--submit {
    padding: 16px 32px;
    border-radius: 32px;
    background: var(--yellow-dark);
    color: var(--text);
    font-size: 16px;
    white-space: nowrap;
}

/* Hero */
.hero {
    margin-top: calc(var(--header-height) + 1px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 48px;
    min-height: 380px;
    padding: 72px 24px;
    border-radius: var(--radius-lg);
    background: url("../images/bg.png") center / cover no-repeat;
    text-align: center;
    overflow: hidden;
}

@media (min-width: 640px) {
    .hero {
        min-height: 625px;
        padding: 96px 24px;
    }
}

.hero__title {
    margin: 0;
    font-size: clamp(40px, 8vw, 48px);
    line-height: 1.05;
    text-transform: lowercase;
}

.hero__subtitle,
.hero__tagline {
    margin: 0;
    max-width: 560px;
    font-size: clamp(16px, 2.5vw, 18px);
    line-height: 1.5;
    text-transform: lowercase;
    opacity: 0.92;
}

.waitlist {
    width: 100%;
    max-width: 520px;
    position: relative;
}

.waitlist__hp {
    position: absolute;
    left: -9999px;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.waitlist__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.waitlist__form.is-exiting {
    animation: waitlist-out 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes waitlist-out {
    to {
        opacity: 0;
        transform: translate3d(0, -14px, 0) scale(0.98);
    }
}

@media (min-width: 640px) {
    .waitlist__form {
        flex-direction: row;
        align-items: stretch;
    }
}

.waitlist__input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    border-radius: 32px;
    background: var(--white);
    color: var(--text);
    font-size: 16px;
    box-shadow: 0 4px 20px rgba(38, 38, 38, 0.08);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.waitlist__input.is-error,
.waitlist__input.is-shake {
    animation: input-shake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes input-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.waitlist__input::placeholder {
    color: #bbbcbf;
    text-transform: lowercase;
}

.waitlist__input:focus {
    box-shadow: 0 4px 24px rgba(38, 38, 38, 0.12);
}

.btn--submit.is-pressed {
    transform: scale(0.96);
}

.btn--submit.is-loading {
    pointer-events: none;
    animation: btn-loading 0.9s ease-in-out infinite;
}

@keyframes btn-loading {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.72; }
}

.btn--submit:disabled {
    cursor: not-allowed;
}

.waitlist__success {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 16px 24px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    text-transform: lowercase;
    box-shadow: 0 8px 32px rgba(38, 38, 38, 0.1);
}

.waitlist__success.is-visible {
    display: flex;
    animation: success-pop 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes success-pop {
    0% {
        opacity: 0;
        transform: translate3d(0, 16px, 0) scale(0.92);
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

.waitlist__success-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--yellow-dark);
    color: var(--text);
    animation: check-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}

.waitlist__success-check {
    width: 14px;
    height: 14px;
    display: block;
}

@keyframes check-pop {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

.waitlist__error {
    display: none;
    margin: 12px 0 0;
    font-size: 14px;
    text-transform: lowercase;
    color: #8b3a2a;
}

.waitlist__error.is-visible {
    display: block;
    animation: fade-up 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.waitlist__form.is-hidden {
    display: none;
}

/* Features */
.features {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

@media (min-width: 768px) {
    .features {
        gap: 64px;
    }
}

.feature {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

@media (min-width: 768px) {
    .feature {
        flex-direction: row;
    }

    .feature--reverse {
        flex-direction: row-reverse;
    }
}

.feature__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

@media (min-width: 768px) {
    .feature__content {
        align-items: flex-start;
        text-align: left;
    }
}

.feature__title {
    margin: 0;
    font-size: clamp(36px, 6vw, 48px);
    line-height: 1.1;
    text-transform: lowercase;
}

.feature__desc {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-muted);
}

.feature__image {
    flex: 1;
    width: 100%;
    max-width: 520px;
    height: auto;
    border-radius: var(--radius-lg);
    object-fit: contain;
}

@media (min-width: 768px) {
    .feature__image {
        max-width: 480px;
    }
}

/* Testimonials */
.testimonials {
    text-align: center;
}

.section-title {
    margin: 0;
    font-size: clamp(36px, 6vw, 48px);
    line-height: 1.1;
    text-transform: lowercase;
}

.section-subtitle {
    margin: 16px 0 32px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-subtle);
}

.testimonials__grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

@media (min-width: 1024px) {
    .testimonials__grid {
        flex-direction: row;
        gap: 16px;
        min-height: 263px;
    }
}

.testimonial {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px;
    border-radius: var(--radius-card);
}

.testimonial--1 { background: var(--card-cream); }
.testimonial--2 { background: var(--card-yellow); }
.testimonial--3 { background: var(--card-peach); }

.testimonial__avatar {
    width: 52px;
    height: 52px;
    margin-bottom: 8px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial__author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 20px;
    line-height: 1.4;
}

.testimonial__flag {
    font-size: 20px;
    line-height: 1;
}

.testimonial__meta {
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-subtle);
}

.testimonial__quote {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

/* FAQ */
.faq {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.faq__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 0 16px;
    text-align: center;
}

.faq__subtitle {
    margin: 0;
    max-width: 560px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-subtle);
    letter-spacing: -0.18px;
}

.faq__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 1024px) {
    .faq__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.faq-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 32px 16px;
    min-height: 206px;
    border: 2px solid var(--border);
    border-radius: var(--radius-card);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-card:hover {
    border-color: var(--yellow-dark);
    box-shadow: 0 8px 24px rgba(252, 191, 24, 0.15);
}

.faq-card__icon {
    width: 100px;
    height: 100px;
    margin-bottom: 8px;
}

@media (min-width: 640px) {
    .faq-card__icon {
        width: 120px;
        height: 120px;
    }
}

.faq-card__title {
    margin: 0;
    font-size: 20px;
    line-height: 32px;
    text-align: center;
    text-transform: lowercase;
}

/* Footer */
.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 29px;
    border-radius: var(--radius-lg);
    background: var(--footer-bg);
    font-size: 15px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.5);
}

.footer__logo {
    width: 80px;
    height: 80px;
    border-radius: 16px;
}

.footer__links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer__links a:hover {
    text-decoration: underline;
}

.footer__copy {
    margin: 0;
}

/* Load animations */
@keyframes fade-down {
    from {
        opacity: 0;
        transform: translate3d(0, -18px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translate3d(0, 24px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes hero-bg-in {
    from {
        background-size: 108%;
    }

    to {
        background-size: cover;
    }
}

@keyframes logo-pop {
    0% {
        opacity: 0;
        transform: scale(0.65) rotate(-10deg);
    }

    70% {
        transform: scale(1.06) rotate(2deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

.header-wrap {
    opacity: 0;
    animation: fade-down 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.05s forwards;
}

.brand__logo {
    opacity: 0;
    animation: logo-pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s forwards;
}

.header .coming-soon {
    opacity: 0;
    animation: fade-down 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards;
}

.hero {
    animation: hero-bg-in 1s ease-out forwards;
}

.hero__title {
    opacity: 0;
    animation: fade-up 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards;
}

.hero__tagline {
    opacity: 0;
    animation: fade-up 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.32s forwards;
}

.waitlist {
    opacity: 0;
    animation: fade-up 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

.feature {
    opacity: 0;
    animation: fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.feature:nth-child(1) {
    animation-delay: 0.55s;
}

.feature:nth-child(2) {
    animation-delay: 0.7s;
}

.feature:nth-child(3) {
    animation-delay: 0.85s;
}

.footer {
    opacity: 0;
    animation: fade-up 0.65s cubic-bezier(0.22, 1, 0.36, 1) 1s forwards;
}

@media (prefers-reduced-motion: reduce) {
    .header-wrap,
    .brand__logo,
    .header .coming-soon,
    .hero__title,
    .hero__tagline,
    .waitlist,
    .feature,
    .footer {
        opacity: 1;
        animation: none;
        transform: none;
    }

    .hero {
        animation: none;
    }

    .waitlist__form.is-exiting,
    .waitlist__success.is-visible,
    .waitlist__error.is-visible,
    .waitlist__input.is-error,
    .waitlist__input.is-shake,
    .waitlist__success-icon,
    .btn--submit.is-loading {
        animation: none;
        transform: none;
    }
}
