.page-home .lang-toolbar {
    padding-top: calc(var(--header-height) + 0.5rem);
}

/* --- Hero: emotion first --- */
.hero {
    color: white;
    padding: 2rem 2rem 4rem;
    text-align: center;
}

.hero-inner {
    max-width: var(--layout-max);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.hero-content { max-width: 640px; }

@media (min-width: 768px) {
    .hero { text-align: left; }
}

.hero-tagline {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.75rem;
    letter-spacing: 0.01em;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 3.75rem);
    margin-bottom: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.08;
}

.hero-sub {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    margin-bottom: 1rem;
    color: var(--text-soft);
    line-height: 1.65;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.hero-platform {
    font-size: clamp(0.95rem, 1.8vw, 1.05rem);
    font-weight: 600;
    color: var(--text-main);
    margin: 0 auto 1.5rem;
    max-width: 520px;
    letter-spacing: 0.01em;
}

.hero-mascot-wrap {
    position: relative;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-mascot-wrap::before {
    content: '';
    position: absolute;
    inset: -45%;
    background: radial-gradient(circle, rgba(255, 184, 77, 0.2) 0%, rgba(0, 122, 255, 0.08) 42%, transparent 72%);
    filter: blur(28px);
    z-index: 0;
}

.hero-mascot {
    position: relative;
    z-index: 1;
    width: clamp(96px, 16vw, 128px);
    height: auto;
    filter: drop-shadow(0 8px 24px rgba(255, 184, 77, 0.22));
    animation: mascot-float 4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .hero-mascot { animation: none; }
}

@media (min-width: 768px) {
    .hero-inner {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
        align-items: center;
        gap: 3rem;
    }

    .hero-content {
        flex: 1;
        max-width: 560px;
        text-align: left;
    }

    .hero-sub,
    .hero-platform {
        margin-left: 0;
        margin-right: 0;
    }

    .hero-content .cta-buttons { justify-content: flex-start; }

    .hero-content .scroll-hint { align-items: flex-start; }

    .hero-mascot-wrap {
        flex-shrink: 0;
        min-width: clamp(140px, 22vw, 220px);
    }

    .hero-mascot {
        width: clamp(140px, 18vw, 200px);
    }
}

/* --- Recognition / pain --- */
.pain-section {
    padding: 4rem 2rem;
    max-width: var(--layout-max);
    margin: 0 auto;
}

.pain-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.pain-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    font-size: 1.05rem;
    color: var(--text-soft);
    line-height: 1.55;
    position: relative;
    overflow: hidden;
}

.pain-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--accent);
    opacity: 0.7;
}

.pain-card strong { color: var(--text-main); font-weight: 600; }

.pain-closer {
    text-align: center;
    margin-top: 2rem;
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.pain-closer em {
    color: var(--accent);
    font-style: normal;
    font-weight: 600;
}

/* --- Connect loop --- */
.connect-section {
    padding: 4rem 2rem;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 122, 255, 0.06) 50%, transparent 100%);
}

.connect-inner {
    max-width: var(--layout-max);
    margin: 0 auto;
}

.connect-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
    position: relative;
}

.connect-step {
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem 1.25rem 1.5rem;
}

.connect-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(0, 122, 255, 0.15);
    color: var(--primary-glow);
    font-weight: 800;
    font-size: 0.85rem;
    margin-bottom: 0.85rem;
}

.connect-step:nth-child(2) .connect-step-num {
    background: rgba(255, 184, 77, 0.15);
    color: var(--accent);
}

.connect-step:nth-child(3) .connect-step-num {
    background: rgba(88, 86, 214, 0.15);
    color: #9D9BF5;
}

.connect-step h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.connect-step p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.connect-arrow {
    display: none;
}

/* --- Remi spotlight --- */
.remi-section {
    padding: 4rem 2rem 5rem;
    max-width: 680px;
    margin: 0 auto;
}

.remi-chat {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.remi-chat-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
}

.remi-chat-header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(255, 184, 77, 0.35);
    box-shadow: 0 4px 12px rgba(255, 184, 77, 0.15);
}

.remi-chat-header-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.2;
}

.remi-chat-header-role {
    font-size: 0.8rem;
    color: var(--text-soft);
    margin-top: 0.1rem;
}

.remi-message {
    display: flex;
    align-items: flex-end;
    gap: 0.55rem;
    align-self: flex-start;
    max-width: 94%;
}

.remi-message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 184, 77, 0.3);
}

.remi-message .remi-bubble--remi {
    flex: 1;
    max-width: none;
    align-self: stretch;
}

.remi-bubble {
    max-width: 88%;
    padding: 1rem 1.2rem;
    border-radius: 18px;
    font-size: 0.98rem;
    line-height: 1.5;
}

.remi-bubble--user {
    align-self: flex-end;
    background: var(--bg-panel);
    color: var(--text-soft);
    border-bottom-right-radius: 4px;
}

.remi-bubble--remi {
    align-self: flex-start;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.2) 0%, rgba(88, 86, 214, 0.15) 100%);
    border: 1px solid rgba(0, 122, 255, 0.25);
    color: var(--text-main);
    border-bottom-left-radius: 4px;
}

.remi-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-glow);
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.remi-label-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 6px var(--success);
}

/* --- Screenshot --- */
.screenshots {
    padding: 2rem 2rem 5rem;
}

.screenshots-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.screenshots-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.25) 0%, rgba(255, 184, 77, 0.1) 50%, transparent 70%);
    filter: blur(60px);
    z-index: 0;
}

.app-image {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 1;
}

/* --- Features --- */
.features {
    padding: 4rem 2rem 5rem;
    max-width: var(--layout-max);
    margin: 0 auto;
}

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

.feature-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-faint);
    transition: border-color var(--transition-base), transform var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 122, 255, 0.25);
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-weight: 700;
}

.feature-card p { color: var(--text-muted); font-size: 0.92rem; }

.feature-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.85rem;
    background: rgba(0, 122, 255, 0.12);
    color: var(--primary-glow);
}

/* --- Story teaser --- */
.story {
    padding: 4rem 2rem;
    max-width: var(--layout-max);
    margin: 0 auto;
    text-align: center;
}

.story-banner {
    background: linear-gradient(155deg, rgba(0, 122, 255, 0.1) 0%, rgba(255, 184, 77, 0.08) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.story-banner .brand-mascot,
.story-banner .meerkat-watch {
    width: 100px;
    height: auto;
    animation: none;
    display: block;
    background: transparent;
    filter: drop-shadow(0 10px 28px rgba(255, 184, 77, 0.22));
}

.story-banner-quote {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.02em;
    max-width: 520px;
    line-height: 1.35;
}

.story-banner p {
    color: var(--text-muted);
    max-width: 480px;
    font-size: 1rem;
}

/* --- Closing CTA --- */
.closing-cta {
    padding: 5rem 2rem 6rem;
    text-align: center;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 184, 77, 0.05) 100%);
}

.closing-cta-mascot {
    width: clamp(88px, 16vw, 120px);
    height: auto;
    margin: 0 auto 1.25rem;
    display: block;
    filter: drop-shadow(0 10px 28px rgba(255, 184, 77, 0.22));
}

.closing-cta h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.closing-cta p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

.closing-promise {
    font-size: 1.1rem;
    color: var(--text-soft);
    margin-bottom: 2rem;
    font-style: italic;
}

/* --- People section --- */
.people-section {
    padding: 5rem 2rem;
    max-width: var(--layout-max);
    margin: 0 auto;
    background: linear-gradient(180deg, transparent 0%, rgba(88, 86, 214, 0.06) 40%, transparent 100%);
}

.people-five {
    text-align: center;
    max-width: 920px;
    margin: 0 auto 3rem;
    padding: 2rem 1.5rem 2.25rem;
    background: linear-gradient(155deg, rgba(88, 86, 214, 0.08) 0%, rgba(0, 122, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    overflow: visible;
}

.people-five-quote {
    font-size: 1.05rem;
    color: var(--text-soft);
    font-style: italic;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.people-five-visual {
    display: block;
    width: 100%;
    max-width: 520px;
    margin: 0 auto 1.25rem;
    padding: 0.25rem 0;
}

.people-five-svg {
    width: 100%;
    height: auto;
    display: block;
}

.people-five-visual img {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 12px 40px rgba(255, 184, 77, 0.18));
}

.remi-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.meerkat-watch {
    width: 100px;
    height: auto;
    animation: none;
    filter: drop-shadow(0 8px 24px rgba(255, 184, 77, 0.2));
}

.people-slot {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.people-slot--filled {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
}

.people-slot--empty {
    border: 2px dashed rgba(88, 86, 214, 0.45);
    color: rgba(88, 86, 214, 0.7);
    background: rgba(88, 86, 214, 0.06);
}

.people-five-caption {
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

.people-feature {
    background: var(--bg-card);
    border: 1px solid var(--border-faint);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: border-color var(--transition-base);
}

.people-feature:hover {
    border-color: rgba(88, 86, 214, 0.3);
}

.people-feature h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
    color: var(--text-main);
}

.people-feature p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.people-feature-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(88, 86, 214, 0.12);
    color: #9D9BF5;
}

.people-feature-icon svg {
    width: 1.4rem;
    height: 1.4rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.people-privacy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
}

@media (min-width: 900px) {
    .connect-steps::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 10%;
        right: 10%;
        height: 2px;
        background: linear-gradient(90deg, transparent, rgba(0, 122, 255, 0.3), rgba(255, 184, 77, 0.3), transparent);
        transform: translateY(-50%);
        z-index: 0;
    }

    .connect-step { position: relative; z-index: 1; }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .pain-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .pain-card:last-child {
        grid-column: 1 / -1;
        max-width: calc(50% - 0.5rem);
        justify-self: center;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .people-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .lang-toggle button {
        min-height: 44px;
        min-width: 44px;
        padding: 0.55rem 1rem;
    }
}

@media (max-width: 1024px) {
    .hero {
        padding: 1.5rem max(1.25rem, var(--safe-left)) 3rem max(1.25rem, var(--safe-right));
    }

    .pain-section,
    .features,
    .people-section,
    .story,
    .closing-cta {
        padding-left: max(1.25rem, var(--safe-left));
        padding-right: max(1.25rem, var(--safe-right));
    }

    .page-home .lang-toolbar {
        padding-left: max(1.25rem, var(--safe-left));
        padding-right: max(1.25rem, var(--safe-right));
    }
}

@media (max-width: 768px) {
    .connect-steps { grid-template-columns: 1fr; }
    .app-image { border-radius: 16px; }

    .pain-cards { grid-template-columns: 1fr; }
    .pain-card:last-child { max-width: none; grid-column: auto; }
    .features-grid { grid-template-columns: 1fr; }
    .people-features { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .feature-card:hover { transform: none; }
    .btn-primary:hover { transform: none; }
}
