/* ── onenote2notion 项目主页 — "The Bridge" ── */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@400;500;600;700&display=swap');

/* ── Token System ── */
:root {
    --hp-bg: #FAFBFC;
    --hp-steel: #111827;
    --hp-bridge: #2563EB;
    --hp-bridge-glow: rgba(37, 99, 235, 0.12);
    --hp-violet: #7C3AED;
    --hp-violet-glow: rgba(124, 58, 237, 0.10);
    --hp-mist: #F3F4F6;
    --hp-border: #E5E7EB;
    --hp-trust: #059669;
    --hp-trust-dim: rgba(5, 150, 105, 0.08);
    --hp-text: #1F2937;
    --hp-text-secondary: #6B7280;
    --hp-text-muted: #9CA3AF;
    --hp-radius: 10px;
    --hp-radius-sm: 6px;
    --hp-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
    --hp-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Reset (homepage scope) ── */
.homepage,
.homepage *,
.homepage *::before,
.homepage *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.homepage {
    font-family: var(--hp-body);
    background: var(--hp-bg);
    color: var(--hp-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ── Nav ── */
.hp-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 32px;
    background: rgba(250, 251, 252, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--hp-border);
}

.hp-nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--hp-steel);
}

.hp-nav-logo img {
    width: 30px;
    height: 30px;
}

.hp-nav-logo span {
    font-family: var(--hp-display);
    font-size: 1.15rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.hp-nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hp-nav-link {
    padding: 7px 16px;
    border-radius: var(--hp-radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--hp-text-secondary);
    text-decoration: none;
    transition: all 0.15s;
}

.hp-nav-link:hover {
    color: var(--hp-steel);
    background: var(--hp-mist);
}

/* ── Language Switcher (globe + dropdown) ── */
.lang-switcher {
    position: relative;
}

.lang-switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border-radius: var(--hp-radius-sm);
    font-size: 0.82rem;
    font-weight: 500;
    font-family: var(--hp-body);
    color: var(--hp-text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.15s;
}

.lang-switch-btn:hover {
    color: var(--hp-steel);
}

.lang-switch-arrow {
    font-size: 9px;
    margin-left: 1px;
    display: inline-block;
    transition: transform 0.2s;
}

.lang-switch-btn[aria-expanded="true"] .lang-switch-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    z-index: 200;
    min-width: 160px;
    padding: 6px;
    border-radius: var(--hp-radius);
    border: 1px solid var(--hp-border);
    background: #fff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10), 0 1px 4px rgba(0, 0, 0, 0.06);
}

.lang-option {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border: none;
    border-radius: 8px;
    background: transparent;
    font-family: var(--hp-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--hp-text-secondary);
    cursor: pointer;
    transition: background 0.15s;
    text-align: left;
}

.lang-option:hover {
    background: var(--hp-mist);
}

.lang-option[aria-selected="true"] {
    font-weight: 700;
    color: var(--hp-bridge);
}

.lang-option-check {
    color: var(--hp-bridge);
    display: none;
}

.lang-option[aria-selected="true"] .lang-option-check {
    display: inline;
}

.hp-nav-cta {
    background: var(--hp-bridge);
    color: #fff !important;
    font-weight: 600;
    margin-left: 8px;
}

.hp-nav-cta:hover {
    background: #1D4ED8;
    color: #fff !important;
}

/* ── Hero ── */
.hp-hero {
    position: relative;
    padding: 56px 32px 72px;
    text-align: center;
    overflow: hidden;
}

.hp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 25% 60%, var(--hp-violet-glow) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 75% 60%, var(--hp-bridge-glow) 0%, transparent 70%);
    pointer-events: none;
}

.hp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    border-radius: 999px;
    background: var(--hp-mist);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--hp-text-secondary);
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.hp-hero-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hp-trust);
    animation: hp-pulse 2s ease-in-out infinite;
}

@keyframes hp-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hp-hero h1 {
    font-family: var(--hp-display);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--hp-steel);
    letter-spacing: -0.02em;
    max-width: 720px;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
}

.hp-hero h1 em {
    font-style: italic;
    color: var(--hp-bridge);
}

.hp-hero-sub {
    font-size: 1.05rem;
    color: var(--hp-text-secondary);
    max-width: 520px;
    margin: 0 auto 36px;
    position: relative;
    z-index: 1;
}

.hp-hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    margin-bottom: 36px;
}

.hp-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 13px 28px;
    border-radius: var(--hp-radius-sm);
    font-family: var(--hp-body);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.18s;
}

.hp-btn-primary {
    background: var(--hp-bridge);
    color: #fff;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3), 0 4px 14px rgba(37, 99, 235, 0.15);
}

.hp-btn-primary:hover {
    background: #1D4ED8;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35), 0 6px 20px rgba(37, 99, 235, 0.2);
}

.hp-btn-ghost {
    background: transparent;
    color: var(--hp-text);
    border: 1.5px solid var(--hp-border);
    font-weight: 500;
}

.hp-btn-ghost:hover {
    border-color: var(--hp-steel);
    background: var(--hp-mist);
}

/* ── Bridge Illustration ── */
.hp-bridge-vis {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0;
    background: linear-gradient(90deg, rgba(124,58,237,0.05) 0%, rgba(37,99,235,0.05) 100%);
    border-radius: var(--hp-radius);
}

.hp-bridge-platform {
    flex: 1;
    padding: 24px 20px 28px;
    border-radius: var(--hp-radius);
    position: relative;
    z-index: 0;
    min-height: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hp-bridge-platform--source {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(124, 58, 237, 0.03) 100%);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    -webkit-mask-image: linear-gradient(to right, black calc(100% - 48px), transparent);
    mask-image: linear-gradient(to right, black calc(100% - 48px), transparent);
}

.hp-bridge-platform--target {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0%, rgba(37, 99, 235, 0.02) 100%);
    border: 1px solid rgba(37, 99, 235, 0.13);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    -webkit-mask-image: linear-gradient(to left, black calc(100% - 48px), transparent);
    mask-image: linear-gradient(to left, black calc(100% - 48px), transparent);
}

.hp-bridge-platform-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 8px;
    opacity: 0.9;
    object-fit: contain;
}

.hp-bridge-platform-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--hp-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hp-bridge-platform-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--hp-steel);
    margin-top: 2px;
}

/* Bridge connector — transfer bird */
.hp-bridge-connector {
    position: relative;
    z-index: 1;
    width: 120px;
    flex-shrink: 0;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 -38px;
}

.hp-bridge-bird {
    position: relative;
    z-index: 2;
    width: 120px;
    height: auto;
    opacity: 0.9;
    animation: hp-bird-float 3s ease-in-out infinite;
}

@keyframes hp-bird-float {
    0%, 100% { transform: translateX(-3px) translateY(0); }
    50% { transform: translateX(3px) translateY(-4px); }
}

/* ── Stats bar ── */
.hp-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    padding: 32px;
    border-top: 1px solid var(--hp-border);
    border-bottom: 1px solid var(--hp-border);
    flex-wrap: wrap;
}

.hp-stat {
    text-align: center;
}

.hp-stat-value {
    font-family: var(--hp-display);
    font-size: 2rem;
    font-weight: 400;
    color: var(--hp-steel);
    line-height: 1.1;
}

.hp-stat-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--hp-text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Sections ── */
.hp-section {
    padding: 56px 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.hp-section-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--hp-bridge);
    margin-bottom: 12px;
}

.hp-section h2 {
    font-family: var(--hp-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 400;
    color: var(--hp-steel);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.hp-section-lead {
    font-size: 0.95rem;
    color: var(--hp-text-secondary);
    max-width: 560px;
    margin-bottom: 32px;
}

/* Hover preview hint (features section) */
.hp-hover-hint {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--hp-bridge);
    background: var(--hp-bridge-glow);
    border: 1px solid rgba(37, 99, 235, 0.25);
    border-radius: 999px;
    padding: 5px 14px 5px 12px;
    margin-top: -16px;
    margin-bottom: 30px;
    width: fit-content;
}

.hp-hover-hint-icon {
    flex-shrink: 0;
    opacity: 0.9;
}

/* ── How It Works ── */
.hp-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    position: relative;
}

.hp-steps::before {
    content: '';
    position: absolute;
    top: 32px;
    left: calc(16.67% + 20px);
    right: calc(16.67% + 20px);
    height: 2px;
    background: var(--hp-border);
}

.hp-step {
    text-align: center;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hp-step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--hp-mist);
    border: 2px solid var(--hp-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--hp-display);
    font-size: 1rem;
    color: var(--hp-text-secondary);
    margin-bottom: 16px;
    transition: all 0.2s;
}

.hp-step:hover .hp-step-num {
    border-color: var(--hp-bridge);
    color: var(--hp-bridge);
    background: #fff;
    box-shadow: 0 0 0 4px var(--hp-bridge-glow);
}

.hp-step-icon {
    font-size: 1.6rem;
    margin-bottom: 10px;
}
.hp-step-icon-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}
.hp-step-icon-img--bird {
    width: 56px;
    height: 56px;
}

.hp-step h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--hp-steel);
    margin-bottom: 6px;
}

.hp-step p {
    font-size: 0.82rem;
    color: var(--hp-text-secondary);
    line-height: 1.5;
}

/* ── Demo screenshot ── */
.hp-demo {
    margin-top: 36px;
    text-align: center;
}

.hp-demo-img {
    max-width: 100%;
    height: auto;
    border-radius: var(--hp-radius);
    border: 1px solid var(--hp-border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
}

/* ── Feature Grid (spec sheet style) ── */
.hp-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5px;
    background: var(--hp-border);
    border: 1.5px solid var(--hp-border);
    border-radius: var(--hp-radius);
    overflow: hidden;
}

.hp-feature {
    background: #fff;
    padding: 28px 24px;
}

.hp-feature-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--hp-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 14px;
}

.hp-feature-icon--format { background: rgba(37, 99, 235, 0.08); }
.hp-feature-icon--table { background: rgba(124, 58, 237, 0.08); }
.hp-feature-icon--image { background: rgba(5, 150, 105, 0.08); }
.hp-feature-icon--attach { background: rgba(245, 158, 11, 0.08); }
.hp-feature-icon--code { background: rgba(37, 99, 235, 0.08); }
.hp-feature-icon--todo { background: rgba(5, 150, 105, 0.08); }

.hp-feature h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--hp-steel);
    margin-bottom: 4px;
}

.hp-feature p {
    font-size: 0.78rem;
    color: var(--hp-text-secondary);
    line-height: 1.45;
}

/* ── Feature hover preview ── */
.hp-preview {
    position: fixed;
    z-index: 1000;
    pointer-events: auto;
    background: #fff;
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16), 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 8px;
    max-width: min(420px, 80vw);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}

.hp-preview.is-visible {
    opacity: 1;
    visibility: visible;
}

.hp-preview-img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: calc(var(--hp-radius) - 4px);
    background: #fff;
}

@media (max-width: 640px) {
    .hp-preview {
        max-width: 92vw;
    }
}

/* ── Trust / Security ── */
.hp-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5px;
    background: var(--hp-border);
    border: 1.5px solid var(--hp-border);
    border-radius: var(--hp-radius);
    overflow: hidden;
}

.hp-trust-item {
    background: #fff;
    padding: 28px 24px;
    text-align: center;
}

.hp-trust-icon {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.hp-trust-item h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--hp-steel);
    margin-bottom: 6px;
}

.hp-trust-item p {
    font-size: 0.78rem;
    color: var(--hp-text-secondary);
    line-height: 1.45;
}

/* ── Pricing / CTA section ── */
.hp-cta-section {
    text-align: center;
    padding: 56px 32px;
    background: linear-gradient(180deg, transparent 0%, var(--hp-mist) 100%);
}

.hp-cta-section h2 {
    font-family: var(--hp-display);
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 400;
    color: var(--hp-steel);
    margin-bottom: 10px;
}

.hp-cta-section p {
    font-size: 0.95rem;
    color: var(--hp-text-secondary);
    margin-bottom: 28px;
}

.hp-pricing-note {
    display: inline-block;
    margin-top: 20px;
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--hp-trust-dim);
    color: var(--hp-trust);
    font-size: 0.82rem;
    font-weight: 500;
}

/* ── Footer ── */
.hp-footer {
    border-top: 1px solid var(--hp-border);
    background: var(--hp-steel);
    color: #9CA3AF;
    padding: 56px 32px 0;
}

.hp-footer-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.hp-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hp-footer-logo-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.hp-footer-logo-img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background: #fff;
    padding: 3px;
}

.hp-footer-company {
    font-size: 1.1rem;
    font-weight: 700;
    color: #E5E7EB;
}

.hp-footer-tagline {
    font-size: 0.88rem;
    color: #9CA3AF;
    line-height: 1.5;
}

.hp-footer-legal-link {
    font-size: 0.8rem;
    color: #6B7280;
    text-decoration: none;
    transition: color 0.15s;
}

.hp-footer-legal-link:hover {
    color: #D1D5DB;
}

.hp-footer-col {
    display: flex;
    flex-direction: column;
}

.hp-footer-heading {
    font-size: 0.82rem;
    font-weight: 600;
    color: #E5E7EB;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}

.hp-footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hp-footer-list a,
.hp-footer-list span {
    font-size: 0.82rem;
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.15s;
}

.hp-footer-list a:hover {
    color: #D1D5DB;
}

/* Footer bottom bar */
.hp-footer-bar {
    max-width: 1100px;
    margin: 0 auto;
    border-top: 1px solid #374151;
    padding: 22px 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: #6B7280;
}

.hp-footer-social {
    display: flex;
    align-items: center;
    gap: 18px;
}

.hp-footer-social-icon {
    width: 22px;
    height: 22px;
    opacity: 0.45;
    transition: opacity 0.15s;
    object-fit: contain;
}

.hp-footer-social a:hover .hp-footer-social-icon {
    opacity: 0.85;
}

.hp-footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 16px;
    text-align: right;
}

.hp-footer-legal a {
    color: #6B7280;
    text-decoration: none;
    transition: color 0.15s;
}

.hp-footer-legal a:hover {
    color: #D1D5DB;
}

@media (max-width: 768px) {
    .hp-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .hp-footer-brand {
        grid-column: 1 / -1;
    }

    .hp-footer-bar {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    .hp-footer-legal {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hp-footer-grid {
        grid-template-columns: 1fr;
    }

    .hp-footer-legal {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .hp-hero {
        padding: 36px 20px 48px;
    }

    .hp-bridge-vis {
        flex-direction: column;
        max-width: 340px;
    }

    .hp-bridge-platform--source {
        border-right: 1px solid rgba(124, 58, 237, 0.15);
        border-bottom: none;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        border-top-right-radius: var(--hp-radius);
    }

    .hp-bridge-platform--target {
        border-left: 1px solid rgba(37, 99, 235, 0.13);
        border-top: none;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        border-bottom-left-radius: var(--hp-radius);
    }

    .hp-bridge-connector {
        width: 100%;
        height: 76px;
        margin: -24px 0;
    }

    .hp-bridge-bird {
        width: 84px;
        animation: hp-bird-float-h 3s ease-in-out infinite;
    }

    @keyframes hp-bird-float-h {
        0%, 100% { transform: translateY(-3px) translateX(0); }
        50% { transform: translateY(3px) translateX(3px); }
    }

    .hp-steps {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hp-steps::before {
        display: none;
    }

    .hp-features {
        grid-template-columns: 1fr 1fr;
    }

    .hp-trust-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hp-stats {
        gap: 28px;
    }

    .hp-nav {
        padding: 12px 16px;
    }

    .hp-section {
        padding: 56px 20px;
    }
}

@media (max-width: 480px) {
    .hp-features {
        grid-template-columns: 1fr;
    }

    .hp-trust-grid {
        grid-template-columns: 1fr;
    }

    .hp-hero h1 {
        font-size: 1.8rem;
    }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    .hp-bridge-bird {
        animation: none;
    }

    .hp-hero-badge-dot {
        animation: none;
    }
}

/* ── Focus visible ── */
.hp-nav-link:focus-visible,
.hp-btn:focus-visible,
.hp-footer-links a:focus-visible {
    outline: 2px solid var(--hp-bridge);
    outline-offset: 3px;
}
