*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
}
body {
    font-family: var(--font-sans);
    background-color: var(--c-bg);
    color: var(--c-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    padding-block-start: 54px;
}
a {
    color: inherit;
    text-decoration: none;
}
img, video, svg {
    display: block;
    max-width: 100%;
    height: auto;
}
button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: transparent;
}
input, textarea, select {
    font: inherit;
}
:focus-visible {
    outline: 2px solid var(--c-text);
    outline-offset: 2px;
}
.site-wrapper {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}
.container {
    width: 100%;
    max-width: var(--container-lg);
    margin-inline: auto;
    padding-inline: var(--sp-4);
}
.py-16 {
    padding-block: 4rem;
}
.text-center {
    text-align: center;
}
.text-sm {
    font-size: 0.875rem;
}
.text-muted {
    color: var(--c-text-muted);
}
h1 {
    font-size: 2rem;
    font-weight: 700;
}
article h1, aside h1, nav h1, section h1 {
    font-size: 2rem;
}
.prose {
    line-height: 1.75;
}
.prose p {
    margin-block-end: 1.25rem;
}
.prose h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-block: 2rem 1rem;
}
.prose h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-block: 1.5rem 0.75rem;
}
.prose ul, .prose ol {
    margin-block-end: 1.25rem;
    padding-inline-start: 1.5rem;
}
.prose li {
    margin-block-end: var(--sp-2);
}
.prose a {
    color: var(--c-text);
    text-decoration: underline;
}
.prose img {
    border-radius: var(--radius-md);
    margin-block: 1.5rem;
}
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.error-content {
    text-align: center;
}
.error-header {
    margin-bottom: var(--sp-6);
}
.error-code {
    font-size: 6rem;
    font-weight: 800;
    line-height: 1;
    color: var(--c-text-muted);
    margin-bottom: var(--sp-4);
}
.error-actions {
    display: flex;
    gap: var(--sp-3);
    justify-content: center;
    margin-top: var(--sp-6);
}
.site-header {
    position: fixed;
    top: var(--sp-3);
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    z-index: var(--z-header);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sp-3) var(--sp-4);
    gap: var(--sp-4);
}
.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}
.logo {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--c-text);
    text-decoration: none;
}
.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--c-text);
    color: var(--c-bg);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}
.header-nav {
    display: flex;
    gap: var(--sp-6);
}
.header-nav a {
    color: var(--c-text-muted);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: color var(--transition-fast);
}
.header-nav a:hover {
    color: var(--c-text);
}
.icon-btn, .avatar-btn, .menu-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--c-text);
    transition: background var(--transition-fast);
}
.icon-btn:hover, .avatar-btn:hover {
    background: var(--c-surface-alt);
}
.avatar-btn img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
}
.menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--c-text);
    border-radius: 2px;
    transition: transform var(--transition-normal);
}
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}
.mobile-only {
    display: none !important;
}
.desktop-only {
    display: flex !important;
}
.overlay-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: calc(var(--z-modal) - 1);
    opacity: 0;
    visibility: hidden;
    display: none;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}
.overlay-backdrop.active {
    opacity: 1;
    visibility: visible;
    display: block;
}
.drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 85vh;
    background: var(--c-surface);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    z-index: var(--z-modal);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition-slow), opacity var(--transition-normal), visibility var(--transition-normal);
    overflow-y: auto;
}
.drawer.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}
.drawer-handle {
    padding: var(--sp-3) 0;
    display: flex;
    justify-content: center;
    cursor: grab;
}
.drawer-handle::before {
    content: '';
    width: 40px;
    height: 5px;
    background: var(--c-border);
    border-radius: 3px;
}
.drawer-content {
    padding: 0 var(--sp-4) var(--sp-6);
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
}
.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
}
.drawer-nav a {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3);
    color: var(--c-text);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}
.drawer-nav a:hover {
    background: var(--c-surface-alt);
}
.drawer-nav a svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.7;
}
.drawer-nav a.nav-logout {
    color: var(--c-error);
}
.drawer-header {
    display: flex;
    justify-content: center;
    padding-bottom: var(--sp-3);
    border-bottom: 1px solid var(--c-border);
}
.drawer-footer {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
    padding-top: var(--sp-4);
    border-top: 1px solid var(--c-border);
}
.profile-card {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3);
    background: var(--c-surface-alt);
    border-radius: var(--radius-lg);
    border: 1px solid var(--c-border);
}
.profile-name {
    font-weight: 700;
    color: var(--c-text);
    display: flex;
    align-items: center;
    gap: 4px;
}
.profile-email {
    font-size: 0.875rem;
    color: var(--c-text-muted);
}
.avatar-btn.wl-avatar--online { position: relative; }
.avatar-btn.wl-avatar--online::after { content: ''; position: absolute; bottom: 0; right: 0; width: 8px; height: 8px; background: var(--c-online); border: 2px solid var(--c-bg); border-radius: 50%; z-index: 1; }
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}
.search-overlay.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}
.search-container {
    width: 100%;
    max-width: 600px;
    padding: 0 var(--sp-4);
}
.search-box {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-4);
    background: var(--c-surface);
    border: 2px solid var(--c-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}
.search-box svg {
    color: var(--c-text-muted);
    flex-shrink: 0;
}
.search-box input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--c-text);
    outline: none;
}
.search-box button {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--c-text-muted);
    padding: var(--sp-1);
}
.search-results {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: var(--sp-4);
    width: 100%;
    max-height: 60vh;
    overflow-y: auto;
    margin-top: var(--sp-4);
}
.search-results:empty {
    display: none;
}
body.home,
body.home #main,
body.home .site-wrapper {
    margin: 0;
    padding: 0;
    max-width: none;
    width: 100%;
}
body.home {
    padding-block-start: 0;
}
@media (min-width: 992px) {
    body.home .site-header {
        position: absolute;
        width: 100%;
        top: 0;
        z-index: 100;
        background: transparent !important;
        border: none !important;
    }
}
.integration-hero-wrapper {
    background: #f8fafc;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}
.integration-hero {
    position: relative;
    padding: clamp(96px, 12vh, 140px) 0 clamp(44px, 8vh, 90px);
    font-family: var(--font-sans);
    color: #1e293b;
    width: 100%;
}
.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    z-index: 1;
    pointer-events: none;
}
.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    text-align: center;
    padding: 0 clamp(16px, 3vw, 28px);
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    margin-bottom: 24px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.hero-title {
    font-size: clamp(32px, 7vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    color: #0f172a;
    margin: 0 0 24px;
    letter-spacing: -2px;
}
.hero-subtitle {
    font-size: clamp(16px, 1.8vw, 20px);
    color: #64748b;
    line-height: 1.6;
    margin: 0 auto clamp(28px, 4vh, 44px);
    max-width: 700px;
}
.hero-btn {
    background: #0f172a;
    color: #fff;
    border: 0;
    padding: 18px 40px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
}
.hero-btn:hover {
    background: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.2);
}
.icon-carousel-wrap {
    margin-top: clamp(42px, 8vh, 92px);
    position: relative;
    padding: 16px 0;
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}
.icon-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    margin-bottom: 20px;
    width: max-content;
    will-change: transform;
}
.icon-row-track {
    display: flex;
    gap: 20px;
    flex-shrink: 0;
}
.icon-card {
    width: 68px;
    height: 68px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f1f5f9;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.icon-card:hover {
    transform: scale(1.15);
    z-index: 10;
    border-color: #3b82f6;
    box-shadow: 0 15px 30px -5px rgba(59, 130, 246, 0.2);
}
.icon-card svg {
    width: 34px;
    height: 34px;
}
.scroll-left { animation: wl-marquee-l 60s linear infinite; }
.scroll-right { animation: wl-marquee-r 60s linear infinite; }
.icon-carousel-wrap:hover .scroll-left,
.icon-carousel-wrap:hover .scroll-right { animation-play-state: paused; }
@keyframes wl-marquee-l {
    from { transform: translateX(0); }
    to   { transform: translateX(calc(-50% - 12.5px)); }
}
@keyframes wl-marquee-r {
    from { transform: translateX(calc(-50% - 12.5px)); }
    to   { transform: translateX(0); }
}
.fade-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 15%;
    pointer-events: none;
    z-index: 5;
}
.fade-overlay.left {
    left: 0;
    background: linear-gradient(to right, #f8fafc, transparent);
}
.fade-overlay.right {
    right: 0;
    background: linear-gradient(to left, #f8fafc, transparent);
}
@media (min-width: 1025px) {
    .site-header .drawer {
        display: none !important;
    }
}
@media (max-width: 1024px) {
    .header-nav {
        display: none;
    }
    .menu-toggle {
        display: flex;
    }
    .site-header .mobile-only {
        display: flex;
    }
    .site-header .desktop-only {
        display: none;
    }
    .header-left .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    .header-left .logo span {
        display: none;
    }
}
@media (max-width: 768px) {
    .site-header {
        width: 95%;
        top: var(--sp-2);
    }
    .header-inner {
        padding: var(--sp-2) var(--sp-3);
    }
    .icon-btn, .avatar-btn, .menu-toggle {
        width: 36px;
        height: 36px;
    }
    .search-results {
        max-height: 50vh;
    }
    .container {
        padding-inline: var(--sp-3);
    }
    .integration-hero {
        min-height: 100svh;
        padding: clamp(84px, 16vh, 110px) 0 clamp(24px, 6vh, 42px);
    }
    .hero-title {
        margin: 0 0 16px;
        letter-spacing: -1px;
    }
    .hero-subtitle {
        max-width: 36ch;
        margin-bottom: 24px;
    }
    .hero-btn {
        width: min(320px, 100%);
        min-height: 50px;
        padding: 14px 24px;
        border-radius: 12px;
    }
    .icon-carousel-wrap {
        margin-top: 32px;
        mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
    }
    .icon-row,
    .icon-row-track {
        gap: 14px;
    }
    .icon-row {
        margin-bottom: 14px;
    }
    .icon-card {
        width: 58px;
        height: 58px;
    }
}
@media (max-width: 480px) {
    .site-header {
        width: 98%;
    }
    .header-inner {
        padding: var(--sp-2);
    }
    .icon-btn, .avatar-btn, .menu-toggle {
        width: 32px;
        height: 32px;
    }
    .hero-title {
        font-size: clamp(28px, 9vw, 38px);
    }
    .icon-card svg {
        width: 26px;
        height: 26px;
    }
}
