/* ============================================
   Nihao Bridge — Landing Pages
   Design: Clean SaaS, warm neutrals, cyan accent
   ============================================ */


/* ── Tokens ────────────────────────────────── */

:root {
    --font-display: 'Outfit', sans-serif;
    --color-bg: #fafaf9;
    --color-bg-alt: #f5f5f4;
    --color-text: #1c1917;
    --color-text-secondary: #57534e;
    --color-text-muted: #a8a29e;
    --color-accent: #0891b2;
    --color-accent-hover: #0e7490;
    --color-accent-light: #f0fdfa;
    --color-border: #e7e5e4;
}


/* ── Landing typography ────────────────────── */

.landing-heading {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.landing-heading-xl {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--color-text);
    letter-spacing: -0.035em;
    line-height: 1.1;
    font-size: clamp(2.25rem, 5vw, 3.75rem);
}

.landing-heading-lg {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.025em;
    line-height: 1.2;
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
}

.landing-body {
    color: var(--color-text-secondary);
    line-height: 1.7;
    font-size: 1.05rem;
}

.landing-small {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
}


/* ── Scroll animations ────────────────────── */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-delay-1 { transition-delay: 0.08s; }
.animate-delay-2 { transition-delay: 0.16s; }
.animate-delay-3 { transition-delay: 0.24s; }
.animate-delay-4 { transition-delay: 0.32s; }


/* ── Buttons ───────────────────────────────── */

.btn-cyan {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--color-accent);
    color: white;
    padding: 12px 24px;
    font-family: var(--font-display);
    font-size: 0.925rem;
    font-weight: 600;
    border-radius: 8px;
    transition: background-color 0.2s ease, transform 0.15s ease;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.btn-cyan:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-1px);
    color: white;
}

.btn-cyan:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    color: var(--color-text);
    padding: 12px 24px;
    font-family: var(--font-display);
    font-size: 0.925rem;
    font-weight: 600;
    border-radius: 8px;
    border: 1.5px solid var(--color-border);
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
    text-decoration: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: var(--color-bg-alt);
    border-color: #d6d3d1;
    transform: translateY(-1px);
    color: var(--color-text);
}


/* ── Header ────────────────────────────────── */

.landing-header {
    background: rgba(250, 250, 249, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    height: 64px;
}

/* Center nav links on the full page width, buttons to the right */
@media (min-width: 1024px) {
    .landing-header .collapsable-header > div:first-child {
        position: fixed;
        left: 50%;
        top: 0;
        height: 64px;
        transform: translateX(-50%);
        z-index: 51;
        display: flex;
        align-items: center;
    }
    .landing-header .collapsable-header > div:last-child {
        margin-left: auto;
    }
}


/* ── Footer ────────────────────────────────── */

.landing-footer {
    border-top: 1px solid var(--color-border);
    background-color: var(--color-bg);
    padding: 48px 5% 32px;
}

.landing-footer a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.landing-footer a:hover {
    color: var(--color-text);
}


/* ── Section backgrounds ──────────────────── */

.section-white {
    background-color: var(--color-bg);
}

.section-alt {
    background-color: var(--color-bg-alt);
}


/* ── Feature row (non-card layout) ─────────── */

.feature-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 28px 0;
    border-bottom: 1px solid var(--color-border);
}

.feature-row:last-child {
    border-bottom: none;
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-color: var(--color-accent-light);
    color: var(--color-accent);
    font-size: 1.25rem;
}

.feature-content h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 6px;
}

.feature-content p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}


/* ── Post-type items (left-border accent) ──── */

.post-type-item {
    padding: 28px 32px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    border-left: 3px solid;
    background: var(--color-bg);
    transition: box-shadow 0.25s ease;
}

.post-type-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.post-type-item h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 8px;
}

.post-type-item p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}


/* ── Pricing cards ─────────────────────────── */

.pricing-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    position: relative;
    transition: box-shadow 0.25s ease;
}

.pricing-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.pricing-card-featured {
    border-color: var(--color-accent);
    border-width: 2px;
    box-shadow: 0 4px 20px rgba(8, 145, 178, 0.08);
}

.pricing-card-featured:hover {
    box-shadow: 0 8px 32px rgba(8, 145, 178, 0.12);
}

.pricing-amount {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2.5rem;
    color: var(--color-text);
    letter-spacing: -0.03em;
    line-height: 1;
}

.pricing-amount .currency {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    letter-spacing: 0;
}

.badge-popular {
    background-color: var(--color-accent);
    color: white;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
}


/* ── Check list ────────────────────────────── */

.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 0;
    color: var(--color-text-secondary);
    font-size: 0.925rem;
    line-height: 1.5;
}

.check-list li i {
    color: var(--color-accent);
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 0.9rem;
}


/* ── Steps ─────────────────────────────────── */

.step-row {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 24px 0;
    position: relative;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--color-accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-content h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--color-text);
    margin-bottom: 6px;
}

.step-content p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}


/* ── FAQ items ─────────────────────────────── */

.faq-item {
    padding: 24px 0;
    border-bottom: 1px solid var(--color-border);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.025rem;
    color: var(--color-text);
    margin-bottom: 8px;
}

.faq-item p {
    color: var(--color-text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

.faq-item a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.faq-item a:hover {
    color: var(--color-accent-hover);
}


/* ── Form inputs ───────────────────────────── */

.landing-input {
    padding: 11px 14px;
    background-color: var(--color-bg);
    border-radius: 8px;
    border: 1.5px solid var(--color-border);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-size: 0.95rem;
    color: var(--color-text);
    width: 100%;
}

.landing-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.08);
}

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

.landing-label {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 6px;
    display: block;
}


/* ── Contact info blocks ──────────────────── */

.info-block {
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
}

.info-block:last-child {
    border-bottom: none;
}

.info-block h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text);
    margin-bottom: 8px;
}

.info-block h3 i {
    color: var(--color-accent);
    margin-right: 8px;
}

.info-block p, .info-block a {
    color: var(--color-text-secondary);
    font-size: 0.925rem;
    line-height: 1.6;
}

.info-block a {
    text-decoration: none;
    transition: color 0.2s ease;
}

.info-block a:hover {
    color: var(--color-accent);
}


/* ── Included grid items ──────────────────── */

.included-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
}

.included-item i {
    color: var(--color-accent);
    margin-top: 3px;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.included-item strong {
    color: var(--color-text);
    font-family: var(--font-display);
    font-weight: 600;
    display: block;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.included-item p {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.5;
}


/* ── Gradient line (subtle) ────────────────── */

@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gradient-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}


/* ── Pulse dot ─────────────────────────────── */

@keyframes pulseDot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.pulse-dot {
    animation: pulseDot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}


/* ── Responsive ────────────────────────────── */

@media (max-width: 768px) {
    .landing-grid-3 {
        grid-template-columns: 1fr !important;
    }

    .landing-grid-2 {
        grid-template-columns: 1fr !important;
    }

    .btn-cyan, .btn-secondary {
        padding: 11px 20px;
        font-size: 0.9rem;
    }

    .pricing-card {
        padding: 24px;
    }
}
