/* API & SDK page — mirrors Figma Make LearningSubPage + ApiSdk config */

.ls-page {
    min-height: 100vh;
    background: #f7f9fc;
    color: #0f172a;
}

.ls-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
}

.ls-hero-gradient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 10% 30%, rgba(23, 107, 255, 0.08) 0%, transparent 30%),
        radial-gradient(circle at 90% 70%, rgba(14, 165, 233, 0.08) 0%, transparent 28%);
}

.ls-hero-inner {
    position: relative;
    z-index: 1;
    padding-top: 56px;
    padding-bottom: 56px;
}

@media (min-width: 1024px) {
    .ls-hero-inner {
        padding-top: 64px;
        padding-bottom: 64px;
    }
}

.ls-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    row-gap: 4px;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
}

.ls-breadcrumb a {
    text-decoration: none;
    color: #64748b;
    transition: color 0.15s ease;
}

.ls-breadcrumb a:hover {
    color: #0284c7;
}

.ls-breadcrumb span {
    color: #cbd5e1;
}

.ls-breadcrumb strong {
    color: #1e293b;
    font-weight: 500;
}

.ls-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 12px;
    margin-bottom: 16px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: #0284c7;
}

.ls-chip--architecture {
    background: #15803d;
}

.ls-title {
    max-width: 48rem;
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.ls-subtitle {
    margin: 16px 0 0;
    max-width: 42rem;
    font-size: 1.125rem;
    line-height: 1.75;
    color: #475569;
}

.ls-sections-wrap {
    padding-top: 48px;
    padding-bottom: 48px;
}

.ls-section-block + .ls-section-block {
    margin-top: 56px;
}

.ls-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.ls-section-emoji {
    font-size: 1.25rem;
    line-height: 1;
}

.ls-section-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.ls-card-grid {
    display: grid;
    gap: 16px;
}

@media (min-width: 768px) {
    .ls-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .ls-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.ls-card {
    display: flex;
    flex-direction: column;
    border-radius: 28px;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ls-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.ls-card-badge {
    align-self: flex-start;
    border-radius: 999px;
    padding: 2px 10px;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 600;
}

.ls-card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.35;
}

.ls-card-desc {
    margin: 8px 0 0;
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.75;
    color: #475569;
}

.ls-card-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.ls-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #176bff;
    text-decoration: none;
    transition: color 0.15s ease;
}

.ls-card-link:hover {
    text-decoration: underline;
    color: #0f5fe7;
}

.ls-icon-link {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.ls-footer-cta {
    border-top: 1px solid #e2e8f0;
    background: #fff;
    padding: 56px 0;
}

.ls-footer-cta-inner {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.ls-footer-cta-title {
    margin: 0;
    font-size: 1.875rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.ls-footer-cta-desc {
    margin: 16px 0 0;
    font-size: 1rem;
    line-height: 1.75;
    color: #475569;
}

.ls-footer-cta-actions {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.ls-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 16px;
    padding: 12px 24px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    background: #176bff;
    text-decoration: none;
    transition: background 0.15s ease;
}

.ls-btn-primary:hover {
    background: #0f5fe7;
    color: #fff;
}

.ls-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 12px 24px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    background: #fff;
    text-decoration: none;
    transition: background 0.15s ease;
}

.ls-btn-secondary:hover {
    background: #f8fafc;
    color: #1e293b;
}

.ls-icon-btn {
    width: 16px;
    height: 16px;
}
