.hero {
    background-color: #ffffff;

    padding-top: 6rem;
    padding-bottom: 4rem;

    text-align: center;
}

.hero-title {
    font-size: clamp(2.4rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-main);
    margin: 0;
    margin-bottom: 2rem;
}

.hero-title span {
    color: var(--purple-main);
    font-weight: 600;
}

.login-btn-hero {
    font-size: 1.2rem;
    padding: .7rem 1.3rem;
    font-weight: 500;
}

/* ================= DEMO ================= */
/* Core layout */
.demo {
    padding: 2rem;
    background-color: #fff;
}

.demo-inner {
    max-width: 56rem;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.demo-label {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;

    color: var(--text-muted);
    text-align: center;
}

.demo-label-secondary {
    margin-top: 2.5rem;
    margin-bottom: 0.8rem;
}

/* Fake search input (typing will appear here) */
.demo-search-input {
    width: 100%;
    height: 4rem;
    margin-inline: auto;
    padding: 0.2rem 2rem;
    font-size: 1.5rem;
    border-radius: 999px;
    border: 1px solid var(--border-soft, #ddd);
    background-color: #f6f6f6;
}

/* Citation stage */
.citation-stage {
    position: relative;
    display: block;
    padding-top: 4rem;
    padding-bottom: 8rem;
}

/* Large template text (blanks) */
.citation-template {
    text-align: center;
    font-size: clamp(1.25rem, 2.6vw, 2rem);
    color: rgba(0, 0, 0, 0.45);
    padding: 1.5rem 1rem;
    position: relative;
    user-select: none;
}

.slot {
    display: inline-block;
}

/* Floating label that moves */
.floating {
    position: absolute;
    color: var(--text-main);

    padding: 0.6rem 0.7rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1.1rem;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    transition: transform 0.9s cubic-bezier(.2, .9, .2, 1), opacity 0.3s ease;
    will-change: transform, opacity;
}

.fname {
    left: 15%;
    bottom: 4rem;
    background: #c9e4ff
}

.fvolume {
    left: 25%;
    top: 0.5rem;
    background: #ffe0e0
}

.freporter {
    left: 40%;
    bottom: 2rem;
    background: #e3ffed
}

.fpage {
    left: 60%;
    top: 0rem;
    background: #d7fcff
}

.fcourt {
    left: 70%;
    bottom: 3rem;
    background: #fff2de
}

.fdate {
    left: 85%;
    top: .5rem;
    background: #f4ddff
}

/* Final assembled citation container (hidden until assembled) */
.citation-final {
    text-align: center;
    font-size: clamp(1rem, 1.8vw, 1.1rem);
    font-weight: 600;
    color: var(--text-main, #1f2933);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

/* State when name piece is moving; JS toggles .moving and .assembled classes */
.citation-stage.moving .floating {
    opacity: 1;
}

.citation-stage.assembled .floating {
    opacity: 0;
}

.citation-stage.assembled .citation-final {
    opacity: 1;
}

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .floating {
        transition: none !important;
    }

    .citation-final {
        transition: none !important;
    }
}



/* ================= FEATURES ================= */
.features {
    padding: 5rem 2rem;
    background-color: var(--background-soft);
}

.features-inner {
    max-width: 80rem;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 3rem;
}

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

.feature-image {
    flex: 0 0 65%;
}

.feature-image img {
    width: 100%;
    height: 14rem;
    /* controls how “short” it feels */
    object-fit: cover;
    border-radius: 1.25rem;
    box-shadow: 0 12px 30px rgba(147, 107, 240, 0.15);
    transition: transform 0.4s ease;
}

.feature-row:hover img {
    transform: translateY(-4px);
}

.feature-text {
    flex: 1;
}

.feature-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.feature-text p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 32rem;
}

.login-btn-feature {
    font-size: 1rem;
    padding: .6rem 1.1rem;
    font-weight: 500;
}

/* ================= PRICING ================= */

.pricing {
    padding: 6rem 2rem;
    background-color: #ffffff;
}
.pricing-inner {
    max-width: 80rem;
    margin-inline: auto;
    text-align: center;
    opacity: 1;
}
.pricing-title {
    font-size: clamp(2rem, 3vw, 2.4rem);
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}
.pricing-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 4rem;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 2.5rem;
    align-items: stretch;
}
.pricing-card {
    background-color: #ffffff;
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    box-shadow: 0 14px 40px rgba(147, 107, 240, 0.15);
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
}
.pricing-card.featured {
    background-color: #f7f4ff;
    transform: translateY(-0.5rem);
}
.plan-badge {
    position: absolute;
    top: -0.75rem;
    background-color: var(--purple-main);
    color: #ffffff;
    padding: 0.35rem 0.9rem;
    font-size: 0.7rem;
    font-weight: 500;
    border-radius: 999px;
}
.plan-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.plan-price {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--purple-main);
}
.plan-period {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}
.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.plan-features li {
    margin-bottom: 0.75rem;
}
.plan-button {
    border-radius: 999px;
    padding: 0.75rem 2rem;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.plan-button.primary {
    background-color: var(--purple-main);
    color: #ffffff;
}
.plan-button.secondary {
    background-color: #e9e2ff;
    color: var(--purple-main);
}
.plan-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(147, 107, 240, 0.3);
}


/* ================= FAQ ================= */
.faq {
    padding: 6rem 2rem;
    background-color: var(--background-soft);
}

.faq-inner {
    max-width: 56rem;
    margin-inline: auto;
    text-align: center;
}
.faq-title {
    font-size: clamp(2rem, 3vw, 2.4rem);
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}
.faq-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 4rem;
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    text-align: left;
}
.faq-item {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 1.25rem;
    box-shadow: 0 10px 30px rgba(147, 107, 240, 0.12);
}
.faq-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}
.faq-answer {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* ================= CTA ================= */

.signup-cta {
    position: relative;
    padding: 6rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.signup-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;

    filter: grayscale(20%) brightness(100%);
}

.signup-card {
    position: relative;
    z-index: 1;

    max-width: 40rem;
    width: 100%;

    background-color: #ffffff;
    border-radius: 1.75rem;

    padding: 3rem 2.5rem;
    text-align: center;

    box-shadow: 0 20px 50px rgba(147, 107, 240, 0.2);
    animation: fadeUp 0.6s ease forwards;

    opacity: .85;
}

.signup-title {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.signup-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.login-btn-cta {
    font-size: 1.2rem;
    padding: .7rem 1.3rem;
    font-weight: 500;
}

