/* Home page — design tokens, calm & premium */

/* Hero — full-width background banner template */
.home-hero {
    --hero-banner-image: none;
    width: 100%;
    max-width: 100vw;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: min(760px, calc(100vh - 80px));
    min-height: min(760px, calc(100dvh - 80px));
    padding: clamp(1.75rem, 4vw, 3rem) var(--page-padding) clamp(18rem, 30vw, 24rem);
    overflow: hidden;
    background-color: #dff7f3;
    background-image: var(--hero-banner-image);
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
}

.home-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1120px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.home-hero .hero-copy {
    text-align: center;
    width: 100%;
    max-width: 44rem;
    margin: 0 auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
}

.home-hero .hero-title {
    color: var(--text-primary);
    font-size: clamp(2.4rem, 6vw, 4.35rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.045em;
    margin-bottom: 1rem;
    text-wrap: balance;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.home-hero .hero-subtitle {
    color: #334155;
    font-size: clamp(1.05rem, 2.2vw, 1.3rem);
    font-weight: 400;
    line-height: 1.55;
    margin-bottom: 1.6rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
    text-wrap: balance;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.home-hero .hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1rem;
}

.home-hero .hero-actions a {
    text-decoration: none;
}

.home-hero .hero-btn-primary {
    background: var(--accent);
    color: #ffffff;
    border: none;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 18px rgba(13, 148, 136, 0.18);
    transition: background var(--duration) var(--ease),
                color var(--duration) var(--ease),
                transform var(--duration) var(--ease);
}

.home-hero .hero-btn-primary:hover {
    background: var(--accent-hover);
    color: #ffffff;
    transform: translateY(-1px);
}

.home-hero .hero-btn-secondary {
    background: rgba(255, 255, 255, 0.88);
    color: var(--accent);
    border: 2px solid rgba(13, 148, 136, 0.55);
    font-weight: 600;
    font-size: 1.05rem;
    padding: 0.8rem 1.85rem;
    border-radius: var(--radius-md);
    transition: background var(--duration) var(--ease),
                border-color var(--duration) var(--ease),
                color var(--duration) var(--ease);
}

.home-hero .hero-btn-secondary:hover {
    background: #f0fdfa;
    border-color: var(--accent);
    color: var(--accent-hover);
}

@media (max-width: 900px) {
    .home-hero {
        min-height: 72vh;
        padding: 2.5rem var(--page-padding) 16rem;
    }

    .home-hero-inner {
        max-width: 42rem;
    }
}

@media (max-width: 600px) {
    .home-hero {
        padding: 2rem var(--page-padding) 13rem;
        background-position: center bottom;
    }

    .home-hero .hero-title {
        font-size: clamp(1.9rem, 8vw, 2.35rem);
    }

    .home-hero .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .home-hero .hero-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 20rem;
        margin: 0 auto;
    }

    .home-hero .hero-btn-primary,
    .home-hero .hero-btn-secondary {
        width: 100%;
        text-align: center;
        min-height: 44px;
    }
}

/* How it works / Steps */
/* In-page links (#how-it-works): offset for fixed navbar (see main padding-top in style.css). */
#how-it-works {
    scroll-margin-top: calc(80px + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
    #how-it-works.scroll-target-highlight {
        animation: how-it-works-scroll-highlight 1.1s ease-out;
    }
}

@keyframes how-it-works-scroll-highlight {
    0% {
        box-shadow: inset 0 0 0 0 rgba(13, 148, 136, 0);
    }
    35% {
        box-shadow: inset 0 0 0 2px rgba(13, 148, 136, 0.28);
    }
    100% {
        box-shadow: inset 0 0 0 0 rgba(13, 148, 136, 0);
    }
}

.steps-hero {
    padding: 4rem var(--page-padding) 3rem;
    background: #f0fdfa;
    border-top: none;
}

.steps-content {
    max-width: 950px;
    margin: 0 auto;
}

.steps-hero .steps-title {
    color: var(--text-primary);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    margin-bottom: clamp(0.75rem, 2vw, 1rem);
    text-align: center;
}

.steps-hero .steps-subtitle {
    color: var(--accent-hover);
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 700;
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    text-align: center;
}

.steps-hero .steps-desc {
    color: var(--text-secondary);
    font-size: clamp(0.9rem, 2.5vw, 1.25rem);
    font-weight: 400;
    margin-bottom: clamp(2rem, 4vw, 2.5rem);
    line-height: 1.6;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-wrap: balance;
}

.steps-hero .steps-desc-lead {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-bottom: 0.45rem;
    font-size: clamp(1rem, 2.2vw, 1.3rem);
}

.steps-hero .steps-desc-detail {
    display: block;
    color: var(--text-secondary);
    font-size: clamp(0.95rem, 1.9vw, 1.15rem);
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step-card {
    display: flex;
    align-items: center;
    flex-direction: row;
    background: #ffffff;
    border: 1px solid rgba(13, 148, 136, 0.14);
    border-radius: var(--radius-md);
    padding: 1.5rem 2rem;
    gap: 1.5rem;
    transition: border-color var(--duration) var(--ease),
                box-shadow var(--duration) var(--ease),
                transform var(--duration) var(--ease);
    text-align: left;
    cursor: default;
}

.step-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.step-card:focus-within {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.step-svg-icon {
    width: clamp(3rem, 8vw, 4rem);
    height: auto;
    flex-shrink: 0;
}

.step-svg-icon svg {
    width: 100%;
    height: auto;
}

.step-svg-icon [stroke] {
    stroke: var(--accent);
}

.step-title {
    color: var(--accent);
    font-weight: 700;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 0.25rem;
}

.step-desc {
    color: var(--text-secondary);
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    line-height: 1.4;
}

.step-text {
    text-align: left;
}

@media (max-width: 600px) {
    .steps-hero {
        padding: 2.5rem var(--page-padding) 2rem;
    }
    .step-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
        padding: 1.25rem var(--page-padding);
    }
    .step-text {
        text-align: center;
    }
    .steps-desc {
        line-height: 1.5;
    }
    .steps-desc-lead {
        margin-bottom: 0.35rem;
    }
}

@media (max-width: 768px) {
    .steps-hero {
        padding-top: 3rem;
    }
}

/* Why Walleza */
.why-walleza {
    background: var(--bg-page);
    padding: 4rem var(--page-padding) 3rem;
    border-top: 1px solid var(--border);
}

.why-walleza-container {
    max-width: 950px;
    margin: 0 auto;
    text-align: center;
}

.why-title {
    color: var(--text-primary);
    font-size: clamp(1.75rem, 4vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.why-subtitle {
    color: var(--text-secondary);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

.why-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.why-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 2rem 1.5rem;
    flex: 1 1 220px;
    max-width: 300px;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow var(--duration) var(--ease),
                transform var(--duration) var(--ease),
                border-color var(--duration) var(--ease);
}

.why-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--accent);
}

.why-card:focus-within {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.why-icon {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
}

.why-card-title {
    color: var(--text-primary);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.why-card-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.4;
}

@media (max-width: 900px) {
    .why-cards {
        gap: 1.25rem;
    }
    .why-walleza {
        padding: 2.5rem var(--page-padding) 2rem;
    }
}

@media (max-width: 600px) {
    .why-cards {
        flex-direction: column;
        align-items: center;
    }
    .why-card {
        width: 100%;
        max-width: 350px;
        min-width: unset;
        padding: 1.5rem 1rem;
    }
    .why-title {
        font-size: 1.5rem;
    }
    .why-subtitle {
        font-size: 1rem;
    }
}

/* CTA section — calm block (soft accent, no dark gradient) */
.cta-section {
    background: var(--accent);
    padding: 4rem var(--page-padding);
    display: flex;
    justify-content: center;
    align-items: center;
}

.cta-container {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    color: #FFFFFF;
}

.cta-rocket {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
}

.cta-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: #FFFFFF;
}

.cta-subtitle {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.cta-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cta-input {
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    font-size: 1rem;
    font-family: var(--font-sans);
    outline: none;
    min-width: 200px;
    flex: 1 1 180px;
    max-width: 260px;
    min-height: 44px;
    transition: border-color var(--duration) var(--ease),
                box-shadow var(--duration) var(--ease);
}

.cta-input:focus {
    border-color: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.cta-input::placeholder {
    color: var(--text-muted);
}

.cta-btn {
    background: #FFFFFF;
    color: var(--accent);
    border: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 2rem;
    min-height: 44px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-sans);
    transition: background var(--duration) var(--ease),
                color var(--duration) var(--ease),
                transform var(--duration) var(--ease);
}

.cta-btn:hover {
    background: var(--bg-page);
    color: var(--accent-hover);
    transform: translateY(-1px);
}

.cta-btn:focus-visible {
    outline: 2px solid #FFFFFF;
    outline-offset: 2px;
}

@media (max-width: 600px) {
    .cta-section {
        padding: 2.5rem var(--page-padding);
    }
    .cta-title {
        font-size: 1.4rem;
    }
    .cta-form {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    .cta-input {
        width: 100%;
        max-width: none;
    }
    .cta-btn {
        width: 100%;
    }
}

/* Waitlist feedback modal */
.waitlist-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.38);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 220ms ease, visibility 220ms ease;
}

.waitlist-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.waitlist-modal {
    width: min(100%, 420px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.22);
    padding: 1.2rem 1.25rem 1.35rem;
    transform: translateY(14px) scale(0.97);
    opacity: 0;
}

.waitlist-modal-overlay.is-open .waitlist-modal {
    animation: waitlistModalIn 260ms ease forwards;
}

.waitlist-modal-overlay.is-closing .waitlist-modal {
    animation: waitlistModalOut 220ms ease forwards;
}

@keyframes waitlistModalIn {
    from {
        transform: translateY(14px) scale(0.97);
        opacity: 0;
    }
    55% {
        transform: translateY(-2px) scale(1.01);
        opacity: 1;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes waitlistModalOut {
    from {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    to {
        transform: translateY(8px) scale(0.98);
        opacity: 0;
    }
}

.waitlist-modal-close {
    border: 0;
    background: var(--bg-page);
    color: #64748b;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
    margin-left: auto;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    transition: transform 160ms ease, color 160ms ease, background 160ms ease;
}

.waitlist-modal-close:hover {
    color: #1e293b;
    background: #ffffff;
    transform: rotate(90deg);
}

.waitlist-modal-logo {
    display: block;
    width: 122px;
    max-width: 45%;
    height: auto;
    margin: 0 auto 0.85rem;
}

.waitlist-modal-icon {
    width: 3.15rem;
    height: 3.15rem;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: grid;
    place-items: center;
    color: var(--accent);
    font-size: 1.25rem;
    font-weight: 700;
    background: #ffffff;
    border: 1.5px solid var(--border);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.waitlist-modal-icon.success {
    color: var(--accent);
}

.waitlist-modal-icon.error {
    color: var(--text-secondary);
}

.waitlist-modal-title {
    color: var(--text-primary);
    text-align: center;
    font-size: clamp(1.45rem, 3vw, 1.9rem);
    line-height: 1.15;
    margin-bottom: 0.55rem;
}

.waitlist-modal-text {
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.5;
    font-size: 1.04rem;
    margin: 0 0 1.1rem;
}

.waitlist-modal-action {
    width: 100%;
    min-height: 44px;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.9rem 2.2rem;
    color: #FFFFFF;
    background: var(--accent);
    transition: background var(--duration) var(--ease),
                color var(--duration) var(--ease),
                box-shadow var(--duration) var(--ease),
                transform var(--duration) var(--ease);
}

.waitlist-modal-action:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.waitlist-modal-action:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.waitlist-modal-action:active {
    transform: translateY(0);
}

.waitlist-modal-action.error {
    background: var(--text-primary);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

@media (max-width: 520px) {
    .waitlist-modal {
        border-radius: 16px;
        padding: 1rem;
    }

    .waitlist-modal-title {
        font-size: 1.5rem;
    }

    .waitlist-modal-text {
        font-size: 1rem;
    }
}
